Skip to content

Commit

Permalink
Load dummy sound files
Browse files Browse the repository at this point in the history
  • Loading branch information
falbrechtskirchinger committed Jul 27, 2023
1 parent 1fff7f2 commit f2b735e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libs/s25main/Loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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<libsiedler2::ArchivItem_Sound_Wave>();
resource.set(id, std::move(snd));
}
}

// Palettes
{
auto palette = std::make_unique<libsiedler2::ArchivItem_Palette>();
Expand Down

0 comments on commit f2b735e

Please sign in to comment.