mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
Fixes
This commit is contained in:
1 parent
52380ff02d
commit
fbe21bb61d
3 files changed
+7
-6
No files matched your search
@@ -6,7 +6,7 @@ namespace BetterAmongUs.Data;
|
||||
internal sealed class BetterDataFile : AbstractJsonFile<BetterDataFile>
|
||||
{
|
||||
[JsonIgnore]
|
||||
internal override string FilePath => Path.Combine(Main.GetDataPathToAmongUs(), $"BetterDataV2.json");
|
||||
internal override string FilePath => BetterDataManager.dataPath;
|
||||
|
||||
protected override bool Load()
|
||||
{
|
||||
|
||||
@@ -4,10 +4,11 @@ namespace BetterAmongUs.Data;
|
||||
|
||||
class BetterDataManager
|
||||
{
|
||||
public static BetterDataFile BetterDataFile = new();
|
||||
public static BetterGameSettingsFile BetterGameSettingsFile = new();
|
||||
internal static BetterDataFile BetterDataFile = new();
|
||||
internal static BetterGameSettingsFile BetterGameSettingsFile = new();
|
||||
|
||||
private static string filePathOLD = GetFilePath("BetterData");
|
||||
internal static string dataPathOLD = GetFilePath("BetterData");
|
||||
internal static string dataPath = GetFilePath("BetterDataV2");
|
||||
internal static string filePathFolder = Path.Combine(Main.GetGamePathToAmongUs(), $"Better_Data");
|
||||
internal static string filePathFolderSaveInfo = Path.Combine(filePathFolder, $"SaveInfo");
|
||||
internal static string filePathFolderSettings = Path.Combine(filePathFolder, $"Settings");
|
||||
|
||||
@@ -154,11 +154,11 @@ internal static class OptionsMenuBehaviourPatch
|
||||
OpenSaveData = ClientOptionItem.Create(title, null, __instance, OpenSaveDataButtonToggle, IsToggle: false);
|
||||
static void OpenSaveDataButtonToggle()
|
||||
{
|
||||
if (File.Exists(BetterDataManager.GetFilePath("BetterData")))
|
||||
if (File.Exists(BetterDataManager.dataPath))
|
||||
{
|
||||
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo()
|
||||
{
|
||||
FileName = BetterDataManager.GetFilePath("BetterData"),
|
||||
FileName = BetterDataManager.dataPath,
|
||||
UseShellExecute = true,
|
||||
Verb = "open"
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user