Open ihaveamac opened 2 years ago
I managed to run this on Windows 11 for ARM64 natively after the following workarounds:
set "FUSE_LIBRARY_PATH=C: \Program Files (x86)\WinFsp\bin\winfsp-a64.dll"
After this I was able to mount an encrypted cia and verify that it decrypted something properly. (I just checked if the "NCCH" string at 0x100 of an ncch file was valid, I didn't do any further checks.)
pycryptodome finally supports ARM64: https://github.com/Legrandin/pycryptodome/releases/tag/v3.18.0
fusepy will need some changes to use winfsp-a64.dll when appropriate: https://github.com/ihaveamac/ninfs/blob/1aee094a3e7c6e464c0533cd5b749081c1a30c0a/ninfs/fuse.py#L117-L118
platform.machine() returns ARM64 when running a native ARM build and AMD64 otherwise (even for the 32-bit x86 build on my 64-bit VM).
WinFSP should already support x86 and x86-64 programs on ARM64 but I haven't tested that. I should do that and also make a proper ARM64 release. That depends on cx-Freeze and probably NSIS supporting it too.
Python 3.11 has had an experimental ARM64 build since 3.11.0a5.