Make pattern popup when loading a file list all available patterns

This commit is contained in:
WerWolv
2021-01-23 14:01:23 +01:00
parent 51d9d37d1a
commit b8e383368d
2 changed files with 22 additions and 12 deletions

View File

@@ -9,6 +9,7 @@
#include <cstring>
#include <filesystem>
#include <thread>
#include <vector>
#include <ImGuiFileBrowser.h>
#include <TextEditor.h>
@@ -26,7 +27,8 @@ namespace hex {
private:
lang::PatternLanguage *m_patternLanguageRuntime;
std::vector<lang::PatternData*> &m_patternData;
std::filesystem::path m_possiblePatternFile;
std::vector<std::string> m_possiblePatternFiles;
int m_selectedPatternFile = 0;
TextEditor m_textEditor;
std::vector<std::pair<lang::LogConsole::Level, std::string>> m_console;