chore: initial commit

This commit is contained in:
fallenoak 2023-01-02 13:17:18 -06:00
commit 70b00c5c38
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
965 changed files with 264882 additions and 0 deletions

41
src/app/mac/Whoa.mm Normal file
View 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;
}