Merge pull request #234 from Rainchus/kerent

Kerent
This commit is contained in:
Rainchus 2024-03-31 14:05:58 -05:00 committed by GitHub
commit fc06ca8f49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 31 deletions

View file

@ -1,4 +1,4 @@
Some Game Mario Party 4
[![Build Status]][actions] ![Progress] ![DOL Progress] ![RELs Progress] [![Discord Badge]][discord] [![Build Status]][actions] ![Progress] ![DOL Progress] ![RELs Progress] [![Discord Badge]][discord]
============= =============
@ -29,9 +29,9 @@ URL encoded then appended to: https://img.shields.io/endpoint?label=RELs&url=
Replace with your Discord server's ID and invite URL. Replace with your Discord server's ID and invite URL.
--> -->
[Discord Badge]: https://img.shields.io/discord/727908905392275526?color=%237289DA&logo=discord&logoColor=%23FFFFFF [Discord Badge]: https://img.shields.io/discord/727908905392275526?color=%237289DA&logo=discord&logoColor=%23FFFFFF
[discord]: https://discord.gg/hKx3FJJgrV [discord]: https://discord.gg/T4faGveujK
A work-in-progress decompilation of Some Game. A work-in-progress decompilation of Mario Party 4.
This repository does **not** contain any game assets or assembly whatsoever. An existing copy of the game is required. This repository does **not** contain any game assets or assembly whatsoever. An existing copy of the game is required.
@ -80,9 +80,9 @@ Building
- Clone the repository: - Clone the repository:
``` ```
git clone https://github.com/my/repo.git git clone https://github.com/Rainchus/mp4-dtk.git
``` ```
- Using [Dolphin Emulator](https://dolphin-emu.org/), extract your game to `orig/GAMEID`. - Using [Dolphin Emulator](https://dolphin-emu.org/), extract your game to `orig/GMPE01`.
![](assets/dolphin-extract.png) ![](assets/dolphin-extract.png)
- To save space, the only necessary files are the following. Any others can be deleted. - To save space, the only necessary files are the following. Any others can be deleted.
- `sys/main.dol` - `sys/main.dol`
@ -91,7 +91,7 @@ Building
``` ```
python configure.py python configure.py
``` ```
To use a version other than `GAMEID` (USA), specify it with `--version`. To use a version other than `GMPE01` (USA), specify it with `--version`.
- Build: - Build:
``` ```
ninja ninja

View file

@ -1,25 +0,0 @@
import os
import sys
if len(sys.argv) != 2:
print("Usage: python script.py <file_path>")
sys.exit(1)
file_path = sys.argv[1]
lines_starting_with_fn = ""
with open(file_path, 'r') as file:
for line in file:
# Remove leading and trailing whitespaces
line = line.strip()
if line.startswith(".fn fn_"):
# Remove ".fn " from the beginning of the line
line = line[len(".fn "):]
# Remove ", global" from the end of the line
line = line.rstrip(', global')
lines_starting_with_fn += "// " + line + '\n\n'
print(lines_starting_with_fn)