Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Merge pull request #13 from archshift/master

bunnei9592d61037d0
diff --cc src/citra/citra.cpp
index 6f3bc6f844,80896505fd..5a8642d1b8
--- a/src/citra/citra.cpp
+++ b/src/citra/citra.cpp
@@@ -22,11 -22,18 +22,18 @@@ int __cdecl main(int argc, char **argv
EmuWindow_GLFW* emu_window = new EmuWindow_GLFW;
- System::Init(emu_window);
+ System::Init(emu_window);
- std::string boot_filename = "homebrew.elf";
+ std::string boot_filename;
+
+ if (argc < 2) {
+ ERROR_LOG(BOOT, "Failed to load ROM: No ROM specified");
+ }
+ else {
+ boot_filename = argv[1];
+ }
std::string error_str;
-
+
bool res = Loader::LoadFile(boot_filename, &error_str);
if (!res) {