mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
launcher: prevent early hook from launching in standalone configurator (#678)
## Description of change Seems to be an oversight when it was initially implemented; hooks should not load when launching `spicecfg` (or `spice -cfg` or `spice64 -cfg`).
This commit is contained in:
@@ -1532,6 +1532,7 @@ int main_implementation(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// early hooks
|
// early hooks
|
||||||
|
if (!cfg_run) {
|
||||||
for (auto &hook : early_hooks) {
|
for (auto &hook : early_hooks) {
|
||||||
log_info("launcher", "loading early hook DLL {}", hook);
|
log_info("launcher", "loading early hook DLL {}", hook);
|
||||||
libutils::print_dll_info(hook);
|
libutils::print_dll_info(hook);
|
||||||
@@ -1544,6 +1545,7 @@ int main_implementation(int argc, char *argv[]) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// auto detect game if not specified
|
// auto detect game if not specified
|
||||||
if (avs::game::DLL_NAME.empty()) {
|
if (avs::game::DLL_NAME.empty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user