mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Another std::string_view change, buildfix
This commit is contained in:
@@ -311,7 +311,7 @@ bool System_AudioRecordingIsAvailable();
|
||||
bool System_AudioRecordingState();
|
||||
|
||||
// This will be changed to take an enum. Replacement for the old NativeMessageReceived.
|
||||
void System_PostUIMessage(UIMessage message, const std::string ¶m = "");
|
||||
void System_PostUIMessage(UIMessage message, std::string_view param = "");
|
||||
|
||||
// For these functions, most platforms will use the implementation provided in UI/AudioCommon.cpp,
|
||||
// no need to implement separately.
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@ void MainWindow::loadAct()
|
||||
{
|
||||
QFileInfo info(filename);
|
||||
g_Config.currentDirectory = Path(info.absolutePath().toStdString());
|
||||
System_PostUIMessage(UIMessage::REQUEST_GAME_BOOT, filename.toStdString().c_str());
|
||||
System_PostUIMessage(UIMessage::REQUEST_GAME_BOOT, filename.toStdString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -641,7 +641,7 @@ TOGGLE_METHOD(FullScreen, g_Config.bFullScreen, System_MakeRequest(SystemRequest
|
||||
}
|
||||
|
||||
-(void)openRecentItem: (NSMenuItem *)item {
|
||||
System_PostUIMessage(UIMessage::REQUEST_GAME_BOOT, g_recentFiles.GetRecentFiles()[item.tag].c_str());
|
||||
System_PostUIMessage(UIMessage::REQUEST_GAME_BOOT, g_recentFiles.GetRecentFiles()[item.tag]);
|
||||
}
|
||||
|
||||
-(void)openSystemFileBrowser {
|
||||
|
||||
+2
-2
@@ -1509,11 +1509,11 @@ void NativeAccelerometer(float tiltX, float tiltY, float tiltZ) {
|
||||
HLEPlugins::PluginDataAxis[JOYSTICK_AXIS_ACCELEROMETER_Z] = tiltZ;
|
||||
}
|
||||
|
||||
void System_PostUIMessage(UIMessage message, const std::string &value) {
|
||||
void System_PostUIMessage(UIMessage message, std::string_view param) {
|
||||
std::lock_guard<std::mutex> lock(g_pendingMutex);
|
||||
PendingMessage pendingMessage;
|
||||
pendingMessage.message = message;
|
||||
pendingMessage.value = value;
|
||||
pendingMessage.value = param;
|
||||
pendingMessages.push_back(pendingMessage);
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ void TabbedUIDialogScreenWithGameBackground::CreateViews() {
|
||||
|
||||
searchSettings->Add(new ItemHeader(se->T("Find settings")));
|
||||
searchSettings->Add(new PopupTextInputChoice(GetRequesterToken(), &searchFilter_, se->T("Filter"), "", 64, screenManager()))->OnChange.Add([=](UI::EventParams &e) {
|
||||
System_PostUIMessage(UIMessage::GAMESETTINGS_SEARCH, std::string(StripSpaces(searchFilter_)));
|
||||
System_PostUIMessage(UIMessage::GAMESETTINGS_SEARCH, StripSpaces(searchFilter_));
|
||||
return UI::EVENT_DONE;
|
||||
});
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ bool System_GetPropertyBool(SystemProperty prop) {
|
||||
}
|
||||
}
|
||||
void System_Notify(SystemNotification notification) {}
|
||||
void System_PostUIMessage(UIMessage message, const std::string ¶m) {}
|
||||
void System_PostUIMessage(UIMessage message, std::string_view param) {}
|
||||
void System_RunOnMainThread(std::function<void()>) {}
|
||||
bool System_MakeRequest(SystemRequestType type, int requestId, const std::string ¶m1, const std::string ¶m2, int64_t param3, int64_t param4) {
|
||||
switch (type) {
|
||||
|
||||
@@ -1999,7 +1999,7 @@ void System_Notify(SystemNotification notification) {
|
||||
}
|
||||
}
|
||||
bool System_MakeRequest(SystemRequestType type, int requestId, const std::string ¶m1, const std::string ¶m2, int64_t param3, int64_t param4) { return false; }
|
||||
void System_PostUIMessage(UIMessage message, const std::string ¶m) {}
|
||||
void System_PostUIMessage(UIMessage message, std::string_view param) {}
|
||||
void System_RunOnMainThread(std::function<void()>) {}
|
||||
void NativeFrame(GraphicsContext *graphicsContext) {}
|
||||
void NativeResized() {}
|
||||
|
||||
@@ -112,7 +112,7 @@ bool System_GetPropertyBool(SystemProperty prop) {
|
||||
}
|
||||
}
|
||||
void System_Notify(SystemNotification notification) {}
|
||||
void System_PostUIMessage(UIMessage message, const std::string ¶m) {}
|
||||
void System_PostUIMessage(UIMessage message, std::string_view param) {}
|
||||
void System_RunOnMainThread(std::function<void()>) {}
|
||||
void System_AudioGetDebugStats(char *buf, size_t bufSize) { if (buf) buf[0] = '\0'; }
|
||||
void System_AudioClear() {}
|
||||
|
||||
Reference in New Issue
Block a user