Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from alessandrofama/fix-loading-localized-edit…
Browse files Browse the repository at this point in the history
…or-banks

Resolve localized bank loading issue impacting cache data generation
  • Loading branch information
alessandrofama authored Aug 19, 2023
2 parents ec1f022 + 62873ea commit 904d7d9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion addons/FMOD/native/src/fmod_studio_editor_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,14 @@ void FMODStudioEditorModule::load_all_banks()
}

FMOD::Studio::Bank* bank = nullptr;
ERROR_CHECK(studio_system->loadBankFile(file_path.utf8().get_data(), FMOD_STUDIO_LOAD_BANK_NORMAL, &bank));
FMOD_RESULT result = studio_system->loadBankFile(file_path.utf8().get_data(), FMOD_STUDIO_LOAD_BANK_NORMAL, &bank);
{
if (result != FMOD_RESULT::FMOD_ERR_EVENT_ALREADY_LOADED)
{
ERROR_CHECK(result);
}
}

Ref<BankAsset> bank_asset = get_bank_reference(bank_files_infos[i]);
bank_asset->set_bank_ref(bank);
bank_refs.append(bank_asset);
Expand Down

0 comments on commit 904d7d9

Please sign in to comment.