Small fixes

This commit is contained in:
Ne_Eo
2024-10-04 17:57:54 +02:00
parent 76f7069d99
commit cdfddcde48
7 changed files with 35 additions and 21 deletions
+10 -6
View File
@@ -108,16 +108,20 @@ class Logs {
return logText('[${prefix}] ', BLUE);
}
public inline static function verbose(text:String, level:Level = VERBOSE, color:ConsoleColor = LIGHTGRAY, ?prefix:String) {
Logs.trace(text, level, color, prefix);
public inline static function infos(text:String, color:ConsoleColor = LIGHTGRAY, ?prefix:String) {
Logs.trace(text, INFO, color, prefix);
}
public inline static function warn(text:String, level:Level = WARNING, color:ConsoleColor = YELLOW, ?prefix:String) {
Logs.trace(text, level, color, prefix);
public inline static function verbose(text:String, color:ConsoleColor = LIGHTGRAY, ?prefix:String) {
Logs.trace(text, VERBOSE, color, prefix);
}
public inline static function error(text:String, level:Level = ERROR, color:ConsoleColor = RED, ?prefix:String) {
Logs.trace(text, level, color, prefix);
public inline static function warn(text:String, color:ConsoleColor = YELLOW, ?prefix:String) {
Logs.trace(text, WARNING, color, prefix);
}
public inline static function error(text:String, color:ConsoleColor = RED, ?prefix:String) {
Logs.trace(text, ERROR, color, prefix);
}
}
+1 -1
View File
@@ -126,7 +126,7 @@ class Main extends Sprite
#end
#if (sys && TEST_BUILD)
trace("Used cne test / cne build. Switching into source assets.");
Logs.infos("Used cne test / cne build. Switching into source assets.");
#if MOD_SUPPORT
ModsFolder.modsPath = './${pathBack}mods/';
ModsFolder.addonsPath = './${pathBack}addons/';