mirror of
https://github.com/zeldaret/ph
synced 2026-05-23 06:54:18 -04:00
Run pre-commit formatting
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ Now you can run `ninja` to build a ROM for the chosen version.
|
||||
First, [extract the ARM7 BIOS from your DS device](https://wiki.ds-homebrew.com/ds-index/ds-bios-firmware-dump). Put the
|
||||
ARM7 BIOS in the root directory of this repository, and verify that your dumped BIOS matches the one below:
|
||||
|
||||
| File name | SHA1 |
|
||||
| File name | SHA1 |
|
||||
| --------------- | ------------------------------------------ |
|
||||
| `arm7_bios.bin` | `6ee830c7f552c5bf194c20a2c13d5bb44bdb5c03` |
|
||||
|
||||
|
||||
+2
-2
@@ -253,12 +253,12 @@ translations. Feel free to contribute to this list!
|
||||
`EVIC` | Event Icon | Exclamation point icon on the map screen
|
||||
`EQAR` | Earthquake Area
|
||||
`FMSG` | Freestanding? Message | Freestanding textbox
|
||||
`ITGE` | Item Generator | Spawns an item, such as a small key
|
||||
`ITGE` | Item Generator | Spawns an item, such as a small key
|
||||
`NCMA` | NPC Conversation Message?
|
||||
`NCM2` | NPC Conversation Message 2?
|
||||
`NMSG` | Navi Message | Starts dialogue with the fairy
|
||||
`RMTG` | Room Tag | Midpoint of small rooms, such as houses
|
||||
`SWDS` |
|
||||
`SWDS` |
|
||||
`SWOB` | Switch Object | Causes an event when one or more switches are active
|
||||
`VOCA` | Voice Area | Listens for microphone volume while Link is in the area
|
||||
`WNAR` | Wind Area | Creates gusts of wind that push Link
|
||||
|
||||
@@ -32,7 +32,7 @@ files to the project.
|
||||
Each `delinks.txt` file belongs to one module, such as the ARM9 program, the ITCM, the DTCM or an overlay.
|
||||
|
||||
> [!NOTE]
|
||||
> For interested readers:
|
||||
> For interested readers:
|
||||
> All modules are loaded into RAM. This is different from the DS predecessor, the Game Boy Advance (GBA), in which all code was
|
||||
> simply on the ROM at all times. As a result, the GBA's RAM only consisted of variable data.
|
||||
>
|
||||
|
||||
+2
-2
@@ -24,9 +24,9 @@ We use the object diffing tool [`objdiff`](https://github.com/encounter/objdiff)
|
||||
1. [Download the latest release.](https://github.com/encounter/objdiff/releases/latest)
|
||||
1. Run `configure.py <eur|usa>` and `ninja` to generate `objdiff.json` in the repository root.
|
||||
1. In `objdiff`, set the project directory to the repository root.
|
||||
1. Select your source file in the left sidebar:
|
||||
1. Select your source file in the left sidebar:
|
||||

|
||||
5. See the list of functions and data to decompile:
|
||||
5. See the list of functions and data to decompile:
|
||||

|
||||
|
||||
> [!NOTE]
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ This repository does not include any of the game's assets, and you will need an
|
||||
|
||||
Put the base ROM(s) in this directory. Please verify that your dumped ROM matches one of the versions below:
|
||||
|
||||
| Version | File name | SHA1 |
|
||||
| Version | File name | SHA1 |
|
||||
| ------- | -------------------- | ------------------------------------------ |
|
||||
| EUR | `baserom_ph_eur.nds` | `02be55db55cf254bd064d2b3eb368b92a5b4156d` |
|
||||
| USA | `baserom_ph_usa.nds` | `4c8f52dd719918bbcd46e73a8bae8628139c1b85` |
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
|
||||
class SysObject {
|
||||
public:
|
||||
static void* operator new(unsigned long length, u32 *id, u32 idLength);
|
||||
static void *operator new(unsigned long length, u32 *id, u32 idLength);
|
||||
static void operator delete(void *ptr);
|
||||
};
|
||||
|
||||
+2
-2
@@ -158,7 +158,7 @@ def main():
|
||||
command="./dsd rom build --config $in --rom $out $arm7_bios_flag"
|
||||
)
|
||||
n.newline()
|
||||
|
||||
|
||||
n.rule(
|
||||
name="objdiff",
|
||||
command=f"./dsd objdiff --config-path $config_path {DSD_OBJDIFF_ARGS}"
|
||||
@@ -258,7 +258,7 @@ def add_mwcc_builds(n: ninja_syntax.Writer, game_version: str, game_build: Path)
|
||||
}
|
||||
)
|
||||
n.newline()
|
||||
|
||||
|
||||
extension = source_file.suffix
|
||||
ctx_file = str(game_build / source_file.with_suffix(f".ctx{extension}"))
|
||||
n.build(
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ try:
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(e.stdout.decode())
|
||||
exit(1)
|
||||
|
||||
|
||||
output = output.decode()
|
||||
|
||||
# print(output)
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
requests
|
||||
pyperclip
|
||||
requests
|
||||
|
||||
Reference in New Issue
Block a user