2024-10-20 13:43:19 -05:00
2024-09-21 18:35:21 -07:00
2024-09-02 20:06:04 -04:00
2024-07-16 12:01:40 -07:00
2024-09-25 21:21:29 +02:00
2024-10-19 18:56:42 -07:00
2024-10-20 13:43:19 -05:00
2024-10-18 13:39:15 -07:00
2024-07-12 23:30:24 +02:00
2024-07-30 13:35:45 -07:00
2024-10-20 13:43:19 -05:00
2024-01-28 01:19:39 +01:00

Pokémon Platinum

This is a WIP decompilation of Pokémon Platinum. For instructions on how to set up the repository, please read INSTALL.md.

This repository builds the following ROMs:

For contacts and other pret projects, see pret.github.io. In addition to the pret Discord, also see the VoidMatrix Discord (#decomp).

Debugging with GDB + overlays

  1. Download and build custom GDB debugger from https://github.com/joshua-smith-12/binutils-gdb-nds - this build includes changes to help aid overlay debugging. (Regular gdb-multiarch works as well but will handle overlays poorly)

  2. Create a .vscode/launch.json with the below contents, updating miDebuggerPath:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug in melonDS",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/build/debug.nef",
            "MIMode": "gdb",
            "cwd": "${workspaceFolder}",
            "externalConsole": true,
            "miDebuggerServerAddress": "localhost:3333",
            "miDebuggerPath": "/path/to/custom/build/gdb/gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Set architecture",
                    "text": "set architecture auto"
                },
                {
                    "description": "Enable overlays",
                    "text": "overlay auto"
                }
            ],
            "stopAtConnect": false,
            "stopAtEntry": false
        }
    ]
}
  1. Launch melonDS with GDB stub enabled and launch the pokeplatinum ROM (you may need to fiddle with the config file to make this work, melonDS GDB stub config is off and may not actually enable properly through the UI)

  2. Run debugger through VS Code, it should connect to melonDS automatically.

Description
Decompilation of Pokémon Platinum
Readme 346 MiB
Languages
C 82.9%
Assembly 12.9%
Meson 2%
C++ 1.6%
Python 0.5%