|
@@ -268,7 +268,7 @@ public class GameUty
|
|
|
|
|
|
public static void UpdateFileSystemPath()
|
|
|
{
|
|
|
- string fullPath = Path.GetFullPath(".\\");
|
|
|
+ string text = UTY.gameProjectPath + "\\";
|
|
|
string gameDataPath = "GameData";
|
|
|
int check_ver_no = 3;
|
|
|
Func<string, bool> AddFolderOrArchive = delegate(string name)
|
|
@@ -294,34 +294,34 @@ public class GameUty
|
|
|
HashSet<string> addedLegacyArchives = new HashSet<string>();
|
|
|
Action<string> action = delegate(string name)
|
|
|
{
|
|
|
- foreach (string text29 in GameUty.PathList)
|
|
|
+ foreach (string text30 in GameUty.PathList)
|
|
|
{
|
|
|
- string text30 = name + "_" + text29;
|
|
|
- bool flag3 = AddFolderOrArchive(text30);
|
|
|
- if (flag3 && !addedLegacyArchives.Contains(text30))
|
|
|
+ string text31 = name + "_" + text30;
|
|
|
+ bool flag3 = AddFolderOrArchive(text31);
|
|
|
+ if (flag3 && !addedLegacyArchives.Contains(text31))
|
|
|
{
|
|
|
- addedLegacyArchives.Add(text30);
|
|
|
+ addedLegacyArchives.Add(text31);
|
|
|
}
|
|
|
if (flag3)
|
|
|
{
|
|
|
if (name == "csv")
|
|
|
{
|
|
|
- GameUty.ExistCsvPathList.Add(text29);
|
|
|
+ GameUty.ExistCsvPathList.Add(text30);
|
|
|
}
|
|
|
for (int num15 = 2; num15 <= check_ver_no; num15++)
|
|
|
{
|
|
|
- AddFolderOrArchive(text30 + "_" + num15);
|
|
|
+ AddFolderOrArchive(text31 + "_" + num15);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
Action<string> action2 = delegate(string name)
|
|
|
{
|
|
|
- foreach (string text29 in GameUty.PathList)
|
|
|
+ foreach (string text30 in GameUty.PathList)
|
|
|
{
|
|
|
- string text30 = name + "_" + text29;
|
|
|
- bool flag3 = AddFolderOrArchive(text30);
|
|
|
- if (!flag3 && addedLegacyArchives.Contains(text30))
|
|
|
+ string text31 = name + "_" + text30;
|
|
|
+ bool flag3 = AddFolderOrArchive(text31);
|
|
|
+ if (!flag3 && addedLegacyArchives.Contains(text31))
|
|
|
{
|
|
|
flag3 = true;
|
|
|
}
|
|
@@ -329,7 +329,7 @@ public class GameUty
|
|
|
{
|
|
|
if (name == "csv")
|
|
|
{
|
|
|
- GameUty.ExistCsvPathList.Add(text29);
|
|
|
+ GameUty.ExistCsvPathList.Add(text30);
|
|
|
}
|
|
|
for (int num15 = 2; num15 <= check_ver_no; num15++)
|
|
|
{
|
|
@@ -337,7 +337,7 @@ public class GameUty
|
|
|
{
|
|
|
name,
|
|
|
"_",
|
|
|
- text29,
|
|
|
+ text30,
|
|
|
"_",
|
|
|
num15
|
|
|
}));
|
|
@@ -347,13 +347,13 @@ public class GameUty
|
|
|
};
|
|
|
Action<string> action3 = delegate(string name)
|
|
|
{
|
|
|
- foreach (string text29 in GameUty.PathList)
|
|
|
+ foreach (string text30 in GameUty.PathList)
|
|
|
{
|
|
|
- if (AddFolderOrArchive(name + "_" + text29))
|
|
|
+ if (AddFolderOrArchive(name + "_" + text30))
|
|
|
{
|
|
|
if (name == "csv")
|
|
|
{
|
|
|
- GameUty.ExistCsvPathList.Add(text29);
|
|
|
+ GameUty.ExistCsvPathList.Add(text30);
|
|
|
}
|
|
|
for (int num15 = 2; num15 <= check_ver_no; num15++)
|
|
|
{
|
|
@@ -361,7 +361,7 @@ public class GameUty
|
|
|
{
|
|
|
name,
|
|
|
"_",
|
|
|
- text29,
|
|
|
+ text30,
|
|
|
"_",
|
|
|
num15
|
|
|
}));
|
|
@@ -371,7 +371,7 @@ public class GameUty
|
|
|
};
|
|
|
string str = string.Empty;
|
|
|
str = "必用アーカイブがありません。GameData\\";
|
|
|
- GameUty.m_FileSystem.SetBaseDirectory(fullPath);
|
|
|
+ GameUty.m_FileSystem.SetBaseDirectory(text);
|
|
|
AddFolderOrArchive("product");
|
|
|
Product.Initialize(GameUty.m_FileSystem);
|
|
|
Debug.Log("IsEnabledCompatibilityMode:" + GameUty.IsEnabledCompatibilityMode.ToString());
|
|
@@ -403,24 +403,24 @@ public class GameUty
|
|
|
GameUty.m_FileSystem.SetBaseDirectory(GameMain.Instance.CMSystem.CM3D2Path);
|
|
|
GameUty.PathList = GameUty.PathListOld;
|
|
|
AddFolderOrArchive("material");
|
|
|
- foreach (string text in GameUty.PathListOld)
|
|
|
+ foreach (string text2 in GameUty.PathListOld)
|
|
|
{
|
|
|
string str3 = "material";
|
|
|
- if (text == "denkigai2015wTowelR")
|
|
|
+ if (text2 == "denkigai2015wTowelR")
|
|
|
{
|
|
|
AddFolderOrArchive(str3 + "_denkigai2015wTowel");
|
|
|
}
|
|
|
- string text2 = str3 + "_" + text;
|
|
|
- bool flag = AddFolderOrArchive(text2);
|
|
|
- if (flag && !addedLegacyArchives.Contains(text2))
|
|
|
+ string text3 = str3 + "_" + text2;
|
|
|
+ bool flag = AddFolderOrArchive(text3);
|
|
|
+ if (flag && !addedLegacyArchives.Contains(text3))
|
|
|
{
|
|
|
- addedLegacyArchives.Add(text2);
|
|
|
+ addedLegacyArchives.Add(text3);
|
|
|
}
|
|
|
if (flag)
|
|
|
{
|
|
|
for (int i2 = 2; i2 <= check_ver_no; i2++)
|
|
|
{
|
|
|
- AddFolderOrArchive(text2 + "_" + i2);
|
|
|
+ AddFolderOrArchive(text3 + "_" + i2);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -440,24 +440,24 @@ public class GameUty
|
|
|
}
|
|
|
Debug.Log("■■■■■■■■ Archive Log[2.1 Compatibility] (GameData_20) ■■■■■■■■");
|
|
|
gameDataPath = "GameData_20";
|
|
|
- GameUty.m_FileSystem.SetBaseDirectory(fullPath);
|
|
|
+ GameUty.m_FileSystem.SetBaseDirectory(text);
|
|
|
if (GameUty.IsEnabledCompatibilityMode)
|
|
|
{
|
|
|
GameUty.m_FileSystem.AddPatchDecryptPreferredSearchDirectory(GameMain.Instance.CMSystem.CM3D2Path + "\\GameData");
|
|
|
}
|
|
|
- GameUty.PathList = GameUty.ReadAutoPathFile("[2.1Compatibility]", fullPath + gameDataPath + "\\paths.dat");
|
|
|
+ GameUty.PathList = GameUty.ReadAutoPathFile("[2.1Compatibility]", text + gameDataPath + "\\paths.dat");
|
|
|
if (GameUty.PathList != null && 0 < GameUty.PathList.Count)
|
|
|
{
|
|
|
- foreach (string text3 in GameUty.PathList)
|
|
|
+ foreach (string text4 in GameUty.PathList)
|
|
|
{
|
|
|
- string text4 = "material";
|
|
|
- if (text3 == "denkigai2015wTowelR")
|
|
|
+ string text5 = "material";
|
|
|
+ if (text4 == "denkigai2015wTowelR")
|
|
|
{
|
|
|
- AddFolderOrArchive(text4 + "_denkigai2015wTowel");
|
|
|
+ AddFolderOrArchive(text5 + "_denkigai2015wTowel");
|
|
|
}
|
|
|
- string text5 = text4 + "_" + text3;
|
|
|
- bool flag2 = AddFolderOrArchive(text5);
|
|
|
- if (!flag2 && addedLegacyArchives.Contains(text5))
|
|
|
+ string text6 = text5 + "_" + text4;
|
|
|
+ bool flag2 = AddFolderOrArchive(text6);
|
|
|
+ if (!flag2 && addedLegacyArchives.Contains(text6))
|
|
|
{
|
|
|
flag2 = true;
|
|
|
}
|
|
@@ -467,9 +467,9 @@ public class GameUty
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text4,
|
|
|
+ text5,
|
|
|
"_",
|
|
|
- text3,
|
|
|
+ text4,
|
|
|
"_",
|
|
|
j
|
|
|
}));
|
|
@@ -491,7 +491,7 @@ public class GameUty
|
|
|
Debug.Log("■■■■■■■■■■■■■■■■■■■■");
|
|
|
Debug.Log("■■■■■■■■ Archive Log[2.1] (GameData) ■■■■■■■■");
|
|
|
gameDataPath = "GameData";
|
|
|
- GameUty.PathList = GameUty.ReadAutoPathFile("[2.1]", fullPath + gameDataPath + "\\paths.dat");
|
|
|
+ GameUty.PathList = GameUty.ReadAutoPathFile("[2.1]", text + gameDataPath + "\\paths.dat");
|
|
|
if (GameUty.PathList == null)
|
|
|
{
|
|
|
GameUty.PathList = new List<string>();
|
|
@@ -499,18 +499,18 @@ public class GameUty
|
|
|
}
|
|
|
GameUty.PathList.Add("jp");
|
|
|
AddFolderOrArchive("csv");
|
|
|
- foreach (string text6 in GameUty.PathList)
|
|
|
+ foreach (string text7 in GameUty.PathList)
|
|
|
{
|
|
|
- string text7 = "csv";
|
|
|
- if (AddFolderOrArchive(text7 + "_" + text6))
|
|
|
+ string text8 = "csv";
|
|
|
+ if (AddFolderOrArchive(text8 + "_" + text7))
|
|
|
{
|
|
|
for (int k = 2; k <= check_ver_no; k++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text7,
|
|
|
+ text8,
|
|
|
"_",
|
|
|
- text6,
|
|
|
+ text7,
|
|
|
"_",
|
|
|
k
|
|
|
}));
|
|
@@ -519,18 +519,18 @@ public class GameUty
|
|
|
}
|
|
|
AddFolderOrArchive("prioritymaterial");
|
|
|
NDebug.Assert(AddFolderOrArchive("motion"), str + "motion");
|
|
|
- foreach (string text8 in GameUty.PathList)
|
|
|
+ foreach (string text9 in GameUty.PathList)
|
|
|
{
|
|
|
- string text9 = "motion";
|
|
|
- if (AddFolderOrArchive(text9 + "_" + text8))
|
|
|
+ string text10 = "motion";
|
|
|
+ if (AddFolderOrArchive(text10 + "_" + text9))
|
|
|
{
|
|
|
for (int l = 2; l <= check_ver_no; l++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text9,
|
|
|
+ text10,
|
|
|
"_",
|
|
|
- text8,
|
|
|
+ text9,
|
|
|
"_",
|
|
|
l
|
|
|
}));
|
|
@@ -539,18 +539,18 @@ public class GameUty
|
|
|
}
|
|
|
AddFolderOrArchive("motion2");
|
|
|
NDebug.Assert(AddFolderOrArchive("script"), str + "script");
|
|
|
- foreach (string text10 in GameUty.PathList)
|
|
|
+ foreach (string text11 in GameUty.PathList)
|
|
|
{
|
|
|
- string text11 = "script";
|
|
|
- if (AddFolderOrArchive(text11 + "_" + text10))
|
|
|
+ string text12 = "script";
|
|
|
+ if (AddFolderOrArchive(text12 + "_" + text11))
|
|
|
{
|
|
|
for (int m = 2; m <= check_ver_no; m++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text11,
|
|
|
+ text12,
|
|
|
"_",
|
|
|
- text10,
|
|
|
+ text11,
|
|
|
"_",
|
|
|
m
|
|
|
}));
|
|
@@ -558,18 +558,18 @@ public class GameUty
|
|
|
}
|
|
|
}
|
|
|
AddFolderOrArchive("script_share");
|
|
|
- foreach (string text12 in GameUty.PathList)
|
|
|
+ foreach (string text13 in GameUty.PathList)
|
|
|
{
|
|
|
- string text13 = "script_share";
|
|
|
- if (AddFolderOrArchive(text13 + "_" + text12))
|
|
|
+ string text14 = "script_share";
|
|
|
+ if (AddFolderOrArchive(text14 + "_" + text13))
|
|
|
{
|
|
|
for (int n = 2; n <= check_ver_no; n++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text13,
|
|
|
+ text14,
|
|
|
"_",
|
|
|
- text12,
|
|
|
+ text13,
|
|
|
"_",
|
|
|
n
|
|
|
}));
|
|
@@ -578,18 +578,18 @@ public class GameUty
|
|
|
}
|
|
|
AddFolderOrArchive("script_share2");
|
|
|
NDebug.Assert(AddFolderOrArchive("sound"), str + "sound");
|
|
|
- foreach (string text14 in GameUty.PathList)
|
|
|
+ foreach (string text15 in GameUty.PathList)
|
|
|
{
|
|
|
- string text15 = "sound";
|
|
|
- if (AddFolderOrArchive(text15 + "_" + text14))
|
|
|
+ string text16 = "sound";
|
|
|
+ if (AddFolderOrArchive(text16 + "_" + text15))
|
|
|
{
|
|
|
for (int num = 2; num <= check_ver_no; num++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text15,
|
|
|
+ text16,
|
|
|
"_",
|
|
|
- text14,
|
|
|
+ text15,
|
|
|
"_",
|
|
|
num
|
|
|
}));
|
|
@@ -598,18 +598,18 @@ public class GameUty
|
|
|
}
|
|
|
AddFolderOrArchive("sound2");
|
|
|
NDebug.Assert(AddFolderOrArchive("system"), str + "system");
|
|
|
- foreach (string text16 in GameUty.PathList)
|
|
|
+ foreach (string text17 in GameUty.PathList)
|
|
|
{
|
|
|
- string text17 = "system";
|
|
|
- if (AddFolderOrArchive(text17 + "_" + text16))
|
|
|
+ string text18 = "system";
|
|
|
+ if (AddFolderOrArchive(text18 + "_" + text17))
|
|
|
{
|
|
|
for (int num2 = 2; num2 <= check_ver_no; num2++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text17,
|
|
|
+ text18,
|
|
|
"_",
|
|
|
- text16,
|
|
|
+ text17,
|
|
|
"_",
|
|
|
num2
|
|
|
}));
|
|
@@ -618,36 +618,36 @@ public class GameUty
|
|
|
}
|
|
|
AddFolderOrArchive("system2");
|
|
|
AddFolderOrArchive("language");
|
|
|
- foreach (string text18 in GameUty.PathList)
|
|
|
+ foreach (string text19 in GameUty.PathList)
|
|
|
{
|
|
|
- string text19 = "language";
|
|
|
- if (AddFolderOrArchive(text19 + "_" + text18))
|
|
|
+ string text20 = "language";
|
|
|
+ if (AddFolderOrArchive(text20 + "_" + text19))
|
|
|
{
|
|
|
for (int num3 = 2; num3 <= check_ver_no; num3++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text19,
|
|
|
+ text20,
|
|
|
"_",
|
|
|
- text18,
|
|
|
+ text19,
|
|
|
"_",
|
|
|
num3
|
|
|
}));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- foreach (string text20 in GameUty.PathList)
|
|
|
+ foreach (string text21 in GameUty.PathList)
|
|
|
{
|
|
|
- string text21 = "bg";
|
|
|
- if (AddFolderOrArchive(text21 + "_" + text20))
|
|
|
+ string text22 = "bg";
|
|
|
+ if (AddFolderOrArchive(text22 + "_" + text21))
|
|
|
{
|
|
|
for (int num4 = 2; num4 <= check_ver_no; num4++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text21,
|
|
|
+ text22,
|
|
|
"_",
|
|
|
- text20,
|
|
|
+ text21,
|
|
|
"_",
|
|
|
num4
|
|
|
}));
|
|
@@ -656,20 +656,20 @@ public class GameUty
|
|
|
}
|
|
|
if (Product.isEnglish && !Product.isPublic)
|
|
|
{
|
|
|
- string text22 = "bg-en";
|
|
|
- NDebug.Assert(AddFolderOrArchive(text22), str + text22);
|
|
|
- foreach (string text23 in GameUty.PathList)
|
|
|
+ string text23 = "bg-en";
|
|
|
+ NDebug.Assert(AddFolderOrArchive(text23), str + text23);
|
|
|
+ foreach (string text24 in GameUty.PathList)
|
|
|
{
|
|
|
- if (AddFolderOrArchive(text22 + "_" + text23))
|
|
|
+ if (AddFolderOrArchive(text23 + "_" + text24))
|
|
|
{
|
|
|
for (int num5 = 2; num5 <= check_ver_no; num5++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text22,
|
|
|
- "_",
|
|
|
text23,
|
|
|
"_",
|
|
|
+ text24,
|
|
|
+ "_",
|
|
|
num5
|
|
|
}));
|
|
|
}
|
|
@@ -684,18 +684,18 @@ public class GameUty
|
|
|
string arg2 = arg + "_" + (char)(97 + num6);
|
|
|
AddFolderOrArchive(arg2);
|
|
|
}
|
|
|
- foreach (string text24 in GameUty.PathList)
|
|
|
+ foreach (string text25 in GameUty.PathList)
|
|
|
{
|
|
|
- string text25 = "voice";
|
|
|
- if (AddFolderOrArchive(text25 + "_" + text24))
|
|
|
+ string text26 = "voice";
|
|
|
+ if (AddFolderOrArchive(text26 + "_" + text25))
|
|
|
{
|
|
|
for (int num7 = 2; num7 <= check_ver_no; num7++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text25,
|
|
|
+ text26,
|
|
|
"_",
|
|
|
- text24,
|
|
|
+ text25,
|
|
|
"_",
|
|
|
num7
|
|
|
}));
|
|
@@ -707,20 +707,20 @@ public class GameUty
|
|
|
string arg3 = "voice";
|
|
|
AddFolderOrArchive(arg3 + num8);
|
|
|
}
|
|
|
- string text26 = "parts";
|
|
|
- NDebug.Assert(AddFolderOrArchive(text26), str + text26);
|
|
|
- foreach (string text27 in GameUty.PathList)
|
|
|
+ string text27 = "parts";
|
|
|
+ NDebug.Assert(AddFolderOrArchive(text27), str + text27);
|
|
|
+ foreach (string text28 in GameUty.PathList)
|
|
|
{
|
|
|
- if (AddFolderOrArchive(text26 + "_" + text27))
|
|
|
+ if (AddFolderOrArchive(text27 + "_" + text28))
|
|
|
{
|
|
|
for (int num9 = 2; num9 <= check_ver_no; num9++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text26,
|
|
|
- "_",
|
|
|
text27,
|
|
|
"_",
|
|
|
+ text28,
|
|
|
+ "_",
|
|
|
num9
|
|
|
}));
|
|
|
}
|
|
@@ -778,17 +778,17 @@ public class GameUty
|
|
|
languageSource2.LoadAllLanguages(false);
|
|
|
}
|
|
|
}
|
|
|
- if (Directory.Exists(fullPath + "Mod"))
|
|
|
+ if (Directory.Exists(text + "Mod"))
|
|
|
{
|
|
|
GameUty.m_ModFileSystem = new FileSystemWindows();
|
|
|
- GameUty.m_ModFileSystem.SetBaseDirectory(fullPath);
|
|
|
+ GameUty.m_ModFileSystem.SetBaseDirectory(text);
|
|
|
GameUty.m_ModFileSystem.AddFolder("Mod");
|
|
|
string[] list2 = GameUty.m_ModFileSystem.GetList(string.Empty, AFileSystemBase.ListType.AllFolder);
|
|
|
- foreach (string text28 in list2)
|
|
|
+ foreach (string text29 in list2)
|
|
|
{
|
|
|
- if (!GameUty.m_ModFileSystem.AddAutoPath(text28))
|
|
|
+ if (!GameUty.m_ModFileSystem.AddAutoPath(text29))
|
|
|
{
|
|
|
- Debug.Log("m_ModFileSystemのAddAutoPathには既に " + text28 + " がありました。");
|
|
|
+ Debug.Log("m_ModFileSystemのAddAutoPathには既に " + text29 + " がありました。");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -839,7 +839,7 @@ public class GameUty
|
|
|
|
|
|
public static void UpdateFileSystemPathToNewProduct()
|
|
|
{
|
|
|
- string fullPath = Path.GetFullPath(".\\");
|
|
|
+ string text = UTY.gameProjectPath + "\\";
|
|
|
string gameDataPath = "GameData";
|
|
|
string str = string.Empty;
|
|
|
str = "必用アーカイブがありません。GameData" + Product.gameDataPath + "\\";
|
|
@@ -867,15 +867,15 @@ public class GameUty
|
|
|
};
|
|
|
Action<string> action = delegate(string name)
|
|
|
{
|
|
|
- foreach (string text27 in GameUty.PathList)
|
|
|
+ foreach (string text28 in GameUty.PathList)
|
|
|
{
|
|
|
- string arg5 = name + "_" + text27;
|
|
|
+ string arg5 = name + "_" + text28;
|
|
|
bool flag2 = AddFolderOrArchive(arg5);
|
|
|
if (flag2)
|
|
|
{
|
|
|
if (name == "csv")
|
|
|
{
|
|
|
- GameUty.ExistCsvPathList.Add(text27);
|
|
|
+ GameUty.ExistCsvPathList.Add(text28);
|
|
|
}
|
|
|
for (int num10 = 2; num10 <= check_ver_no; num10++)
|
|
|
{
|
|
@@ -883,7 +883,7 @@ public class GameUty
|
|
|
{
|
|
|
name,
|
|
|
"_",
|
|
|
- text27,
|
|
|
+ text28,
|
|
|
"_",
|
|
|
num10
|
|
|
}));
|
|
@@ -893,13 +893,13 @@ public class GameUty
|
|
|
};
|
|
|
Action<string> action2 = delegate(string name)
|
|
|
{
|
|
|
- foreach (string text27 in GameUty.PathList)
|
|
|
+ foreach (string text28 in GameUty.PathList)
|
|
|
{
|
|
|
- if (AddFolderOrArchive(name + "_" + text27))
|
|
|
+ if (AddFolderOrArchive(name + "_" + text28))
|
|
|
{
|
|
|
if (name == "csv")
|
|
|
{
|
|
|
- GameUty.ExistCsvPathList.Add(text27);
|
|
|
+ GameUty.ExistCsvPathList.Add(text28);
|
|
|
}
|
|
|
for (int num10 = 2; num10 <= check_ver_no; num10++)
|
|
|
{
|
|
@@ -907,7 +907,7 @@ public class GameUty
|
|
|
{
|
|
|
name,
|
|
|
"_",
|
|
|
- text27,
|
|
|
+ text28,
|
|
|
"_",
|
|
|
num10
|
|
|
}));
|
|
@@ -918,18 +918,18 @@ public class GameUty
|
|
|
StopWatch stopWatch = new StopWatch();
|
|
|
Debug.Log("■■■■■■■■ Archive Log[2.1 Compatibility] (GameData_20) ■■■■■■■■");
|
|
|
gameDataPath = "GameData_20";
|
|
|
- GameUty.m_FileSystem.SetBaseDirectory(fullPath);
|
|
|
- GameUty.PathList = GameUty.ReadAutoPathFile("[2.1Compatibility]", fullPath + gameDataPath + "\\paths.dat");
|
|
|
+ GameUty.m_FileSystem.SetBaseDirectory(text);
|
|
|
+ GameUty.PathList = GameUty.ReadAutoPathFile("[2.1Compatibility]", text + gameDataPath + "\\paths.dat");
|
|
|
if (GameUty.PathList != null && 0 < GameUty.PathList.Count)
|
|
|
{
|
|
|
- foreach (string text in GameUty.PathList)
|
|
|
+ foreach (string text2 in GameUty.PathList)
|
|
|
{
|
|
|
- string text2 = "material";
|
|
|
- if (text == "denkigai2015wTowelR")
|
|
|
+ string text3 = "material";
|
|
|
+ if (text2 == "denkigai2015wTowelR")
|
|
|
{
|
|
|
- AddFolderOrArchive(text2 + "_denkigai2015wTowel");
|
|
|
+ AddFolderOrArchive(text3 + "_denkigai2015wTowel");
|
|
|
}
|
|
|
- string arg = text2 + "_" + text;
|
|
|
+ string arg = text3 + "_" + text2;
|
|
|
bool flag = AddFolderOrArchive(arg);
|
|
|
if (flag)
|
|
|
{
|
|
@@ -937,9 +937,9 @@ public class GameUty
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text2,
|
|
|
+ text3,
|
|
|
"_",
|
|
|
- text,
|
|
|
+ text2,
|
|
|
"_",
|
|
|
i
|
|
|
}));
|
|
@@ -960,7 +960,7 @@ public class GameUty
|
|
|
Debug.Log("■■■■■■■■■■■■■■■■■■■■");
|
|
|
Debug.Log("■■■■■■■■ Archive Log[2.1] (GameData) ■■■■■■■■");
|
|
|
gameDataPath = "GameData";
|
|
|
- GameUty.PathList = GameUty.ReadAutoPathFile("[2.1]", fullPath + gameDataPath + "\\paths.dat");
|
|
|
+ GameUty.PathList = GameUty.ReadAutoPathFile("[2.1]", text + gameDataPath + "\\paths.dat");
|
|
|
if (GameUty.PathList == null)
|
|
|
{
|
|
|
GameUty.PathList = new List<string>();
|
|
@@ -968,18 +968,18 @@ public class GameUty
|
|
|
}
|
|
|
GameUty.PathList.Add(Product.gameDataPath.Replace("_", string.Empty));
|
|
|
AddFolderOrArchive("csv");
|
|
|
- foreach (string text3 in GameUty.PathList)
|
|
|
+ foreach (string text4 in GameUty.PathList)
|
|
|
{
|
|
|
- string text4 = "csv";
|
|
|
- if (AddFolderOrArchive(text4 + "_" + text3))
|
|
|
+ string text5 = "csv";
|
|
|
+ if (AddFolderOrArchive(text5 + "_" + text4))
|
|
|
{
|
|
|
for (int j = 2; j <= check_ver_no; j++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text4,
|
|
|
+ text5,
|
|
|
"_",
|
|
|
- text3,
|
|
|
+ text4,
|
|
|
"_",
|
|
|
j
|
|
|
}));
|
|
@@ -988,18 +988,18 @@ public class GameUty
|
|
|
}
|
|
|
AddFolderOrArchive("prioritymaterial");
|
|
|
NDebug.Assert(AddFolderOrArchive("motion"), str + "motion");
|
|
|
- foreach (string text5 in GameUty.PathList)
|
|
|
+ foreach (string text6 in GameUty.PathList)
|
|
|
{
|
|
|
- string text6 = "motion";
|
|
|
- if (AddFolderOrArchive(text6 + "_" + text5))
|
|
|
+ string text7 = "motion";
|
|
|
+ if (AddFolderOrArchive(text7 + "_" + text6))
|
|
|
{
|
|
|
for (int k = 2; k <= check_ver_no; k++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text6,
|
|
|
+ text7,
|
|
|
"_",
|
|
|
- text5,
|
|
|
+ text6,
|
|
|
"_",
|
|
|
k
|
|
|
}));
|
|
@@ -1008,18 +1008,18 @@ public class GameUty
|
|
|
}
|
|
|
AddFolderOrArchive("motion2");
|
|
|
NDebug.Assert(AddFolderOrArchive("script"), str + "script");
|
|
|
- foreach (string text7 in GameUty.PathList)
|
|
|
+ foreach (string text8 in GameUty.PathList)
|
|
|
{
|
|
|
- string text8 = "script";
|
|
|
- if (AddFolderOrArchive(text8 + "_" + text7))
|
|
|
+ string text9 = "script";
|
|
|
+ if (AddFolderOrArchive(text9 + "_" + text8))
|
|
|
{
|
|
|
for (int l = 2; l <= check_ver_no; l++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text8,
|
|
|
+ text9,
|
|
|
"_",
|
|
|
- text7,
|
|
|
+ text8,
|
|
|
"_",
|
|
|
l
|
|
|
}));
|
|
@@ -1027,18 +1027,18 @@ public class GameUty
|
|
|
}
|
|
|
}
|
|
|
AddFolderOrArchive("script_share");
|
|
|
- foreach (string text9 in GameUty.PathList)
|
|
|
+ foreach (string text10 in GameUty.PathList)
|
|
|
{
|
|
|
- string text10 = "script_share";
|
|
|
- if (AddFolderOrArchive(text10 + "_" + text9))
|
|
|
+ string text11 = "script_share";
|
|
|
+ if (AddFolderOrArchive(text11 + "_" + text10))
|
|
|
{
|
|
|
for (int m = 2; m <= check_ver_no; m++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text10,
|
|
|
+ text11,
|
|
|
"_",
|
|
|
- text9,
|
|
|
+ text10,
|
|
|
"_",
|
|
|
m
|
|
|
}));
|
|
@@ -1047,18 +1047,18 @@ public class GameUty
|
|
|
}
|
|
|
AddFolderOrArchive("script_share2");
|
|
|
NDebug.Assert(AddFolderOrArchive("sound"), str + "sound");
|
|
|
- foreach (string text11 in GameUty.PathList)
|
|
|
+ foreach (string text12 in GameUty.PathList)
|
|
|
{
|
|
|
- string text12 = "sound";
|
|
|
- if (AddFolderOrArchive(text12 + "_" + text11))
|
|
|
+ string text13 = "sound";
|
|
|
+ if (AddFolderOrArchive(text13 + "_" + text12))
|
|
|
{
|
|
|
for (int n = 2; n <= check_ver_no; n++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text12,
|
|
|
+ text13,
|
|
|
"_",
|
|
|
- text11,
|
|
|
+ text12,
|
|
|
"_",
|
|
|
n
|
|
|
}));
|
|
@@ -1067,18 +1067,18 @@ public class GameUty
|
|
|
}
|
|
|
AddFolderOrArchive("sound2");
|
|
|
NDebug.Assert(AddFolderOrArchive("system"), str + "system");
|
|
|
- foreach (string text13 in GameUty.PathList)
|
|
|
+ foreach (string text14 in GameUty.PathList)
|
|
|
{
|
|
|
- string text14 = "system";
|
|
|
- if (AddFolderOrArchive(text14 + "_" + text13))
|
|
|
+ string text15 = "system";
|
|
|
+ if (AddFolderOrArchive(text15 + "_" + text14))
|
|
|
{
|
|
|
for (int num = 2; num <= check_ver_no; num++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text14,
|
|
|
+ text15,
|
|
|
"_",
|
|
|
- text13,
|
|
|
+ text14,
|
|
|
"_",
|
|
|
num
|
|
|
}));
|
|
@@ -1087,36 +1087,36 @@ public class GameUty
|
|
|
}
|
|
|
AddFolderOrArchive("system2");
|
|
|
AddFolderOrArchive("language");
|
|
|
- foreach (string text15 in GameUty.PathList)
|
|
|
+ foreach (string text16 in GameUty.PathList)
|
|
|
{
|
|
|
- string text16 = "language";
|
|
|
- if (AddFolderOrArchive(text16 + "_" + text15))
|
|
|
+ string text17 = "language";
|
|
|
+ if (AddFolderOrArchive(text17 + "_" + text16))
|
|
|
{
|
|
|
for (int num2 = 2; num2 <= check_ver_no; num2++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text16,
|
|
|
+ text17,
|
|
|
"_",
|
|
|
- text15,
|
|
|
+ text16,
|
|
|
"_",
|
|
|
num2
|
|
|
}));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- foreach (string text17 in GameUty.PathList)
|
|
|
+ foreach (string text18 in GameUty.PathList)
|
|
|
{
|
|
|
- string text18 = "bg";
|
|
|
- if (AddFolderOrArchive(text18 + "_" + text17))
|
|
|
+ string text19 = "bg";
|
|
|
+ if (AddFolderOrArchive(text19 + "_" + text18))
|
|
|
{
|
|
|
for (int num3 = 2; num3 <= check_ver_no; num3++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text18,
|
|
|
+ text19,
|
|
|
"_",
|
|
|
- text17,
|
|
|
+ text18,
|
|
|
"_",
|
|
|
num3
|
|
|
}));
|
|
@@ -1125,20 +1125,20 @@ public class GameUty
|
|
|
}
|
|
|
if (Product.isEnglish && !Product.isPublic)
|
|
|
{
|
|
|
- string text19 = "bg-en";
|
|
|
- NDebug.Assert(AddFolderOrArchive(text19), str + text19);
|
|
|
- foreach (string text20 in GameUty.PathList)
|
|
|
+ string text20 = "bg-en";
|
|
|
+ NDebug.Assert(AddFolderOrArchive(text20), str + text20);
|
|
|
+ foreach (string text21 in GameUty.PathList)
|
|
|
{
|
|
|
- if (AddFolderOrArchive(text19 + "_" + text20))
|
|
|
+ if (AddFolderOrArchive(text20 + "_" + text21))
|
|
|
{
|
|
|
for (int num4 = 2; num4 <= check_ver_no; num4++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text19,
|
|
|
- "_",
|
|
|
text20,
|
|
|
"_",
|
|
|
+ text21,
|
|
|
+ "_",
|
|
|
num4
|
|
|
}));
|
|
|
}
|
|
@@ -1153,18 +1153,18 @@ public class GameUty
|
|
|
string arg3 = arg2 + "_" + (char)(97 + num5);
|
|
|
AddFolderOrArchive(arg3);
|
|
|
}
|
|
|
- foreach (string text21 in GameUty.PathList)
|
|
|
+ foreach (string text22 in GameUty.PathList)
|
|
|
{
|
|
|
- string text22 = "voice";
|
|
|
- if (AddFolderOrArchive(text22 + "_" + text21))
|
|
|
+ string text23 = "voice";
|
|
|
+ if (AddFolderOrArchive(text23 + "_" + text22))
|
|
|
{
|
|
|
for (int num6 = 2; num6 <= check_ver_no; num6++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text22,
|
|
|
+ text23,
|
|
|
"_",
|
|
|
- text21,
|
|
|
+ text22,
|
|
|
"_",
|
|
|
num6
|
|
|
}));
|
|
@@ -1176,20 +1176,20 @@ public class GameUty
|
|
|
string arg4 = "voice";
|
|
|
AddFolderOrArchive(arg4 + num7);
|
|
|
}
|
|
|
- string text23 = "parts";
|
|
|
- NDebug.Assert(AddFolderOrArchive(text23), str + text23);
|
|
|
- foreach (string text24 in GameUty.PathList)
|
|
|
+ string text24 = "parts";
|
|
|
+ NDebug.Assert(AddFolderOrArchive(text24), str + text24);
|
|
|
+ foreach (string text25 in GameUty.PathList)
|
|
|
{
|
|
|
- if (AddFolderOrArchive(text23 + "_" + text24))
|
|
|
+ if (AddFolderOrArchive(text24 + "_" + text25))
|
|
|
{
|
|
|
for (int num8 = 2; num8 <= check_ver_no; num8++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text23,
|
|
|
- "_",
|
|
|
text24,
|
|
|
"_",
|
|
|
+ text25,
|
|
|
+ "_",
|
|
|
num8
|
|
|
}));
|
|
|
}
|
|
@@ -1198,20 +1198,20 @@ public class GameUty
|
|
|
AddFolderOrArchive("parts2");
|
|
|
if (Product.isEnglish && !Product.isPublic)
|
|
|
{
|
|
|
- string text25 = "parts-en";
|
|
|
- NDebug.Assert(AddFolderOrArchive(text25), str + text25);
|
|
|
- foreach (string text26 in GameUty.PathList)
|
|
|
+ string text26 = "parts-en";
|
|
|
+ NDebug.Assert(AddFolderOrArchive(text26), str + text26);
|
|
|
+ foreach (string text27 in GameUty.PathList)
|
|
|
{
|
|
|
- if (AddFolderOrArchive(text25 + "_" + text26))
|
|
|
+ if (AddFolderOrArchive(text26 + "_" + text27))
|
|
|
{
|
|
|
for (int num9 = 2; num9 <= check_ver_no; num9++)
|
|
|
{
|
|
|
AddFolderOrArchive(string.Concat(new object[]
|
|
|
{
|
|
|
- text25,
|
|
|
- "_",
|
|
|
text26,
|
|
|
"_",
|
|
|
+ text27,
|
|
|
+ "_",
|
|
|
num9
|
|
|
}));
|
|
|
}
|
|
@@ -1404,15 +1404,15 @@ public class GameUty
|
|
|
|
|
|
public static string GetBuildVersionText()
|
|
|
{
|
|
|
- int num = 1310;
|
|
|
+ int num = 1320;
|
|
|
return (num >= 1000) ? ((float)num / 1000f).ToString("F2") : ((float)num / 100f).ToString("F2");
|
|
|
}
|
|
|
|
|
|
public static string GetGameVersionText()
|
|
|
{
|
|
|
string text = "COM3D2x64.exe";
|
|
|
- int num = 1310;
|
|
|
- string path = Path.GetFullPath(".\\") + "update.lst";
|
|
|
+ int num = 1320;
|
|
|
+ string path = UTY.gameProjectPath + "\\update.lst";
|
|
|
string[] array = new string[0];
|
|
|
if (File.Exists(path))
|
|
|
{
|