1
0
Fork 0

Fix indent

This commit is contained in:
Myst33d 2020-10-03 23:38:38 +06:00 committed by purringChaos
parent bc69303cc3
commit 0420b79a93

View file

@ -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 // TODO: launch a opengl window or use offscreen to see if GL_ARB_framebuffer_object
// can be found // can be found
if (!(settings.value("Backend/disableSunxiCheck", false).toBool() || ranFirstTimeSetup) || pinephone ) { if (!(settings.value("Backend/disableSunxiCheck", false).toBool() || ranFirstTimeSetup) || pinephone ) {
std::string buf; std::string buf;
std::ifstream modulesFd; std::ifstream modulesFd;
modulesFd.open("/proc/modules"); modulesFd.open("/proc/modules");
if(modulesFd.is_open()) { if(modulesFd.is_open()) {
while(!modulesFd.eof()) { while(!modulesFd.eof()) {
std::getline(modulesFd, buf); std::getline(modulesFd, buf);
if(buf.find("sunxi") != std::string::npos || buf.find("sun8i") != std::string::npos) { if(buf.find("sunxi") != std::string::npos || buf.find("sun8i") != std::string::npos) {
launcherLogger->info("Running on sunxi, switching to NoFBO."); launcherLogger->info("Running on sunxi, switching to NoFBO.");
settings.setValue("Appearance/clickToPause", false); settings.setValue("Appearance/clickToPause", false);
settings.setValue("Appearance/doubleTapToSeek", true); settings.setValue("Appearance/doubleTapToSeek", true);
settings.setValue("Appearance/scaleFactor", 2.2); settings.setValue("Appearance/scaleFactor", 2.2);
settings.setValue("Appearance/subtitlesFontSize", 38); settings.setValue("Appearance/subtitlesFontSize", 38);
settings.setValue("Appearance/uiFadeTimer", 0); settings.setValue("Appearance/uiFadeTimer", 0);
settings.setValue("Backend/fbo", false); settings.setValue("Backend/fbo", false);
} }
} }
} else { } else {
launcherLogger->info("(THIS IS NOT AN ERROR) Cant open /proc/modules."); launcherLogger->info("(THIS IS NOT AN ERROR) Cant open /proc/modules.");
} }
} }
#endif #endif