1
0
Fork 0

Fix pinephone check.

This commit is contained in:
namedkitten 2020-05-08 21:31:51 +01:00
parent 3078774ed8
commit fe4ad4458e

View file

@ -93,7 +93,7 @@ int main(int argc, char* argv[])
// this is only to make it so KittehPlayer works first try on pinephone.
// 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)) {
if (!(settings.value("Backend/disableSunxiCheck", false).toBool() || ranFirstTimeSetup) || pinephone ) {
FILE* fd = popen("grep sun[x8]i /proc/modules", "r");
char buf[16];
if (fread(buf, 1, sizeof(buf), fd) > 0 || pinephone) {