mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Some code format changes made by clang-format 18
This commit is contained in:
parent
3dcc7be790
commit
9bc20fb18a
|
@ -299,10 +299,10 @@ namespace GamelistFileParser
|
|||
// application restart.
|
||||
if (!Settings::getInstance()->getBool("ShowHiddenGames")) {
|
||||
if (file->getHidden()) {
|
||||
LOG(LogDebug) << "GamelistFileParser::parseGamelist(): Skipping hidden "
|
||||
<< (type == GAME ? "file" : "folder") << " entry \""
|
||||
<< file->getName() << "\""
|
||||
<< " (\"" << file->getPath() << "\")";
|
||||
LOG(LogDebug)
|
||||
<< "GamelistFileParser::parseGamelist(): Skipping hidden "
|
||||
<< (type == GAME ? "file" : "folder") << " entry \"" << file->getName()
|
||||
<< "\"" << " (\"" << file->getPath() << "\")";
|
||||
FileData* parent {file->getParent()};
|
||||
delete file;
|
||||
// In case there are no entries left in the folder.
|
||||
|
|
|
@ -898,8 +898,7 @@ std::string MiximageGenerator::getSavePath() const
|
|||
|
||||
#if defined(__ANDROID__)
|
||||
if (!Utils::FileSystem::exists(path + ".nomedia")) {
|
||||
LOG(LogInfo) << "Creating \"no media\" file \"" << path + ".nomedia"
|
||||
<< "\"...";
|
||||
LOG(LogInfo) << "Creating \"no media\" file \"" << path + ".nomedia" << "\"...";
|
||||
Utils::FileSystem::createEmptyFile(path + ".nomedia");
|
||||
if (!Utils::FileSystem::exists(path + ".nomedia")) {
|
||||
LOG(LogWarning) << "Couldn't create file, permission problems?";
|
||||
|
|
|
@ -156,9 +156,8 @@ bool PDFViewer::startPDFViewer(FileData* game)
|
|||
|
||||
#if (DEBUG_PDF_CONVERSION)
|
||||
LOG(LogDebug) << "Page " << i << ": Orientation: " << mPages[i].orientation << " / "
|
||||
<< "crop box width: " << width << " / "
|
||||
<< "crop box height: " << height << " / "
|
||||
<< "size ratio: " << width / height << " / "
|
||||
<< "crop box width: " << width << " / " << "crop box height: " << height
|
||||
<< " / " << "size ratio: " << width / height << " / "
|
||||
<< "texture size: " << mPages[i].width << "x" << mPages[i].height;
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -873,8 +873,7 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
}
|
||||
if (!Utils::FileSystem::exists(themeDir + "/.nomedia")) {
|
||||
LOG(LogInfo) << "Creating \"no media\" file \"" << themeDir + "/.nomedia"
|
||||
<< "\"...";
|
||||
LOG(LogInfo) << "Creating \"no media\" file \"" << themeDir + "/.nomedia" << "\"...";
|
||||
Utils::FileSystem::createEmptyFile(themeDir + "/.nomedia");
|
||||
if (!Utils::FileSystem::exists(themeDir + "/.nomedia")) {
|
||||
LOG(LogWarning) << "Couldn't create file, permission problems?";
|
||||
|
@ -1174,8 +1173,7 @@ int main(int argc, char* argv[])
|
|||
#if defined(__ANDROID__)
|
||||
if (!Utils::FileSystem::exists(FileData::getROMDirectory() + ".nomedia")) {
|
||||
LOG(LogInfo) << "Creating \"no media\" file \""
|
||||
<< FileData::getROMDirectory() + ".nomedia"
|
||||
<< "\"...";
|
||||
<< FileData::getROMDirectory() + ".nomedia" << "\"...";
|
||||
Utils::FileSystem::createEmptyFile(FileData::getROMDirectory() + ".nomedia");
|
||||
if (!Utils::FileSystem::exists(FileData::getROMDirectory() + ".nomedia")) {
|
||||
LOG(LogWarning) << "Couldn't create file, permission problems?";
|
||||
|
|
|
@ -726,8 +726,7 @@ std::string getSaveAsPath(const ScraperSearchParams& params,
|
|||
|
||||
#if defined(__ANDROID__)
|
||||
if (!Utils::FileSystem::exists(path + ".nomedia")) {
|
||||
LOG(LogInfo) << "Creating \"no media\" file \"" << path + ".nomedia"
|
||||
<< "\"...";
|
||||
LOG(LogInfo) << "Creating \"no media\" file \"" << path + ".nomedia" << "\"...";
|
||||
Utils::FileSystem::createEmptyFile(path + ".nomedia");
|
||||
if (!Utils::FileSystem::exists(path + ".nomedia")) {
|
||||
LOG(LogWarning) << "Couldn't create file, permission problems?";
|
||||
|
|
|
@ -177,8 +177,7 @@ void ViewController::setMenuColors()
|
|||
|
||||
void ViewController::legacyAppDataDialog()
|
||||
{
|
||||
const std::string upgradeMessage
|
||||
{
|
||||
const std::string upgradeMessage {
|
||||
"AS OF ES-DE 3.0 THE APPLICATION DATA DIRECTORY HAS CHANGED FROM \".emulationstation\" "
|
||||
"to \"ES-DE\"\nPLEASE RENAME YOUR CURRENT DATA DIRECTORY:\n" +
|
||||
#if defined(_WIN64)
|
||||
|
@ -186,12 +185,10 @@ void ViewController::legacyAppDataDialog()
|
|||
"\nTO THE FOLLOWING:\n" +
|
||||
Utils::String::replace(
|
||||
Utils::FileSystem::getParent(Utils::FileSystem::getAppDataDirectory()), "/", "\\") +
|
||||
"\\ES-DE"
|
||||
};
|
||||
"\\ES-DE"};
|
||||
#else
|
||||
Utils::FileSystem::getAppDataDirectory() + "\nTO THE FOLLOWING:\n" +
|
||||
Utils::FileSystem::getParent(Utils::FileSystem::getAppDataDirectory()) + "/ES-DE"
|
||||
};
|
||||
Utils::FileSystem::getParent(Utils::FileSystem::getAppDataDirectory()) + "/ES-DE"};
|
||||
#endif
|
||||
|
||||
mWindow->pushGui(new GuiMsgBox(
|
||||
|
|
Loading…
Reference in a new issue