1
0
mirror of synced 2025-02-25 05:55:02 +01:00
WerWolv e74c0f5cf5 sys: Tons of long overdue cleanup
- 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
2021-09-08 15:18:24 +02:00

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();
};
};
}