diff --git a/src/qt_gui/cheats_patches.cpp b/src/qt_gui/cheats_patches.cpp
index fd0bc4e14..f7326192c 100644
--- a/src/qt_gui/cheats_patches.cpp
+++ b/src/qt_gui/cheats_patches.cpp
@@ -1158,6 +1158,13 @@ void CheatsPatches::applyCheat(const QString& modName, bool enabled) {
if (!m_cheats.contains(modName))
return;
+ if (MemoryPatcher::g_eboot_address == 0 && enabled) {
+ QMessageBox::critical(this, tr("Error"),
+ tr("Can't apply cheats before the game is started"));
+ uncheckAllCheatCheckBoxes();
+ return;
+ }
+
Cheat cheat = m_cheats[modName];
for (const MemoryMod& memoryMod : cheat.memoryMods) {
@@ -1167,16 +1174,9 @@ void CheatsPatches::applyCheat(const QString& modName, bool enabled) {
std::string offsetStr = memoryMod.offset.toStdString();
std::string valueStr = value.toStdString();
- if (MemoryPatcher::g_eboot_address == 0) {
- MemoryPatcher::patchInfo addingPatch;
- addingPatch.modNameStr = modNameStr;
- addingPatch.offsetStr = offsetStr;
- addingPatch.valueStr = valueStr;
- addingPatch.isOffset = true;
+ if (MemoryPatcher::g_eboot_address == 0)
+ return;
- MemoryPatcher::AddPatchToQueue(addingPatch);
- continue;
- }
// Determine if the hint field is present
bool isHintPresent = m_cheats[modName].hasHint;
MemoryPatcher::PatchMemory(modNameStr, offsetStr, valueStr, !isHintPresent, false);
diff --git a/src/qt_gui/translations/de.ts b/src/qt_gui/translations/de.ts
index c833f2e28..c208ad441 100644
--- a/src/qt_gui/translations/de.ts
+++ b/src/qt_gui/translations/de.ts
@@ -6,7 +6,7 @@
About shadPS4
- About shadPS4
+ Über shadPS4
@@ -16,12 +16,12 @@
shadPS4 is an experimental open-source emulator for the PlayStation 4.
- shadPS4 is an experimental open-source emulator for the PlayStation 4.
+ shadPS4 ist ein experimenteller Open-Source-Emulator für die Playstation 4.This software should not be used to play games you have not legally obtained.
- This software should not be used to play games you have not legally obtained.
+ Diese Software soll nicht dazu benutzt werden illegal kopierte Spiele zu spielen.
@@ -29,7 +29,7 @@
Open Folder
- Open Folder
+ Ordner öffnen
@@ -37,17 +37,17 @@
Loading game list, please wait :3
- Loading game list, please wait :3
+ Lade Spielliste, bitte warten :3Cancel
- Cancel
+ AbbrechenLoading...
- Loading...
+ Lade...
@@ -55,27 +55,27 @@
shadPS4 - Choose directory
- shadPS4 - Choose directory
+ shadPS4 - Wähle OrdnerDirectory to install games
- Directory to install games
+ Installationsverzeichnis für SpieleBrowse
- Browse
+ DurchsuchenError
- Error
+ FehlerThe value for location to install games is not valid.
- The value for location to install games is not valid.
+ Der ausgewählte Ordner ist nicht gültig.
@@ -83,12 +83,12 @@
Create Shortcut
- Create Shortcut
+ Verknüpfung erstellenOpen Game Folder
- Open Game Folder
+ Spieleordner öffnen
@@ -98,57 +98,57 @@
SFO Viewer
- SFO Viewer
+ SFO anzeigenTrophy Viewer
- Trophy Viewer
+ Trophäen anzeigenCopy info
- Copy info
+ Infos kopierenCopy Name
- Copy Name
+ Namen kopierenCopy Serial
- Copy Serial
+ Seriennummer kopierenCopy All
- Copy All
+ Alles kopierenShortcut creation
- Shortcut creation
+ VerknüpfungserstellungShortcut created successfully!\n %1
- Shortcut created successfully!\n %1
+ Verknüpfung erfolgreich erstellt!\n %1Error
- Error
+ FehlerError creating shortcut!\n %1
- Error creating shortcut!\n %1
+ Fehler beim Erstellen der Verknüpfung!\n %1Install PKG
- Install PKG
+ PKG installieren
@@ -156,102 +156,102 @@
Open/Add Elf Folder
- Open/Add Elf Folder
+ Elf-Ordner öffnen/hinzufügenInstall Packages (PKG)
- Install Packages (PKG)
+ Pakete installieren (PKG)Boot Game
- Boot Game
+ Spiel startenAbout shadPS4
- About shadPS4
+ Über shadPS4Configure...
- Configure...
+ Konfigurieren...Install application from a .pkg file
- Install application from a .pkg file
+ Installiere Anwendung aus .pkg-DateiRecent Games
- Recent Games
+ Zuletzt gespieltExit
- Exit
+ BeendenExit shadPS4
- Exit shadPS4
+ shadPS4 beendenExit the application.
- Exit the application.
+ Die Anwendung beenden.Show Game List
- Show Game List
+ Spielliste anzeigenGame List Refresh
- Game List Refresh
+ Spielliste aktualisierenTiny
- Tiny
+ WinzigSmall
- Small
+ KleinMedium
- Medium
+ MittelLarge
- Large
+ GroßList View
- List View
+ ListenansichtGrid View
- Grid View
+ GitteransichtElf Viewer
- Elf Viewer
+ Elf-AnsichtGame Install Directory
- Game Install Directory
+ Installationsverzeichnis für Spiele
@@ -261,27 +261,27 @@
Dump Game List
- Dump Game List
+ Spielliste ausgebenPKG Viewer
- PKG Viewer
+ PKG-AnsichtSearch...
- Search...
+ Suchen...File
- File
+ DateiView
- View
+ Ansicht
@@ -291,52 +291,52 @@
Game List Mode
- Game List Mode
+ Spiellisten-SymobleSettings
- Settings
+ EinstellungenUtils
- Utils
+ WerkzeugeThemes
- Themes
+ StileAbout
- About
+ ÜberDark
- Dark
+ DunkelLight
- Light
+ HellGreen
- Green
+ GrünBlue
- Blue
+ BlauViolet
- Violet
+ Violett
@@ -349,7 +349,7 @@
Open Folder
- Open Folder
+ Ordner öffnen
@@ -357,7 +357,7 @@
Trophy Viewer
- Trophy Viewer
+ Trophäenansicht
@@ -365,12 +365,12 @@
Settings
- Settings
+ EinstellungenGeneral
- General
+ Allgemein
@@ -380,12 +380,12 @@
Console Language
- Console Language
+ KonsolenspracheEmulator Language
- Emulator Language
+ Emulatorsprache
@@ -395,22 +395,22 @@
Enable Fullscreen
- Enable Fullscreen
+ Vollbild aktivierenShow Splash
- Show Splash
+ Startbildschirm anzeigenIs PS4 Pro
- Is PS4 Pro
+ Ist PS4 ProUsername
- Username
+ Benutzername
@@ -420,57 +420,57 @@
Log Type
- Log Type
+ LogtypLog Filter
- Log Filter
+ Log-FilterGraphics
- Graphics
+ GrafikGraphics Device
- Graphics Device
+ GrafikgerätWidth
- Width
+ BreiteHeight
- Height
+ HöheVblank Divider
- Vblank Divider
+ Vblank-TeilerAdvanced
- Advanced
+ ErweitertEnable Shaders Dumping
- Enable Shaders Dumping
+ Shader-Dumping aktivierenEnable NULL GPU
- Enable NULL GPU
+ NULL GPU aktivierenEnable PM4 Dumping
- Enable PM4 Dumping
+ PM4-Dumping aktivieren
@@ -480,22 +480,22 @@
Enable Debug Dumping
- Enable Debug Dumping
+ Debug-Dumping aktivierenEnable Vulkan Validation Layers
- Enable Vulkan Validation Layers
+ Vulkan Validations-Ebenen aktivierenEnable Vulkan Synchronization Validation
- Enable Vulkan Synchronization Validation
+ Vulkan Synchronisations-Validierung aktivierenEnable RenderDoc Debugging
- Enable RenderDoc Debugging
+ RenderDoc-Debugging aktivieren
@@ -578,7 +578,7 @@
Would you like to overwrite?
- Würden Sie gerne überschreiben?
+ Willst du überschreiben?
@@ -593,7 +593,7 @@
Would you like to install Patch:
- Möchten Sie den Patch installieren:
+ Willst du den Patch installieren:
@@ -603,7 +603,7 @@
Would you like to install DLC: %1?
- Würden Sie gerne DLC installieren: %1?
+ Willst du den DLC installieren: %1?
@@ -623,7 +623,7 @@
PKG ERROR
- PKG-ERROR
+ PKG-FEHLER
@@ -656,7 +656,7 @@
defaultTextEdit_MSG
- Cheats/Patches sind experimentell.\nVerwenden Sie sie mit Vorsicht.\n\nLaden Sie Cheats einzeln herunter, indem Sie das Repository auswählen und auf die Download-Schaltfläche klicken.\nAuf der Registerkarte Patches können Sie alle Patches auf einmal herunterladen, auswählen, welche Sie verwenden möchten, und die Auswahl speichern.\n\nDa wir die Cheats/Patches nicht entwickeln,\nbitte melden Sie Probleme an den Cheat-Autor.\n\nHaben Sie einen neuen Cheat erstellt? Besuchen Sie:\nhttps://github.com/shadps4-emu/ps4_cheats
+ Cheats/Patches sind experimentell.\nVerwende sie mit Vorsicht.\n\nLade Cheats einzeln herunter, indem du das Repository auswählst und auf die Download-Schaltfläche klickst.\nAuf der Registerkarte Patches kannst du alle Patches auf einmal herunterladen, auswählen, welche du verwenden möchtest, und die Auswahl speichern.\n\nDa wir die Cheats/Patches nicht entwickeln,\nbitte melde Probleme an den Cheat-Autor.\n\nHast du einen neuen Cheat erstellt? Besuche:\nhttps://github.com/shadps4-emu/ps4_cheats
@@ -706,12 +706,12 @@
You can delete the cheats you don't want after downloading them.
- Sie können die Cheats, die Sie nicht möchten, nach dem Herunterladen löschen.
+ Du kannst die Cheats, die du nicht möchtest, nach dem Herunterladen löschen.Do you want to delete the selected file?\n%1
- Wollen Sie die ausgewählte Datei löschen?\n%1
+ Willst du die ausgewählte Datei löschen?\n%1
@@ -801,7 +801,7 @@
File already exists. Do you want to replace it?
- Datei existiert bereits. Möchten Sie sie ersetzen?
+ Datei existiert bereits. Möchtest du sie ersetzen?
@@ -821,7 +821,7 @@
CheatsNotFound_MSG
- Keine Cheats für dieses Spiel in dieser Version des gewählten Repositories gefunden. Versuchen Sie es mit einem anderen Repository oder einer anderen Version des Spiels.
+ Keine Cheats für dieses Spiel in dieser Version des gewählten Repositories gefunden. Versuche es mit einem anderen Repository oder einer anderen Version des Spiels.
@@ -831,7 +831,7 @@
CheatsDownloadedSuccessfully_MSG
- Sie haben erfolgreich Cheats für diese Version des Spiels aus dem gewählten Repository heruntergeladen. Sie können versuchen, von einem anderen Repository herunterzuladen. Wenn verfügbar, können Sie es auswählen, indem Sie die Datei aus der Liste auswählen.
+ Du hast erfolgreich Cheats für diese Version des Spiels aus dem gewählten Repository heruntergeladen. Du kannst auch versuchen, Cheats von einem anderen Repository herunterzuladen. Wenn verfügbar, kannst du sie auswählen, indem du die Datei aus der Liste auswählst.
diff --git a/src/qt_gui/translations/pl_PL.ts b/src/qt_gui/translations/pl_PL.ts
index 80f0aa5c4..ac4a75dd3 100644
--- a/src/qt_gui/translations/pl_PL.ts
+++ b/src/qt_gui/translations/pl_PL.ts
@@ -93,7 +93,7 @@
Cheats / Patches
- Kody / Patche
+ Kody / Łatki
@@ -256,7 +256,7 @@
Download Cheats/Patches
- Pobierz Kody / Patche
+ Pobierz Kody / Łatki
@@ -821,7 +821,7 @@
CheatsNotFound_MSG
- Nie znaleziono kodów do tej gry w tej wersji wybranego repozytorium.Spróbuj innego repozytorium lub innej wersji gry.
+ Nie znaleziono kodów do tej gry w tej wersji wybranego repozytorium. Spróbuj innego repozytorium lub innej wersji gry.
@@ -899,4 +899,4 @@
Nie udało się sparsować JSON:
-
\ No newline at end of file
+
diff --git a/src/qt_gui/translations/zh_CN.ts b/src/qt_gui/translations/zh_CN.ts
index a1b2523b8..7584fd5ea 100644
--- a/src/qt_gui/translations/zh_CN.ts
+++ b/src/qt_gui/translations/zh_CN.ts
@@ -6,7 +6,7 @@
About shadPS4
- About shadPS4
+ 关于 shadPS4
@@ -16,12 +16,12 @@
shadPS4 is an experimental open-source emulator for the PlayStation 4.
- shadPS4 is an experimental open-source emulator for the PlayStation 4.
+ shadPS4 是一款实验性质的开源 PlayStation 4模拟器软件。This software should not be used to play games you have not legally obtained.
- This software should not be used to play games you have not legally obtained.
+ 本软件不得用于运行未经合法授权而获得的游戏。
@@ -29,7 +29,7 @@
Open Folder
- Open Folder
+ 打开文件夹
@@ -37,17 +37,17 @@
Loading game list, please wait :3
- Loading game list, please wait :3
+ 加载游戏列表中, 请稍等 :3Cancel
- Cancel
+ 取消Loading...
- Loading...
+ 加载中...
@@ -55,27 +55,27 @@
shadPS4 - Choose directory
- shadPS4 - Choose directory
+ shadPS4 - 选择文件目录Directory to install games
- Directory to install games
+ 要安装游戏的目录Browse
- Browse
+ 浏览Error
- Error
+ 错误The value for location to install games is not valid.
- The value for location to install games is not valid.
+ 游戏安装位置无效。
@@ -83,72 +83,72 @@
Create Shortcut
- Create Shortcut
+ 创建快捷方式Open Game Folder
- Open Game Folder
+ 打开游戏文件夹Cheats / Patches
- Zuòbì / Bǔdīng
+ 作弊码 / 补丁SFO Viewer
- SFO Viewer
+ SFO 查看器Trophy Viewer
- Trophy Viewer
+ Trophy 查看器Copy info
- Copy info
+ 复制信息Copy Name
- Copy Name
+ 复制名称Copy Serial
- Copy Serial
+ 复制序列号Copy All
- Copy All
+ 复制全部Shortcut creation
- Shortcut creation
+ 创建快捷方式Shortcut created successfully!\n %1
- Shortcut created successfully!\n %1
+ 创建快捷方式成功!\n %1Error
- Error
+ 错误Error creating shortcut!\n %1
- Error creating shortcut!\n %1
+ 创建快捷方式出错!\n %1Install PKG
- Install PKG
+ 安装 PKG
@@ -156,162 +156,162 @@
Open/Add Elf Folder
- Open/Add Elf Folder
+ 打开/添加Elf文件夹Install Packages (PKG)
- Install Packages (PKG)
+ 安装 Packages (PKG)Boot Game
- Boot Game
+ 启动游戏About shadPS4
- About shadPS4
+ 关于 shadPS4Configure...
- Configure...
+ 设置...Install application from a .pkg file
- Install application from a .pkg file
+ 从 .pkg 文件安装应用程序Recent Games
- Recent Games
+ 最近启动的游戏Exit
- Exit
+ 退出Exit shadPS4
- Exit shadPS4
+ 退出 shadPS4Exit the application.
- Exit the application.
+ 退出应用程序.Show Game List
- Show Game List
+ 显示游戏列表Game List Refresh
- Game List Refresh
+ 刷新游戏列表Tiny
- Tiny
+ 微小Small
- Small
+ 小Medium
- Medium
+ 中等Large
- Large
+ 巨大List View
- List View
+ 列表视图Grid View
- Grid View
+ 表格视图Elf Viewer
- Elf Viewer
+ Elf 查看器Game Install Directory
- Game Install Directory
+ 游戏安装目录Download Cheats/Patches
- Xiàzài Zuòbì / Bǔdīng
+ 下载作弊码/补丁Dump Game List
- Dump Game List
+ 转储游戏列表PKG Viewer
- PKG Viewer
+ PKG 查看器Search...
- Search...
+ 搜索...File
- File
+ 文件View
- View
+ 显示Game List Icons
- Game List Icons
+ 游戏列表图标Game List Mode
- Game List Mode
+ 游戏列表模式Settings
- Settings
+ 设置Utils
- Utils
+ 工具Themes
- Themes
+ 主题About
- About
+ 关于
@@ -341,7 +341,7 @@
toolBar
- toolBar
+ 工具栏
@@ -349,7 +349,7 @@
Open Folder
- Open Folder
+ 打开文件夹
@@ -357,7 +357,7 @@
Trophy Viewer
- Trophy Viewer
+ Trophy 查看器
@@ -365,87 +365,87 @@
Settings
- Settings
+ 设置General
- General
+ 通用System
- System
+ 系统Console Language
- Console Language
+ 主机语言Emulator Language
- Emulator Language
+ 模拟器语言Emulator
- Emulator
+ 模拟器Enable Fullscreen
- Enable Fullscreen
+ 启用全屏Show Splash
- Show Splash
+ 显示SplashIs PS4 Pro
- Is PS4 Pro
+ 是否是 PS4 ProUsername
- Username
+ 用户名Logger
- Logger
+ 日志Log Type
- Log Type
+ 日志类型Log Filter
- Log Filter
+ 日志过滤Graphics
- Graphics
+ 图像Graphics Device
- Graphics Device
+ 图像设备Width
- Width
+ 宽带Height
- Height
+ 高度
@@ -455,47 +455,47 @@
Advanced
- Advanced
+ 高级Enable Shaders Dumping
- Enable Shaders Dumping
+ 启用着色器转储Enable NULL GPU
- Enable NULL GPU
+ 启用 NULL GPUEnable PM4 Dumping
- Enable PM4 Dumping
+ 启用 PM4 转储Debug
- Debug
+ 调试Enable Debug Dumping
- Enable Debug Dumping
+ 启用调试转储Enable Vulkan Validation Layers
- Enable Vulkan Validation Layers
+ 启用 Vulkan 验证层Enable Vulkan Synchronization Validation
- Enable Vulkan Synchronization Validation
+ 启用 Vulkan 同步验证Enable RenderDoc Debugging
- Enable RenderDoc Debugging
+ 启用 RenderDoc 调试