mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 16:25:36 +01:00
net: create directory for config file if it doesn't exist.
This commit is contained in:
parent
f73c82c232
commit
9866cae4ff
@ -168,6 +168,15 @@ public:
|
||||
|
||||
void WriteConfig()
|
||||
{
|
||||
if (!File::Exists(path))
|
||||
{
|
||||
if (!File::CreateFullPath(
|
||||
std::string(File::GetUserPath(D_WIISYSCONF_IDX) + "net/02/")))
|
||||
{
|
||||
ERROR_LOG(WII_IPC_NET, "Failed to create directory for network config file");
|
||||
}
|
||||
}
|
||||
|
||||
File::IOFile(path, "wb").WriteBytes((void*)&config, sizeof(config));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user