fix formatting and fix symbols scope

This commit is contained in:
Sebastian Snoer
2025-05-26 10:21:35 +02:00
parent ae5be622bf
commit ebf098d670
2 changed files with 13 additions and 8 deletions
@@ -11,8 +11,8 @@ actorExecute__12dAcORailPostFv = .text:0x00000380; // type:function size:0x8
draw__12dAcORailPostFv = .text:0x00000390; // type:function size:0x34
_ctors = .ctors:0x00000000; // type:label scope:global
_dtors = .dtors:0x00000000; // type:label scope:global
@15367 = .rodata:0x00000000; // type:object size:0x4 data:float
@15367 = .rodata:0x00000000; // type:object size:0x4 scope:local data:float
g_profile_OBJ_RAIL_POST = .data:0x00000000; // type:object size:0x10
@15350 = .data:0x00000010; // type:object size:0xC
@15366 = .data:0x0000001C; // type:object size:0x1C
@15350 = .data:0x00000010; // type:object size:0xC scope:local
@15366 = .data:0x0000001C; // type:object size:0x1C scope:local
__vt__12dAcORailPost = .data:0x00000038; // type:object size:0x80
+10 -5
View File
@@ -1,4 +1,5 @@
#include "d/a/obj/d_a_obj_rail_post.h"
#include "d/a/obj/d_a_obj_base.h"
#include "d/col/bg/d_bg_s.h"
#include "nw4r/g3d/res/g3d_resmdl.h"
@@ -10,19 +11,23 @@ dAcORailPost::~dAcORailPost() {}
bool dAcORailPost::createHeap() {
void *resFilePtr = getOarcResFile("RailPost");
if(resFilePtr == nullptr)
if (resFilePtr == nullptr) {
return false;
}
nw4r::g3d::ResFile res(resFilePtr);
if(res.IsValid() == false)
if (res.IsValid() == false) {
return false;
}
nw4r::g3d::ResMdl mdl = res.GetResMdl("RailPost");
if(mdl.IsValid() == false)
if (mdl.IsValid() == false) {
return false;
}
if(!mMdl.create(mdl, &heap_allocator, 0x20, 1, nullptr))
if (!mMdl.create(mdl, &heap_allocator, 0x20, 1, nullptr)) {
return false;
}
mMdl.setLocalMtx(mWorldMtx);
void *dzb = getOarcDZB("RailPost", "RailPost");
@@ -34,7 +39,7 @@ bool dAcORailPost::createHeap() {
return true;
}
int dAcORailPost::create() {
int dAcORailPost::create() {
mVec3_c boundsMin;
mVec3_c boundsMax;
updateMatrix();