#include #include #include "NODLib.hpp" static void printHelp() { fprintf(stderr, "Usage:\n" " nodlib extract [-f] []\n" " nodlib make []\n"); } int main(int argc, char* argv[]) { if (argc < 3) { printHelp(); return -1; } const char* inDir = nullptr; const char* outDir = "."; bool force = false; for (int a=2 ; a disc = NOD::OpenDiscFromImage(inDir); if (!disc) return -1; NOD::DiscBase::IPartition* dataPart = disc->getDataPartition(); if (!dataPart) return -1; dataPart->extractToDirectory(outDir, force); } else if (!strcasecmp(argv[1], "make")) { } else { printHelp(); return -1; } return 0; }