Torch
Loading...
Searching...
No Matches
BKHeaderExporter.h
1#pragma once
2
3#include "Companion.h"
4#include <factories/BaseFactory.h>
5
6namespace BK64 {
7
9 ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> raw, std::string& entryName,
10 YAML::Node& node, std::string* replacement) override {
11 const auto symbol = GetSafeNode(node, "symbol", entryName);
12
13 if (Companion::Instance->IsOTRMode()) {
14 write << "static const ALIGN_ASSET(2) char " << symbol << "[] = \"__OTR__" << (*replacement) << "\";\n\n";
15 }
16
17 return std::nullopt;
18 }
19};
20
21} // namespace BK64
Definition BKHeaderExporter.h:8
Definition BaseFactory.h:96