mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 22:06:06 +03:00
feat(app): parse command line arguments at launch on Unixlikes
This commit is contained in:
parent
bc5b5ccdac
commit
b92c658dd0
@ -1,8 +1,11 @@
|
|||||||
#include "client/Client.hpp"
|
#include "client/Client.hpp"
|
||||||
|
#include "bc/os/CommandLine.hpp"
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
OsSetCommandLine(argc, argv);
|
||||||
|
|
||||||
CommonMain();
|
CommonMain();
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#include "app/mac/WoWApplication.h"
|
#include "app/mac/WoWApplication.h"
|
||||||
#include "app/mac/MacClient.h"
|
#include "app/mac/MacClient.h"
|
||||||
#include "client/Client.hpp"
|
#include "client/Client.hpp"
|
||||||
|
#include "bc/os/CommandLine.hpp"
|
||||||
#include <AppKit/AppKit.h>
|
#include <AppKit/AppKit.h>
|
||||||
#include <Foundation/Foundation.h>
|
#include <Foundation/Foundation.h>
|
||||||
|
|
||||||
@ -8,6 +9,8 @@ int32_t main(int32_t argc, char* argv[]) {
|
|||||||
// TODO
|
// TODO
|
||||||
// MacClient::SetupCommandLine(argc, argv, v10);
|
// MacClient::SetupCommandLine(argc, argv, v10);
|
||||||
|
|
||||||
|
OsSetCommandLine(argc, argv);
|
||||||
|
|
||||||
if (MacClient::IsUsingGLLayer()) {
|
if (MacClient::IsUsingGLLayer()) {
|
||||||
// TODO
|
// TODO
|
||||||
// GxSetRequestedApi(3);
|
// GxSetRequestedApi(3);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user