Fixing another bug

This commit is contained in:
Ne_Eo
2024-08-16 18:24:54 +02:00
parent e567b33068
commit de0a02dd50
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -154,7 +154,7 @@
<define name="DARK_MODE_WINDOW"/>
<!-- Temporary define. Remove all instances of alphabet testing when finished. -->
<define name="ALPHABET_TESTING"/>
<!-- <define name="ALPHABET_TESTING"/> -->
<haxedef name="VIDEO_CUTSCENES" if="VIDEO_CUTSCENES" />
<haxedef name="UPDATE_CHECKING" if="UPDATE_CHECKING" />
+2 -1
View File
@@ -47,8 +47,9 @@ class ModsFolder {
*/
public static function init() {
if(!getModsList().contains(Options.lastLoadedMod)) {
if(Options.lastLoadedMod != null)
Logs.warn("Mod \"" + Options.lastLoadedMod + "\" not found in mods list, switching to base game!");
Options.lastLoadedMod = null;
Logs.warn("Mod not found in mods list, switching to base game!");
}
}
@@ -6,7 +6,7 @@ using StringTools;
class BuildInfo {
public static function printBuildInfo() {
if(haxe.macro.Context.defined("display")) return;
var haxeVersion = haxe.macro.Context.definedValue("haxe");
var haxeVersion = haxe.macro.Context.definedValue("haxe").trim();
Sys.println('[ BUILD INFO ]');
Sys.println('Haxe Version: ${haxeVersion}');
try {
@@ -20,7 +20,7 @@ class BuildInfo {
var options = sys.io.File.getContent(exportPath);
for(option in options.split("\n")) {
if(option.startsWith("haxe=")) {
lastBuiltWith = option.substr(5);
lastBuiltWith = option.substr(5).trim();
break;
}
}