nod/main.cpp

21 lines
352 B
C++
Raw Normal View History

2015-06-28 05:43:53 +00:00
#include <stdio.h>
#include <string.h>
2015-06-26 20:01:15 +00:00
#include "NODLib.hpp"
2015-06-26 19:30:03 +00:00
2015-06-26 20:01:15 +00:00
int main(int argc, char* argv[])
2015-06-26 19:30:03 +00:00
{
2015-06-26 20:01:15 +00:00
if (argc < 2)
2015-06-28 05:43:53 +00:00
{
fprintf(stderr, "Usage: nodlib <image-in>\n");
2015-06-26 20:01:15 +00:00
return -1;
2015-06-28 05:43:53 +00:00
}
2015-06-26 20:01:15 +00:00
2015-06-28 05:43:53 +00:00
bool isWii;
std::unique_ptr<NOD::DiscBase> disc = NOD::OpenDiscFromImage(argv[1], isWii);
2015-06-26 20:01:15 +00:00
if (!disc)
return -1;
2015-06-26 19:30:03 +00:00
return 0;
}