more stuff

we do be smokin weed

Co-Authored-By: Ne_Eo <NeeEoo@users.noreply.github.com>
This commit is contained in:
⍚~Nex
2024-04-05 19:24:57 +02:00
co-authored by Ne_Eo
parent 832edd27fc
commit df5fa1f4ca
6 changed files with 125 additions and 54 deletions
+5 -2
View File
@@ -55,7 +55,7 @@ class MainState extends FlxState {
Main.refreshAssets();
ModsFolder.onModSwitch.dispatch(ModsFolder.currentModFolder);
TranslationsUtil.setTransl();
TranslationsUtil.setLanguage();
DiscordUtil.init();
EventsData.reloadEvents();
TitleState.initialized = false;
@@ -69,7 +69,10 @@ class MainState extends FlxState {
#if sys
sys.FileSystem.createDirectory('./.temp/');
#if windows new funkin.backend.utils.native.HiddenProcess("attrib +h .temp"); #end
#if windows
try new funkin.backend.utils.native.HiddenProcess("attrib +h .temp")
catch(e) Logs.trace('Failed to set hidden attribute on .temp folder', WARNING);
#end
#end
}
}