Fix missing script folder bug
This commit is contained in:
parent
214719ff37
commit
72d1917c1f
@ -45,7 +45,14 @@ private:
|
||||
|
||||
void load_scripts()
|
||||
{
|
||||
const auto scripts = utils::io::list_files("open-iw5/scripts/");
|
||||
const auto script_dir = "open-iw5/scripts/"s;
|
||||
|
||||
if(!utils::io::directory_exists(script_dir))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const auto scripts = utils::io::list_files(script_dir);
|
||||
|
||||
for (const auto& script : scripts)
|
||||
{
|
||||
|
@ -27,11 +27,11 @@ public:
|
||||
{
|
||||
if (game::is_sp())
|
||||
{
|
||||
this->start_mod("Open-IW5 Singleplayer", 42680);
|
||||
this->start_mod("\xF0\x9F\x90\x8D Open-IW5 Singleplayer", 42680);
|
||||
}
|
||||
else if (game::is_mp())
|
||||
{
|
||||
this->start_mod("Open-IW5 Multiplayer", 42690);
|
||||
this->start_mod("\xF0\x9F\x90\x8D Open-IW5 Multiplayer", 42690);
|
||||
}
|
||||
}
|
||||
catch (std::exception& e)
|
||||
|
Loading…
Reference in New Issue
Block a user