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:
nakeee 2011-03-31 11:07:31 +00:00
parent 7c9f836a28
commit bebd66078f
1 changed files with 6 additions and 0 deletions

View File

@ -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)
{