Add Cheat Manager (#2964)

* add cheatmanager

* use modloader to load cheats for manager

* addressed nits
This commit is contained in:
Emmanuel Hansen 2022-01-03 08:39:43 +00:00 committed by GitHub
parent dc8a1d5cba
commit e98abf1820
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 388 additions and 13 deletions

View file

@ -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);