Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Malkierian committed Jan 28, 2025
1 parent 2e9ca17 commit 810d31b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/resource/archive/O2rArchive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ std::shared_ptr<File> O2rArchive::LoadFileRaw(const std::string& filePath) {

// Filesize 0, no logging needed
if (zipEntryStat.size == 0) {
SPDLOG_TRACE("({}) Failed to read file {} from mpq archive {}; filesize == 0", GetLastError(), filePath, GetPath());
SPDLOG_TRACE("({}) Failed to load file {}; filesize 0", GetLastError(), filePath, GetPath());
return nullptr;
}

Expand Down
4 changes: 2 additions & 2 deletions src/resource/archive/OtrArchive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ std::shared_ptr<File> OtrArchive::LoadFileRaw(const std::string& filePath) {
auto fileToLoad = std::make_shared<File>();
DWORD fileSize = SFileGetFileSize(fileHandle, 0);
if (fileSize == 0) {
SPDLOG_TRACE("({}) Failed to read file {} from mpq archive {}; filesize == 0", GetLastError(), filePath, GetPath());
SPDLOG_TRACE("({}) Failed to load file {}; filesize 0", GetLastError(), filePath, GetPath());
return nullptr;
}
DWORD readBytes;
Expand All @@ -46,7 +46,7 @@ std::shared_ptr<File> OtrArchive::LoadFileRaw(const std::string& filePath) {
bool closeFileSuccess = SFileCloseFile(fileHandle);
if (!closeFileSuccess) {
SPDLOG_ERROR("({}) Failed to close file {} from mpq after read failure in archive {}", GetLastError(),
filePath, GetPath());
filePath, GetPath());
}
return nullptr;
}
Expand Down

0 comments on commit 810d31b

Please sign in to comment.