allow including shared files via .include_native

This commit is contained in:
Martin Michelsen
2025-02-23 11:20:55 -08:00
parent 04dbcef2cf
commit f9cac45996
4 changed files with 17 additions and 7 deletions
+1 -2
View File
@@ -637,8 +637,7 @@ QuestIndex::QuestIndex(
file_data = decode_dlq_data(phosg::load_file(file_path));
filename.resize(filename.size() - 4);
} else if (phosg::ends_with(filename, ".bin.txt")) {
string include_dir = phosg::dirname(file_path);
file_data = assemble_quest_script(phosg::load_file(file_path), include_dir);
file_data = assemble_quest_script(phosg::load_file(file_path), {phosg::dirname(file_path), "system/client-functions/System"});
filename.resize(filename.size() - 4);
if (phosg::ends_with(filename, ".bin")) {
filename.push_back('d');