From bebd66078f1191889b16a57b70147a5953072e6c Mon Sep 17 00:00:00 2001 From: nakeee Date: Thu, 31 Mar 2011 11:07:31 +0000 Subject: [PATCH] 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 --- Source/Core/Common/Src/SysConf.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/Common/Src/SysConf.cpp b/Source/Core/Common/Src/SysConf.cpp index 4b61331d49..07e095c01c 100644 --- a/Source/Core/Common/Src/SysConf.cpp +++ b/Source/Core/Common/Src/SysConf.cpp @@ -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) {