diff options
author | Tom Barham <me@cpdt.dev> | 2022-02-20 02:04:54 +1000 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-02-20 01:32:42 -0300 |
commit | ae9df9bc734c6c0364028c71db5e7236e7c344dd (patch) | |
tree | b963978e86c38a92709c8e2790836753e8ea0452 | |
parent | 5cbf79e8e034b090458b310f743ae1ca55542390 (diff) | |
download | NorthstarLauncher-ae9df9bc734c6c0364028c71db5e7236e7c344dd.tar.gz NorthstarLauncher-ae9df9bc734c6c0364028c71db5e7236e7c344dd.zip |
Fix formatting
-rw-r--r-- | NorthstarDedicatedTest/buildainfile.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/NorthstarDedicatedTest/buildainfile.cpp b/NorthstarDedicatedTest/buildainfile.cpp index 346b7009..1d37c0a9 100644 --- a/NorthstarDedicatedTest/buildainfile.cpp +++ b/NorthstarDedicatedTest/buildainfile.cpp @@ -24,7 +24,7 @@ struct CAI_NodeLink int64_t flags; }; -#pragma pack (push, 1) +#pragma pack(push, 1) struct CAI_NodeLinkDisk { short srcId; @@ -54,8 +54,8 @@ struct CAI_Node CAI_NodeLink** links; char unk5[16]; int linkcount; - int unk11; // bad name lmao - short unk6; // should match up to unk4 on disk + int unk11; // bad name lmao + short unk6; // should match up to unk4 on disk char unk7[16]; // padding until next bit short unk8; // should match up to unk5 on disk char unk9[8]; // padding until next bit @@ -63,7 +63,7 @@ struct CAI_Node }; // the way CAI_Nodes are represented in on-disk ain files -#pragma pack (push, 1) +#pragma pack(push, 1) struct CAI_NodeDisk { float x; @@ -85,15 +85,15 @@ struct UnkNodeStruct0 { int index; char unk0; - char unk1; // maps to unk1 on disk + char unk1; // maps to unk1 on disk char pad0[2]; // padding to +8 float x; float y; float z; - + char pad5[4]; - int* unk2; // maps to unk5 on disk; + int* unk2; // maps to unk5 on disk; char pad1[16]; // pad to +48 int unkcount0; // maps to unkcount0 on disk @@ -216,7 +216,8 @@ void DumpAINInfo(CAI_Network* aiNetwork) memcpy(diskNode.unk3, aiNetwork->nodes[i]->unk3, sizeof(diskNode.unk3)); diskNode.unk4 = aiNetwork->nodes[i]->unk6; - diskNode.unk5 = -1; // aiNetwork->nodes[i]->unk8; // this field is wrong, however, it's always -1 in vanilla navmeshes anyway, so no biggie + diskNode.unk5 = + -1; // aiNetwork->nodes[i]->unk8; // this field is wrong, however, it's always -1 in vanilla navmeshes anyway, so no biggie memcpy(diskNode.unk6, aiNetwork->nodes[i]->unk10, sizeof(diskNode.unk6)); spdlog::info("writing node {} from {} to {:x}", aiNetwork->nodes[i]->index, (void*)aiNetwork->nodes[i], writeStream.tellp()); @@ -302,7 +303,7 @@ void DumpAINInfo(CAI_Network* aiNetwork) short unk2Short = (short)nodeStruct->unk2[j]; writeStream.write((char*)&unk2Short, sizeof(unk2Short)); } - + writeStream.write((char*)&nodeStruct->unkcount1, sizeof(nodeStruct->unkcount1)); for (int j = 0; j < nodeStruct->unkcount1; j++) { |