This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
43
Wiki
Activity
Browse Source
Add settings::restart which restarts Rack on exit when true.
tags/v2.6.1
Andrew Belt
5 months ago
parent
9b3d8c2136
commit
4d796b547e
3 changed files
with
8 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
adapters/standalone.cpp
+2
-0
include/settings.hpp
+1
-0
src/settings.cpp
+ 5
- 0
adapters/standalone.cpp
View File
@@ -312,6 +312,11 @@ int main(int argc, char* argv[]) {
INFO("Destroying logger");
logger::destroy();
// Restart executable if requested
if (settings::restart) {
settings::restart = false;
return main(argc, argv);
}
return 0;
}
+ 2
- 0
include/settings.hpp
View File
@@ -24,6 +24,8 @@ extern std::string settingsPath;
extern bool devMode;
extern bool headless;
extern bool isPlugin;
/** Requests to restart the application on exit. */
extern bool restart;
// Persistent state, serialized to settings.json.
+ 1
- 0
src/settings.cpp
View File
@@ -19,6 +19,7 @@ std::string settingsPath;
bool devMode = false;
bool headless = false;
bool isPlugin = false;
bool restart = false;
std::string language = "en";
bool safeMode = false;
Write
Preview
Loading…
Cancel
Save