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

Method arch

src/program/AutoDetect.cpp:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include <filesystem>
29
30int 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
45void AutoDetect::game_libraries(Context *context)
46{

Callers

nothing calls this directly

Calls 1

extractBinaryTypeFunction · 0.85

Tested by

no test coverage detected