mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 23:59:54 -06:00
net: create directory for config file if it doesn't exist.
This commit is contained in:
@ -168,6 +168,15 @@ public:
|
|||||||
|
|
||||||
void WriteConfig()
|
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));
|
File::IOFile(path, "wb").WriteBytes((void*)&config, sizeof(config));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user