Skip to content

Commit 9b7d262

Browse files
committed
feat: Module and IDDB changes
1 parent 4664888 commit 9b7d262

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/OBSE/API.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,16 @@ namespace OBSE
4242
{
4343
info = a_info;
4444

45-
REL::Module::set_info(L"OBSE_RUNTIME"sv, L"OblivionRemastered-Win64-Shipping.exe"sv);
46-
(void)REL::Module::get();
47-
if (info.iddb) {
48-
REL::IDDB::set_info("OBSE/Plugins/versionlib-{}.bin"sv);
49-
(void)REL::IDDB::get();
50-
}
51-
5245
static std::once_flag once;
5346
std::call_once(once, [&]() {
47+
const auto mod = REL::Module::GetSingleton();
48+
mod->load(L"OblivionRemastered-Win64-Shipping.exe"sv, L"OBSE_RUNTIME"sv);
49+
50+
if (info.iddb) {
51+
const auto iddb = REL::IDDB::GetSingleton();
52+
iddb->load("OBSE/Plugins/versionlib-{}.bin"sv);
53+
}
54+
5455
if (const auto data = PluginVersionData::GetSingleton()) {
5556
pluginName = data->GetPluginName();
5657
pluginAuthor = data->GetAuthorName();

xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ option("obse_xbyak", function()
3939
end)
4040

4141
-- require packages
42-
add_requires("commonlib-shared", { configs = {
42+
add_requires("commonlib-shared d72a3d06def7cbcb960c5a15db0e7c4fceb36463", { configs = {
4343
rex_ini = has_config("rex_ini"),
4444
rex_json = has_config("rex_json"),
4545
rex_toml = has_config("rex_toml"),

0 commit comments

Comments
 (0)