Skip to content

Commit

Permalink
Cleanup non-matched notation
Browse files Browse the repository at this point in the history
  • Loading branch information
SeekyCt committed Sep 3, 2024
1 parent 2779dfc commit 8757e45
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 242 deletions.
72 changes: 10 additions & 62 deletions src/filemgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,9 @@ void PackTexPalette(TPLHeader * palette)
}
}

void fileGarbageDataAdrClear(FileEntry * entry)
{
// Not decompiled
(void) entry;
}
// NOT_DECOMPILED fileGarbageDataAdrClear

void fileGarbageDataAdrSet(void * data, s32 fileType)
{
// Not decompiled
(void) data;
(void) fileType;
}
// NOT_DECOMPILED fileGarbageDataAdrSet

void fileGarbageMoveMem(void * dest, FileEntry * src)
{
Expand Down Expand Up @@ -181,63 +172,20 @@ void fileGarbageMoveMem(void * dest, FileEntry * src)
}
}

void _fileGarbage(s32)
{
// Not decompiled
}
// NOT_DECOMPILED _fileGarbage

FileEntry * fileAllocf(s32 fileType, const char * format, ...)
{
// Not decompiled
(void) fileType;
(void) format;
return NULL;
}
// NOT_DECOMPILED fileAllocf

FileEntry * fileAlloc(const char * path, s32 fileType)
{
// Not decompiled
(void) path;
(void) fileType;
return NULL;
}
// NOT_DECOMPILED fileAlloc

FileEntry * _fileAlloc(const char * path, s32 fileType, s32 p3)
{
// Not decompiled
(void) path;
(void) fileType;
(void) p3;
return NULL;
}
// NOT_DECOMPILED _fileAlloc

void fileFree(FileEntry * entry)
{
// Not decompiled
(void) entry;
}
// NOT_DECOMPILED fileFree

static UNKNOWN_FUNCTION(dvdReadDoneCallback)
{
// Not decompiled
}
// NOT_DECOMPILED dvdReadDoneCallback

FileEntry * fileAsyncf(s32 fileType, s32 p2, const char * format, ...)
{
// Not decompiled
(void) fileType;
(void) p2;
(void) format;
return NULL;
}
// NOT_DECOMPILED fileAsyncf

FileEntry * fileAsync(const char * path, s32 fileType, s32 p3)
{
// Not decompiled
(void) path;
(void) fileType;
(void) p3;
return NULL;
}
// NOT_DECOMPILED fileAsync

}
53 changes: 8 additions & 45 deletions src/mario_pouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,7 @@ s32 pouchGetLevel()
return pp->level;
}

s32 pouchGetNextLevelXp()
{
// Not decompiled
return 0;
}
// NOT_DECOMPILED pouchGetNextLevelXp

void pouchSetAttack(s32 attack)
{
Expand Down Expand Up @@ -580,52 +576,19 @@ void pouchAddCoin(s32 increase)
pouchAddTotalCoin(increase);
}

bool pouchAddItem(s32 itemId)
{
// Not decompiled
(void) itemId;
return false;
}
// NOT_DECOMPILED pouchAddItem

bool pouchCheckHaveItem(s16 itemId)
{
// Not decompiled
(void) itemId;
return false;
}
// NOT_DECOMPILED pouchCheckHaveItem

void pouchRemoveItem(s16 itemId)
{
// Not decompiled
(void) itemId;
}
// NOT_DECOMPILED pouchRemoveItem

void pouchRemoveItemIdx(s16 itemId, s32 idx)
{
// Not decompiled
(void) itemId;
(void) idx;
}
// NOT_DECOMPILED pouchRemoveItemIdx

bool pouchAddShopItem(s16 itemId)
{
// Not decompiled
(void) itemId;
return false;
}
// NOT_DECOMPILED pouchAddShopItem

void pouchRemoveShopItem(s16 itemId)
{
// Not decompiled
(void) itemId;
}
// NOT_DECOMPILED pouchRemoveShopItem

void pouchRemoveShopItemIdx(s16 itemId, s32 idx)
{
// Not decompiled
(void) itemId;
(void) idx;
}
// NOT_DECOMPILED pouchRemoveShopItemIdx

