From 961a1a32586189bc028f561b136cdacb86cebaae Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Mon, 6 Nov 2023 20:47:53 +0200 Subject: [PATCH] main : mounting app0 --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 4c727527..07710cb3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,6 +14,8 @@ #include "core/hle/libraries/libs.h" #include "core/linker.h" #include "emuTimer.h" +#include +#include "common/singleton.h" int main(int argc, char* argv[]) { if (argc == 1) { @@ -29,7 +31,11 @@ int main(int argc, char* argv[]) { Emulator::emuTimer::start(); // Argument 1 is the path of self file to boot - const char* const path = argv[1]; + const char* const path = argv[1]; // argument 1 is the path of self file to boot + + auto* mnt = Common::Singleton::Instance(); + std::filesystem::path p = std::string(path); + mnt->mount(p.parent_path().string(), "/app0"); auto linker = Common::Singleton::Instance(); Core::Libraries::InitHLELibs(&linker->getHLESymbols());