main : mounting app0

This commit is contained in:
georgemoralis 2023-11-06 20:47:53 +02:00
parent 3238fff089
commit 961a1a3258
1 changed files with 7 additions and 1 deletions

View File

@ -14,6 +14,8 @@
#include "core/hle/libraries/libs.h"
#include "core/linker.h"
#include "emuTimer.h"
#include <core/file_sys/fs.h>
#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<Core::FileSys::MntPoints>::Instance();
std::filesystem::path p = std::string(path);
mnt->mount(p.parent_path().string(), "/app0");
auto linker = Common::Singleton<Core::Linker>::Instance();
Core::Libraries::InitHLELibs(&linker->getHLESymbols());