mirror of
https://github.com/zeldaret/tp
synced 2026-07-09 23:01:41 -04:00
almost all of dolphin matched (#2036)
* TRK full match * remove trk asm * ar done * cleanup some dolphin headers * more dolphin cleanup * cleanup / GD fully matched * almost all of GX fully matched * GX / Mtx full matched * most of OS done * pad done * most of VI * remove asm * forgot couple vec funcs * couple JUtility matches
This commit is contained in:
@@ -1,39 +1,16 @@
|
||||
//
|
||||
// Generated By: dol2asm
|
||||
// Translation Unit: JUTResource
|
||||
//
|
||||
|
||||
#include "JSystem/JUtility/JUTResource.h"
|
||||
#include "JSystem/JKernel/JKRArchive.h"
|
||||
#include "JSystem/JSupport/JSUInputStream.h"
|
||||
#include "string.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
//
|
||||
// Types:
|
||||
//
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
//
|
||||
// External References:
|
||||
//
|
||||
|
||||
//
|
||||
// Declarations:
|
||||
//
|
||||
|
||||
/* 802DE078-802DE120 2D89B8 00A8+00 0/0 1/1 0/0 .text
|
||||
* getResource__15JUTResReferenceFP14JSUInputStreamUlP10JKRArchive */
|
||||
void *JUTResReference::getResource(JSUInputStream *stream, u32 resType, JKRArchive *archive) {
|
||||
void* JUTResReference::getResource(JSUInputStream* stream, u32 resType, JKRArchive* archive) {
|
||||
stream->read(&mType, 1);
|
||||
stream->read(&mNameLength, 1);
|
||||
stream->read(&mName, mNameLength);
|
||||
|
||||
if (mType == RESTYPE_Unk2 || mType == RESTYPE_Unk3 || mType == RESTYPE_Unk4)
|
||||
{
|
||||
if (mType == RESTYPE_Unk2 || mType == RESTYPE_Unk3 || mType == RESTYPE_Unk4) {
|
||||
mName[mNameLength] = 0;
|
||||
}
|
||||
|
||||
@@ -43,12 +20,12 @@ void *JUTResReference::getResource(JSUInputStream *stream, u32 resType, JKRArchi
|
||||
/* 802DE120-802DE1BC 2D8A60 009C+00 0/0 2/2 0/0 .text
|
||||
* getResource__15JUTResReferenceFPCvUlP10JKRArchive */
|
||||
|
||||
void *JUTResReference::getResource(const void *data, u32 resType, JKRArchive *archive) {
|
||||
void* JUTResReference::getResource(const void* data, u32 resType, JKRArchive* archive) {
|
||||
mType = *(u8*)data;
|
||||
mNameLength = *((u8*)data + 1);
|
||||
|
||||
if (mNameLength != 0) {
|
||||
memcpy(&mName, &((u8 *)data)[2], mNameLength);
|
||||
memcpy(&mName, &((u8*)data)[2], mNameLength);
|
||||
}
|
||||
|
||||
if (mType == RESTYPE_Unk2 || mType == RESTYPE_Unk3 || mType == RESTYPE_Unk4) {
|
||||
@@ -60,8 +37,8 @@ void *JUTResReference::getResource(const void *data, u32 resType, JKRArchive *ar
|
||||
|
||||
/* 802DE1BC-802DE234 2D8AFC 0078+00 2/2 0/0 0/0 .text
|
||||
* getResource__15JUTResReferenceFUlP10JKRArchive */
|
||||
void *JUTResReference::getResource(u32 resType, JKRArchive *archive) {
|
||||
void *res = NULL;
|
||||
void* JUTResReference::getResource(u32 resType, JKRArchive* archive) {
|
||||
void* res = NULL;
|
||||
switch (mType) {
|
||||
case RESTYPE_Unk1:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user