devoptab: deprecate locations.ini in favour of hdd/network mounts, better handle folder creation errors.

This commit is contained in:
ITotalJustice
2025-09-07 13:30:53 +01:00
parent b99d1e5dea
commit 6e1eabbe0f
11 changed files with 28 additions and 364 deletions

View File

@@ -792,6 +792,8 @@ Result MountNetworkDevice(const CreateDeviceCallback& create_device, size_t file
e->back().user = Value;
} else if (!std::strcmp(Key, "pass")) {
e->back().pass = Value;
} else if (!std::strcmp(Key, "dump_path")) {
e->back().dump_path = Value;
} else if (!std::strcmp(Key, "port")) {
const auto port = ini_parse_getl(Value, -1);
if (port < 0 || port > 65535) {
@@ -1379,7 +1381,7 @@ Result GetNetworkDevices(location::StdioEntries& out) {
flags |= location::FsEntryFlag::FsEntryFlag_NoStatDir;
}
out.emplace_back(entry->mount, entry->name, flags);
out.emplace_back(entry->mount, entry->name, flags, entry->device.config.dump_path);
}
}