Skip to content

Commit

Permalink
eh
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jul 7, 2024
1 parent 041c44c commit 14c2e14
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class Main extends Sprite

DiscordClient.shutdown();

Lib.application.window.alert(msg + '\n\nIf you think this shouldn\'t have happened, report this error to GitHub repository! Please? Thanks :)\nhttps://github.com/Joalor64GH/Joalor64-Engine-Rewrite/issues', 'Error!');
Lib.application.window.alert('Uncaught Error: \n' + msg + '\n\nIf you think this shouldn\'t have happened, report this error to GitHub repository! Please? Thanks :)\nhttps://github.com/Joalor64GH/Joalor64-Engine-Rewrite/issues', 'Error!');
LimeSystem.exit(1);
}

Expand Down
25 changes: 25 additions & 0 deletions source/meta/data/windows/WindowsAPI.hx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,31 @@ class WindowsAPI
{
showMessageBox(caption, message, icon);
}

@:functionCode('
HWND window = getActiveWindow();
')
public static function getHWNDWindow(){
return null;
}

@:functionCode('
unsigned long long dedicatedRAM = 0;
GetPhysicallyInstalledSystemMemory(dedicatedRAM);
return dedicatedRAM / 1024;
')
public static function getRAM():UInt64 {
return 0;
}

@:functionCode('
srand((unsigned) time(NULL));
int random = rand();
return 1;
')
public static function randomNumber():UInt64 {
return 1;
}
}

@:enum abstract MessageBoxIcon(Int) {
Expand Down

0 comments on commit 14c2e14

Please sign in to comment.