Merge pull request #1368 from MartinFournier/theme-load-at-startup

Load theme from settings during game load (#1364)
This commit is contained in:
hydroflame 2021-09-22 13:40:27 -04:00 committed by GitHub
commit 9ccfca3c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,6 +29,7 @@ import { Player } from "./Player";
import { saveObject, loadGame } from "./SaveObject";
import { initForeignServers } from "./Server/AllServers";
import { Settings } from "./Settings/Settings";
import { ThemeEvents } from "./ui/React/Theme";
import { updateSourceFileFlags } from "./SourceFile/SourceFileFlags";
import { initSpecialServerIps } from "./Server/SpecialServerIps";
import { initSymbolToStockMap, processStockPrices } from "./StockMarket/StockMarket";
@ -250,6 +251,8 @@ const Engine = {
startUnclickable();
// Load game from save or create new game
if (loadGame(saveString)) {
ThemeEvents.emit();
initBitNodeMultipliers(Player);
updateSourceFileFlags(Player);
initAugmentations(); // Also calls Player.reapplyAllAugmentations()