diff --git a/core/cfg/cfg.cpp b/core/cfg/cfg.cpp index ec286c44f..d7dc0b8fb 100644 --- a/core/cfg/cfg.cpp +++ b/core/cfg/cfg.cpp @@ -448,7 +448,7 @@ void cfgSaveInt(const wchar * Section, const wchar * Key, s32 Int) sprintf(tmp,"%d", Int); cfgSaveStr(Section,Key,tmp); } -void cfgSetVitual(const wchar * Section, const wchar * Key, const wchar * String) +void cfgSetVirtual(const wchar * Section, const wchar * Key, const wchar * String) { vlist.push_back(vitem(Section,Key,String)); //cfgdb.GetEntry(Section,CEM_VIRTUAL)->SetEntry(Key,String,CEM_VIRTUAL); diff --git a/core/cfg/cfg.h b/core/cfg/cfg.h index 77a35cc56..3278ed777 100644 --- a/core/cfg/cfg.h +++ b/core/cfg/cfg.h @@ -16,6 +16,6 @@ void cfgLoadStr(const wchar * lpSection, const wchar * lpKey, wchar * lpReturn, string cfgLoadStr(const wchar * Section, const wchar * Key, const wchar* Default); void cfgSaveStr(const wchar * lpSection, const wchar * lpKey, const wchar * lpString); s32 cfgExists(const wchar * Section, const wchar * Key); -void cfgSetVitual(const wchar * lpSection, const wchar * lpKey, const wchar * lpString); +void cfgSetVirtual(const wchar * lpSection, const wchar * lpKey, const wchar * lpString); -bool ParseCommandLine(int argc,wchar* argv[]); \ No newline at end of file +bool ParseCommandLine(int argc,wchar* argv[]); diff --git a/core/cfg/cl.cpp b/core/cfg/cl.cpp index 205fb1ea1..2343cd062 100644 --- a/core/cfg/cl.cpp +++ b/core/cfg/cl.cpp @@ -82,7 +82,7 @@ int setconfig(wchar** arg,int cl) value=""; printf("Virtual cfg %s:%s=%s\n",sect,key,value); - cfgSetVitual(sect,key,value); + cfgSetVirtual(sect,key,value); rv++; if (cl>=3 && stricmp(arg[2],",")==0) @@ -128,12 +128,12 @@ bool ParseCommandLine(int argc,wchar* argv[]) } else if (strstr(*arg, ".cdi") || strstr(*arg, ".chd")) { printf("Using '%s' as cd image\n", *arg); - cfgSetVitual("config", "image", *arg); + cfgSetVirtual("config", "image", *arg); } else if (strstr(*arg, ".elf")) { printf("Using '%s' as reios elf file\n", *arg); - cfgSetVitual("config", "reios.enabled", "1"); - cfgSetVitual("reios", "ElfFile", *arg); + cfgSetVirtual("config", "reios.enabled", "1"); + cfgSetVirtual("reios", "ElfFile", *arg); } else { @@ -144,4 +144,4 @@ bool ParseCommandLine(int argc,wchar* argv[]) } printf("\n"); return false; -} \ No newline at end of file +}