Small fix
This commit is contained in:
parent
d27c723fa1
commit
e14000a997
@ -58,8 +58,7 @@ namespace mods
|
|||||||
command::execute("vid_restart");
|
command::execute("vid_restart");
|
||||||
scheduler::once([]
|
scheduler::once([]
|
||||||
{
|
{
|
||||||
demonware::set_storage_path(mod_path.value_or(""));
|
mods::read_stats();
|
||||||
utils::hook::invoke<void>(0x4E6B60_b, 0); // read stats
|
|
||||||
}, scheduler::main);
|
}, scheduler::main);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -113,6 +112,12 @@ namespace mods
|
|||||||
return mod_path;
|
return mod_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void read_stats()
|
||||||
|
{
|
||||||
|
demonware::set_storage_path(mod_path.value_or(""));
|
||||||
|
utils::hook::invoke<void>(0x4E6B60_b, 0); // read stats
|
||||||
|
}
|
||||||
|
|
||||||
class component final : public component_interface
|
class component final : public component_interface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -4,4 +4,5 @@ namespace mods
|
|||||||
{
|
{
|
||||||
void set_mod(const std::string& path, bool change_fs_game = true);
|
void set_mod(const std::string& path, bool change_fs_game = true);
|
||||||
std::optional<std::string> get_mod();
|
std::optional<std::string> get_mod();
|
||||||
|
void read_stats();
|
||||||
}
|
}
|
||||||
|
@ -435,6 +435,7 @@ namespace party
|
|||||||
needs_vid_restart = false;
|
needs_vid_restart = false;
|
||||||
scheduler::once([=]()
|
scheduler::once([=]()
|
||||||
{
|
{
|
||||||
|
mods::read_stats();
|
||||||
connect(target);
|
connect(target);
|
||||||
}, scheduler::pipeline::main);
|
}, scheduler::pipeline::main);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user