Skip to content

Commit dc44b6f

Browse files
authored
fix: Do not include android build dir in export (#299)
1 parent 0bf860d commit dc44b6f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tools/fmod_editor_export_plugin.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
using namespace godot;
1212

1313
constexpr const char* FMOD_FILE_EXTENSIONS[4] {".bank", ".ogg", ".mp3", ".wav"};
14-
constexpr const char* ANDROID_BUILD_DIR = "res://android/build";
14+
constexpr const char* ANDROID_BUILD_DIRS[2] = { "res://android/build", "res:///android/build" };
1515

1616
void FmodEditorExportPlugin::_export_begin(const PackedStringArray& features, bool is_debug, const String& path, uint32_t flags) {
1717
PackedStringArray excluded_folders;
18-
excluded_folders.append(ANDROID_BUILD_DIR);
18+
for (const char* dir : ANDROID_BUILD_DIRS) {
19+
excluded_folders.append(dir);
20+
}
1921
for (const char* extension : FMOD_FILE_EXTENSIONS) {
2022
PackedStringArray files;
2123
list_files_in_folder(files, "res://", extension, excluded_folders);

0 commit comments

Comments
 (0)