Skip to content

Commit e4dd3e8

Browse files
committed
force reunzip on relaunch if dll mysteriously disappears
1 parent af806ba commit e4dd3e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

loader/src/loader/ModImpl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ Result<> Mod::Impl::loadBinary() {
293293
return Ok();
294294

295295
if (!std::filesystem::exists(this->getBinaryPath())) {
296+
std::error_code ec;
297+
std::filesystem::remove(m_tempDirName / "modified-at", ec);
296298
return Err(
297299
fmt::format(
298300
"Failed to load {}: No binary could be found for current platform.\n"

0 commit comments

Comments
 (0)