Create sys conf if it doesn't exists instead of asking questions
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7427 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
7c9f836a28
commit
bebd66078f
|
@ -45,6 +45,12 @@ void SysConf::Clear()
|
|||
bool SysConf::LoadFromFile(const char *filename)
|
||||
{
|
||||
// Basic check
|
||||
if (!File::Exists(filename))
|
||||
{
|
||||
GenerateSysConf();
|
||||
return true;
|
||||
}
|
||||
|
||||
u64 size = File::GetSize(filename);
|
||||
if (size != SYSCONF_SIZE)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue