haxe warnings since it doesnt work with 4.3.0
This commit is contained in:
@@ -172,8 +172,8 @@ class Paths
|
||||
* @param library (Additional) library to load the frames from.
|
||||
*/
|
||||
public static function getFrames(key:String, assetsPath:Bool = false, ?library:String) {
|
||||
if (tempFramesCache.exists(key)) {
|
||||
if (tempFramesCache[key].parent.bitmap.readable)
|
||||
if (tempFramesCache[key] != null) {
|
||||
if (tempFramesCache[key].parent != null && tempFramesCache[key].parent.bitmap != null && tempFramesCache[key].parent.bitmap.readable)
|
||||
return tempFramesCache[key];
|
||||
else
|
||||
tempFramesCache[key] = null;
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package funkin.system.macros;
|
||||
|
||||
#if macro
|
||||
class NewHaxeWarning {
|
||||
public static function warn() {
|
||||
#if (haxe >= "4.3.0")
|
||||
Sys.println("====================");
|
||||
Sys.println("[ WARNING ]");
|
||||
Sys.println("Compiling with Haxe 4.3.0 or above CAN and WILL end up in compilation errors due to changes in macros.");
|
||||
Sys.println("We recommend building the project using Haxe 4.2.5.");
|
||||
Sys.println("You can download it here -> https://haxe.org/download/version/4.2.5/");
|
||||
Sys.println("====================");
|
||||
#end
|
||||
}
|
||||
}
|
||||
#end
|
||||
Reference in New Issue
Block a user