mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 08:12:41 +02:00
portx64: changed pointers stored in u32 to uintptr_t
- adjusted hardcoded mask/hardcoded offsets used in memory operations (modelasm_c.c) - makefile: enabled x64 support and added lib dependency - title: increase alloc size - tex: adjustment to calculations involving GDL sizes
This commit is contained in:
1 parent
8c8109e8cd
commit
4dbbcbeb58
23 files changed
+117
-87
No files matched your search
+1
-1
@@ -250,7 +250,7 @@ extern struct seqchannel g_SeqChannels[3];
|
||||
extern u32 g_AudioXReasonsActive[4];
|
||||
extern s32 g_MusicXReasonMinDurations[4];
|
||||
extern s32 g_MusicXReasonMaxDurations[4];
|
||||
extern u32 *g_LangBanks[69];
|
||||
extern uintptr_t *g_LangBanks[69];
|
||||
extern struct jpncharpixels *g_JpnCharCachePixels;
|
||||
extern struct jpncacheitem *g_JpnCacheCacheItems;
|
||||
extern struct texture *g_Textures;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
#define TITLE_ALLOCSIZE 1024 * 286
|
||||
#define TITLE_ALLOCSIZE 1024 * 332
|
||||
|
||||
extern u32 var800624d4;
|
||||
extern u32 var800624d8;
|
||||
|
||||
@@ -97,7 +97,7 @@ void modelRenderNodeChrGunfire(struct modelrenderdata *renderdata, struct model
|
||||
void modelRender(struct modelrenderdata *renderdata, struct model *model);
|
||||
bool modelTestBboxNodeForHit(struct modelrodata_bbox *bbox, Mtxf *mtx, struct coord *arg2, struct coord *arg3);
|
||||
s32 modelTestForHit(struct model *model, struct coord *arg1, struct coord *arg2, struct modelnode **startnode);
|
||||
void modelPromoteNodeOffsetsToPointers(struct modelnode *node, u32 vma, u32 fileramaddr);
|
||||
void modelPromoteNodeOffsetsToPointers(struct modelnode *node, u32 vma, uintptr_t fileramaddr);
|
||||
void modelPromoteOffsetsToPointers(struct modeldef *modeldef, u32 arg1, uintptr_t arg2);
|
||||
s32 modelCalculateRwDataIndexes(struct modelnode *node);
|
||||
void modelAllocateRwData(struct modeldef *modeldef);
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
#include "types.h"
|
||||
|
||||
void rdpInit(void);
|
||||
void rdpCreateTask(Gfx *gdlstart, Gfx *gdlend, u32 arg2, s32 msg);
|
||||
void rdpCreateTask(Gfx *gdlstart, Gfx *gdlend, u32 arg2, uintptr_t msg);
|
||||
|
||||
#endif
|
||||
+4
-4
@@ -2856,9 +2856,9 @@ struct cover {
|
||||
struct padsfileheader {
|
||||
s32 numpads;
|
||||
s32 numcovers;
|
||||
s32 waypointsoffset;
|
||||
s32 waygroupsoffset;
|
||||
s32 coversoffset;
|
||||
uintptr_t waypointsoffset;
|
||||
uintptr_t waygroupsoffset;
|
||||
uintptr_t coversoffset;
|
||||
u16 padoffsets[1];
|
||||
};
|
||||
|
||||
@@ -5168,7 +5168,7 @@ struct shieldhit {
|
||||
};
|
||||
|
||||
struct bgroom {
|
||||
u32 unk00;
|
||||
uintptr_t unk00;
|
||||
struct coord pos;
|
||||
u8 br_light_min;
|
||||
u8 br_light_max;
|
||||
|
||||
Reference in new issue
Block a user