mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-12 22:14:58 +00:00
cellSaveData: fix minor issues
This commit is contained in:
parent
b83cb2dbf5
commit
014846cf31
@ -1530,6 +1530,12 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
|||||||
{
|
{
|
||||||
// Read file into a vector and make a memory file
|
// Read file into a vector and make a memory file
|
||||||
entry.name = vfs::unescape(entry.name);
|
entry.name = vfs::unescape(entry.name);
|
||||||
|
|
||||||
|
if (entry.name == ".")
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
all_times.emplace(entry.name, std::make_pair(entry.atime, entry.mtime));
|
all_times.emplace(entry.name, std::make_pair(entry.atime, entry.mtime));
|
||||||
all_files.emplace(std::move(entry.name), fs::make_stream(fs::file(dir_path + entry.name).to_vector<uchar>()));
|
all_files.emplace(std::move(entry.name), fs::make_stream(fs::file(dir_path + entry.name).to_vector<uchar>()));
|
||||||
}
|
}
|
||||||
@ -1910,7 +1916,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
|||||||
{
|
{
|
||||||
if (auto file = pair.second.release())
|
if (auto file = pair.second.release())
|
||||||
{
|
{
|
||||||
auto fvec = static_cast<fs::container_stream<std::vector<uchar>>&>(*file);
|
auto&& fvec = static_cast<fs::container_stream<std::vector<uchar>>&>(*file);
|
||||||
ensure(fs::write_file<true>(new_path + vfs::escape(pair.first), fs::rewrite, fvec.obj));
|
ensure(fs::write_file<true>(new_path + vfs::escape(pair.first), fs::rewrite, fvec.obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user