Changeset View
Changeset View
Standalone View
Standalone View
source/creator/creator_args.c
| Show First 20 Lines • Show All 966 Lines • ▼ Show 20 Lines | |||||
| ; | ; | ||||
| static int arg_handle_with_borders(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) | static int arg_handle_with_borders(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) | ||||
| { | { | ||||
| WM_init_state_normal_set(); | WM_init_state_normal_set(); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| static const char arg_handle_without_borders_doc[] = | static const char arg_handle_without_borders_doc[] = | ||||
| "\n\tForce opening without borders." | "\n\tForce opening in fullscreen mode." | ||||
| ; | ; | ||||
| static int arg_handle_without_borders(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) | static int arg_handle_without_borders(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) | ||||
| { | { | ||||
| WM_init_state_fullscreen_set(); | WM_init_state_fullscreen_set(); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| extern bool wm_start_with_console; /* wm_init_exit.c */ | extern bool wm_start_with_console; /* wm_init_exit.c */ | ||||
| ▲ Show 20 Lines • Show All 903 Lines • ▼ Show 20 Lines | #endif | ||||
| /* 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); | ||||
| BLI_argsAdd(ba, 2, "-w", "--window-border", CB(arg_handle_with_borders), NULL); | BLI_argsAdd(ba, 2, "-w", "--window-border", CB(arg_handle_with_borders), NULL); | ||||
| BLI_argsAdd(ba, 2, "-W", "--window-borderless", CB(arg_handle_without_borders), NULL); | BLI_argsAdd(ba, 2, "-W", "--window-fullscreen", CB(arg_handle_without_borders), NULL); | ||||
| BLI_argsAdd(ba, 2, "-con", "--start-console", CB(arg_handle_start_with_console), NULL); | BLI_argsAdd(ba, 2, "-con", "--start-console", CB(arg_handle_start_with_console), NULL); | ||||
| BLI_argsAdd(ba, 2, "-R", NULL, CB(arg_handle_register_extension), NULL); | BLI_argsAdd(ba, 2, "-R", NULL, CB(arg_handle_register_extension), NULL); | ||||
| BLI_argsAdd(ba, 2, "-r", NULL, CB_EX(arg_handle_register_extension, silent), ba); | BLI_argsAdd(ba, 2, "-r", NULL, CB_EX(arg_handle_register_extension, silent), ba); | ||||
| BLI_argsAdd(ba, 2, NULL, "--no-native-pixels", CB(arg_handle_native_pixels_set), ba); | BLI_argsAdd(ba, 2, NULL, "--no-native-pixels", CB(arg_handle_native_pixels_set), ba); | ||||
| /* third pass: disabling things and forcing settings */ | /* third pass: disabling things and forcing settings */ | ||||
| BLI_argsAddCase(ba, 3, "-nojoystick", 1, NULL, 0, CB(arg_handle_joystick_disable), syshandle); | BLI_argsAddCase(ba, 3, "-nojoystick", 1, NULL, 0, CB(arg_handle_joystick_disable), syshandle); | ||||
| BLI_argsAddCase(ba, 3, "-noglsl", 1, NULL, 0, CB(arg_handle_glsl_disable), NULL); | BLI_argsAddCase(ba, 3, "-noglsl", 1, NULL, 0, CB(arg_handle_glsl_disable), NULL); | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||