diff options
Diffstat (limited to 'source/creator/creator.c')
-rw-r--r-- | source/creator/creator.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 738b49dff84..8b64ca01650 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -163,7 +163,7 @@ static void callback_main_atexit(void *user_data) struct CreatorAtExitData *app_init_data = user_data; if (app_init_data->ba) { - BLI_argsFree(app_init_data->ba); + BLI_args_destroy(app_init_data->ba); app_init_data->ba = NULL; } @@ -392,7 +392,7 @@ int main(int argc, /* First test for background-mode (#Global.background) */ #ifndef WITH_PYTHON_MODULE - ba = BLI_argsInit(argc, (const char **)argv); /* skip binary path */ + ba = BLI_args_create(argc, (const char **)argv); /* skip binary path */ /* Ensure we free on early exit. */ app_init_data.ba = ba; @@ -404,7 +404,7 @@ int main(int argc, MEM_use_memleak_detection(false); /* Parse environment handling arguments. */ - BLI_argsParse(ba, ARG_PASS_ENVIRONMENT, NULL, NULL); + BLI_args_parse(ba, ARG_PASS_ENVIRONMENT, NULL, NULL); #else /* Using preferences or user startup makes no sense for #WITH_PYTHON_MODULE. */ @@ -423,7 +423,7 @@ int main(int argc, #ifndef WITH_PYTHON_MODULE /* First test for background-mode (#Global.background) */ - BLI_argsParse(ba, ARG_PASS_SETTINGS, NULL, NULL); + BLI_args_parse(ba, ARG_PASS_SETTINGS, NULL, NULL); main_signal_setup(); #endif @@ -461,9 +461,9 @@ int main(int argc, #ifndef WITH_PYTHON_MODULE if (G.background == 0) { - BLI_argsParse(ba, ARG_PASS_SETTINGS_GUI, NULL, NULL); + BLI_args_parse(ba, ARG_PASS_SETTINGS_GUI, NULL, NULL); } - BLI_argsParse(ba, ARG_PASS_SETTINGS_FORCE, NULL, NULL); + BLI_args_parse(ba, ARG_PASS_SETTINGS_FORCE, NULL, NULL); #endif WM_init(C, argc, (const char **)argv); |