sys: Bunch of cleanup, use fs::path instead of std::string for paths

This commit is contained in:
WerWolv
2022-01-16 01:51:31 +01:00
parent ed8ee35a86
commit a70ece7b9c
32 changed files with 206 additions and 292 deletions

View File

@@ -60,12 +60,8 @@ namespace hex::plugin::builtin {
void drawGotoPopup();
void drawEditPopup();
bool createFile(const std::string &path);
void openFile(const std::string &path);
bool saveToFile(const std::string &path, const std::vector<u8>& data);
bool loadFromFile(const std::string &path, std::vector<u8>& data);
void openFile(const fs::path &path);
enum class Language { C, Cpp, CSharp, Rust, Python, Java, JavaScript };
void copyBytes() const;
void pasteBytes() const;
void copyString() const;

View File

@@ -77,7 +77,7 @@ namespace hex::plugin::builtin {
void drawEnvVars(ImVec2 size);
void drawVariableSettings(ImVec2 size);
void loadPatternFile(const std::string &path);
void loadPatternFile(const fs::path &path);
void clearPatternData();
void parsePattern(const std::string &code);