Skip to content

Commit

Permalink
fix discord RP errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahriana committed Apr 9, 2023
1 parent 633bf14 commit cdd85fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static class Config {

private static MelonPreferences_Category _coreCategory;
private static MelonPreferences_Category _competitiveCategory;
private static MelonPreferences_Category _enhancementsCategory
private static MelonPreferences_Category _enhancementsCategory;
private static MelonPreferences_Category _performanceCategory;

public static void Initialize () {
Expand All @@ -42,7 +42,7 @@ public static void Initialize () {
_enhancementsCategory = MelonPreferences.CreateCategory("Enhancements");
_enhancementsCategory.SetFilePath(FILEPATH);

_enhancementsCategory.CreateEntry<bool>("DiscordRP", true, null, "Enable Discord Rich Presence intergration. Note: Requires \"discord_game_sdk.dll\" be placed in \"UserLibs\" folder of the game");
_enhancementsCategory.CreateEntry<bool>("Discord RP", true, null, "Enable Discord Rich Presence intergration. Note: Requires \"discord_game_sdk.dll\" be placed in \"UserLibs\" folder of the game");

_enhancementsCategory.SaveToFile();

Expand Down Expand Up @@ -70,7 +70,7 @@ public static class Competitive {
}

public static class Enhancements {
public static bool DiscordRP => _coreCategory.GetEntry<bool>("DiscordRP").Value;
public static bool DiscordRP => _enhancementsCategory.GetEntry<bool>("Discord RP").Value;
}

public static class Performance {
Expand Down
2 changes: 1 addition & 1 deletion Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ public override void OnApplicationStart () // Runs after Game Initialization.
// MelonLogger.Msg("OnApplicationStart");
Modules.Watermark.Events.OnApplicationStart();
Modules.CheckForUpdates.Events.OnApplicationStart();
Modules.DiscordRP.Events.OnApplicationStart();
}

public override void OnApplicationLateStart () // Runs after OnApplicationStart.
{
// MelonLogger.Msg("OnApplicationLateStart");
Modules.DiscordRP.Events.OnApplicationStart();
}

public override void OnSceneWasLoaded (int buildindex, string sceneName) // Runs when a Scene has Loaded and is passed the Scene's Build Index and Name.
Expand Down

0 comments on commit cdd85fa

Please sign in to comment.