Skip to content

Commit

Permalink
wait wha
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Dec 16, 2023
1 parent 41d6f84 commit b88bca5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/backend/CoolUtil.hx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package backend;

import flixel.FlxBasic;
import flixel.util.FlxSave;
//import flixel.util.FlxSave;

import flixel.math.FlxPoint;

Expand Down Expand Up @@ -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
}
}

0 comments on commit b88bca5

Please sign in to comment.