Set source directory for ScriptCompiler.
This commit is contained in:
parent
a01d16f3fe
commit
d0594d04fc
|
@ -24,6 +24,7 @@ void ScriptCompiler::Compile(const std::string& inPath, const std::string& outPa
|
||||||
auto resolver = new AngelScriptResolver();
|
auto resolver = new AngelScriptResolver();
|
||||||
auto library = BuildLibrary(resolver);
|
auto library = BuildLibrary(resolver);
|
||||||
resolver->Initialize(library);
|
resolver->Initialize(library);
|
||||||
|
resolver->SetSourceDirectory(inPath);
|
||||||
for (const auto& dirEntry : recursive_directory_iterator(inPath)) {
|
for (const auto& dirEntry : recursive_directory_iterator(inPath)) {
|
||||||
if (dirEntry.is_regular_file()) {
|
if (dirEntry.is_regular_file()) {
|
||||||
if (dirEntry.path().extension() != ".as") {
|
if (dirEntry.path().extension() != ".as") {
|
||||||
|
|
Loading…
Reference in New Issue