MCPcopy Create free account
hub / github.com/clementgallet/libTAS / updateGamePathAvailability

Method updateGamePathAvailability

src/program/ui/MainWindow.cpp:1263–1277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261}
1262
1263bool 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
1279void MainWindow::applyGamePathConfig()
1280{

Callers

nothing calls this directly

Calls 3

accessFunction · 0.85
extractBinaryTypeFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected