summaryrefslogtreecommitdiff
path: root/src/d/d_rawarchive.cpp
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2024-10-06 22:34:31 +0200
committerGitHub <noreply@github.com>2024-10-06 16:34:31 -0400
commitf8e61c7de8b2b8d2b2174f33457b1357175e2c0d (patch)
tree8bc6000f32e20b0466fea7c8097b97de8cef1d36 /src/d/d_rawarchive.cpp
parent25d80826c74e968ef61591b7b973534a53244dba (diff)
More d/lyt (#52)
* More Lyt (maybe some wrong type associations) * more meter * Rename * More splits and renames * Fix SizedString conversion operators * Renames * dLytBattery_c almost OK * d_lyt_battery OK * diff clean * Continue doing splits while I'm at it * two more splits
Diffstat (limited to 'src/d/d_rawarchive.cpp')
-rw-r--r--src/d/d_rawarchive.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/d/d_rawarchive.cpp b/src/d/d_rawarchive.cpp
index b69e1a2b..3d4f43b3 100644
--- a/src/d/d_rawarchive.cpp
+++ b/src/d/d_rawarchive.cpp
@@ -112,7 +112,7 @@ bool dRawArcEntry_c::loadArcFromDiskChecked(const char *fileName, const char *di
SizedString<128> path;
if (checkArcExistsOnDiskInner(path, fileName, dirName)) {
- return loadArcFromDisk(fileName, &path, mountDirection, heap);
+ return loadArcFromDisk(fileName, path, mountDirection, heap);
}
return false;
}
@@ -133,9 +133,9 @@ BOOL dRawArcEntry_c::checkArcExistsOnDisk(const char *fileName, const char *dirN
BOOL dRawArcEntry_c::checkArcExistsOnDiskInner(SizedString<128> &path, const char *fileName, const char *dirName) {
path.sprintf("/US/%s/%s.arc", dirName, fileName);
- if (!mDvd::IsExistPath(&path)) {
+ if (!mDvd::IsExistPath(path)) {
path.sprintf("/%s/%s.arc", dirName, fileName);
- if (!mDvd::IsExistPath(&path)) {
+ if (!mDvd::IsExistPath(path)) {
return false;
}
}
@@ -347,12 +347,10 @@ int dRawArcTable_c::ensureAllEntriesLoaded() {
return 0;
}
-extern "C" bool strequals(const char *, const char *);
-
dRawArcEntry_c *dRawArcTable_c::findEntry(const char *name) const {
dRawArcEntry_c *entry = mpEntries;
for (int i = 0; i < mCount; i++) {
- if (entry->isReferenced() && strequals(entry->name(), name)) {
+ if (entry->isReferenced() && entry->name() == name) {
return entry;
}
entry++;