JPAResourceManager OK

This commit is contained in:
robojumper
2025-04-27 07:59:03 +02:00
parent 6468fc663c
commit 73ebfb9fae
6 changed files with 10 additions and 124 deletions
@@ -7,7 +7,6 @@
#include "JSystem/JParticle/JPATexture.h"
class JPAResource;
struct ResTIMG;
/**
* @ingroup jsystem-jparticle
@@ -18,7 +17,7 @@ public:
/* 80273E10 */ JPAResourceManager(void const*, EGG::Heap*);
/* 80273E68 */ JPAResource* getResource(u16) const;
/* 80273EA8 */ bool checkUserIndexDuplication(u16) const;
/* 80273EEC */ const ResTIMG* swapTexture(ResTIMG const*, char const*);
/* 80273EEC */ const EGG::ResTIMG* swapTexture(EGG::ResTIMG const*, char const*);
/* 80273F8C */ void registRes(JPAResource*);
/* 80273FAC */ void registTex(JPATexture*);
/* 80273FCC */ u32 getResUserWork(u16) const;
+4 -4
View File
@@ -3,7 +3,7 @@
#include "common.h"
#include "rvl/GX.h"
#include "JSystem/JUtility/JUTTexture.h"
#include "egg/gfx/eggTexture.h"
/**
* @ingroup jsystem-jparticle
@@ -13,7 +13,7 @@ struct JPATextureData {
// Probably magic / size / flags up top here, but they're unused.
/* 0x00 */ char field_0x00[0x0C];
/* 0x0C */ char mName[0x14];
/* 0x20 */ ResTIMG mResTIMG;
/* 0x20 */ EGG::ResTIMG mResTIMG;
};
/**
@@ -27,11 +27,11 @@ public:
void load(GXTexMapID texMapID) { mTexture.load(texMapID); }
JUTTexture* getJUTTexture() { return &mTexture; }
EGG::Texture* getJUTTexture() { return &mTexture; }
const char* getName() const { return mpData->mName; }
public:
JUTTexture mTexture;
EGG::Texture mTexture;
const JPATextureData* mpData;
};