Adjust some locales and add shortcuts

This commit is contained in:
_Neo_
2026-03-23 18:54:16 +02:00
parent 19b762e7b0
commit a8cb33a7ed
4 changed files with 90 additions and 88 deletions

View File

@@ -553,51 +553,51 @@
{ {
"ID": "MenuBarOptionsStopEmulation", "ID": "MenuBarOptionsStopEmulation",
"Translations": { "Translations": {
"ar_SA": "إيقاف المحاكاة", "ar_SA": "إيقاف",
"de_DE": "Emulation beenden", "de_DE": "Beenden",
"el_GR": "Διακοπή Εξομοίωσης", "el_GR": "Διακοπή",
"en_US": "Stop Emulation", "en_US": "Stop",
"es_ES": "Detener Emulación", "es_ES": "Detener",
"fr_FR": "Arrêter l'Émulation", "fr_FR": "Arrêter",
"he_IL": "עצור אמולציה", "he_IL": "עצור",
"it_IT": "Arresta l'emulazione", "it_IT": "Arresta",
"ja_JP": "エミュレーションを中止", "ja_JP": "中止",
"ko_KR": "에뮬레이션 중지", "ko_KR": "중지",
"no_NO": "Stopp Emulering", "no_NO": "Stopp",
"pl_PL": "Zatrzymaj emulację", "pl_PL": "Zatrzymaj",
"pt_BR": "Parar a Emulação", "pt_BR": "Parar",
"ru_RU": "Остановить", "ru_RU": "Остановить",
"sv_SE": "Stoppa emulering", "sv_SE": "Stoppa",
"th_TH": "หยุดการจำลอง", "th_TH": "หยุด",
"tr_TR": "Emülasyonu Durdur", "tr_TR": "Durdur",
"uk_UA": "Зупинити емуляцію", "uk_UA": "Зупинити",
"zh_CN": "停止模拟", "zh_CN": "停止",
"zh_TW": "停止模擬" "zh_TW": "停止"
} }
}, },
{ {
"ID": "MenuBarOptionsRestartEmulation", "ID": "MenuBarOptionsRestartEmulation",
"Translations": { "Translations": {
"ar_SA": "", "ar_SA": "إعادة تشغيل",
"de_DE": "", "de_DE": "Neu starten",
"el_GR": "", "el_GR": "Επανεκκίνηση",
"en_US": "Restart Emulation", "en_US": "Restart",
"es_ES": "", "es_ES": "Reiniciar",
"fr_FR": "", "fr_FR": "Redémarrer",
"he_IL": "", "he_IL": "הפעל מחדש",
"it_IT": "", "it_IT": "Riavvia",
"ja_JP": "", "ja_JP": "再起動",
"ko_KR": "", "ko_KR": "재시작",
"no_NO": "", "no_NO": "Start på nytt",
"pl_PL": "", "pl_PL": "Uruchom ponownie",
"pt_BR": "", "pt_BR": "Reiniciar",
"ru_RU": "", "ru_RU": "Перезапустить",
"sv_SE": "Starta om emulering", "sv_SE": "Starta om",
"th_TH": "", "th_TH": "เริ่มใหม่",
"tr_TR": "", "tr_TR": "Yeniden başlat",
"uk_UA": "", "uk_UA": "Перезапустити",
"zh_CN": "", "zh_CN": "重新启动",
"zh_TW": "" "zh_TW": "重新啟動"
} }
}, },
{ {
@@ -903,24 +903,24 @@
{ {
"ID": "MenuBarActionsTools", "ID": "MenuBarActionsTools",
"Translations": { "Translations": {
"ar_SA": "", "ar_SA": "أدوات",
"de_DE": "", "de_DE": "Werkzeuge",
"el_GR": "", "el_GR": "Εργαλεία",
"en_US": "Tools", "en_US": "Tools",
"es_ES": "Herramientas", "es_ES": "Herramientas",
"fr_FR": "Outils", "fr_FR": "Outils",
"he_IL": "", "he_IL": "כלים",
"it_IT": "Strumenti", "it_IT": "Strumenti",
"ja_JP": "", "ja_JP": "ツール",
"ko_KR": "도구", "ko_KR": "도구",
"no_NO": "", "no_NO": "Verktøy",
"pl_PL": "", "pl_PL": "Narzędzia",
"pt_BR": "Ferramentas", "pt_BR": "Ferramentas",
"ru_RU": "Инструменты", "ru_RU": "Инструменты",
"sv_SE": "Verktyg", "sv_SE": "Verktyg",
"th_TH": "", "th_TH": "เครื่องมือ",
"tr_TR": "", "tr_TR": "Araçlar",
"uk_UA": "", "uk_UA": "Інструменти",
"zh_CN": "工具", "zh_CN": "工具",
"zh_TW": "工具" "zh_TW": "工具"
} }
@@ -3353,26 +3353,26 @@
{ {
"ID": "SettingsTabGeneralFocusLossTypePauseEmulation", "ID": "SettingsTabGeneralFocusLossTypePauseEmulation",
"Translations": { "Translations": {
"ar_SA": "إيقاف التشغيل مؤقتًا", "ar_SA": "إيقاف مؤقت",
"de_DE": "Emulation pausieren", "de_DE": null,
"el_GR": "Παύση προσομοίωσης", "el_GR": "Παύση",
"en_US": "Pause Emulation", "en_US": "Pause",
"es_ES": "Pausar Emulación", "es_ES": "Pausa",
"fr_FR": "Pauser l'Émulation", "fr_FR": null,
"he_IL": "השהיית האמולציה", "he_IL": "השהיה",
"it_IT": "Pausa emulazione", "it_IT": "Pausa",
"ja_JP": "エミュレーション一時停止", "ja_JP": "一時停止",
"ko_KR": "에뮬레이션 일시중지", "ko_KR": "일시중지",
"no_NO": "Pause Emulatoren", "no_NO": null,
"pl_PL": "Wstrzymaj emulację", "pl_PL": "Pauza",
"pt_BR": "Pausar emulação", "pt_BR": "Pausa",
"ru_RU": "Пауза эмуляции", "ru_RU": "Пауза",
"sv_SE": "Pausa emuleringen", "sv_SE": "Paus",
"th_TH": "พักการจำลอง", "th_TH": "หยุดชั่วคราว",
"tr_TR": "Emülasyonu Duraklat", "tr_TR": "Duraklat",
"uk_UA": "Пауза емуляції", "uk_UA": "Пауза",
"zh_CN": "暂停模拟", "zh_CN": "暂停",
"zh_TW": "暫停模擬" "zh_TW": "暫停"
} }
}, },
{ {
@@ -11808,7 +11808,7 @@
"el_GR": "Απόκρυψη UI", "el_GR": "Απόκρυψη UI",
"en_US": "Hide UI", "en_US": "Hide UI",
"es_ES": "Ocultar Interfaz", "es_ES": "Ocultar Interfaz",
"fr_FR": "Masquer l'Interface Utilisateur", "fr_FR": "Masquer l'Interface",
"he_IL": "הסתר ממשק משתמש ", "he_IL": "הסתר ממשק משתמש ",
"it_IT": "Nascondi l'interfaccia", "it_IT": "Nascondi l'interfaccia",
"ja_JP": "UIを隠す", "ja_JP": "UIを隠す",

View File

@@ -1887,6 +1887,24 @@ namespace Ryujinx.Ava.UI.ViewModels
}); });
} }
public async Task OpenCheatManagerForCurrentApp()
{
if (IsGameRunning)
{
string name = AppHost.Device.Processes.ActiveApplication.ApplicationControlProperties.Title[(int)AppHost.Device.System.State.DesiredTitleLanguage].NameString.ToString();
await StyleableAppWindow.ShowAsync(
new CheatWindow(
Window.VirtualFileSystem,
AppHost.Device.Processes.ActiveApplication.ProgramIdText,
name,
SelectedApplication.Path)
);
AppHost.Device.EnableCheats();
}
}
public async Task OpenAmiiboWindow() public async Task OpenAmiiboWindow()
{ {
if (AppHost.Device.System.SearchingForAmiibo(out int deviceId) && IsGameRunning) if (AppHost.Device.System.SearchingForAmiibo(out int deviceId) && IsGameRunning)

View File

@@ -164,24 +164,6 @@ namespace Ryujinx.Ava.UI.Views.Main
await ViewModel.LoadApplication(appData, ViewModel.IsFullScreen || ViewModel.StartGamesInFullscreen, nacpData); await ViewModel.LoadApplication(appData, ViewModel.IsFullScreen || ViewModel.StartGamesInFullscreen, nacpData);
} }
public async Task OpenCheatManagerForCurrentApp()
{
if (!ViewModel.IsGameRunning)
return;
string name = ViewModel.AppHost.Device.Processes.ActiveApplication.ApplicationControlProperties.Title[(int)ViewModel.AppHost.Device.System.State.DesiredTitleLanguage].NameString.ToString();
await StyleableAppWindow.ShowAsync(
new CheatWindow(
Window.VirtualFileSystem,
ViewModel.AppHost.Device.Processes.ActiveApplication.ProgramIdText,
name,
ViewModel.SelectedApplication.Path)
);
ViewModel.AppHost.Device.EnableCheats();
}
private void ScanAmiiboMenuItem_AttachedToVisualTree(object sender, VisualTreeAttachmentEventArgs e) private void ScanAmiiboMenuItem_AttachedToVisualTree(object sender, VisualTreeAttachmentEventArgs e)
{ {
if (sender is MenuItem) if (sender is MenuItem)

View File

@@ -41,9 +41,11 @@
<KeyBinding Gesture="Escape" Command="{Binding ExitCurrentState}" /> <KeyBinding Gesture="Escape" Command="{Binding ExitCurrentState}" />
<KeyBinding Gesture="Ctrl+A" Command="{Binding OpenAmiiboWindow}" /> <KeyBinding Gesture="Ctrl+A" Command="{Binding OpenAmiiboWindow}" />
<KeyBinding Gesture="Ctrl+B" Command="{Binding OpenBinFile}" /> <KeyBinding Gesture="Ctrl+B" Command="{Binding OpenBinFile}" />
<KeyBinding Gesture="Ctrl+C" Command="{Binding OpenCheatManagerForCurrentApp}" />
<KeyBinding Gesture="Ctrl+R" Command="{Binding RestartEmulation}" /> <KeyBinding Gesture="Ctrl+R" Command="{Binding RestartEmulation}" />
<KeyBinding Gesture="Ctrl+Shift+R" Command="{Binding ReloadRenderDocApi}" /> <KeyBinding Gesture="Ctrl+Shift+R" Command="{Binding ReloadRenderDocApi}" />
<KeyBinding Gesture="Ctrl+Shift+C" Command="{Binding ToggleCapture}" /> <KeyBinding Gesture="Ctrl+Shift+C" Command="{Binding ToggleCapture}" />
<KeyBinding Gesture="Ctrl+M" Command="{Binding SimulateWakeUpMessage}" />
</Window.KeyBindings> </Window.KeyBindings>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RowDefinitions="*"> <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RowDefinitions="*">
<helpers:OffscreenTextBox IsEnabled="False" Opacity="0" Name="HiddenTextBox" IsHitTestVisible="False" IsTabStop="False" /> <helpers:OffscreenTextBox IsEnabled="False" Opacity="0" Name="HiddenTextBox" IsHitTestVisible="False" IsTabStop="False" />