mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Make the i18n T function use std::string_view
Buildfixes, crashfixes One more Android buildfix Buildfix Qt
This commit is contained in:
1 parent
9322b4c6dc
commit
c5791764d8
135 files changed
+436
-486
No files matched your search
+2
-2
@@ -56,7 +56,7 @@
|
||||
#include "UI/DisplayLayoutScreen.h"
|
||||
#include "UI/RetroAchievementScreens.h"
|
||||
|
||||
static void AfterSaveStateAction(SaveState::Status status, const std::string &message, void *) {
|
||||
static void AfterSaveStateAction(SaveState::Status status, std::string_view message, void *) {
|
||||
if (!message.empty() && (!g_Config.bDumpFrames || !g_Config.bDumpVideoOutput)) {
|
||||
g_OSD.Show(status == SaveState::Status::SUCCESS ? OSDType::MESSAGE_SUCCESS : OSDType::MESSAGE_ERROR,
|
||||
message, status == SaveState::Status::SUCCESS ? 2.0 : 5.0);
|
||||
@@ -374,7 +374,7 @@ void GamePauseScreen::CreateViews() {
|
||||
}
|
||||
|
||||
// And tack on an explanation for why savestate options are not available.
|
||||
const char *notAvailable = ac->T("Save states not available in Hardcore Mode");
|
||||
std::string_view notAvailable = ac->T("Save states not available in Hardcore Mode");
|
||||
leftColumnItems->Add(new NoticeView(NoticeLevel::INFO, notAvailable, ""));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user