diff --git a/AMF_Tester/main.cpp b/AMF_Tester/main.cpp new file mode 100644 index 00000000..05086ff9 --- /dev/null +++ b/AMF_Tester/main.cpp @@ -0,0 +1,19 @@ +#define DEBUG 10 //maximum debugging level evah +#include +#include +#include +#include +#include "amf.cpp" + +int main( int argc, char * argv[] ) { + if( argc != 2 ) { return 1; } + std::string temp; + std::ifstream ifs( argv[1] ); + while( ifs.good() ) { + temp += ifs.get(); + } + static AMFType amfdata("empty", (unsigned char)0xFF); + amfdata = parseAMF( temp ); + amfdata.Print( ); + return 0; +}