mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-05 00:35:37 +08:00
load achievements strings before creating fonts, so that their glyphs ranges are taken into consideration
This commit is contained in:
parent
5ddbfccfdd
commit
b8d9b25a79
@ -1,3 +1,8 @@
|
|||||||
|
# 2024/4/3 (hotfix 1)
|
||||||
|
* load achievements strings before creating fonts, so that their glyphs ranges are taken into consideration
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# 2024/4/3
|
# 2024/4/3
|
||||||
|
|
||||||
* **[detiam]** fix linking errors when building on archlinux
|
* **[detiam]** fix linking errors when building on archlinux
|
||||||
|
@ -196,6 +196,7 @@ class Steam_Overlay
|
|||||||
void renderer_detector_delay_thread();
|
void renderer_detector_delay_thread();
|
||||||
void renderer_hook_init_thread();
|
void renderer_hook_init_thread();
|
||||||
|
|
||||||
|
// note: make sure to load all relevant strings before creating the font(s), otherwise some glyphs ranges will be missing
|
||||||
void create_fonts();
|
void create_fonts();
|
||||||
void load_audio();
|
void load_audio();
|
||||||
void load_achievements_data();
|
void load_achievements_data();
|
||||||
|
@ -202,9 +202,11 @@ void Steam_Overlay::renderer_hook_init_thread()
|
|||||||
// std::lock_guard<std::recursive_mutex> lock(overlay_mutex);
|
// std::lock_guard<std::recursive_mutex> lock(overlay_mutex);
|
||||||
_renderer = future_renderer.get();
|
_renderer = future_renderer.get();
|
||||||
PRINT_DEBUG("Steam_Overlay::renderer_hook_init_thread got renderer %p\n", _renderer);
|
PRINT_DEBUG("Steam_Overlay::renderer_hook_init_thread got renderer %p\n", _renderer);
|
||||||
create_fonts();
|
|
||||||
load_audio();
|
// note: make sure to load all relevant strings before creating the font(s), otherwise some glyphs ranges will be missing
|
||||||
load_achievements_data();
|
load_achievements_data();
|
||||||
|
load_audio();
|
||||||
|
create_fonts();
|
||||||
|
|
||||||
// setup renderer callbacks
|
// setup renderer callbacks
|
||||||
const static std::set<InGameOverlay::ToggleKey> overlay_toggle_keys = {
|
const static std::set<InGameOverlay::ToggleKey> overlay_toggle_keys = {
|
||||||
@ -221,6 +223,7 @@ void Steam_Overlay::renderer_hook_init_thread()
|
|||||||
PRINT_DEBUG("Steam_Overlay::renderer_hook_init_thread started renderer hook (result=%i)\n", (int)started);
|
PRINT_DEBUG("Steam_Overlay::renderer_hook_init_thread started renderer hook (result=%i)\n", (int)started);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// note: make sure to load all relevant strings before creating the font(s), otherwise some glyphs ranges will be missing
|
||||||
void Steam_Overlay::create_fonts()
|
void Steam_Overlay::create_fonts()
|
||||||
{
|
{
|
||||||
static std::atomic<bool> create_fonts_called = false;
|
static std::atomic<bool> create_fonts_called = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user