WfcReplay icon indicating copy to clipboard operation
WfcReplay copied to clipboard

Add a --domain function for the AR code.

Open ghost opened this issue 10 years ago • 2 comments

Like the wiimmfi patcher, which you can use to patch a game with a certain domain (Like I made BeanJrFi do), maybe add this type of thing to the patcher so instead of patching just http, patch http and the domain.

ghost avatar Jul 21 '15 21:07 ghost

Adding a domain to the code would make it considerably longer, as now the entire domain would need to be included in the code. And what about games that connect to multiple different servers, or to different subfolders of a server? If the size of the code grows too large, the chance of finding a code cave that's big enough goes down. This is an issue especially for newer games which call SWI functions from the ARM9 binary 0x800 bytes junk area, like Pokémon Black 2/White 2.

Can you give an example of how this would work? How would the URL be changed?

Prof9 avatar Jul 22 '15 01:07 Prof9

Well, we could do what most other patchers do: Check for all references of nintendowifi.net, and change them to the domain... If the domain is smaller than nintendowifi.net, pad it

ghost avatar Sep 16 '15 07:09 ghost