PouchCharOrPixlInfo * pouchGetCharInfo(s32 slot)
{
Expand Down
6 changes: 3 additions & 3 deletions src/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static MEMHeapHandle fallbackHeap;
#define IS_LAST_SMART_ALLOC(allocation) (allocation->next == NULL)
#define GET_SMART_HEAP_SIZE() (MEMGetSizeForMBlockExpHeap(swp->heapStart))

// Not matching - https://decomp.me/scratch/fZFB1
// NON_MATCHING - https://decomp.me/scratch/fZFB1
void memInit()
{
// Register usage not matching
Expand Down Expand Up @@ -354,7 +354,7 @@ void smartFree(SmartAllocation * lp)
}
}

// Not matching
// NON_MATCHING
SmartAllocation * smartAlloc(size_t size, u8 type)
{
// Special behaviour if this is the first time running
Expand Down Expand Up @@ -509,7 +509,7 @@ SmartAllocation * smartAlloc(size_t size, u8 type)
}
}

// Not matching
// NON_MATCHING
void smartGarbage()
{
sysWaitDrawSync();
Expand Down
16 changes: 2 additions & 14 deletions src/rel/dan.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,13 +802,7 @@ void func_80c839cc(const char * param_1, bool param_2)
}
}

void wracktailDispCb(void * param, s32 animGroupIdx, s32 param_3)
{
// Not decompiled
(void) param;
(void) animGroupIdx;
(void) param_3;
}
// NOT_DECOMPILED wracktailDispCb

s32 evt_dan_set_wracktail_disp_cb(EvtEntry * entry, bool isFirstCall)
{
Expand All @@ -822,13 +816,7 @@ s32 evt_dan_set_wracktail_disp_cb(EvtEntry * entry, bool isFirstCall)
return EVT_RET_CONTINUE;
}

s32 func_80c83c48(EvtEntry * entry, bool isFirstCall)
{
// Not decompiled
(void) entry;
(void) isFirstCall;
return 0;
}
// NOT_DECOMPILED func_80c83c48

void screenBlinkDisp(s32 cameraId, void * param)
{
Expand Down
2 changes: 1 addition & 1 deletion src/seq_title.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static const char * languageNames[] = {
"uk"
};

// Not matching: try-catches are wrong
// NON_MATCHING: try-catches are wrong
void seqTitleInitLayout()
{
// Load archive
Expand Down
27 changes: 5 additions & 22 deletions src/spmario.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,9 @@ static void viPostCallback(u32 retraceCount);
static void wiiDvdCheckThread(void * param);
static void wiiRumbleCheck();

void spmarioInit()
{
// Not decompiled
}
// NOT_DECOMPILED spmarioInit

void spmarioMain()
{
// Not decompiled
}
// NOT_DECOMPILED spmarioMain

void spmarioDisp()
{
Expand Down Expand Up @@ -132,22 +126,11 @@ s32 spmarioGetSystemLevel()
return _spmarioSystemLevel;
}

void viPostCallback(u32 retraceCount)
{
// Not decompiled
(void) retraceCount;
}
// NOT_DECOMPILED viPostCallback

void wiiDvdCheckThread(void * param)
{
// Not decompiled
(void) param;
}
// NOT_DECOMPILED wiiDvdCheckThread

void wiiRumbleCheck()
{
// Not decompiled
}
// NOT_DECOMPILED wiiRumbleCheck

void resetButtonRestart()
{
Expand Down
16 changes: 2 additions & 14 deletions src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,21 +206,9 @@ void movePos(f32 distance, f32 angle, f32 * x, f32 * z)
*z -= distance * c;
}

static void fsort(char ** table, size_t size)
{
// Not decompiled
(void) table;
(void) size;
}
// NOT_DECOMPILED fsort

void qqsort(char * list, size_t nel, size_t size, void * compare)
{
// Not decompiled
(void) list;
(void) nel;
(void) size;
(void) compare;
}
// NOT_DECOMPILED qqsort

static s32 _rand_advance()
{
Expand Down
Loading

0 comments on commit 8757e45

Please sign in to comment.