mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-09 00:04:42 +00:00
69b28ca42c
`Tracker.addProfile` only exists when FLX_DEBUG is set, so add this conditional check to fix non-debug builds.
26 lines
725 B
Haxe
26 lines
725 B
Haxe
package funkin.util;
|
|
|
|
// This may or may not already be imported via imports.hx...
|
|
import flixel.system.debug.watch.Tracker;
|
|
import flixel.FlxG;
|
|
|
|
/**
|
|
* Utility class that helps manage adding profiles to the flixel debugger tracker
|
|
*/
|
|
class TrackerUtil
|
|
{
|
|
/**
|
|
* Adds profiles to the debugger to help track certain game objects.
|
|
* NOTE: This isn't the full list of profiles made, as sometimes they're made
|
|
* on in various places in code for random debugging purposes!
|
|
* Might be good to put them all here though!
|
|
*/
|
|
public static function initTrackers():Void
|
|
{
|
|
#if FLX_DEBUG
|
|
Tracker.addProfile(new TrackerProfile(Highscore, ["tallies"]));
|
|
FlxG.console.registerClass(Highscore);
|
|
#end
|
|
}
|
|
}
|