Changeset View
Changeset View
Standalone View
Standalone View
source/creator/creator_args.c
| Show First 20 Lines • Show All 563 Lines • ▼ Show 20 Lines | #endif | ||||
| BLI_argsPrintArgDoc(ba, "--debug-fpe"); | BLI_argsPrintArgDoc(ba, "--debug-fpe"); | ||||
| BLI_argsPrintArgDoc(ba, "--disable-crash-handler"); | BLI_argsPrintArgDoc(ba, "--disable-crash-handler"); | ||||
| printf("\n"); | printf("\n"); | ||||
| printf("Misc Options:\n"); | printf("Misc Options:\n"); | ||||
| BLI_argsPrintArgDoc(ba, "--app-template"); | BLI_argsPrintArgDoc(ba, "--app-template"); | ||||
| BLI_argsPrintArgDoc(ba, "--factory-startup"); | BLI_argsPrintArgDoc(ba, "--factory-startup"); | ||||
| BLI_argsPrintArgDoc(ba, "--enable-static-override"); | BLI_argsPrintArgDoc(ba, "--enable-static-override"); | ||||
| BLI_argsPrintArgDoc(ba, "--enable-event-simulate"); | |||||
| printf("\n"); | printf("\n"); | ||||
| BLI_argsPrintArgDoc(ba, "--env-system-datafiles"); | BLI_argsPrintArgDoc(ba, "--env-system-datafiles"); | ||||
| BLI_argsPrintArgDoc(ba, "--env-system-scripts"); | BLI_argsPrintArgDoc(ba, "--env-system-scripts"); | ||||
| BLI_argsPrintArgDoc(ba, "--env-system-python"); | BLI_argsPrintArgDoc(ba, "--env-system-python"); | ||||
| printf("\n"); | printf("\n"); | ||||
| BLI_argsPrintArgDoc(ba, "-noaudio"); | BLI_argsPrintArgDoc(ba, "-noaudio"); | ||||
| BLI_argsPrintArgDoc(ba, "-setaudio"); | BLI_argsPrintArgDoc(ba, "-setaudio"); | ||||
| ▲ Show 20 Lines • Show All 435 Lines • ▼ Show 20 Lines | |||||
| "\n\tEnable Static Override features in the UI." | "\n\tEnable Static Override features in the UI." | ||||
| ; | ; | ||||
| static int arg_handle_enable_static_override(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) | static int arg_handle_enable_static_override(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) | ||||
| { | { | ||||
| BKE_override_static_enable(true); | BKE_override_static_enable(true); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| static const char arg_handle_enable_event_simulate_doc[] = | |||||
| "\n\tEnable event simulation testing feature 'bpy.types.Window.event_simulate'." | |||||
| ; | |||||
| static int arg_handle_enable_event_simulate(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) | |||||
| { | |||||
| G.f |= G_EVENT_SIMULATE; | |||||
| return 0; | |||||
| } | |||||
| static const char arg_handle_env_system_set_doc_datafiles[] = | static const char arg_handle_env_system_set_doc_datafiles[] = | ||||
| "\n\tSet the "STRINGIFY_ARG (BLENDER_SYSTEM_DATAFILES)" environment variable."; | "\n\tSet the "STRINGIFY_ARG (BLENDER_SYSTEM_DATAFILES)" environment variable."; | ||||
| static const char arg_handle_env_system_set_doc_scripts[] = | static const char arg_handle_env_system_set_doc_scripts[] = | ||||
| "\n\tSet the "STRINGIFY_ARG (BLENDER_SYSTEM_SCRIPTS)" environment variable."; | "\n\tSet the "STRINGIFY_ARG (BLENDER_SYSTEM_SCRIPTS)" environment variable."; | ||||
| static const char arg_handle_env_system_set_doc_python[] = | static const char arg_handle_env_system_set_doc_python[] = | ||||
| "\n\tSet the "STRINGIFY_ARG (BLENDER_SYSTEM_PYTHON)" environment variable."; | "\n\tSet the "STRINGIFY_ARG (BLENDER_SYSTEM_PYTHON)" environment variable."; | ||||
| static int arg_handle_env_system_set(int argc, const char **argv, void *UNUSED(data)) | static int arg_handle_env_system_set(int argc, const char **argv, void *UNUSED(data)) | ||||
| ▲ Show 20 Lines • Show All 918 Lines • ▼ Show 20 Lines | #endif | ||||
| BLI_argsAdd(ba, 1, NULL, "--debug-gpu-force-workarounds", | BLI_argsAdd(ba, 1, NULL, "--debug-gpu-force-workarounds", | ||||
| CB_EX(arg_handle_debug_mode_generic_set, gpumem), (void *)G_DEBUG_GPU_FORCE_WORKAROUNDS); | CB_EX(arg_handle_debug_mode_generic_set, gpumem), (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(ba, 1, NULL, "--enable-static-override", CB(arg_handle_enable_static_override), NULL); | BLI_argsAdd(ba, 1, NULL, "--enable-static-override", CB(arg_handle_enable_static_override), 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(ba, 1, NULL, "--env-system-datafiles", CB_EX(arg_handle_env_system_set, datafiles), NULL); | BLI_argsAdd(ba, 1, NULL, "--env-system-datafiles", CB_EX(arg_handle_env_system_set, datafiles), NULL); | ||||
| BLI_argsAdd(ba, 1, NULL, "--env-system-scripts", CB_EX(arg_handle_env_system_set, scripts), NULL); | BLI_argsAdd(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); | ||||
| /* second pass: custom window stuff */ | /* second pass: custom window stuff */ | ||||
| BLI_argsAdd(ba, 2, "-p", "--window-geometry", CB(arg_handle_window_geometry), NULL); | BLI_argsAdd(ba, 2, "-p", "--window-geometry", CB(arg_handle_window_geometry), NULL); | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||