From 0420b79a93ba0dcc4e2c3e17987e775d1857d050 Mon Sep 17 00:00:00 2001 From: Myst33d Date: Sat, 3 Oct 2020 23:38:38 +0600 Subject: [PATCH] Fix indent --- src/main.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3eedff2..24859d7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -93,27 +93,27 @@ int main(int argc, char* argv[]) // TODO: launch a opengl window or use offscreen to see if GL_ARB_framebuffer_object // can be found if (!(settings.value("Backend/disableSunxiCheck", false).toBool() || ranFirstTimeSetup) || pinephone ) { - std::string buf; - std::ifstream modulesFd; + std::string buf; + std::ifstream modulesFd; - modulesFd.open("/proc/modules"); + modulesFd.open("/proc/modules"); - if(modulesFd.is_open()) { - while(!modulesFd.eof()) { - std::getline(modulesFd, buf); - if(buf.find("sunxi") != std::string::npos || buf.find("sun8i") != std::string::npos) { - launcherLogger->info("Running on sunxi, switching to NoFBO."); - settings.setValue("Appearance/clickToPause", false); - settings.setValue("Appearance/doubleTapToSeek", true); - settings.setValue("Appearance/scaleFactor", 2.2); - settings.setValue("Appearance/subtitlesFontSize", 38); - settings.setValue("Appearance/uiFadeTimer", 0); - settings.setValue("Backend/fbo", false); - } - } - } else { - launcherLogger->info("(THIS IS NOT AN ERROR) Cant open /proc/modules."); - } + if(modulesFd.is_open()) { + while(!modulesFd.eof()) { + std::getline(modulesFd, buf); + if(buf.find("sunxi") != std::string::npos || buf.find("sun8i") != std::string::npos) { + launcherLogger->info("Running on sunxi, switching to NoFBO."); + settings.setValue("Appearance/clickToPause", false); + settings.setValue("Appearance/doubleTapToSeek", true); + settings.setValue("Appearance/scaleFactor", 2.2); + settings.setValue("Appearance/subtitlesFontSize", 38); + settings.setValue("Appearance/uiFadeTimer", 0); + settings.setValue("Backend/fbo", false); + } + } + } else { + launcherLogger->info("(THIS IS NOT AN ERROR) Cant open /proc/modules."); + } } #endif