mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Clean up the string type in RequestCallback - somehow was both char* and std::string????
Might be related to #21695
This commit is contained in:
1 parent
f4e52d5db5
commit
cc0ece038c
19 files changed
+55
-54
No files matched your search
+2
-2
@@ -114,7 +114,7 @@ void ChatMenu::OnAskForChatMessage(UI::EventParams &e) {
|
||||
using namespace UI;
|
||||
|
||||
if (System_GetPropertyBool(SYSPROP_HAS_TEXT_INPUT_DIALOG)) {
|
||||
System_InputBoxGetString(token_, n->T("Chat"), "", false, [](const std::string &value, int) {
|
||||
System_InputBoxGetString(token_, n->T("Chat"), "", false, [](std::string_view value, int) {
|
||||
sendChat(value);
|
||||
});
|
||||
} else {
|
||||
@@ -183,7 +183,7 @@ void ChatMenu::Update() {
|
||||
// Could remove the fullscreen check here, it works now.
|
||||
auto n = GetI18NCategory(I18NCat::NETWORKING);
|
||||
if (promptInput_ && g_Config.bBypassOSKWithKeyboard && !g_Config.bFullScreen) {
|
||||
System_InputBoxGetString(token_, n->T("Chat"), n->T("Chat Here"), false, [](const std::string &value, int) {
|
||||
System_InputBoxGetString(token_, n->T("Chat"), n->T("Chat Here"), false, [](std::string_view value, int) {
|
||||
sendChat(value);
|
||||
});
|
||||
promptInput_ = false;
|
||||
|
||||
Reference in new issue
Block a user