Skip to content

Commit

Permalink
Merge branch 'Albeoris:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
SamsamTS authored Sep 10, 2023
2 parents 92d0a4c + e459698 commit 4e86e00
Show file tree
Hide file tree
Showing 15 changed files with 1,087 additions and 134 deletions.
235 changes: 120 additions & 115 deletions Assembly-CSharp/Memoria/VoiceActing/BattleVoice.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Assembly-CSharp/NCalc/NCalcUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static String EvaluateNCalcString(Object obj, String defaultResult = "")
else if (name == "IsCharacterInParty" && args.Parameters.Length == 1)
{
CharacterId index = (CharacterId)NCalcUtility.ConvertNCalcResult(args.Parameters[0].Evaluate(), Byte.MaxValue);
args.Result = index != CharacterId.NONE && FF9StateSystem.Common.FF9.party.member.Any(p => p.Index == index);
args.Result = index != CharacterId.NONE && FF9StateSystem.Common.FF9.party.member.Any(p => p?.Index == index);
}
else if (name == "GetCategoryKillCount" && args.Parameters.Length == 1)
{
Expand Down
21 changes: 4 additions & 17 deletions Assembly-CSharp/UnityXInput/Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,41 +275,28 @@ private static Boolean GetXButtonDown(String keyName)

public static Single GetAxis(String axisName)
{
Single axis = UnityEngine.Input.GetAxis(axisName);
if ((Double)axis != 0.0)
return axis;
return Input.GetXAxis(axisName);
return Input.GetAxisRaw(axisName);
}

public static Single GetAxisRaw(String axisName)
{
Single axisRaw = UnityEngine.Input.GetAxisRaw(axisName);
if ((Double)axisRaw != 0.0)
return axisRaw;
return Input.GetXAxis(axisName);
float axisRaw = UnityEngine.Input.GetAxisRaw(axisName);
axisRaw += Input.GetXAxis(axisName);
return Mathf.Clamp(axisRaw, -1f, 1f);
}

public static Boolean GetButtonUp(String keyName)
{
Boolean buttonUp = UnityEngine.Input.GetButtonUp(keyName);
if (buttonUp)
return buttonUp;
return Input.GetXButtonUp(keyName);
}

public static Boolean GetButtonDown(String keyName)
{
Boolean buttonDown = UnityEngine.Input.GetButtonDown(keyName);
if (buttonDown)
return buttonDown;
return Input.GetXButtonDown(keyName);
}

public static Boolean GetButton(String keyName)
{
Boolean button = UnityEngine.Input.GetButton(keyName);
if (button)
return button;
return Input.GetXButton(keyName);
}

Expand Down
4 changes: 3 additions & 1 deletion Memoria.MSBuild/Pack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public Boolean Execute()
PackOptionalFile("Launcher\\Memoria.Launcher.exe.config", "FF9_Launcher.exe.config", compressStream, bw, pathMap, ref uncompressedDataSize);
PackOptionalFile("Launcher\\Memoria.SteamFix.exe", "Memoria.SteamFix.exe", compressStream, bw, pathMap, ref uncompressedDataSize);
PackOptionalFile("Launcher\\Memoria.ini", "Memoria.ini", compressStream, bw, pathMap, ref uncompressedDataSize);

PackOptionalFile("XInputDotNetPure.dll", "{PLATFORM}\\FF9_Data\\Managed\\XInputDotNetPure.dll", compressStream, bw, pathMap, ref uncompressedDataSize);
PackOptionalFile("JoyShockLibrary\\x64\\JoyShockLibrary.dll", "x64\\FF9_Data\\Plugins\\JoyShockLibrary.dll", compressStream, bw, pathMap, ref uncompressedDataSize);
PackOptionalFile("JoyShockLibrary\\x86\\JoyShockLibrary.dll", "x86\\FF9_Data\\Plugins\\JoyShockLibrary.dll", compressStream, bw, pathMap, ref uncompressedDataSize);

bw.Flush();
Int64 compressedDataSize = executableFile.Position - compressedDataPosition;
Expand Down
Loading

0 comments on commit 4e86e00

Please sign in to comment.