| 1261 | } |
| 1262 | |
| 1263 | bool MainWindow::updateGamePathAvailability() |
| 1264 | { |
| 1265 | if (access(context->gamepath.c_str(), F_OK) != 0) { |
| 1266 | launchButton->setEnabled(false); |
| 1267 | launchGdbButton->setEnabled(false); |
| 1268 | return false; |
| 1269 | } |
| 1270 | |
| 1271 | launchButton->setEnabled(true); |
| 1272 | |
| 1273 | int gameArch = extractBinaryType(context->gamepath) & BT_TYPEMASK; |
| 1274 | bool canAttachDebugger = (gameArch != BT_PE32) && (gameArch != BT_PE32P) && (gameArch != BT_NE); |
| 1275 | launchGdbButton->setEnabled(canAttachDebugger); |
| 1276 | return true; |
| 1277 | } |
| 1278 | |
| 1279 | void MainWindow::applyGamePathConfig() |
| 1280 | { |
nothing calls this directly
no test coverage detected