|
@@ -1008,7 +1008,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
|
{
|
|
|
foreach (string menuFile in GameUty.MenuFiles)
|
|
|
{
|
|
|
- string fileName = Path.GetFileNameWithoutExtension(menuFile) + ".menu";
|
|
|
+ string fileName = Path.GetFileName(menuFile);
|
|
|
byte[] f_byBuf = (byte[]) null;
|
|
|
using (AFileBase afileBase = GameUty.FileOpen(fileName, (AFileSystemBase) null))
|
|
|
{
|
|
@@ -1025,16 +1025,16 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- binaryReader.ReadInt32();
|
|
|
- binaryReader.ReadString();
|
|
|
- binaryReader.ReadString();
|
|
|
- string str1 = binaryReader.ReadString();
|
|
|
- string s = "";
|
|
|
- binaryReader.ReadString();
|
|
|
- binaryReader.ReadInt32();
|
|
|
- string str2 = "";
|
|
|
try
|
|
|
{
|
|
|
+ binaryReader.ReadInt32();
|
|
|
+ binaryReader.ReadString();
|
|
|
+ binaryReader.ReadString();
|
|
|
+ string str1 = binaryReader.ReadString();
|
|
|
+ string s = "";
|
|
|
+ binaryReader.ReadString();
|
|
|
+ binaryReader.ReadInt32();
|
|
|
+ string str2 = "";
|
|
|
do
|
|
|
{
|
|
|
int num2;
|
|
@@ -1046,7 +1046,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
|
for (int index = 0; index < num2; ++index)
|
|
|
{
|
|
|
string str3 = binaryReader.ReadString();
|
|
|
- if (str3 == "icons")
|
|
|
+ if (str3 == "icons" || str3 == "icon")
|
|
|
{
|
|
|
str2 = binaryReader.ReadString();
|
|
|
break;
|
|
@@ -1058,7 +1058,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- } while (!(str2 != ""));
|
|
|
+ } while (str2 == "");
|
|
|
|
|
|
int result = 0;
|
|
|
int.TryParse(s, out result);
|
|
@@ -1086,16 +1086,15 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- if ((Object) sortItem.tex == (Object) null)
|
|
|
- {
|
|
|
- byte[] data = ImportCM.LoadTexture(GameUty.FileSystem, sortItem.name, false).data;
|
|
|
- Texture2D texture2D = new Texture2D(50, 50, TextureFormat.RGBA32, false);
|
|
|
- texture2D.LoadImage(data);
|
|
|
- sortItem.tex = texture2D;
|
|
|
- }
|
|
|
-
|
|
|
if (!(sortItem.menu == str4))
|
|
|
{
|
|
|
+ if ((Object)sortItem.tex == (Object)null)
|
|
|
+ {
|
|
|
+ byte[] data = ImportCM.LoadTexture(GameUty.FileSystem, sortItem.name, false).data;
|
|
|
+ Texture2D texture2D = new Texture2D(50, 50, TextureFormat.RGB565, false);
|
|
|
+ texture2D.LoadImage(data);
|
|
|
+ sortItem.tex = texture2D;
|
|
|
+ }
|
|
|
str4 = sortItem.menu;
|
|
|
sortItemList.Add(sortItem);
|
|
|
}
|
|
@@ -4573,6 +4572,8 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
|
hantenn[selectMaidIndex] = false;
|
|
|
muneIKL[selectMaidIndex] = false;
|
|
|
muneIKR[selectMaidIndex] = false;
|
|
|
+ maid.body0.jbMuneL.enabled = true;
|
|
|
+ maid.body0.jbMuneR.enabled = true;
|
|
|
if (!GameMain.Instance.VRMode)
|
|
|
{
|
|
|
maidArray[selectMaidIndex].body0.quaDefEyeL.eulerAngles = eyeL[(int) selectList[selectMaidIndex]];
|