update layout
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <VTConstants.hpp>
|
||||
#include <CKEnums.hpp>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
@ -42,7 +42,7 @@ namespace Unvirt {
|
||||
}
|
||||
|
||||
// check flag match
|
||||
if (LibCmo::EnumHelper::FlagEnumHas(val, (*it).first)) {
|
||||
if (LibCmo::EnumsHelper::FlagEnumHas(val, (*it).first)) {
|
||||
// matched, add it
|
||||
if (strl.size() != 0u) strl += ", ";
|
||||
strl += (*it).second;
|
||||
|
@ -7,7 +7,6 @@
|
||||
#include <unordered_map>
|
||||
#include <stdexcept>
|
||||
#include "VTUtils.hpp"
|
||||
#include "VTStruct.hpp"
|
||||
|
||||
/*
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "VTStruct.hpp"
|
||||
#include <CKFile.hpp>
|
||||
|
||||
namespace Unvirt {
|
||||
namespace StructFormatter {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "AccessibleValue.hpp"
|
||||
#include "TerminalHelper.hpp"
|
||||
#include "StructFormatter.hpp"
|
||||
#include "VTStruct.hpp"
|
||||
#include "CKFile.hpp"
|
||||
#include <cstdio>
|
||||
#include <iostream>
|
||||
|
||||
@ -9,11 +9,12 @@ int main(int argc, char* argv[]) {
|
||||
Unvirt::TerminalHelper::EnsureTerminalColor();
|
||||
Unvirt::TerminalHelper::EnsureTerminalEncoding();
|
||||
|
||||
LibCmo::Utils::VirtoolsEnvironment vtctx;
|
||||
LibCmo::CKFile vtfile(vtctx);
|
||||
LibCmo::CKERROR err = vtfile.Load("vt2obj.nms", LibCmo::CK_LOAD_FLAGS::CK_LOAD_DEFAULT);
|
||||
LibCmo::CKMinContext vtctx;
|
||||
LibCmo::CKFile vtfile(&vtctx);
|
||||
LibCmo::CKFileData::ShallowDocument* doc;
|
||||
LibCmo::CKERROR err = vtfile.ShallowLoad("Language.old.nmo", &doc);
|
||||
|
||||
Unvirt::StructFormatter::PrintCKFileInfo(vtfile.m_FileInfo);
|
||||
Unvirt::StructFormatter::PrintCKFileInfo(doc->m_FileInfo);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user