From 8aa10c7dc599f186d13031bc78427396d1b2d73f Mon Sep 17 00:00:00 2001 From: m Date: Fri, 21 Oct 2022 17:15:58 -0500 Subject: [PATCH] fix build --- src/client/component/gsc/script_loading.cpp | 1 + src/client/component/gsc/script_loading.hpp | 8 ++++++++ src/client/component/scripting.cpp | 7 ++++--- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/client/component/gsc/script_loading.hpp diff --git a/src/client/component/gsc/script_loading.cpp b/src/client/component/gsc/script_loading.cpp index 8eb0abcf..7761b337 100644 --- a/src/client/component/gsc/script_loading.cpp +++ b/src/client/component/gsc/script_loading.cpp @@ -6,6 +6,7 @@ #include "component/filesystem.hpp" #include "component/logfile.hpp" #include "component/scripting.hpp" +#include "component/gsc/script_loading.hpp" #include "game/dvars.hpp" diff --git a/src/client/component/gsc/script_loading.hpp b/src/client/component/gsc/script_loading.hpp new file mode 100644 index 00000000..e42a7e45 --- /dev/null +++ b/src/client/component/gsc/script_loading.hpp @@ -0,0 +1,8 @@ +#pragma once + +namespace gsc +{ + void load_main_handles(); + void load_init_handles(); + game::ScriptFile* find_script(game::XAssetType type, const char* name, int allow_create_default); +} diff --git a/src/client/component/scripting.cpp b/src/client/component/scripting.cpp index 2f640ece..195ec4da 100644 --- a/src/client/component/scripting.cpp +++ b/src/client/component/scripting.cpp @@ -1,9 +1,10 @@ #include #include "loader/component_loader.hpp" -#include "gsc.hpp" -#include "scheduler.hpp" -#include "scripting.hpp" +#include "component/gsc/script_extension.hpp" +#include "component/gsc/script_loading.hpp" +#include "component/scheduler.hpp" +#include "component/scripting.hpp" #include "game/game.hpp"