Changeset View
Changeset View
Standalone View
Standalone View
source/creator/creator_args.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| const char **UNUSED(argv), | const char **UNUSED(argv), | ||||
| void *UNUSED(data)) | void *UNUSED(data)) | ||||
| { | { | ||||
| G.factory_startup = 1; | G.factory_startup = 1; | ||||
| G.f |= G_FLAG_USERPREF_NO_SAVE_ON_EXIT; | G.f |= G_FLAG_USERPREF_NO_SAVE_ON_EXIT; | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| static const char arg_handle_disable_override_library_doc[] = | static const char arg_handle_enable_override_library_doc[] = | ||||
| "\n\t" | "\n\t" | ||||
| "Enable Library Override features in the UI."; | "Enable Library Override features in the UI."; | ||||
| static int arg_handle_disable_override_library(int UNUSED(argc), | static int arg_handle_enable_override_library(int UNUSED(argc), | ||||
| const char **UNUSED(argv), | const char **UNUSED(argv), | ||||
| void *UNUSED(data)) | void *UNUSED(data)) | ||||
| { | { | ||||
| BKE_override_library_enable(false); | BKE_override_library_enable(true); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| static const char arg_handle_enable_event_simulate_doc[] = | static const char arg_handle_enable_event_simulate_doc[] = | ||||
| "\n\t" | "\n\t" | ||||
| "Enable event simulation testing feature 'bpy.types.Window.event_simulate'."; | "Enable event simulation testing feature 'bpy.types.Window.event_simulate'."; | ||||
| static int arg_handle_enable_event_simulate(int UNUSED(argc), | static int arg_handle_enable_event_simulate(int UNUSED(argc), | ||||
| const char **UNUSED(argv), | const char **UNUSED(argv), | ||||
| ▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
| CB_EX(arg_handle_debug_mode_generic_set, gpumem), | CB_EX(arg_handle_debug_mode_generic_set, gpumem), | ||||
| (void *)G_DEBUG_GPU_FORCE_WORKAROUNDS); | (void *)G_DEBUG_GPU_FORCE_WORKAROUNDS); | ||||
| BLI_argsAdd(ba, 1, NULL, "--verbose", CB(arg_handle_verbosity_set), NULL); | BLI_argsAdd(ba, 1, NULL, "--verbose", CB(arg_handle_verbosity_set), NULL); | ||||
| BLI_argsAdd(ba, 1, NULL, "--app-template", CB(arg_handle_app_template), NULL); | BLI_argsAdd(ba, 1, NULL, "--app-template", CB(arg_handle_app_template), NULL); | ||||
| BLI_argsAdd(ba, 1, NULL, "--factory-startup", CB(arg_handle_factory_startup_set), NULL); | BLI_argsAdd(ba, 1, NULL, "--factory-startup", CB(arg_handle_factory_startup_set), NULL); | ||||
| BLI_argsAdd( | BLI_argsAdd( | ||||
| ba, 1, NULL, "--disable-library-override", CB(arg_handle_disable_override_library), NULL); | ba, 1, NULL, "--enable-library-override", CB(arg_handle_enable_override_library), NULL); | ||||
| BLI_argsAdd(ba, 1, NULL, "--enable-event-simulate", CB(arg_handle_enable_event_simulate), NULL); | BLI_argsAdd(ba, 1, NULL, "--enable-event-simulate", CB(arg_handle_enable_event_simulate), NULL); | ||||
| /* TODO, add user env vars? */ | /* TODO, add user env vars? */ | ||||
| BLI_argsAdd( | BLI_argsAdd( | ||||
| ba, 1, NULL, "--env-system-datafiles", CB_EX(arg_handle_env_system_set, datafiles), NULL); | ba, 1, NULL, "--env-system-datafiles", CB_EX(arg_handle_env_system_set, datafiles), NULL); | ||||
| BLI_argsAdd( | BLI_argsAdd( | ||||
| ba, 1, NULL, "--env-system-scripts", CB_EX(arg_handle_env_system_set, scripts), NULL); | ba, 1, NULL, "--env-system-scripts", CB_EX(arg_handle_env_system_set, scripts), NULL); | ||||
| BLI_argsAdd(ba, 1, NULL, "--env-system-python", CB_EX(arg_handle_env_system_set, python), NULL); | BLI_argsAdd(ba, 1, NULL, "--env-system-python", CB_EX(arg_handle_env_system_set, python), NULL); | ||||
| ▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines | |||||