Pretengo
Basic Account Server Emulator Returning Static Response just enough for Cemu to Play MHF-Z
Pretengo config.json
Pretengo configuration config.json
:
{
"ListenAddress": "127.0.0.1",
"ListenPort": "443",
"access_token": "1234567890abcdef1234567890abcdef",
"refresh_token": "fedcba0987654321fedcba0987654321fedcba12",
"expires_in": "3600",
"StaticKey": "no",
"SignKey": "U0VSVklDRVNFUlZJQ0VTRVJWSUNFU0VSVklDRVNFUlZJQ0VTRVJWSUNFU0VSVklDRVNFUlZJQ0VTRVI="
}
When starting MHF on Cemu, Pretengo will listen and send the static response based on config above and using the SessionKey as SignIn Method for Erupe server.
if the StaticKey is set to "no", the SignKey will be generated automatically from userID and password based on Cemu online files.
How to Use
- first you need to redirect nintendo.account.net into your local IP wich pretengo listen to, easiest way is to use host file in %windir%/System32/Drivers/etc/hosts and add the following e.g. :
127.0.0.1 account.nintendo.net
- second start the pretengo using go command
go run pretengo.go
- run Cemu and see if pretengo get a post request and can answer with static responde in config.json file
Note