mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Switch all NativeMessageReceived to System_PostUIMessage
This commit is contained in:
1 parent
ac4506e389
commit
84fffec4f3
20 files changed
+94
-101
No files matched your search
+1
-1
@@ -537,7 +537,7 @@ QString MainUI::InputBoxGetQString(QString title, QString defaultValue) {
|
||||
|
||||
void MainUI::resizeGL(int w, int h) {
|
||||
if (UpdateScreenScale(w, h)) {
|
||||
NativeMessageReceived("gpu_displayResized", "");
|
||||
System_PostUIMessage("gpu_displayResized", "");
|
||||
}
|
||||
xscale = w / this->width();
|
||||
yscale = h / this->height();
|
||||
|
||||
+6
-6
@@ -130,7 +130,7 @@ void MainWindow::loadAct()
|
||||
{
|
||||
QFileInfo info(filename);
|
||||
g_Config.currentDirectory = Path(info.absolutePath().toStdString());
|
||||
NativeMessageReceived("boot", filename.toStdString().c_str());
|
||||
System_PostUIMessage("boot", filename.toStdString().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ void MainWindow::closeAct()
|
||||
{
|
||||
updateMenus();
|
||||
|
||||
NativeMessageReceived("stop", "");
|
||||
System_PostUIMessage("stop", "");
|
||||
SetGameTitle("");
|
||||
}
|
||||
|
||||
@@ -232,25 +232,25 @@ void MainWindow::exitAct()
|
||||
|
||||
void MainWindow::runAct()
|
||||
{
|
||||
NativeMessageReceived("run", "");
|
||||
System_PostUIMessage("run", "");
|
||||
}
|
||||
|
||||
void MainWindow::pauseAct()
|
||||
{
|
||||
NativeMessageReceived("pause", "");
|
||||
System_PostUIMessage("pause", "");
|
||||
}
|
||||
|
||||
void MainWindow::stopAct()
|
||||
{
|
||||
Core_Stop();
|
||||
NativeMessageReceived("stop", "");
|
||||
System_PostUIMessage("stop", "");
|
||||
}
|
||||
|
||||
void MainWindow::resetAct()
|
||||
{
|
||||
updateMenus();
|
||||
|
||||
NativeMessageReceived("reset", "");
|
||||
System_PostUIMessage("reset", "");
|
||||
}
|
||||
|
||||
void MainWindow::switchUMDAct()
|
||||
|
||||
+14
-14
@@ -113,20 +113,20 @@ private slots:
|
||||
void consoleAct();
|
||||
|
||||
// Game settings
|
||||
void languageAct() { NativeMessageReceived("language screen", ""); }
|
||||
void controlMappingAct() { NativeMessageReceived("control mapping", ""); }
|
||||
void displayLayoutEditorAct() { NativeMessageReceived("display layout editor", ""); }
|
||||
void moreSettingsAct() { NativeMessageReceived("settings", ""); }
|
||||
void languageAct() { System_PostUIMessage("language screen", ""); }
|
||||
void controlMappingAct() { System_PostUIMessage("control mapping", ""); }
|
||||
void displayLayoutEditorAct() { System_PostUIMessage("display layout editor", ""); }
|
||||
void moreSettingsAct() { System_PostUIMessage("settings", ""); }
|
||||
|
||||
void bufferRenderAct() {
|
||||
NativeMessageReceived("gpu_renderResized", "");
|
||||
NativeMessageReceived("gpu_configChanged", "");
|
||||
System_PostUIMessage("gpu_renderResized", "");
|
||||
System_PostUIMessage("gpu_configChanged", "");
|
||||
}
|
||||
void linearAct() { g_Config.iTexFiltering = (g_Config.iTexFiltering != 0) ? 0 : 3; }
|
||||
|
||||
void renderingResolutionGroup_triggered(QAction *action) {
|
||||
g_Config.iInternalResolution = action->data().toInt();
|
||||
NativeMessageReceived("gpu_renderResized", "");
|
||||
NativeMessagSystem_PostUIMessageeReceived("gpu_renderResized", "");
|
||||
}
|
||||
void windowGroup_triggered(QAction *action) { SetWindowScale(action->data().toInt()); }
|
||||
|
||||
@@ -134,7 +134,7 @@ private slots:
|
||||
g_Config.bAutoFrameSkip = !g_Config.bAutoFrameSkip;
|
||||
if (g_Config.bSkipBufferEffects) {
|
||||
g_Config.bSkipBufferEffects = false;
|
||||
NativeMessageReceived("gpu_configChanged", "");
|
||||
System_PostUIMessage("gpu_configChanged", "");
|
||||
}
|
||||
}
|
||||
void frameSkippingGroup_triggered(QAction *action) { g_Config.iFrameSkip = action->data().toInt(); }
|
||||
@@ -143,19 +143,19 @@ private slots:
|
||||
void screenScalingFilterGroup_triggered(QAction *action) { g_Config.iDisplayFilter = action->data().toInt(); }
|
||||
void textureScalingLevelGroup_triggered(QAction *action) {
|
||||
g_Config.iTexScalingLevel = action->data().toInt();
|
||||
NativeMessageReceived("gpu_configChanged", "");
|
||||
System_PostUIMessage("gpu_configChanged", "");
|
||||
}
|
||||
void textureScalingTypeGroup_triggered(QAction *action) {
|
||||
g_Config.iTexScalingType = action->data().toInt();
|
||||
NativeMessageReceived("gpu_configChanged", "");
|
||||
System_PostUIMessage("gpu_configChanged", "");
|
||||
}
|
||||
void deposterizeAct() {
|
||||
g_Config.bTexDeposterize = !g_Config.bTexDeposterize;
|
||||
NativeMessageReceived("gpu_configChanged", "");
|
||||
System_PostUIMessage("gpu_configChanged", "");
|
||||
}
|
||||
void transformAct() {
|
||||
g_Config.bHardwareTransform = !g_Config.bHardwareTransform;
|
||||
NativeMessageReceived("gpu_configChanged", "");
|
||||
System_PostUIMessage("gpu_configChanged", "");
|
||||
}
|
||||
void vertexCacheAct() { g_Config.bVertexCache = !g_Config.bVertexCache; }
|
||||
void frameskipAct() { g_Config.iFrameSkip = !g_Config.iFrameSkip; }
|
||||
@@ -172,7 +172,7 @@ private slots:
|
||||
// Chat
|
||||
void chatAct() {
|
||||
if (GetUIState() == UISTATE_INGAME) {
|
||||
NativeMessageReceived("chat screen", "");
|
||||
System_PostUIMessage("chat screen", "");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ private slots:
|
||||
void raiseTopMost();
|
||||
void statsAct() {
|
||||
g_Config.bShowDebugStats = !g_Config.bShowDebugStats;
|
||||
NativeMessageReceived("clear jit", "");
|
||||
System_PostUIMessage("clear jit", "");
|
||||
}
|
||||
|
||||
// Help
|
||||
|
||||
Reference in new issue
Block a user