mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue