upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/main.cpp')
-rw-r--r--runtime/src/main.cpp3
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