feat(profile): added definitions for a handful of UI objects

This commit is contained in:
phaneron 2024-09-30 17:19:28 -04:00
parent ac20b7a227
commit 8ff5db67f2
39 changed files with 4484 additions and 183 deletions

View file

@ -0,0 +1,31 @@
#ifndef ASYNC_OBJECT_H
#define ASYNC_OBJECT_H
#include "system/types.h"
#include "storm/list.h"
#include "async/queue.h"
DECLARE_STRUCT(CAsyncObject);
DECLARE_STRUCT(TSLink_CAsyncObject);
struct CAsyncObject {
void* file;
void* buffer;
uint32_t size;
void* userArg;
void* userPostloadCallback;
void* userPostUnloadCallback;
CAsyncQueue* queue;
void* ptr1c;
int8_t priority;
int8_t isProcessed;
int8_t isRead;
int8_t isCurrent;
int8_t char24;
int8_t char25;
uint16_t padding;
TSLink_CAsyncObject link;
};
STORM_TS_LIST(CAsyncObject);
#endif

View file

@ -0,0 +1,20 @@
#ifndef ASYNC_QUEUE_H
#define ASYNC_QUEUE_H
#include "system/types.h"
#include "storm/list.h"
DECLARE_STRUCT(TSLink_CAsyncQueue);
DECLARE_STRUCT(TSExplicitList_CAsyncObject);
DECLARE_STRUCT(CAsyncQueue);
STORM_TS_LIST(CAsyncQueue);
struct CAsyncQueue {
TSLink_CAsyncQueue link;
TSExplicitList_CAsyncObject readList;
TSExplicitList_CAsyncObject unkList;
int32_t int20;
};
#endif