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…
Reference in New Issue