mirror of
https://github.com/libretro/Mesen.git
synced 2025-02-12 20:38:15 +00:00
Allow messages containing new lines to wrap properly
This commit is contained in:
parent
f88b3921f9
commit
3858397d6e
@ -477,7 +477,7 @@ namespace NES
|
||||
list<wstring> words;
|
||||
wstring currentWord;
|
||||
for(int i = 0, len = text.length(); i < len; i++) {
|
||||
if(text[i] == L' ') {
|
||||
if(text[i] == L' ' || text[i] == L'\n') {
|
||||
if(currentWord.length() > 0) {
|
||||
words.push_back(currentWord);
|
||||
currentWord.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user