summaryrefslogtreecommitdiff
path: root/src/d/d_rawarchive.cpp
diff options
context:
space:
mode:
authorElijah Thomas <42302100+elijah-thomas774@users.noreply.github.com>2024-10-16 15:36:02 -0400
committerGitHub <noreply@github.com>2024-10-16 15:36:02 -0400
commit26af4db82da23364961ebb440efba88846240731 (patch)
tree9cfe6a427cfe59c13c64928ccef6ba3c5ccfec21 /src/d/d_rawarchive.cpp
parent4543ec129ec02649b24ae0e20d8325a5f066c9b1 (diff)
update from dtk-template - clangd :) (#66)
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
Diffstat (limited to 'src/d/d_rawarchive.cpp')
-rw-r--r--src/d/d_rawarchive.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/d/d_rawarchive.cpp b/src/d/d_rawarchive.cpp
index 3d4f43b3..45b20758 100644
--- a/src/d/d_rawarchive.cpp
+++ b/src/d/d_rawarchive.cpp
@@ -1,6 +1,6 @@
-#include <d/d_rawarchive.h>
-#include <rvl/VI.h>
+#include "d/d_rawarchive.h"
+#include "rvl/VI.h" // IWYU pragma: export
int computeChecksumInner(void *d, u32 len) {
u32 *data = (u32 *)d;
@@ -107,8 +107,9 @@ bool dRawArcEntry_c::destroy(void *arg) {
return true;
}
-bool dRawArcEntry_c::loadArcFromDiskChecked(const char *fileName, const char *dirName, u8 mountDirection,
- EGG::Heap *heap) {
+bool dRawArcEntry_c::loadArcFromDiskChecked(
+ const char *fileName, const char *dirName, u8 mountDirection, EGG::Heap *heap
+) {
SizedString<128> path;
if (checkArcExistsOnDiskInner(path, fileName, dirName)) {
@@ -142,7 +143,9 @@ BOOL dRawArcEntry_c::checkArcExistsOnDiskInner(SizedString<128> &path, const cha
return true;
}
-int dRawArcEntry_c::mount(const char *name, void *data, ArcCallbackHandler *callbackArg, u8 mountDirection, EGG::Heap *heap) {
+int dRawArcEntry_c::mount(
+ const char *name, void *data, ArcCallbackHandler *callbackArg, u8 mountDirection, EGG::Heap *heap
+) {
mArcName = name;
mpArc = EGG::Archive::mount(data, heap, (mountDirection == 0 || mountDirection == 1) ? 4 : -4);
if (mpArc == nullptr) {