Skip to content

Instantly share code, notes, and snippets.

@bmaupin
Last active April 11, 2024 01:38
Show Gist options
  • Save bmaupin/93d31e1b2d738ae656b9d3617e19622b to your computer and use it in GitHub Desktop.
Save bmaupin/93d31e1b2d738ae656b9d3617e19622b to your computer and use it in GitHub Desktop.
Run New Super Ultimate Injector with Wine

Installation

Prerequisites

Install NSUI

  1. Download NSUI from https://gbatemp.net/threads/discussion-new-super-ultimate-injector-nsui.500376/

  2. Create a new Wine prefix and install .NET 4.6

    export WINEARCH=win32
    export WINEPREFIX=~/.local/share/wineprefixes/nsui
    winetricks -q dotnet46
    

    ⓘ If dotnet46 installation fails, try dotnet48 instead:

    winetricks -q dotnet48
    

    ⚠️ .NET 4.6 or greater is required for the image download feature to work

  3. Apply a registry fix to force .NET to use TLS 1.2

    echo 'Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]
    "SchUseStrongCrypto"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
    "SchUseStrongCrypto"=dword:00000001' > sslfix.reg
    wine regedit sslfix.reg
    rm sslfix.reg
    
  4. Extract NSUI to Wine prefix

    unzip Release_beta27.zip
    mv Release $WINEPREFIX/drive_c/NSUI
    
  5. Change the language, e.g.

    sed -i.bak 's/language=.*/language=en/' $WINEPREFIX/drive_c/NSUI/config.ini
    

    Available languages are: de, en, es, ru

Create desktop entry

  1. (Optional) Extract application icon

    cd ~/.local/share/wineprefixes/nsui/drive_c/NSUI/
    7z x New\ Super\ Ultimate\ Injector\ for\ 3DS.exe .rsrc/ICON -aoa
    cd -
    
  2. Create the desktop entry

    echo "[Desktop Entry]
    Type=Application
    Name=New Super Ultimate Injector for 3DS
    Exec=env WINEPREFIX=/home/$USER/.local/share/wineprefixes/nsui wine \"/home/$USER/.local/share/wineprefixes/nsui/drive_c/NSUI/New Super Ultimate Injector for 3DS.exe\"
    Icon=/home/$USER/.local/share/wineprefixes/nsui/drive_c/NSUI/.rsrc/ICON/5.ico
    Terminal=false" > ~/.local/share/applications/nsui.desktop
    

Open NSUI

Open with the desktop entry, or:

export WINEPREFIX=~/.local/share/wineprefixes/nsui; wine $WINEPREFIX/drive_c/NSUI/New\ Super\ Ultimate\ Injector\ for\ 3DS.exe

Troubleshooting

The request was aborted: Could not create SSL/TLS secure channel.

Make sure you're using .NET 4.6 or greater. See here for more information:

Could not find Wine Gecko. HTML rendering will be disabled.

Install Wine Gecko (this should not be needed on newer versions of Wine (6+?) as Wine will automatically prompt you to install Gecko as needed)

wget http://dl.winehq.org/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86.msi
wget http://dl.winehq.org/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86_64.msi
WINEPREFIX=~/.local/share/wineprefixes/nsui wine msiexec /i wine-gecko-2.47.1-x86.msi
WINEPREFIX=~/.local/share/wineprefixes/nsui wine msiexec /i wine-gecko-2.47.1-x86_64.msi
@Bisc0tt1
Copy link

Bisc0tt1 commented Mar 9, 2024

Followed these instructions to a tee and the program is in a mostly functional state, except for creating the virtual console banner, which does not display anything in the preview despite entering text. I thought that it might've been a font rendering issue, but even after installing allfonts into the prefix the issue remains. It probably goes beyond a simple display issue, even the exported .cia has an empty banner.
Using wine 9.3 and installed dotnet48

@rileyJones
Copy link

This fixes the empty banner:

winetricks -q gdiplus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment