Skip to content

Commit

Permalink
Guarded the caller sites with ifdefs for commandline options
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Bylund authored and kirre-bylund committed Dec 13, 2023
1 parent 090daad commit f7602f1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Runtime/Game/Resources/LootLockerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public static LootLockerConfig Get()
if (settingsInstance != null)
{
settingsInstance.ConstructUrls();
settingsInstance?.CheckForSettingOverrides();
#if LOOTLOCKER_COMMANDLINE_SETTINGS
settingsInstance.CheckForSettingOverrides();
#endif
return settingsInstance;
}

Expand Down Expand Up @@ -60,8 +62,10 @@ public static LootLockerConfig Get()
throw new ArgumentException("LootLocker config does not exist. To fix this, play once in the Unity Editor before making a build.");
}
#endif
settingsInstance?.ConstructUrls();
settingsInstance?.CheckForSettingOverrides();
settingsInstance.ConstructUrls();
#if LOOTLOCKER_COMMANDLINE_SETTINGS
settingsInstance.CheckForSettingOverrides();
#endif
return settingsInstance;
}

Expand Down

0 comments on commit f7602f1

Please sign in to comment.