mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Changed the descriptive name of ~/.emulationstation to the ES-DE home directory.
This commit is contained in:
parent
55a0cef4d1
commit
f6122ed94a
|
@ -353,15 +353,16 @@ bool parseArgs(int argc, char* argv[])
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool checkApplicationBaseDirectory()
|
bool checkApplicationHomeDirectory()
|
||||||
{
|
{
|
||||||
// Check that the application base directory exists, otherwise create it.
|
// Check that the application home directory exists, otherwise create it.
|
||||||
std::string home = Utils::FileSystem::getHomePath();
|
std::string home = Utils::FileSystem::getHomePath();
|
||||||
std::string applicationBase = home + "/.emulationstation";
|
std::string applicationHome = home + "/.emulationstation";
|
||||||
if (!Utils::FileSystem::exists(applicationBase)) {
|
if (!Utils::FileSystem::exists(applicationHome)) {
|
||||||
std::cout << "First startup, creating base directory \"" << applicationBase << "\"\n";
|
std::cout << "First startup, creating application home directory \"" <<
|
||||||
Utils::FileSystem::createDirectory(applicationBase);
|
applicationHome << "\"\n";
|
||||||
if (!Utils::FileSystem::exists(applicationBase)) {
|
Utils::FileSystem::createDirectory(applicationHome);
|
||||||
|
if (!Utils::FileSystem::exists(applicationHome)) {
|
||||||
std::cerr << "Fatal error: Couldn't create directory, permission problems?\n";
|
std::cerr << "Fatal error: Couldn't create directory, permission problems?\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -451,7 +452,7 @@ int main(int argc, char* argv[])
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If ~/.emulationstation doesn't exist and cannot be created, bail.
|
// If ~/.emulationstation doesn't exist and cannot be created, bail.
|
||||||
if (!checkApplicationBaseDirectory())
|
if (!checkApplicationHomeDirectory())
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
// Start the logger.
|
// Start the logger.
|
||||||
|
|
Loading…
Reference in a new issue