- std::string -> const std::string& where needed - Added a FileIO abstraction class - Fixed recent files not updating - Removed localization file from global include - Renamed lang to pattern_language/pl - Renamed EventFileDropped to RequestFileOpen
42 lines
896 B
C++
42 lines
896 B
C++
#pragma once
|
|
|
|
#include <hex.hpp>
|
|
|
|
#include <list>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
namespace hex {
|
|
|
|
struct ImHexApi {
|
|
ImHexApi() = delete;
|
|
|
|
struct Common {
|
|
|
|
static void closeImHex(bool noQuestions = false);
|
|
static void restartImHex();
|
|
|
|
};
|
|
|
|
struct Bookmarks {
|
|
Bookmarks() = delete;
|
|
|
|
struct Entry {
|
|
Region region;
|
|
|
|
std::vector<char> name;
|
|
std::vector<char> comment;
|
|
u32 color;
|
|
bool locked;
|
|
};
|
|
|
|
static void add(Region region, const std::string &name, const std::string &comment, u32 color = 0x00000000);
|
|
static void add(u64 addr, size_t size, const std::string &name, const std::string &comment, u32 color = 0x00000000);
|
|
|
|
static std::list<Entry>& getEntries();
|
|
};
|
|
|
|
};
|
|
|
|
}
|