diff --git a/src/website/create_spritesheet.cc b/src/website/create_spritesheet.cc index e59b7bc21d..15fcc385fb 100644 --- a/src/website/create_spritesheet.cc +++ b/src/website/create_spritesheet.cc @@ -30,6 +30,7 @@ #include "graphic/graphic.h" #include "graphic/image.h" #include "graphic/image_io.h" +#include "io/filesystem/disk_filesystem.h" #include "io/filesystem/filesystem.h" #include "io/filesystem/layered_filesystem.h" #include "logic/editor_game_base.h" @@ -392,6 +393,11 @@ int main(int argc, char** argv) { try { initialize(); std::unique_ptr out_filesystem(&FileSystem::create(output_path)); + + std::unique_ptr home(new RealFSImpl(FileSystem::get_homedir() + "/.widelands")); + g_fs->set_home_file_system(home.release()); + AddOns::g_addons.emplace_back(AddOns::preload_addon("europeans_tribe.wad"), true); + Widelands::EditorGameBase egbase(nullptr); // Load a tribe to trigger registering the tribes