| 28 | #include <filesystem> |
| 29 | |
| 30 | int AutoDetect::arch(Context *context) |
| 31 | { |
| 32 | /* Change settings based on game arch */ |
| 33 | int gameArch = extractBinaryType(context->gameexecutable); |
| 34 | int libtasArch = extractBinaryType(context->libtaspath) & BT_TYPEMASK; |
| 35 | |
| 36 | /* Switch to libtas32.so if required */ |
| 37 | if ((((gameArch&BT_TYPEMASK) == BT_ELF32) || ((gameArch&BT_TYPEMASK) == BT_PE32) || ((gameArch&BT_TYPEMASK) == BT_NE)) && (libtasArch == BT_ELF64)) { |
| 38 | /* libtas32.so presence was already checked in ui/ErrorChecking.cpp */ |
| 39 | context->libtaspath = context->libtas32path; |
| 40 | } |
| 41 | |
| 42 | return gameArch; |
| 43 | } |
| 44 | |
| 45 | void AutoDetect::game_libraries(Context *context) |
| 46 | { |
nothing calls this directly
no test coverage detected