diff --git a/src/main.cpp b/src/main.cpp index 34eac2c7d..0731815d5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,6 +17,7 @@ #include "core/linker.h" #include "emuTimer.h" #include "emulator.h" +#include "core/file_sys/fs.h" int main(int argc, char* argv[]) { if (argc == 1) { @@ -32,10 +33,13 @@ int main(int argc, char* argv[]) { HLE::Libs::Graphics::VideoOut::videoOutInit(width, height); Emulator::emuTimer::start(); - // Argument 1 is the path of self file to boot // Argument 1 is the path of self file to boot 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()); linker->LoadModule(path);