mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
GLideNUI-wtl: in loading language, replacing new line was only replacing \
This commit is contained in:
parent
0e19477b6a
commit
1934062d65
|
@ -268,7 +268,7 @@ LANG_STR GetNextLangString(FILE * file)
|
||||||
|
|
||||||
std::string::size_type pos = text.find("\\n");
|
std::string::size_type pos = text.find("\\n");
|
||||||
while (pos != std::string::npos) {
|
while (pos != std::string::npos) {
|
||||||
text.replace(pos, 1, "\n");
|
text.replace(pos, 2, "\n");
|
||||||
pos = text.find("\\n", pos + 1);
|
pos = text.find("\\n", pos + 1);
|
||||||
}
|
}
|
||||||
return LANG_STR(StringID, text);
|
return LANG_STR(StringID, text);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user