libcmo21/Unvirt/Unvirt.cpp

48 lines
879 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-03-04 00:13:03 +08:00
#include "CmdHelper.hpp"
2023-02-26 21:48:03 +08:00
2023-08-26 20:34:51 +08:00
#include <VTAll.hpp>
#include <CK2/CKContext.hpp>
#include <CK2/CKFile.hpp>
2023-02-26 21:48:03 +08:00
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
2023-08-26 20:34:51 +08:00
namespace Unvirt {
class UnvirtContext {
public:
UnvirtContext() {}
~UnvirtContext() {}
void Run() {
Unvirt::TerminalHelper::EnsureTerminalColor();
Unvirt::TerminalHelper::EnsureTerminalEncoding();
}
private:
};
}
2023-02-08 22:57:31 +08:00
int main(int argc, char* argv[]) {
2023-03-04 00:13:03 +08:00
//LibCmo::CK2::CKMinContext vtctx;
//vtctx.SetTempPath("Temp");
//vtctx.SetEncoding("850");
2023-02-25 22:58:28 +08:00
2023-03-04 00:13:03 +08:00
//LibCmo::CK2::CKFile vtfile(&vtctx);
//LibCmo::CK2::CKFileDocument* doc;
//LibCmo::CK2::CKERROR err = vtfile.DeepLoad("Level_02.NMO", &doc);
2023-02-09 17:16:58 +08:00
2023-03-04 00:13:03 +08:00
//if (doc)
// Unvirt::StructFormatter::PrintCKFileInfo(doc->m_FileInfo);
2023-08-26 20:34:51 +08:00
Unvirt::UnvirtContext ctx;
ctx.Run();
2023-02-08 22:57:31 +08:00
return 0;
}