diff --git a/src/ScriptResolving/AngelScript/AngelScripResolver.cpp b/src/ScriptResolving/AngelScript/AngelScripResolver.cpp index bd70e17..e9f7395 100644 --- a/src/ScriptResolving/AngelScript/AngelScripResolver.cpp +++ b/src/ScriptResolving/AngelScript/AngelScripResolver.cpp @@ -113,5 +113,7 @@ void AngelScripResolver::FinalizeModule() { void AngelScripResolver::CreateScript(ScriptCategory category, const char* scriptName) { auto scriptString = _loadFunc(category, scriptName); _mainModule->AddScriptSection(scriptName, scriptString); - +} +void AngelScripResolver::CreateScript(const char* name, const char* script) { + _mainModule->AddScriptSection(name, script); } diff --git a/src/ScriptResolving/AngelScript/AngelScripResolver.hpp b/src/ScriptResolving/AngelScript/AngelScripResolver.hpp index 9d823bd..e5ef710 100644 --- a/src/ScriptResolving/AngelScript/AngelScripResolver.hpp +++ b/src/ScriptResolving/AngelScript/AngelScripResolver.hpp @@ -41,6 +41,7 @@ public: } void CreateScript(ScriptCategory category, const char* scriptName); + void CreateScript(const char* name, const char* script); void FinalizeModule();