Merge pull request #577 from FunkinCrew/nothyper474/cwd-preloader

[PUBLIC PR] Fix a crash when booting from the command line
This commit is contained in:
Cameron Taylor 2024-06-01 16:27:55 -04:00 committed by GitHub
commit 4c037de247
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,6 +136,8 @@ class FunkinPreloader extends FlxBasePreloader
// We can't even call trace() yet, until Flixel loads. // We can't even call trace() yet, until Flixel loads.
trace('Initializing custom preloader...'); trace('Initializing custom preloader...');
funkin.util.CLIUtil.resetWorkingDir();
this.siteLockTitleText = Constants.SITE_LOCK_TITLE; this.siteLockTitleText = Constants.SITE_LOCK_TITLE;
this.siteLockBodyText = Constants.SITE_LOCK_DESC; this.siteLockBodyText = Constants.SITE_LOCK_DESC;
} }