ImHex/source/main.cpp

27 lines
553 B
C++
Raw Normal View History

#include "window.hpp"
2020-11-10 20:31:04 +00:00
#include "views/highlight.hpp"
#include "views/view_hexeditor.hpp"
#include "views/view_pattern.hpp"
2020-11-10 20:31:04 +00:00
#include "views/view_pattern_data.hpp"
#include <tuple>
#include <vector>
int main() {
hex::Window window;
2020-11-10 20:31:04 +00:00
// Shared Data
std::vector<hex::Highlight> highlights;
FILE *file = nullptr;
// Create views
window.addView<hex::ViewHexEditor>(file, highlights);
window.addView<hex::ViewPattern>(highlights);
window.addView<hex::ViewPatternData>(file, highlights);
window.loop();
return 0;
}