mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-19 01:06:29 +02:00
Add the Cabinet Applet (#340)
This adds the missing Cabinet Applet, which allows for formatting Amiibos and changing their names.
This commit is contained in:
parent
17483aad24
commit
08b7257be5
24 changed files with 335 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
using Humanizer;
|
||||
using LibHac.Tools.Fs;
|
||||
using Ryujinx.Common.Configuration;
|
||||
using Ryujinx.Common.Configuration.Hid;
|
||||
using Ryujinx.Common.Logging;
|
||||
|
@ -485,6 +486,19 @@ namespace Ryujinx.Headless.SDL2
|
|||
return true;
|
||||
}
|
||||
|
||||
public bool DisplayCabinetDialog(out string userText)
|
||||
{
|
||||
// SDL2 doesn't support input dialogs
|
||||
userText = "Ryujinx";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void DisplayCabinetMessageDialog()
|
||||
{
|
||||
SDL_ShowSimpleMessageBox(SDL_MessageBoxFlags.SDL_MESSAGEBOX_INFORMATION, "Cabinet Dialog", "Please scan your Amiibo now.", WindowHandle);
|
||||
}
|
||||
|
||||
public bool DisplayMessageDialog(ControllerAppletUIArgs args)
|
||||
{
|
||||
if (_ignoreControllerApplet) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue