libcmo21/Unvirt/Unvirt.cpp

25 lines
702 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-13 10:57:10 +08:00
#include "CmdHelper.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-11 15:29:51 +08:00
LibCmo::Utils::VirtoolsContext vtctx;
LibCmo::CKFile vtfile(vtctx);
vtfile.Load("Language.old.nmo", LibCmo::CK_LOAD_FLAGS::CK_LOAD_DEFAULT);
2023-02-09 17:16:58 +08:00
2023-02-13 10:57:10 +08:00
//printf(UNVIRT_TERMCOL_LIGHT_YELLOW(("Hello, %s\n")), u8"㴮!");
2023-02-12 18:08:29 +08:00
2023-02-13 10:57:10 +08:00
//std::string bbb("load \"Language. 㴮!old.nmo\" utf8 ");
//Unvirt::CmdHelper::CmdSplitter sp;
//auto a = sp.Convert(bbb);
//printf(UNVIRT_TERMCOL_LIGHT_YELLOW(("%s\n")), a[1].c_str());
2023-02-08 22:57:31 +08:00
return 0;
}