libcmo21/Unvirt/Unvirt.cpp
2023-02-25 17:39:39 +08:00

21 lines
536 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;
LibCmo::CKFile vtfile(&vtctx);
LibCmo::CKFileData::ShallowDocument* doc;
LibCmo::CKERROR err = vtfile.ShallowLoad("Language.old.nmo", &doc);
Unvirt::StructFormatter::PrintCKFileInfo(doc->m_FileInfo);
return 0;
}