Skip to content

Commit 46181c3

Browse files
committed
[Misc] (Config): Read config file when in the plugin app.
1 parent b308c8c commit 46181c3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/cpp/config/settings.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ void init_settings() {
8686

8787
Version customGLVersion(customGLVersionInt);
8888

89+
int isInPluginApp = 0;
90+
GetEnvVarInt("MG_PLUGIN_STATUS", &isInPluginApp, 0);
8991
int fclVersion = 0;
9092
GetEnvVarInt("FCL_VERSION_CODE", &fclVersion, 0);
9193
int zlVersion = 0;
@@ -95,7 +97,7 @@ void init_settings() {
9597
char* var = getenv("MG_DIR_PATH");
9698
LOG_V("MG_DIR_PATH = %s", var ? var : "(null)")
9799

98-
if (fclVersion == 0 && zlVersion == 0 && pgwVersion == 0 && !var) {
100+
if (isInPluginApp == 0 && fclVersion == 0 && zlVersion == 0 && pgwVersion == 0 && !var) {
99101
LOG_V("Unsupported launcher detected, force using default config.")
100102
angleConfig = AngleConfig::DisableIfPossible;
101103
noErrorConfig = NoErrorConfig::Auto;

0 commit comments

Comments
 (0)