-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issues caused by recent Game Update
- Loading branch information
1 parent
346a247
commit eec8373
Showing
11 changed files
with
122 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using HarmonyLib; | ||
using Il2Cpp; | ||
using Il2CppInterop.Runtime.InteropTypes.Arrays; | ||
|
||
namespace DDSS_ModHelper.Patches | ||
{ | ||
internal class Patch_LocalizationManager | ||
{ | ||
[HarmonyPrefix] | ||
[HarmonyPatch(typeof(LocalizationManager), nameof(LocalizationManager.GetLocalizedValue), typeof(string))] | ||
private static bool GetLocalizedValue_1_Prefix(string __0) | ||
{ | ||
// Validate Key | ||
if (string.IsNullOrEmpty(__0)) | ||
return false; | ||
|
||
// Run Original | ||
return true; | ||
} | ||
|
||
[HarmonyPrefix] | ||
[HarmonyPatch(typeof(LocalizationManager), nameof(LocalizationManager.GetLocalizedValue), typeof(string), typeof(Il2CppStringArray))] | ||
private static bool GetLocalizedValue_2_Prefix(string __0) | ||
{ | ||
// Validate Key | ||
if (string.IsNullOrEmpty(__0)) | ||
return false; | ||
|
||
// Run Original | ||
return true; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters