Skip to content

Commit 9198754

Browse files
committed
fixing offsets
1 parent e714465 commit 9198754

6 files changed

Lines changed: 8 additions & 39 deletions

File tree

config/splat.pspeu.w0_000.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ segments:
4444
subalign: 8
4545
subsegments:
4646
- [0x80, c, w_000]
47-
- [0x700, .data, w_000]
47+
- [0x6CC, .data, w_000]
4848
- {start: 0x1980, type: bss, vram: 0x92F4780}
4949
- [0x1980]

config/symexport.pspeu.w0_000.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
EXTERN(_binary_assets_weapon_mwo_header_bin_start)
1+
EXTERN(_binary_assets_weapon_w0_000_mwo_header_bin_start)
22
EXTERN(w0_000_Load)

player.ld

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/weapon/w_000.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
#include "weapon_private.h"
88
#include <sfx.h>
99

10-
#ifdef WEAPON1
11-
// probably a file split
10+
#ifdef VERSION_PSP
11+
// when HAND_ID is zero, MetroWerks puts this in BSS. this may
12+
// have been in a separate file because it is located at the
13+
// front of .data (when HAND_ID = 1) on PSP/mwcc, but at the end
14+
// of .data (regardless of value) on PSX/gcc.
1215
static s32 g_HandId = HAND_ID;
1316
#endif
1417

@@ -197,7 +200,7 @@ static u16* g_WeaponCluts[] = {
197200
(u16*)g_Clut1, (u16*)g_Clut0, (u16*)g_Clut2, (u16*)g_Clut3, (u16*)g_Clut4,
198201
};
199202

200-
#ifdef WEAPON0
203+
#ifndef VERSION_PSP
201204
static s32 g_HandId = HAND_ID;
202205
#endif
203206

weapon0.ld

Lines changed: 0 additions & 11 deletions
This file was deleted.

weapon1.ld

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)