Fix Character isPlayer Bug / Better .xml saving

This commit is contained in:
lunarcleint
2024-06-12 03:12:50 -07:00
parent 8d0a38419d
commit 2f917fd7c0
5 changed files with 781 additions and 330 deletions
+10
View File
@@ -718,6 +718,16 @@ class CoolUtil
@:noUsing public static inline function flxeaseFromString(mainEase:String, suffix:String)
return Reflect.field(FlxEase, mainEase + (mainEase == "linear" ? "" : suffix));
/*
* Returns the filename of a path, without the extension.
* @param path Path to get the filename from
* @return Filename
*/
@:noUsing public static inline function getFilename(file:String) {
var file = new haxe.io.Path(file);
return file.file;
}
}
/**