mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-02 00:42:33 +01:00
4fd92a1549
Also move up source files into the root directory, as there's nothing else in this directory
20 lines
536 B
C++
20 lines
536 B
C++
#include "GameTexts.hpp"
|
|
|
|
// FIXME: Update for GTA VC
|
|
#include "FontMapGta3.hpp"
|
|
|
|
#include "rw/debug.hpp"
|
|
|
|
GameString GameStringUtil::fromString(const std::string& str, font_t font) {
|
|
RW_ASSERT(font < FONTS_COUNT);
|
|
return fontmaps_gta3_font[font].to_GameString(str);
|
|
}
|
|
|
|
GameString GameStringUtil::fromStringCommon(const std::string& str) {
|
|
return fontmap_gta3_font_common.to_GameString(str);
|
|
}
|
|
|
|
std::string GameStringUtil::toString(const GameString& str, font_t font) {
|
|
return fontmaps_gta3_font[font].to_string(str);
|
|
}
|