mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-14 10:52:45 +01:00
030847d5fa
tr() will not function properly on static/global data like this, as the object is only ever constructed once, so the strings won't translate if the language is changed without restarting the program, which is undesirable. Instead we can just turn the map into a plain old function that maps the values to their equivalent strings. This is also lessens the memory allocated, since it's only allocating memory for the strings themselves, and not an encompassing map as well. |
||
---|---|---|
.. | ||
graphics | ||
console.cpp | ||
console.h | ||
profiler.cpp | ||
profiler.h | ||
wait_tree.cpp | ||
wait_tree.h |