From b88bca5f723b29198094056c0da95c19c530d9c4 Mon Sep 17 00:00:00 2001 From: CharlesCatYT Date: Sat, 16 Dec 2023 14:45:11 -0500 Subject: [PATCH] wait wha --- source/backend/CoolUtil.hx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/backend/CoolUtil.hx b/source/backend/CoolUtil.hx index 49dc68b..9bd0295 100644 --- a/source/backend/CoolUtil.hx +++ b/source/backend/CoolUtil.hx @@ -1,7 +1,7 @@ package backend; import flixel.FlxBasic; -import flixel.util.FlxSave; +//import flixel.util.FlxSave; import flixel.math.FlxPoint; @@ -162,14 +162,16 @@ class CoolUtil /** Helper Function to Fix Save Files for Flixel 5 - [november 29, 2023 EDIT] + -- EDIT: [November 29, 2023] -- this function is used to get the save path, period. since newer flixel versions are being enforced anyways. @crowplexus **/ + @:access(flixel.util.FlxSave.validate) inline public static function getSavePath():String { final company:String = FlxG.stage.application.meta.get('company'); - @:privateAccess final file:String = flixel.util.FlxSave.validate(FlxG.stage.application.meta.get('file')); - return '${company}/${file}'; + // #if (flixel < "5.0.0") return company; #else + return '${company}/${flixel.util.FlxSave.validate(FlxG.stage.application.meta.get('file'))}'; + // #end } }