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 library = BuildLibrary(resolver);
|
||||
resolver->Initialize(library);
|
||||
resolver->SetSourceDirectory(inPath);
|
||||
for (const auto& dirEntry : recursive_directory_iterator(inPath)) {
|
||||
if (dirEntry.is_regular_file()) {
|
||||
if (dirEntry.path().extension() != ".as") {
|
||||
|
@ -53,7 +54,7 @@ void ScriptCompiler::Compile(const std::string& inPath, const std::string& outPa
|
|||
}
|
||||
std::cout << "\t===" << std::endl;
|
||||
|
||||
for (const auto& s: type.second){
|
||||
for (const auto& s : type.second) {
|
||||
std::cout << s.first << std::endl;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue