if (capability_check_gl == 1) {
enable_yagl = 0;
- LOG_INFO("<WARNING> GL acceleration was disabled "
- "due to the fail of GL check!\n");
+ LOG_WARNING("GL acceleration was disabled "
+ "due to the fail of GL check!\n");
#ifndef CONFIG_LINUX
}
#else
} else if (capability_check_gl == 2) {
- int ret = 0;
- gchar *cmd = NULL;
- char exec_cmd[] = "zenity --error --no-wrap --text=";
- char err_msg[] =
- "\"You are using invalid graphic card driver for "
- "the emulator.\n"
- "You have to use the lastest vendor-provided graphic "
- "card driver.\n\nFor more information, see under ubuntu"
- " driver help page.\n"
- "https://help.ubuntu.com/community/BinaryDriverHowto/\"";
- int cmd_len = strlen(exec_cmd) + strlen(err_msg);
- cmd = g_malloc0(cmd_len);
- snprintf(cmd, cmd_len + 1, "%s%s", exec_cmd, err_msg);
- ret = system(cmd);
- LOG_SEVERE("%s\nzenity return=%d\n", err_msg, ret);
- g_free(cmd);
- exit(-1);
+ LOG_WARNING("You are using invalid graphic card driver for "
+ "the emulator.\nIt can cause serious problems.\n"
+ "You have to use the lastest vendor-provided "
+ "graphic card driver.\n\nFor more information, "
+ "see under ubuntu driver help page.\n"
+ "https://help.ubuntu.com/community/BinaryDriverHowto/\n");
}
#endif
}