Skip to content

Commit 74e7013

Browse files
committed
Merge branch 'filesystem' into test
2 parents d731167 + 11998f8 commit 74e7013

File tree

6 files changed

+225
-610
lines changed

6 files changed

+225
-610
lines changed

client/src/otransfer.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,7 @@ bool OTransfer::tick()
448448
std::string path, base, ext, fallback;
449449
M_ExtractFilePath(m_filename, path);
450450
M_ExtractFileBase(m_filename, base);
451-
if (M_ExtractFileExtension(m_filename, ext))
452-
{
453-
ext = std::string(".") + ext;
454-
}
451+
M_ExtractFileExtension(m_filename, ext);
455452
fallback = fmt::sprintf("%s%s%s.%s%s", path.c_str(), PATHSEP, base.c_str(),
456453
actualHash.getHexStr().substr(0, 6).c_str(), ext.c_str());
457454

0 commit comments

Comments
 (0)