Add g_typemap and g_idm alias
Future idm/fxm replacement
This commit is contained in:
@@ -866,3 +866,13 @@ public:
|
|||||||
return {ptr, static_cast<T*>(ptr.get())};
|
return {ptr, static_cast<T*>(ptr.get())};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include "Utilities/typemap.h"
|
||||||
|
|
||||||
|
extern utils::typemap g_typemap;
|
||||||
|
|
||||||
|
constexpr utils::typemap* g_idm = &g_typemap;
|
||||||
|
|
||||||
|
using utils::id_new;
|
||||||
|
using utils::id_any;
|
||||||
|
using utils::id_always;
|
||||||
|
|||||||
@@ -44,6 +44,8 @@
|
|||||||
#include "Emu/RSX/VK/VulkanAPI.h"
|
#include "Emu/RSX/VK/VulkanAPI.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
utils::typemap g_typemap{nullptr};
|
||||||
|
|
||||||
cfg_root g_cfg;
|
cfg_root g_cfg;
|
||||||
|
|
||||||
bool g_use_rtm;
|
bool g_use_rtm;
|
||||||
@@ -52,8 +54,6 @@ std::string g_cfg_defaults;
|
|||||||
|
|
||||||
extern atomic_t<u32> g_thread_count;
|
extern atomic_t<u32> g_thread_count;
|
||||||
|
|
||||||
extern u64 get_system_time();
|
|
||||||
|
|
||||||
extern void ppu_load_exec(const ppu_exec_object&);
|
extern void ppu_load_exec(const ppu_exec_object&);
|
||||||
extern void spu_load_exec(const spu_exec_object&);
|
extern void spu_load_exec(const spu_exec_object&);
|
||||||
extern void ppu_initialize(const ppu_module&);
|
extern void ppu_initialize(const ppu_module&);
|
||||||
@@ -266,6 +266,7 @@ void Emulator::Init()
|
|||||||
|
|
||||||
idm::init();
|
idm::init();
|
||||||
fxm::init();
|
fxm::init();
|
||||||
|
g_idm->init();
|
||||||
|
|
||||||
// Reset defaults, cache them
|
// Reset defaults, cache them
|
||||||
g_cfg.from_default();
|
g_cfg.from_default();
|
||||||
@@ -1381,6 +1382,7 @@ void Emulator::Stop(bool restart)
|
|||||||
lv2_obj::cleanup();
|
lv2_obj::cleanup();
|
||||||
idm::clear();
|
idm::clear();
|
||||||
fxm::clear();
|
fxm::clear();
|
||||||
|
g_idm->init();
|
||||||
|
|
||||||
LOG_NOTICE(GENERAL, "Objects cleared...");
|
LOG_NOTICE(GENERAL, "Objects cleared...");
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
u64 get_system_time();
|
||||||
|
|
||||||
enum class system_state
|
enum class system_state
|
||||||
{
|
{
|
||||||
running,
|
running,
|
||||||
|
|||||||
Reference in New Issue
Block a user