25 lines
610 B
C++
25 lines
610 B
C++
#include "AccessibleValue.hpp"
|
|
#include "TerminalHelper.hpp"
|
|
#include "StructFormatter.hpp"
|
|
#include "CKFile.hpp"
|
|
#include <cstdio>
|
|
#include <iostream>
|
|
|
|
int main(int argc, char* argv[]) {
|
|
Unvirt::TerminalHelper::EnsureTerminalColor();
|
|
Unvirt::TerminalHelper::EnsureTerminalEncoding();
|
|
|
|
LibCmo::CKMinContext vtctx;
|
|
vtctx.SetTempPath("Temp");
|
|
vtctx.SetEncoding("850");
|
|
|
|
LibCmo::CKFile vtfile(&vtctx);
|
|
LibCmo::CKFileData::ShallowDocument* doc;
|
|
LibCmo::CKERROR err = vtfile.ShallowLoad("combining behaviors.cmo", &doc);
|
|
|
|
if (doc)
|
|
Unvirt::StructFormatter::PrintCKFileInfo(doc->m_FileInfo);
|
|
|
|
return 0;
|
|
}
|