Adds the ability to read and write to amiibo bin files #348

Merged
Jacobwasbeast merged 11 commits from feature/amiibo-bin-reading into master 2024-12-20 04:36:47 +00:00
3 changed files with 6 additions and 6 deletions
Showing only changes of commit a93b42d218 - Show all commits

View File

@ -72,6 +72,7 @@ namespace Ryujinx.Ava.UI.ViewModels
private string _gpuStatusText;
GreemDev commented 2024-12-12 19:19:47 +00:00 (Migrated from github.com)
Review

Why was _showRightmostSeparator readded? I changed the name of this when I moved the status bar stuff around

Why was `_showRightmostSeparator` readded? I changed the name of this when I moved the status bar stuff around
Jacobwasbeast commented 2024-12-12 19:22:35 +00:00 (Migrated from github.com)
Review

whoops my bad it got re-added when I was changing things, removing it now

whoops my bad it got re-added when I was changing things, removing it now
private string _shaderCountText;
private bool _isAmiiboRequested;
private bool _isAmiiboBinRequested;
private bool _showRightmostSeparator;
private bool _isGameRunning;
private bool _isFullScreen;
@ -318,17 +319,16 @@ namespace Ryujinx.Ava.UI.ViewModels
OnPropertyChanged();
}
}
public bool IsBinAmiiboRequested
public bool IsAmiiboBinRequested
{
get => IsAmiiboRequested && AmiiboBinReader.HasKeyRetailBinPath();
get => _isAmiiboBinRequested && _isGameRunning;
set
{
_isAmiiboRequested = value;
_isAmiiboBinRequested = value;
OnPropertyChanged();
}
}
public bool ShowLoadProgress
{
get => _showLoadProgress;

View File

@ -247,7 +247,7 @@
Click="OpenBinFile"
Header="{ext:Locale MenuBarActionsScanAmiiboBin}"
Icon="{ext:Icon mdi-cube-scan}"
IsEnabled="{Binding IsBinAmiiboRequested}" />
IsEnabled="{Binding IsAmiiboBinRequested}" />
<MenuItem
Command="{Binding TakeScreenshot}"
Header="{ext:Locale MenuBarFileToolsTakeScreenshot}"

View File

@ -170,7 +170,7 @@ namespace Ryujinx.Ava.UI.Views.Main
private void ScanBinAmiiboMenuItem_AttachedToVisualTree(object sender, VisualTreeAttachmentEventArgs e)
{
if (sender is MenuItem)
ViewModel.IsBinAmiiboRequested = ViewModel.IsAmiiboRequested && AmiiboBinReader.HasKeyRetailBinPath();
ViewModel.IsAmiiboBinRequested = ViewModel.IsAmiiboRequested && AmiiboBinReader.HasKeyRetailBinPath();
}
private async void InstallFileTypes_Click(object sender, RoutedEventArgs e)