mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 16:17:53 -05:00
Merge pull request #19 from FunkinCrew/mac-fix
windows fix thing for mac
This commit is contained in:
commit
af364717fe
1 changed files with 3 additions and 4 deletions
|
@ -2,7 +2,7 @@ package funkin.util;
|
||||||
|
|
||||||
import flixel.util.FlxSignal.FlxTypedSignal;
|
import flixel.util.FlxSignal.FlxTypedSignal;
|
||||||
|
|
||||||
#if cpp
|
#if (cpp && windows)
|
||||||
@:cppFileCode('
|
@:cppFileCode('
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -35,8 +35,7 @@ class WindowUtil
|
||||||
// onUpdate is called every frame just before rendering.
|
// onUpdate is called every frame just before rendering.
|
||||||
|
|
||||||
// onExit is called when the game window is closed.
|
// onExit is called when the game window is closed.
|
||||||
openfl.Lib.current.stage.application.onExit.add(function(exitCode:Int)
|
openfl.Lib.current.stage.application.onExit.add(function(exitCode:Int) {
|
||||||
{
|
|
||||||
windowExit.dispatch(exitCode);
|
windowExit.dispatch(exitCode);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -46,7 +45,7 @@ class WindowUtil
|
||||||
*/
|
*/
|
||||||
public static function disableCrashHandler()
|
public static function disableCrashHandler()
|
||||||
{
|
{
|
||||||
#if cpp
|
#if (cpp && windows)
|
||||||
untyped __cpp__('SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);');
|
untyped __cpp__('SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);');
|
||||||
#else
|
#else
|
||||||
// Do nothing.
|
// Do nothing.
|
||||||
|
|
Loading…
Reference in a new issue