HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.98k stars 440 forks source link

Change log style callbacks to also work in release mode #3273

Open Vortex2Oblivion opened 4 hours ago

Vortex2Oblivion commented 4 hours ago

If you wanted to detect when a log from the flixel debugger would be detected in release mode, like I do, there is currently no way to do this due to log style callbacks not being run in release mode. In order to do this I had to extend LogFrontEnd and then replace the LogFrontEnd in FlxG with the untyped keyword due to it being unable to be written to normally.

Vortex2Oblivion commented 3 hours ago

image also when trying to get the data from a log style there is a high chance that it will just crash with no error or give an error like this from what ive seen