mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Some very minor code cleanup
This commit is contained in:
parent
f797ade74f
commit
6da4fccf14
|
@ -954,7 +954,7 @@ bool SystemData::createSystemDirectories()
|
||||||
std::vector<std::string> configPaths {getConfigPath(true)};
|
std::vector<std::string> configPaths {getConfigPath(true)};
|
||||||
const std::string& rompath {FileData::getROMDirectory()};
|
const std::string& rompath {FileData::getROMDirectory()};
|
||||||
|
|
||||||
bool onlyProcessCustomFile = false;
|
bool onlyProcessCustomFile {false};
|
||||||
|
|
||||||
LOG(LogInfo) << "Generating ROM directory structure...";
|
LOG(LogInfo) << "Generating ROM directory structure...";
|
||||||
|
|
||||||
|
@ -1062,7 +1062,7 @@ bool SystemData::createSystemDirectories()
|
||||||
std::string platform;
|
std::string platform;
|
||||||
std::string themeFolder;
|
std::string themeFolder;
|
||||||
const std::string systemInfoFileName {"/systeminfo.txt"};
|
const std::string systemInfoFileName {"/systeminfo.txt"};
|
||||||
bool replaceInfoFile = false;
|
bool replaceInfoFile {false};
|
||||||
std::ofstream systemInfoFile;
|
std::ofstream systemInfoFile;
|
||||||
|
|
||||||
name = system.child("name").text().get();
|
name = system.child("name").text().get();
|
||||||
|
@ -1292,8 +1292,7 @@ std::string SystemData::getGamelistPath(bool forWrite) const
|
||||||
|
|
||||||
filePath = gamelistPath + "/gamelist.xml";
|
filePath = gamelistPath + "/gamelist.xml";
|
||||||
|
|
||||||
// Make sure the directory exists if we're going to write to it,
|
// Make sure the directory exists if we're going to write to it, or crashes will happen.
|
||||||
// or crashes will happen.
|
|
||||||
if (forWrite)
|
if (forWrite)
|
||||||
Utils::FileSystem::createDirectory(Utils::FileSystem::getParent(filePath));
|
Utils::FileSystem::createDirectory(Utils::FileSystem::getParent(filePath));
|
||||||
if (forWrite || Utils::FileSystem::exists(filePath))
|
if (forWrite || Utils::FileSystem::exists(filePath))
|
||||||
|
|
Loading…
Reference in a new issue