bsnes/higan/target-tomoko/tools/manifest-viewer.cpp

13 lines
386 B
C++

ManifestViewer::ManifestViewer(TabFrame* parent) : TabFrameItem(parent) {
setIcon(Icon::Emblem::Text);
setText("Manifest Viewer");
layout.setMargin(5);
manifestView.setEditable(false).setWordWrap(false).setFont(Font().setFamily(Font::Mono));
}
auto ManifestViewer::doRefresh() -> void {
manifestView.setText("");
if(emulator) manifestView.setText(emulator->manifest());
}