Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
fix first launch issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lxymahatma committed May 24, 2024
1 parent e3ab0fc commit fed1dff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Patches/BattleSfxSelectPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ private static void GenerateToggles(BattleSfxSelect __instance)
}
}));

toggleComp.SetIsOnWithoutNotify(Setting.CurrentSfx == sfxPackName);

__instance.m_BattleSfx.Add(toggleComp);
}
}
Expand Down
2 changes: 1 addition & 1 deletion SettingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal class Data
[TomlPrecedingComment("Whether debug mode enabled or not")]
internal bool DebugModeEnabled { get; set; }

[TomlPrecedingComment("Stored sfx pack names")]
[TomlPrecedingComment("Stored sfx pack paths")]
internal string[] StoredSfxPacks { get; set; }

public Data()
Expand Down

0 comments on commit fed1dff

Please sign in to comment.