commit e684417447ac0280590f1300c9eb5a3f377ec74a
Author: jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Mon Jun 14 21:48:40 2021 -0600
Commit: jtothebell <j.to.the.bell@gmail.com>
CommitDate: Mon Jun 14 21:48:40 2021 -0600
allow booting directly into cart
---
source/main.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/source/main.cpp b/source/main.cpp
index b2bd817..162badf 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -27,10 +27,16 @@ int main(int argc, char* argv[])
Logger_Write("initialized Vm and host\n");
Logger_Write("Setting cart list on vm\n");
+
vm->SetCartList(host->listcarts());
Logger_Write("Loading Bios cart\n");
- vm->LoadBiosCart();
+ if (argc > 1){
+ vm->LoadCart(argv[1]);
+ }
+ else {
+ vm->LoadBiosCart();
+ }
Logger_Write("Bios Cart Loaded\n");
// Main loop