feat(app): parse command line arguments at launch on Unixlikes

This commit is contained in:
superp00t 2023-08-14 16:29:21 -04:00
parent bc5b5ccdac
commit b92c658dd0
2 changed files with 6 additions and 0 deletions

View File

@ -1,8 +1,11 @@
#include "client/Client.hpp"
#include "bc/os/CommandLine.hpp"
int main(int argc, char* argv[]) {
// TODO
OsSetCommandLine(argc, argv);
CommonMain();
// TODO

View File

@ -1,6 +1,7 @@
#include "app/mac/WoWApplication.h"
#include "app/mac/MacClient.h"
#include "client/Client.hpp"
#include "bc/os/CommandLine.hpp"
#include <AppKit/AppKit.h>
#include <Foundation/Foundation.h>
@ -8,6 +9,8 @@ int32_t main(int32_t argc, char* argv[]) {
// TODO
// MacClient::SetupCommandLine(argc, argv, v10);
OsSetCommandLine(argc, argv);
if (MacClient::IsUsingGLLayer()) {
// TODO
// GxSetRequestedApi(3);