// Just show some position data #include #include #include #include #include #include #include #include using namespace std; #include #include #include #include #include #include #include #include #include #include "miscutils.h" int main (int numargs, const char ** args) { uint32_t addr; if (numargs == 2) { istringstream input (args[1],istringstream::in); input >> std::hex >> addr; } DFHack::API DF("Memory.xml"); try { DF.Attach(); } catch (exception& e) { cerr << e.what() << endl; #ifndef LINUX_BUILD cin.ignore(); #endif return 1; } #ifndef LINUX_BUILD cout << "Done. Press any key to continue" << endl; cin.ignore(); #endif return 0; }