mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Very minor logging improvement
This commit is contained in:
parent
466a731ece
commit
0179cb1811
1 changed files with 6 additions and 1 deletions
|
@ -50,7 +50,12 @@ std::string GetStringErrorMsg(int errCode) {
|
|||
|
||||
char err_str[buff_size] = {};
|
||||
snprintf(err_str, buff_size, "%s", ConvertWStringToUTF8(err_strw).c_str());
|
||||
return std::string(err_str);
|
||||
|
||||
std::string err_string = err_str;
|
||||
if (!err_string.empty() && err_string.back() == '\n') {
|
||||
err_string.pop_back();
|
||||
}
|
||||
return err_string;
|
||||
#else
|
||||
char err_str[buff_size] = {};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue