optimise theme inherit, load default_music.bfstm if available.

This commit is contained in:
ITotalJustice
2025-01-09 15:55:46 +00:00
parent f05230e870
commit 0751fa9a2e
2 changed files with 112 additions and 96 deletions

View File

@@ -107,7 +107,7 @@ public:
auto LoadElementColour(std::string_view value) -> ElementEntry;
auto LoadElement(std::string_view data, ElementType type) -> ElementEntry;
void LoadTheme(ThemeMeta meta, int inherit_level = 0);
void LoadTheme(const ThemeMeta& meta);
void CloseTheme();
void ScanThemes(const std::string& path);
void ScanThemeEntries();
@@ -165,9 +165,6 @@ public:
PLSR_BFSAR m_qlaunch_bfsar{};
PLSR_PlayerSoundId m_sound_ids[SoundEffect_MAX]{};
private:
void CloseMusic();
private: // from nanovg decko3d example by adubbz
static constexpr unsigned NumFramebuffers = 2;
static constexpr unsigned StaticCmdSize = 0x1000;