diff options
| author | Triang3l <triang3l@yandex.ru> | 2019-09-14 20:30:04 +0300 |
|---|---|---|
| committer | Triang3l <triang3l@yandex.ru> | 2019-09-14 20:30:04 +0300 |
| commit | f748e5af49062fd78d098acdaf045183f29faf36 (patch) | |
| tree | 8b8cbdc689d3ab0f6f34f9c42a4c73d98e51dc6e | |
| parent | c19a052b96254ce0f3e8c07ae5bd90927cd0e261 (diff) | |
[Emulator] Default XEX cvar
| -rw-r--r-- | src/xenia/emulator.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xenia/emulator.cc b/src/xenia/emulator.cc index b1d976c9e..6e2767dd3 100644 --- a/src/xenia/emulator.cc +++ b/src/xenia/emulator.cc @@ -47,6 +47,12 @@ DEFINE_double(time_scalar, 1.0, "Scalar used to speed or slow time (1x, 2x, 1/2x, etc).", "General"); +DEFINE_string( + launch_module, "", + "Executable to launch from the .iso or the package instead of default.xex " + "or the module specified by the game. Leave blank to launch the default " + "module.", + "General"); namespace xe { @@ -598,6 +604,11 @@ void Emulator::WaitUntilExit() { std::string Emulator::FindLaunchModule() { std::string path("game:\\"); + + if (!cvars::launch_module.empty()) { + return path + cvars::launch_module; + } + std::string default_module("default.xex"); auto gameinfo_entry(file_system_->ResolvePath(path + "GameInfo.bin")); |
