Does anyone have a php code to take the "main" file from save manager(3DS Homebrew) and read it to where i tells you how many pokemon caught? Iv'e been trying to develop this but cannot. Need some help with opening the file and finding the right offset like an example of code.
Nvm that code has no use. I want to decode the .pkm using php nothing more. I created a site and hoping to upload and decode and add to database for personal use only.
I can see the hex codes from this but can't decode them.
<?php
$handle = @fopen("Emboar.pkm", "r");
if ($handle) {
while (!feof($handle)) {
$hex = bin2hex(fread ($handle , 4 ));
print $hex."\n";
}
fclose($handle);
}
?>