moved nativeapi
This commit is contained in:
@@ -3,7 +3,7 @@ package funkin.system.modules;
|
||||
import lime.media.AudioManager;
|
||||
import flixel.system.FlxSound;
|
||||
import flixel.FlxState;
|
||||
import funkin.windows.WindowsAPI;
|
||||
import funkin.utils.NativeAPI;
|
||||
|
||||
/**
|
||||
* if youre stealing this keep this comment at least please lol
|
||||
@@ -56,7 +56,7 @@ class AudioSwitchFix {
|
||||
|
||||
public static function init() {
|
||||
#if windows
|
||||
WindowsAPI.registerAudio();
|
||||
NativeAPI.registerAudio();
|
||||
FlxG.signals.preStateCreate.add(onStateSwitch);
|
||||
#end
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package funkin.system.modules;
|
||||
|
||||
import lime.system.System;
|
||||
import funkin.windows.WindowsAPI;
|
||||
import funkin.utils.NativeAPI;
|
||||
import openfl.Lib;
|
||||
import openfl.events.UncaughtErrorEvent;
|
||||
import openfl.events.ErrorEvent;
|
||||
@@ -48,7 +48,7 @@ class CrashHandler {
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
|
||||
WindowsAPI.showMessageBox("Codename Engine Crash Handler", 'Uncaught Error:$m\n\n$stackLabel', MSG_ERROR);
|
||||
NativeAPI.showMessageBox("Codename Engine Crash Handler", 'Uncaught Error:$m\n\n$stackLabel', MSG_ERROR);
|
||||
#if sys
|
||||
Sys.exit(1);
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user