diff --git a/libs/s25main/Loader.cpp b/libs/s25main/Loader.cpp index 65b36c67f..3a38e469e 100644 --- a/libs/s25main/Loader.cpp +++ b/libs/s25main/Loader.cpp @@ -35,6 +35,8 @@ #include "libsiedler2/ArchivItem_Font.h" #include "libsiedler2/ArchivItem_Palette.h" #include "libsiedler2/ArchivItem_PaletteAnimation.h" +#include "libsiedler2/ArchivItem_Sound.h" +#include "libsiedler2/ArchivItem_Sound_Wave.h" #include "libsiedler2/ArchivItem_Text.h" #include "libsiedler2/ErrorCodes.h" #include "libsiedler2/PixelBufferBGRA.h" @@ -286,6 +288,16 @@ bool Loader::LoadFonts() void Loader::LoadDummyGUIFiles() { + { // TODO move to LoadDummySoundFiles() if this works; figure out ID range + libsiedler2::Archiv& resource = files_["sound"].archive; + resource.alloc(116); + for(unsigned id = 51; id <= 115; id++) + { + auto snd = std::make_unique(); + resource.set(id, std::move(snd)); + } + } + // Palettes { auto palette = std::make_unique();