mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
feat: Added Auto Updater for Windows, macOS and Ubuntu (#1377)
This commit is contained in:
@@ -313,7 +313,7 @@ namespace hex {
|
||||
return std::to_string(value).substr(0, 5) + Suffixes[suffixIndex];
|
||||
}
|
||||
|
||||
void runCommand(const std::string &command) {
|
||||
void startProgram(const std::string &command) {
|
||||
|
||||
#if defined(OS_WINDOWS)
|
||||
hex::unused(system(hex::format("start {0}", command).c_str()));
|
||||
@@ -326,6 +326,10 @@ namespace hex {
|
||||
#endif
|
||||
}
|
||||
|
||||
int executeCommand(const std::string &command) {
|
||||
return ::system(command.c_str());
|
||||
}
|
||||
|
||||
void openWebpage(std::string url) {
|
||||
if (!url.contains("://"))
|
||||
url = "https://" + url;
|
||||
|
||||
Reference in New Issue
Block a user