55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace AndroidSideloader
|
|
{
|
|
internal class Donors
|
|
{
|
|
public static int GameNameIndex = 0;
|
|
public static int PackageNameIndex = 1;
|
|
public static int VersionCodeIndex = 2;
|
|
public static int UpdateOrNew = 3;
|
|
/* Game Name
|
|
* Package Name
|
|
* Version Code
|
|
* Update or New app
|
|
*/
|
|
public static List<string> newAppProperties = new List<string>();
|
|
public static List<string> donorGameProperties = new List<string>();
|
|
|
|
public static List<string[]> donorGames = new List<string[]>();
|
|
public static List<string[]> newApps = new List<string[]>();
|
|
public static void initDonorGames()
|
|
{
|
|
donorGameProperties.Clear();
|
|
donorGames.Clear();
|
|
if (!string.IsNullOrEmpty(MainForm.donorApps))
|
|
{
|
|
string[] gameListSplited = MainForm.donorApps.Split('\n');
|
|
foreach (string game in gameListSplited)
|
|
{
|
|
if (game.Length > 1)
|
|
{
|
|
donorGames.Add(game.Split(';'));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void initNewApps()
|
|
{
|
|
newApps.Clear();
|
|
if (!string.IsNullOrEmpty(DonorsListViewForm.newAppsForList))
|
|
{
|
|
string[] newListSplited = DonorsListViewForm.newAppsForList.Split('\n');
|
|
foreach (string game in newListSplited)
|
|
{
|
|
if (game.Length > 1)
|
|
{
|
|
newApps.Add(game.Split(';'));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|