Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Do not include android build dir in export #299

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/tools/fmod_editor_export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
using namespace godot;

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

void FmodEditorExportPlugin::_export_begin(const PackedStringArray& features, bool is_debug, const String& path, uint32_t flags) {
PackedStringArray excluded_folders;
excluded_folders.append(ANDROID_BUILD_DIR);
for (const char* dir : ANDROID_BUILD_DIRS) {
excluded_folders.append(dir);
}
for (const char* extension : FMOD_FILE_EXTENSIONS) {
PackedStringArray files;
list_files_in_folder(files, "res://", extension, excluded_folders);
Expand Down
Loading