temp fixes and stability improvements

This commit is contained in:
Arneth
2022-01-21 19:15:14 -05:00
parent 07448bc23d
commit 87a0d0fe7a
71 changed files with 1212 additions and 75 deletions
+4 -4
View File
@@ -11,7 +11,7 @@ namespace Qoo
// Token: 0x06000021 RID: 33 RVA: 0x0000231C File Offset: 0x0000051C
static Debug()
{
if (Debug.isDebugBuild)
if (UnityEngine.Debug.isDebugBuild)
{
Debug.m_IsDebug = true;
}
@@ -50,7 +50,7 @@ namespace Qoo
{
if (Debug.IsDebug)
{
Debug.Log(message);
UnityEngine.Debug.Log(message);
}
}
@@ -60,7 +60,7 @@ namespace Qoo
if (Debug.IsDebug && !assert)
{
Debug.Print("ASSERT!!");
Debug.DebugBreak();
UnityEngine.Debug.DebugBreak();
}
}
@@ -70,7 +70,7 @@ namespace Qoo
if (Debug.IsDebug && !assert)
{
Debug.Print(message);
Debug.DebugBreak();
UnityEngine.Debug.DebugBreak();
}
}
@@ -14,11 +14,12 @@ namespace Qoo.Game
// Token: 0x06000611 RID: 1553 RVA: 0x00019374 File Offset: 0x00017574
internal static bool KsExecProc(string Func, string Param, string Value, int count)
{
Dictionary<string,int> dict = null;
if (Func != null)
{
if (KsExec.<>f__switch$map1 == null)
if (dict == null)
{
KsExec.<>f__switch$map1 = new Dictionary<string, int>(2)
dict = new Dictionary<string, int>(2)
{
{
"inputname",
@@ -31,7 +32,7 @@ namespace Qoo.Game
};
}
int num;
if (KsExec.<>f__switch$map1.TryGetValue(Func, out num))
if (dict.TryGetValue(Func, out num))
{
if (num != 0)
{
@@ -144,7 +145,7 @@ namespace Qoo.Game
// Token: 0x06000614 RID: 1556 RVA: 0x00019604 File Offset: 0x00017804
private static void KeyboardMain()
{
switch (Application.platform)
switch (UnityEngine.Application.platform)
{
case RuntimePlatform.IPhonePlayer:
case RuntimePlatform.Android:
@@ -22,12 +22,16 @@ namespace Qoo.Input
}
KsInput.m_eState = value;
}
} = INPUT_STATE.WAIT;
}
// TODO add default initialization later
//= INPUT_STATE.WAIT;
// Token: 0x1700002A RID: 42
// (get) Token: 0x06000169 RID: 361 RVA: 0x00006740 File Offset: 0x00004940
// (set) Token: 0x0600016A RID: 362 RVA: 0x00006748 File Offset: 0x00004948
public static bool IsLock { get; private set; } = false;
public static bool IsLock { get; private set; }
// TODO add default initialization later
//= false;
// Token: 0x1700002B RID: 43
// (get) Token: 0x0600016B RID: 363 RVA: 0x00006750 File Offset: 0x00004950
@@ -152,7 +156,9 @@ namespace Qoo.Input
// Token: 0x17000036 RID: 54
// (get) Token: 0x0600017C RID: 380 RVA: 0x00006804 File Offset: 0x00004A04
// (set) Token: 0x0600017D RID: 381 RVA: 0x0000680C File Offset: 0x00004A0C
public static bool IsAutoLock { get; set; } = false;
public static bool IsAutoLock { get; set; }
// TODO add default initialization later
//= false;
// Token: 0x0600017E RID: 382 RVA: 0x00006814 File Offset: 0x00004A14
public static void SetAuto()
@@ -225,7 +231,7 @@ namespace Qoo.Input
break;
case INPUT_STATUS.PUSH:
{
bool isDebugBuild = Debug.isDebugBuild;
bool isDebugBuild = UnityEngine.Debug.isDebugBuild;
if (isDebugBuild)
{
KsInput.m_iPushTime++;
@@ -9,6 +9,7 @@ namespace Qoo.Ks
static CONFIG()
{
CONFIG.LABEL_MAX = 200;
CONFIG.KS_MAX = 200;
}
// Token: 0x17000052 RID: 82
@@ -19,6 +20,6 @@ namespace Qoo.Ks
// Token: 0x17000053 RID: 83
// (get) Token: 0x060001ED RID: 493 RVA: 0x000083A8 File Offset: 0x000065A8
// (set) Token: 0x060001EE RID: 494 RVA: 0x000083B0 File Offset: 0x000065B0
public static int KS_MAX { get; private set; } = 200;
public static int KS_MAX { get; private set; }
}
}
@@ -468,7 +468,7 @@ namespace Qoo.Ks
continue;
}
}
IL_165:
//IL_165:
if (ksTagInfo.GetId() == KSID.MOVIE)
{
this.Scene.SceneApply(false, true);
@@ -482,7 +482,19 @@ namespace Qoo.Ks
{
this.Scene.SceneResetEffect();
}
goto IL_165;
//goto IL_165;
if (ksTagInfo.GetId() == KSID.MOVIE)
{
this.Scene.SceneApply(false, true);
}
this.RestoreOn = false;
KsInput.Unlock();
base.ResetCallCount(-1);
return TAG_RESULT.CONTINUE_EXIT;
if (ksTagInfo.IsJumpEffectResetTag())
{
this.Scene.SceneResetEffect();
}
}
SKIP_MODE skip = SysData.GetSkip();
if (skip != SKIP_MODE.DISABLE)
@@ -194,7 +194,14 @@ namespace Qoo.Memory
// Token: 0x060005CF RID: 1487 RVA: 0x0001737C File Offset: 0x0001557C
internal void SetBool(bool IsString)
{
this.SetInt8((!IsString) ? 0 : 1);
//Unity didn't like the ternary operator
//this.SetInt8((!IsString) ? 0 : 1);
if(!IsString){
this.SetInt8(0);
}
else{
this.SetInt8(1);
}
}
// Token: 0x060005D0 RID: 1488 RVA: 0x00017394 File Offset: 0x00015594