Skip to content

Commit 8b05261

Browse files
committed
feat: Module and IDDB changes
1 parent 1a4da5a commit 8b05261

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

CommonLibF4/src/F4SE/API.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ namespace F4SE
4646
{
4747
info = a_info;
4848

49-
REL::Module::set_info(L"F4SE_RUNTIME"sv, L"Fallout4.exe"sv);
50-
(void)REL::Module::get();
51-
REL::IDDB::set_info("Data/F4SE/Plugins/version-{}.bin"sv);
52-
(void)REL::IDDB::get();
53-
5449
static std::once_flag once;
5550
std::call_once(once, [&]() {
51+
const auto mod = REL::Module::GetSingleton();
52+
mod->load(L"Fallout4.exe"sv, L"F4SE_RUNTIME"sv);
53+
54+
const auto iddb = REL::IDDB::GetSingleton();
55+
iddb->load("Data/F4SE/Plugins/version-{}.bin"sv);
56+
5657
if (const auto data = PluginVersionData::GetSingleton()) {
5758
pluginName = data->GetPluginName();
5859
pluginAuthor = data->GetAuthorName();

CommonLibF4/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ option("rex_toml", function()
2424
end)
2525

2626
-- require packages
27-
add_requires("commonlib-shared", { configs = {
27+
add_requires("commonlib-shared d72a3d06def7cbcb960c5a15db0e7c4fceb36463", { configs = {
2828
rex_ini = has_config("rex_ini"),
2929
rex_json = has_config("rex_json"),
3030
rex_toml = has_config("rex_toml"),

0 commit comments

Comments
 (0)