diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-05-26 03:49:42 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-05-26 03:49:42 -0600 |
| commit | 76e90b4ddc9c215132c39ebf8433d5f88813b368 (patch) | |
| tree | c8ef86036951ac149135635219e1024f3c5656f4 /src/storm/SWrapper.cpp | |
| parent | 0dbee953a2ab68e03405e8e1bc16abcffaf2b5a5 (diff) | |
Fixed torch compilation on msvc
Diffstat (limited to 'src/storm/SWrapper.cpp')
| -rw-r--r-- | src/storm/SWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storm/SWrapper.cpp b/src/storm/SWrapper.cpp index 811e31b..00da1de 100644 --- a/src/storm/SWrapper.cpp +++ b/src/storm/SWrapper.cpp @@ -56,7 +56,7 @@ bool SWrapper::CreateFile(const std::string& path, std::vector<char> data) { } if(!SFileCreateFile(this->hMpq, path.c_str(), theTime, size, 0, MPQ_FILE_COMPRESS, &hFile)){ - throw std::runtime_error("Failed to create file at path " + path + " with error " + std::to_string(GetLastError())); + return false; } if(!SFileWriteFile(hFile, (void*) raw, size, MPQ_COMPRESSION_ZLIB)){ |
