[saco] Implement/match RpAtomicDestroy(...)

This commit is contained in:
RD42 2024-07-30 23:07:43 +08:00
parent 87eda98351
commit 579045472a
2 changed files with 12 additions and 0 deletions

View File

@ -72,6 +72,16 @@ void RwFrameDestroy(RwFrame *frame)
_asm pop edx
}
void RpAtomicDestroy(RpAtomic *atomic)
{
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x749E10 : 0x749DC0;
_asm push atomic
_asm mov edx, dwFunc
_asm call edx
_asm pop edx
}
RwCamera* RwCameraCreate()
{
RwCamera* pCamera = NULL;

View File

@ -7,12 +7,14 @@ struct RwFrame { char _gap0; };
struct RwCamera { char _gap0; };
struct RpLight { char _gap0; };
struct RwRGBAReal { float r, g, b, a; };
struct RpAtomic { char _gap0; };
RwRaster* RwRasterCreate(int width, int height, int depth, int flags);
RwTexture* RwTextureCreate(RwRaster *raster);
void RwTextureDestroy(RwTexture *texture);
RwFrame* RwFrameCreate();
void RwFrameDestroy(RwFrame *frame);
void RpAtomicDestroy(RpAtomic *atomic);
RwCamera* RwCameraCreate();
void RpWorldAddCamera(RwCamera *camera);
void RwObjectHasFrameSetFrame(RwCamera *camera, RwFrame *frame);