libcmo21/Unvirt/Unvirt.cpp

20 lines
537 B
C++
Raw Normal View History

2023-02-08 22:57:31 +08:00
#include "AccessibleValue.hpp"
2023-02-12 18:08:29 +08:00
#include "TerminalHelper.hpp"
2023-02-14 16:28:37 +08:00
#include "StructFormatter.hpp"
2023-02-11 15:29:51 +08:00
#include "VTStruct.hpp"
2023-02-08 22:57:31 +08:00
#include <cstdio>
2023-02-12 18:08:29 +08:00
#include <iostream>
2023-02-08 22:57:31 +08:00
int main(int argc, char* argv[]) {
2023-02-12 18:08:29 +08:00
Unvirt::TerminalHelper::EnsureTerminalColor();
Unvirt::TerminalHelper::EnsureTerminalEncoding();
2023-02-14 21:31:18 +08:00
LibCmo::Utils::VirtoolsEnvironment vtctx;
2023-02-11 15:29:51 +08:00
LibCmo::CKFile vtfile(vtctx);
2023-02-14 21:31:18 +08:00
LibCmo::CKERROR err = vtfile.Load("Language.old.nmo", LibCmo::CK_LOAD_FLAGS::CK_LOAD_DEFAULT);
2023-02-09 17:16:58 +08:00
2023-02-14 16:28:37 +08:00
Unvirt::StructFormatter::PrintCKFileInfo(vtfile.m_FileInfo);
2023-02-08 22:57:31 +08:00
return 0;
}