From 4d0c9cab5901cdad2fb399ad6d9751752388bde9 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 13 Jun 2024 18:55:01 +0300 Subject: [PATCH] re-enabled system modules and disable debug in libs.h --- src/core/libraries/libs.h | 4 ++-- src/emulator.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/libraries/libs.h b/src/core/libraries/libs.h index 53ed73670..56ff4fb53 100644 --- a/src/core/libraries/libs.h +++ b/src/core/libraries/libs.h @@ -44,8 +44,8 @@ struct wrapper_impl { template constexpr auto wrapper = wrapper_impl::wrap; -#define W(foo) wrapper<#foo, decltype(&foo), foo> -// #define W(foo) foo +//#define W(foo) wrapper<#foo, decltype(&foo), foo> +#define W(foo) foo #define LIB_FUNCTION(nid, lib, libversion, mod, moduleVersionMajor, moduleVersionMinor, function) \ { \ diff --git a/src/emulator.cpp b/src/emulator.cpp index 5c0200893..4e56a926c 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -134,7 +134,6 @@ void Emulator::Run(const std::filesystem::path& file) { } void Emulator::LoadSystemModules(const std::filesystem::path& file) { - return; const auto& sys_module_path = Common::FS::GetUserPath(Common::FS::PathType::SysModuleDir); for (const auto& entry : std::filesystem::directory_iterator(sys_module_path)) { if (entry.path().filename() == "libSceNgs2.sprx") {