Fix pinephone check.
This commit is contained in:
parent
3078774ed8
commit
fe4ad4458e
|
@ -93,7 +93,7 @@ int main(int argc, char* argv[])
|
||||||
// this is only to make it so KittehPlayer works first try on pinephone.
|
// 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
|
// 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 ) {
|
||||||
FILE* fd = popen("grep sun[x8]i /proc/modules", "r");
|
FILE* fd = popen("grep sun[x8]i /proc/modules", "r");
|
||||||
char buf[16];
|
char buf[16];
|
||||||
if (fread(buf, 1, sizeof(buf), fd) > 0 || pinephone) {
|
if (fread(buf, 1, sizeof(buf), fd) > 0 || pinephone) {
|
||||||
|
|
Loading…
Reference in a new issue