mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-05 01:29:07 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
41
src/app/mac/Whoa.mm
Normal file
41
src/app/mac/Whoa.mm
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#include "app/mac/WoWApplication.h"
|
||||
#include "app/mac/MacClient.h"
|
||||
#include "client/Client.hpp"
|
||||
#include <AppKit/AppKit.h>
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
int32_t main(int32_t argc, char* argv[]) {
|
||||
// TODO
|
||||
// MacClient::SetupCommandLine(argc, argv, v10);
|
||||
|
||||
if (MacClient::IsUsingGLLayer()) {
|
||||
// TODO
|
||||
// GxSetRequestedApi(3);
|
||||
|
||||
// TODO
|
||||
// OsInputSetIsUsingCocoaEventLoop(1);
|
||||
|
||||
[WoWApplication sharedApplication];
|
||||
|
||||
#if WHOA_SYSTEM_VERSION < WHOA_MACOS_10_8
|
||||
[NSBundle
|
||||
loadNibNamed: @"MainMenu"
|
||||
owner: NSApp];
|
||||
#endif
|
||||
|
||||
#if WHOA_SYSTEM_VERSION >= WHOA_MACOS_10_8
|
||||
[[NSBundle mainBundle]
|
||||
loadNibNamed: @"MainMenu"
|
||||
owner: NSApp
|
||||
topLevelObjects: nil];
|
||||
#endif
|
||||
|
||||
[NSRunLoop currentRunLoop];
|
||||
|
||||
[NSApp mainMenu];
|
||||
|
||||
CommonMain();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue