Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
icup321 authored Nov 18, 2024
2 parents 4d9c58b + 5908c9e commit f1e93f9
Show file tree
Hide file tree
Showing 3,139 changed files with 10,788 additions and 5,318 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
21 changes: 20 additions & 1 deletion .github/scripts/validate_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ def is_file_valid(file_path):
if re.match(",\d{8}(\n|\s*(//.*)*)+(?!.)", line):
log_error(file_path, line_number, "Invalid comment syntax at end of patch line.", line, False)
return False
elif cleaned_line.startswith("dpatch"):
match = re.match(r"^dpatch=(\d+),(\d+),(\d+)((?:,[\dA-Fa-f]+)+)", line)
if not match:
log_error(file_path, line_number, "Invalid dpatch format.", line, True)
return False
num_tuples = int(match.group(2)) + int(match.group(3))
dat_str = match.group(4).strip(',').split(',')
if len(dat_str) != num_tuples * 2:
log_error(file_path, line_number, "Invalid dpatch format.", line, True)
return False
for i in range(0, num_tuples, 2):
# Offsets must be hex
if not re.match(r'^[0-9A-Fa-f]+$', dat_str[i]) or not re.match(r'^[0-9A-Fa-f]+$', dat_str[i+1]):
log_error(file_path, line_number, "Invalid dpatch format.", line, True)
return False
# Offsets must be 4 byte aligned
if int(dat_str[i], 16) % 4 != 0:
log_error(file_path, line_number, "Invalid dpatch offset alignment (must be 4 byte aligned).", line, True)
return False
else:
log_error(file_path, line_number, "Unknown line format.", line, True)
return False
Expand Down Expand Up @@ -73,4 +92,4 @@ def main():
sys.exit(0)

if __name__ == '__main__':
main()
main()
2 changes: 1 addition & 1 deletion patches/FF3DB201.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
//[Widescreen 16:9]
//gsaspectratio=16:9
//comment=Widescreen hack by El_Patas (NTSC-J by Arapapa)
//author=El_Patas (NTSC-J by Arapapa)
//
////Widescreen hack 16:9
//
Expand Down
2 changes: 1 addition & 1 deletion patches/PBPX-95201_31603A01.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Kensetsu Juuki Kenka Battle - Buchigire Kongou!! [NTSC-J] [PBPX-95201]

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by El_Patas (NTSC-J by Arapapa)
author=El_Patas (NTSC-J by Arapapa)

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/PBPX-95201_35610B70.pnach
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Widescreen 16:9]
gsaspectratio=16:9
gametitle=Simple 2000 Series Vol. 11 - The Offroad Buggy(Rebuild) (J)(PBPX-95201)(SLPM-62223)
comment=Widescreen Hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/PBPX-95201_AA75FE6A.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Inaka Kurasi - Nan no Shima no Monogatari (Super Best Collection) [NTS

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/PBPX-95201_BD27FC43.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Pai Chenjan [NTSC-J] [PBPX-95201](SLPS-20135)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/PBPX-95201_CC0DF99A.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Seigi-no Migata (J) (PBPX_95201)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by Arapapa
author=Arapapa

// 16:9 (search 00000000 00000000 43ad1346 00000000)
patch=1,EE,0020a7a4,word,3c013f40 // 00000000 hor fov
Expand Down
2 changes: 1 addition & 1 deletion patches/PBPX-95201_CE3B7939.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Simple 2000 Series Vol. 28 - The Bushido Tsujigiri Ichidai (PBPX-95201

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/PBPX-95201_D79F697A.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Capcom vs SNK 2 - Millionaire Fighting (J)(SLPM-65047)(PBPX-95201)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by nemesis2000 (NTSC-J by Arapapa)
author=nemesis2000 (NTSC-J by Arapapa)

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/PBPX-95201_EE68CA13.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Maximo - Ghosts to Glory (J) (PBPX_95201)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by No.47 (pnach NTSC-J by Arapapa)
author=No.47 (pnach NTSC-J by Arapapa)

//16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/PBPX-95201_F66528FF.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Tetsu 1 - Densha de Battle! [NTSC-J] [PBPX-95201](SLPS-20100)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/PBPX-95201_F7D86DD0.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=3D Kakutou Tsukuru 2 [NTSC-J] (PBPX-95201)(SLPS-20214)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by Little Giant
author=Little Giant

patch=1,EE,002b59c4,word,3c013f40 //00000000
patch=1,EE,002b59c8,word,44810000 //00000000
Expand Down
4 changes: 2 additions & 2 deletions patches/PBPX-95503_8AA991B0.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ patch=1,EE,102112F0,extended,0000005A
patch=1,EE,20211014,extended,00000000

[Metric units]
description=Changes MPH to KMH, ft.lb to NM
description=Changes MPH to KMH, ft.lb to kgf.m
author=Silent

// Speed and distance units
Expand All @@ -43,4 +43,4 @@ patch=1,EE,202F59D8,extended,0
// 0 - kgf.m
// 1 - ft.lb
// 2 - NM
patch=1,EE,202F59E0,extended,2
patch=1,EE,202F59E0,extended,0
2 changes: 1 addition & 1 deletion patches/SCAJ-20016_07E0108A.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Argus no Senshi [NTSC-J] [SCAJ-20016]

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by ElHecht
author=ElHecht

// 16:9
patch=1,EE,00207a5c,word,3c013f40 // 00000000 hor fov
Expand Down
2 changes: 1 addition & 1 deletion patches/SCAJ-30001_A3D63039.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Xenosaga Episode I

[Widescreen 16:9]
gsaspectratio=16:9
comment=NTSC-J Widescreen Hack by synce
author=synce
patch=1,EE,2093c0f0,extended,3f400000
patch=1,EE,2093c6e0,extended,3f400000

Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50002_848A08B4.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Fantavision (E)(SCES-50002)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50034_E6C0751A.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Moto GP (E)(SCES-50034)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50105_29B11E02.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Sky Odyssey (PAL-M5) (SCES-50105)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by ElHecht
author=ElHecht

// 16:9
patch=1,EE,0028ab58,word,3f400000 // 3f800000 hor fov
Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50241_E553C15B.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=The Bouncer (PAL-M6) (SCES-50241)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack (16:9) by ElHecht
author=ElHecht
//
//16:9
patch=1,EE,2037EC3C,extended,3F400000 // 3F800000 hor fov
Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50244_71E38F05.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=This Is Football 2002 (E)(SCES-50244)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50293_C5A2A6E6.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=ATV Offroad: All Terrain Vehicle [PAL-M5] (SCES_502.93)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by El_Patas
author=El_Patas

//Gameplay 16:9
patch=1,EE,0011F2AC,word,3C023CAC //3C023C8E Zoom
Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50354_7EBEEBBD.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Klonoa 2: Lunatea's Veil PAL (SCES-50354)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by ElHecht
author=ElHecht

//50hz mode
patch=1,EE,e0013f80,extended,0018bc94 // check 2018bc94 matches value (3c01)3f80
Expand Down
8 changes: 6 additions & 2 deletions patches/SCES-50361_9C712FF0.pnach
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
gametitle=Jak and Daxter - The Precursor Legacy (PAL-M6) (SCES-50361)
gametitle=Jak and Daxter - The Precursor Legacy (PAL-M6) (SCES-50361) 9C712FF0

[Widescreen 16:9]
gsaspectratio=16:9
author=ElHecht
comment=Widescreen Hack
description=Widescreen fix
// 16:9
patch=1,EE,202af8b0,extended,3f1f3b64 // 3f000000 zoom
patch=1,EE,202af85c,extended,bf1f3b64 // bf000000 hud fix for zoom
Expand All @@ -23,3 +23,7 @@ patch=1,EE,00702998,extended,000000E0
patch=1,EE,20110084,extended,30420000


[NTSC Mode]
author=PeterDelta
description=NTSC mode at start.
patch=1,EE,0079F724,word,001503E4 //0014939C
2 changes: 1 addition & 1 deletion patches/SCES-50408_326339BF.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=PaRappa the Rapper 2 (PAL-M5) (SCES-50408)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by ElHecht
author=ElHecht

// 16:9
patch=1,EE,001666d4,word,3c013f40
Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50409_3242590D.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Moto GP 2 (E)(SCES-50409)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50410_1B9B7563.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Ace Combat: Distant Thunder PAL (SCES_504.10)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen pnach by El_Patas
author=El_Patas

//Widescreen fix
patch=1,EE,004235CC,word,441CF7AE //4440499A
Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50459_AAE9E301.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Dropship - United Peace Force (E)(SCES-50459)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50522_E45821EC.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Disney's Peter Pan - The Legend of Never Land (E)(SCES-50522)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by Arapapa
author=Arapapa

//Widescreen hack 16:9

Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50595_77C7F85A.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Disney's Pixar - Monsters, Inc. - Scare Island (E)(SCES-50595)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by ElHecht
author=ElHecht

// 16:9
patch=1,EE,0011a3f0,word,0808ad25 // c6010068 jump to code-inject 0022b494
Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50600_F5B07CC0.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Monsters Inc - Scare Island (PAL-G) (SCES-50600)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by ElHecht
author=ElHecht

// 16:9
patch=1,EE,0011a3f0,word,0808ad25 // c6010068 jump to code-inject 0022b494
Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50611_A595F752.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Space Channel 5 (PAL-M5) (SCES-50611)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by ElHecht
author=ElHecht

// 16:9
patch=1,EE,0011eecc,word,3c013f40 // 3c013f80 hor fov 50Hz
Expand Down
2 changes: 1 addition & 1 deletion patches/SCES-50612_EF710B2B.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Space Channel 5 - Part 2 (PAL-M5) (SCES-50612)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by ElHecht
author=ElHecht

// 16:9
patch=1,EE,001182f8,word,3c013f40 // 3c013f80 hor fov 50Hz
Expand Down
4 changes: 2 additions & 2 deletions patches/SCES-50759_B65AE44A.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gametitle=Virtua Fighter 4 (PAL-M5) (SCES-50759)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by ElHecht
author=ElHecht

// 16:9
patch=1,EE,00271614,word,3c194455 // 3c194420 hor fov
Expand All @@ -13,7 +13,7 @@ patch=1,EE,0024c344,word,3c014456 // 3c014420 renderfix

[No-Interlacing]
gsinterlacemode=1
comment=Disable interlacing hack by ElHecht
author=ElHecht

// disable interlacing
patch=1,EE,00269e68,word,a0800004 // a0820004
Expand Down
Loading

0 comments on commit f1e93f9

Please sign in to comment.