mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-07-01 15:00:46 -07:00
Add Cheat Manager (#2964)
* add cheatmanager * use modloader to load cheats for manager * addressed nits
This commit is contained in:
@ -1553,6 +1553,20 @@ namespace Ryujinx.Ui
|
||||
ToggleExtraWidgets(false);
|
||||
}
|
||||
|
||||
private void ManageCheats_Pressed(object sender, EventArgs args)
|
||||
{
|
||||
var window = new CheatWindow(_virtualFileSystem, _emulationContext.Application.TitleId, _emulationContext.Application.TitleName);
|
||||
|
||||
window.Destroyed += CheatWindow_Destroyed;
|
||||
window.Show();
|
||||
}
|
||||
|
||||
private void CheatWindow_Destroyed(object sender, EventArgs e)
|
||||
{
|
||||
_emulationContext.EnableCheats();
|
||||
(sender as CheatWindow).Destroyed -= CheatWindow_Destroyed;
|
||||
}
|
||||
|
||||
private void ManageUserProfiles_Pressed(object sender, EventArgs args)
|
||||
{
|
||||
UserProfilesManagerWindow userProfilesManagerWindow = new UserProfilesManagerWindow(_accountManager, _contentManager, _virtualFileSystem);
|
||||
|
Reference in New Issue
Block a user