static void Functions_OnOnDutyStateChanged(bool onDuty) { GameFiber.StartNew(delegate { bool isLoadStarted = false; "Loading L.S. Noir".AddLog(); if (!onDuty) { return; } if (!RageCheck.RPHCheck(0.46f)) { return; } if (!RageProRegistration.RegisterRagePro()) { return; } if (!VersionCheck.OldLSNCheck()) { return; } /* * var readme = new FileChecker(@"Plugins\LSPDFR\LSNoir\Readme.txt", FileChecker.FileType.readme); * readme.StartFileCheck(); * while (readme.IsRunning) * GameFiber.Yield(); * * if (!readme.IsSuccessful) return; * * var license = new FileChecker(@"Plugins\LSPDFR\LSNoir\License.txt", FileChecker.FileType.license); * license.StartFileCheck(); * while (license.IsRunning) * GameFiber.Yield(); * * if (!license.IsSuccessful) return; * * var ini = new FileChecker(@"Plugins\LSPDFR\LSNoir\Settings.ini", FileChecker.FileType.ini); * ini.StartFileCheck(); * while (ini.IsRunning) * GameFiber.Yield(); * * if (!ini.IsSuccessful) return; */ //VersionCheck.CheckVersion(); Settings.Settings.IniUpdateCheck(); "LoadLSN".AddLog(); LoadLsn(); }); }