mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-02-20 10:17:03 +03:00
Finish populating JSRF/Core
This commit is contained in:
parent
f8578b0871
commit
08abfd3913
6 changed files with 342 additions and 19 deletions
|
|
@ -302,3 +302,275 @@ PlayerObj::PlayerObj(GameObj * parent, GameObjIndex index, GameObjFlags flags) :
|
|||
|
||||
// Eliminated by link time code generation (aliased with 0x000121D0)
|
||||
PlayerObj::~PlayerObj() {}
|
||||
|
||||
// Address: 0x00012210
|
||||
// Matching: no
|
||||
Game::Game(unsigned * unknown1, unsigned unknown2) {
|
||||
}
|
||||
|
||||
// Address: 0x00012390
|
||||
// Matching: no
|
||||
Game::~Game() {
|
||||
}
|
||||
|
||||
// Address: 0x000123E0
|
||||
// Matching: no
|
||||
void Game::exec() {
|
||||
}
|
||||
|
||||
// Address: 0x00012580
|
||||
// Matching: no
|
||||
void Game::drawObj(GameObj * obj, int unknown) {
|
||||
}
|
||||
|
||||
// Address: 0x000125E0
|
||||
// Matching: no
|
||||
void Game::drawList_(
|
||||
GameObjFlags flagFilterAny1,
|
||||
int drawArg1,
|
||||
int drawArg2,
|
||||
GameObjFlags flagFilterAll,
|
||||
unsigned otherBitfieldFilterAny,
|
||||
GameObjFlags flagFilterNone,
|
||||
GameObjFlags flagFilterAny2
|
||||
) {
|
||||
}
|
||||
|
||||
// Address: 0x00012680
|
||||
// Matching: no
|
||||
void Game::drawTree1(GameObj * obj) {
|
||||
}
|
||||
|
||||
// Address: 0x000126D0
|
||||
// Matching: no
|
||||
void Game::setCoveredPauseNextFrame(BOOL val) {
|
||||
}
|
||||
|
||||
// Address: 0x000126F0
|
||||
// Matching: no
|
||||
void Game::setEventNextFrame(BOOL val) {
|
||||
}
|
||||
|
||||
// Address: 0x00012710
|
||||
// Matching: no
|
||||
void Game::setFreezeCamNextFrame(BOOL val) {
|
||||
}
|
||||
|
||||
// Address: 0x00012730
|
||||
// Matching: no
|
||||
void Game::setUncoveredPauseNextFrame(BOOL val) {
|
||||
}
|
||||
|
||||
// Address: 0x00012750
|
||||
// Matching: yes
|
||||
void Game::enableDrawChildren() {
|
||||
this->drawChildren = TRUE;
|
||||
}
|
||||
|
||||
// Address: 0x00012760
|
||||
// Matching: yes
|
||||
void Game::enableSkipDraw() {
|
||||
this->skipDraw = TRUE;
|
||||
}
|
||||
|
||||
// Address: 0x00012770
|
||||
// Matching: no
|
||||
void Game::fatal() {
|
||||
}
|
||||
|
||||
// Address: 0x000127B0
|
||||
// Matching: yes
|
||||
void Game::setDrawMode(DrawMode mode) {
|
||||
this->drawMode = mode;
|
||||
}
|
||||
|
||||
// Address: 0x000127C0
|
||||
// Matching: yes
|
||||
void Game::setGlobal(GlobalIndex index, unsigned val) {
|
||||
this->globals[index] = val;
|
||||
}
|
||||
|
||||
// Address: 0x000127E0
|
||||
// Matching: yes
|
||||
unsigned Game::getGlobal(GlobalIndex index) {
|
||||
return this->globals[index];
|
||||
}
|
||||
|
||||
// Address: 0x000127F0
|
||||
// Matching: no
|
||||
void Game::addToDrawList(GameObj * obj) {
|
||||
}
|
||||
|
||||
// Address: 0x00012840
|
||||
// Matching: no
|
||||
void Game::removeFromDrawList(GameObj * obj) {
|
||||
}
|
||||
|
||||
// Address: 0x00012870
|
||||
// Matching: yes
|
||||
void Game::setObj(GameObjIndex index, GameObj * obj) {
|
||||
if (0 <= index && index < OBJ_CNT)
|
||||
this->objects[index] = obj;
|
||||
}
|
||||
|
||||
// Address: 0x00012890
|
||||
// Matching: yes
|
||||
void Game::unsetObj(GameObjIndex index) {
|
||||
if (0 <= index && this->objects[index] != NULL)
|
||||
this->objects[index] = NULL;
|
||||
}
|
||||
|
||||
// Address: 0x000128C0
|
||||
// Matching: yes
|
||||
GameObj * Game::getObj(GameObjIndex index) {
|
||||
return 0 <= index ? this->objects[index] : NULL;
|
||||
}
|
||||
|
||||
// Address: 0x000128E0
|
||||
// Matching: yes
|
||||
int Game::allocObjIndex(GameObjIndex min, GameObjIndex max) {
|
||||
if (min <= max) do
|
||||
if (this->objects[min] == NULL) return min;
|
||||
else min = GameObjIndex(min + 1);
|
||||
while (min <= max);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Address: 0x00012910
|
||||
// Matching: yes
|
||||
BOOL Game::objIndexAvail(GameObjIndex index) {
|
||||
return this->objects[index] == NULL;
|
||||
}
|
||||
|
||||
// Address: 0x00012930
|
||||
// Matching: yes
|
||||
void Game::swapObjs(GameObjIndex index1, GameObjIndex index2) {
|
||||
GameObj * tmp = this->objects[index1];
|
||||
this->objects[index1] = this->objects[index2];
|
||||
this->objects[index2] = tmp;
|
||||
|
||||
if (this->objects[index1] != NULL) this->objects[index1]->index = index1;
|
||||
if (this->objects[index2] != NULL) this->objects[index2]->index = index2;
|
||||
}
|
||||
|
||||
// Address: 0x00012980
|
||||
// Matching: no
|
||||
void Game::clearScreen() {
|
||||
}
|
||||
|
||||
// Address: 0x000129B0
|
||||
// Matching: yes
|
||||
void Game::enableSomeExtraDrawListCode() {
|
||||
this->runSomeExtraDrawListCode = TRUE;
|
||||
}
|
||||
|
||||
// Address: 0x000129C0
|
||||
// Matching: yes
|
||||
void Game::setLogosStarted(BOOL val) {
|
||||
this->logosStarted = val;
|
||||
}
|
||||
|
||||
// Address: 0x000129D0
|
||||
// Matching: yes
|
||||
void Game::clearDrawPriorityList() {
|
||||
this->drawPriorityListHead = NULL;
|
||||
this->drawPriorityListEndNext = &g_game->drawPriorityListHead;
|
||||
}
|
||||
|
||||
// Address: 0x000129F0
|
||||
// Matching: yes
|
||||
GameObj * Game::getDrawPriorityListHead() {
|
||||
return this->drawPriorityListHead;
|
||||
}
|
||||
|
||||
// Address: 0x00012A00
|
||||
// Matching: yes
|
||||
void Game::appendToDrawPriorityList(GameObj * obj) {
|
||||
obj->drawPriorityListNext = NULL;
|
||||
*this->drawPriorityListEndNext = obj;
|
||||
this->drawPriorityListEndNext = &obj->drawPriorityListNext;
|
||||
}
|
||||
|
||||
// Address: 0x00012A20
|
||||
// Matching: no
|
||||
void Game::sortDrawPriorityListSingleLevel(char sortKeyBitOffset) {
|
||||
}
|
||||
|
||||
// Address: 0x00012AC0
|
||||
// Matching: yes
|
||||
void Game::setFallbackBgColour(D3DCOLOR colour, BOOL useFallback) {
|
||||
this->useFallbackBgColour = useFallback;
|
||||
this->bgColourFallback = colour;
|
||||
}
|
||||
|
||||
// Address: 0x00012AE0
|
||||
// Matching: no
|
||||
RootExecObj::RootExecObj(GameObj * parent, GameObjIndex index, GameObjFlags flags) :
|
||||
GameObj(parent, index, flags) {
|
||||
}
|
||||
|
||||
// Address: 0x00012BE0
|
||||
// Matching: no
|
||||
RootExecObj::~RootExecObj() {
|
||||
}
|
||||
|
||||
// Address: 0x00012C10
|
||||
// Matching: no
|
||||
void Game::initRootExecObj() {
|
||||
}
|
||||
|
||||
// Address: 0x00012C80
|
||||
// Matching: no
|
||||
void Game::drawList(GameObjFlags flagFilterAll, BOOL unknown) {
|
||||
}
|
||||
|
||||
// Address: 0x000131A0
|
||||
// Matching: no
|
||||
void Game::sortDrawPriorityList() {
|
||||
this->sortDrawPriorityListSingleLevel(0x00);
|
||||
this->sortDrawPriorityListSingleLevel(0x08);
|
||||
this->sortDrawPriorityListSingleLevel(0x10);
|
||||
this->sortDrawPriorityListSingleLevel(0x18);
|
||||
}
|
||||
|
||||
// Address: 0x000131F0
|
||||
// Matching: no
|
||||
void Game::drawObjs() {
|
||||
}
|
||||
|
||||
// Address: 0x00013930
|
||||
// Matching: no
|
||||
void Game::draw() {
|
||||
}
|
||||
|
||||
// Address: 0x00013A80
|
||||
// Matching: no
|
||||
void Game::frame() {
|
||||
}
|
||||
|
||||
// Address: 0x00013F80
|
||||
// Matching: no
|
||||
int Game::mainLoop() {
|
||||
if (this->initState < 0) return -1;
|
||||
|
||||
while (true) {
|
||||
while (this->fatalErr) {
|
||||
// (need to declare these somewhere)
|
||||
//readInput();
|
||||
//Sleep(0x10);
|
||||
}
|
||||
|
||||
this->frame();
|
||||
}
|
||||
}
|
||||
|
||||
// Address: 0x00013FC0
|
||||
// Matching: no
|
||||
void removeFromObjListByIndex(GameObjIndex index) {
|
||||
GameObj * obj = g_game->getObj(index);
|
||||
if (obj != NULL) {
|
||||
obj->removeFromObjList(obj);
|
||||
obj->removeChildrenFromObjList(obj->firstChild);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue