diff options
| author | caua-an <cauapxa@gmail.com> | 2026-11-22 02:52:03 -0300 |
|---|---|---|
| committer | caua-an <cauapxa@gmail.com> | 2026-11-22 02:52:03 -0300 |
| commit | f6e0ffbe6b37df8fe8e28f2980d3916bf6a3d723 (patch) | |
| tree | 5a4fcd5f460baf832ee87a3cc155ce977d6e4306 /runtime/src/main.cpp | |
| parent | 041213405655729297f7c48c24d46ae3fc8a4a01 (diff) | |
| parent | 43d470316ec6cbcd64002bc3792998d9f5745dac (diff) | |
Merge remote-tracking branch 'origin/main' into feat/image-load-dmask
Diffstat (limited to 'runtime/src/main.cpp')
| -rw-r--r-- | runtime/src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp index 20c870377..c0248e819 100644 --- a/runtime/src/main.cpp +++ b/runtime/src/main.cpp | |||
| @@ -65,7 +65,8 @@ int wmain(int argc, wchar_t** argv) { | |||
| 65 | else return usage(); | 65 | else return usage(); |
| 66 | } | 66 | } |
| 67 | if (image.empty()) return usage(); | 67 | if (image.empty()) return usage(); |
| 68 | if (!dry_run && !init && !run) return usage(); | 68 | // Exactly one mode: --dry-run --run would otherwise initialise the modules and call the entry point. |
| 69 | if (dry_run + init + run != 1) return usage(); | ||
| 69 | if (game_dir.empty()) game_dir = image.parent_path(); | 70 | if (game_dir.empty()) game_dir = image.parent_path(); |
| 70 | rt::d3d12_trace::set_enabled(trace_d3d12); | 71 | rt::d3d12_trace::set_enabled(trace_d3d12); |
| 71 | 72 | ||