2016-08-16 01:53:27 +02:00
|
|
|
#include "GameTexts.hpp"
|
|
|
|
|
2017-09-07 19:00:16 +02:00
|
|
|
// 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);
|
2018-08-05 23:19:02 +02:00
|
|
|
return fontmaps_gta3_font[font].to_GameString(str);
|
|
|
|
}
|
|
|
|
|
|
|
|
GameString GameStringUtil::fromStringCommon(const std::string& str) {
|
|
|
|
return fontmap_gta3_font_common.to_GameString(str);
|
2017-09-07 19:00:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
std::string GameStringUtil::toString(const GameString& str, font_t font) {
|
2018-08-05 23:19:02 +02:00
|
|
|
return fontmaps_gta3_font[font].to_string(str);
|
2016-08-16 01:53:27 +02:00
|
|
|
}
|