* Added support for games which use the new InputSystem module and have disabled LegacyInputModule
This commit is contained in:
sinaioutlander
2020-10-01 18:57:28 +10:00
parent 5afaf85859
commit b4b5f1ec93
10 changed files with 209 additions and 94 deletions

View File

@ -30,9 +30,9 @@ namespace Explorer
}
// returns true if settings successfully loaded
public static bool LoadSettings(bool checkExist = true)
public static bool LoadSettings()
{
if (checkExist && !File.Exists(SETTINGS_PATH))
if (!File.Exists(SETTINGS_PATH))
return false;
try
@ -50,9 +50,9 @@ namespace Explorer
return Instance != null;
}
public static void SaveSettings(bool checkExist = true)
public static void SaveSettings()
{
if (checkExist && File.Exists(SETTINGS_PATH))
if (File.Exists(SETTINGS_PATH))
File.Delete(SETTINGS_PATH);
using (var file = File.Create(SETTINGS_PATH))