mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01: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
@ -45,6 +45,12 @@ void SysConf::Clear()
|
|||||||
bool SysConf::LoadFromFile(const char *filename)
|
bool SysConf::LoadFromFile(const char *filename)
|
||||||
{
|
{
|
||||||
// Basic check
|
// Basic check
|
||||||
|
if (!File::Exists(filename))
|
||||||
|
{
|
||||||
|
GenerateSysConf();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
u64 size = File::GetSize(filename);
|
u64 size = File::GetSize(filename);
|
||||||
if (size != SYSCONF_SIZE)
|
if (size != SYSCONF_SIZE)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user