Crash Handler

This commit is contained in:
Yoshman29
2022-12-10 23:24:03 +01:00
parent 337cf4e496
commit 2da7550108
7 changed files with 101 additions and 14 deletions
+11
View File
@@ -1,5 +1,6 @@
package native;
import funkin.windows.WindowsAPI.MessageBoxIcon;
#if windows
@:buildXml('
<target id="haxe">
@@ -168,5 +169,15 @@ class WinAPI {
public static function clearScreen() {
}
#if windows
@:functionCode('
MessageBox(GetActiveWindow(), message, caption, icon | MB_SETFOREGROUND);
')
#end
public static function showMessageBox(caption:String, message:String, icon:MessageBoxIcon = MSG_WARNING) {
}
}
#end