Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Use runtime arguments to specify boot filename.

archshifteec40f8f6f5f
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp
index d55b973936..00bab3203b 100644
--- a/src/citra/citra.cpp
+++ b/src/citra/citra.cpp
@@ -24,7 +24,7 @@ int __cdecl main(int argc, char **argv) {
System::Init(emu_window);
- std::string boot_filename = "homebrew.elf";
+ std::string boot_filename = argv[1];
std::string error_str;
bool res = Loader::LoadFile(boot_filename, &error_str);