Skip to content

Commit

Permalink
fix: prevent endless install loop
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonHough committed Nov 17, 2023
1 parent daed48e commit 5a86ed8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Editor/Module Management/ModuleInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,15 @@ public static class ModuleInstaller

static ModuleInstaller()
{

Events.registeringPackages -= OnRegisteringPackages;
Events.registeringPackages += OnRegisteringPackages;
# if RPM_DEVELOPMENT
modulesInstalled = true;

#if !READY_PLAYER_ME
InstallModules();
EditorApplication.delayCall += DelayCreateCoreSettings;
DefineSymbolHelper.AddSymbols();
#endif
if (!modulesInstalled)
{
InstallModules();
EditorApplication.delayCall += DelayCreateCoreSettings;
DefineSymbolHelper.AddSymbols();
}
}

/// <summary>
Expand All @@ -66,6 +64,7 @@ private static void DelayCreateCoreSettings()
{
EditorApplication.delayCall -= DelayCreateCoreSettings;
CoreSettingsLoader.EnsureSettingsExist();

}

/// <summary>
Expand All @@ -77,7 +76,6 @@ private static void InstallModules()
Thread.Sleep(THREAD_SLEEP_TIME);

ModuleInfo[] missingModules = GetMissingModuleNames();

if (missingModules.Length > 0)
{
var installedModuleCount = 0f;
Expand Down

0 comments on commit 5a86ed8

Please sign in to comment.