mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
Fixed writing data to the host device
New paths can now be created if they do not exist - this allows content packages such as savedata to be written to disk
This commit is contained in:
parent
20f40a1da4
commit
97ed221d8b
|
|
@ -34,9 +34,12 @@ std::unique_ptr<Entry> HostPathDevice::ResolvePath(const char* path) {
|
||||||
auto full_path = poly::join_paths(local_path_, rel_path);
|
auto full_path = poly::join_paths(local_path_, rel_path);
|
||||||
full_path = poly::fix_path_separators(full_path);
|
full_path = poly::fix_path_separators(full_path);
|
||||||
|
|
||||||
|
// Only check the file exists when the device is read-only
|
||||||
|
if (read_only_) {
|
||||||
if (!poly::fs::PathExists(full_path)) {
|
if (!poly::fs::PathExists(full_path)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO(benvanik): get file info
|
// TODO(benvanik): get file info
|
||||||
// TODO(benvanik): switch based on type
|
// TODO(benvanik): switch based on type
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue