moved nativeapi

This commit is contained in:
Yoshman29
2023-03-31 15:23:15 +02:00
parent cb94dd7208
commit 5eb5ca4d17
22 changed files with 29 additions and 29 deletions
@@ -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
}
+2 -2
View File
@@ -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