aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 56ed1d5d..780e9770 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -158,7 +158,7 @@ void InitGlobalPathEnv() {
}
}
-void InitGlobalBasicalEnv(const GFCxtWPtr &p_ctx) {
+void InitGlobalBasicalEnv(const GFCxtWPtr &p_ctx, bool gui_mode) {
GFCxtSPtr ctx = p_ctx.lock();
if (ctx == nullptr) {
return;
@@ -170,11 +170,7 @@ void InitGlobalBasicalEnv(const GFCxtWPtr &p_ctx) {
// change path to search for related
InitGlobalPathEnv();
- if (ctx->load_ui_env) {
- ctx->InitGUIApplication();
- } else {
- ctx->InitCoreApplication();
- }
+ ctx->InitApplication(gui_mode);
// should load module system first
Module::ModuleInitArgs module_init_args;