Skip to content

Commit

Permalink
re-add info prints
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkzy committed Jan 17, 2024
1 parent df12711 commit 5cdc2dc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/client/component/gsc/script_loading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace gsc
}
}

console::debug("Loading custom gsc '%s.gsc'", real_name.data());
console::info("Loading custom gsc '%s.gsc'", real_name.data());

try
{
Expand Down Expand Up @@ -172,6 +172,8 @@ namespace gsc

loaded_scripts[file_name] = script_file_ptr;

console::info("Loaded custom gsc '%s.gsc'", real_name.data());

return script_file_ptr;
}
catch (const std::exception& e)
Expand Down Expand Up @@ -237,13 +239,13 @@ namespace gsc

if (main_handle)
{
console::debug("Loaded '%s::main'\n", name.data());
console::info("Loaded '%s::main'\n", name.data());
main_handles[name] = main_handle;
}

if (init_handle)
{
console::debug("Loaded '%s::init'\n", name.data());
console::info("Loaded '%s::init'\n", name.data());
init_handles[name] = init_handle;
}
}
Expand Down Expand Up @@ -369,7 +371,7 @@ namespace gsc
{
for (auto& function_handle : main_handles)
{
console::debug("Executing '%s::main'\n", function_handle.first.data());
console::info("Executing '%s::main'\n", function_handle.first.data());
game::RemoveRefToObject(game::Scr_ExecThread(function_handle.second, 0));
}
}
Expand All @@ -378,7 +380,7 @@ namespace gsc
{
for (auto& function_handle : init_handles)
{
console::debug("Executing '%s::init'\n", function_handle.first.data());
console::info("Executing '%s::init'\n", function_handle.first.data());
game::RemoveRefToObject(game::Scr_ExecThread(function_handle.second, 0));
}
}
Expand Down

0 comments on commit 5cdc2dc

Please sign in to comment.