mirror of
https://github.com/open-goal/jak-project
synced 2026-05-27 16:14:18 -04:00
2f6bfd2e64
An attempt to cleanup the last CLI interface we have left to cleanup. - `gk` args now follow the typical convention ie. `--proj-path` instead of `-proj-path`. - args that are passed through to the rest of the application / the game's runtime use the typical convention of following a `--` - I'm thinking some args shouldn't be handled at this level ie (`-nodisplay`, `-vm`, `-novm` or `-jak2`) These could be better documented as legitimate flags and passed in via a nice struct. They don't seem to be used in `InitParams` but I'll triple check. There's a temporary shim here so there is no coupled release with the launcher (right now it executes `gk` with a few args). So I just change the old args into the new format. After one release cycle, I can change it in the launcher and delete it here. I am unsure if this will break the bash shellscript usages -- not sure which args were usually passed into `$@` 
22 lines
436 B
C++
22 lines
436 B
C++
#pragma once
|
|
|
|
/*!
|
|
* @file runtime.h
|
|
* Setup and launcher for the runtime.
|
|
*/
|
|
|
|
#include <thread>
|
|
|
|
#include "common/common_types.h"
|
|
#include "common/versions.h"
|
|
|
|
#include "game/common/game_common_types.h"
|
|
#include "game/kernel/common/kboot.h"
|
|
|
|
extern u8* g_ee_main_mem;
|
|
extern GameVersion g_game_version;
|
|
|
|
RuntimeExitStatus exec_runtime(GameLaunchOptions game_options, int argc, char** argv);
|
|
|
|
extern std::thread::id g_main_thread_id;
|