Skip to content

Commit

Permalink
Fix: BUNDLE_PATH is set to jre location, renderer fails to load
Browse files Browse the repository at this point in the history
Fix a bug that is introduced in 23aef2d
  • Loading branch information
khanhduytran0 committed Mar 22, 2023
1 parent 740d537 commit 285e7ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Natives/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,6 @@ void init_setupHomeDirectory() {
}

int main(int argc, char *argv[]) {
setenv("BUNDLE_PATH", dirname(argv[0]), 1);

if (pJLI_Launch) {
return pJLI_Launch(argc, (const char **)argv,
0, NULL, // sizeof(const_jargs) / sizeof(char *), const_jargs,
Expand All @@ -356,6 +354,7 @@ int main(int argc, char *argv[]) {
return ret;
}

setenv("BUNDLE_PATH", dirname(argv[0]), 1);
init_checkForJailbreak();

init_migrateDirIfNecessary();
Expand Down

0 comments on commit 285e7ba

Please sign in to comment.