Common: Cleanup some Path constructions.

This commit is contained in:
Unknown W. Brackets 2021-05-14 22:48:04 -07:00
parent 2a9170a2ea
commit d376e67f87
13 changed files with 21 additions and 22 deletions

View file

@ -1772,7 +1772,7 @@ UI::EventReturn DeveloperToolsScreen::OnCopyStatesToRoot(UI::EventParams &e) {
GetFilesInDir(savestate_dir, &files, nullptr, 0);
for (const File::FileInfo &file : files) {
Path src = Path(file.fullName);
Path src = file.fullName;
Path dst = root_dir / file.name;
INFO_LOG(SYSTEM, "Copying file '%s' to '%s'", src.c_str(), dst.c_str());
File::Copy(src, dst);