mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-27 04:36:18 +00:00
Add legacy function removed from mainline
This commit is contained in:
parent
89275f3126
commit
a946529236
1 changed files with 9 additions and 0 deletions
|
@ -533,6 +533,15 @@ bool DeleteDirRecursively(const std::string& directory)
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void StripTailDirSlashes(std::string& fname)
|
||||||
|
{
|
||||||
|
if (fname.length() > 1)
|
||||||
|
{
|
||||||
|
while (fname.back() == DIR_SEP_CHR)
|
||||||
|
fname.pop_back();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// SLIPPITODO: replace with C++17 https://en.cppreference.com/w/cpp/filesystem/last_write_time
|
// SLIPPITODO: replace with C++17 https://en.cppreference.com/w/cpp/filesystem/last_write_time
|
||||||
u64 GetFileModTime(const std::string& filename)
|
u64 GetFileModTime(const std::string& filename)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue