Commit Graph

477 Commits

Author SHA1 Message Date
twinaphex c6359d6dbc Divorce g_system_menu from global state 2015-12-06 19:31:47 +01:00
twinaphex 1cfb39a9d1 merge menu.c and menu_driver.c 2015-12-06 17:55:27 +01:00
twinaphex 39e9d5c5ba Start cutting down on the size of some char local variables - we
don't need PATH_MAX_LENGTH for everything
2015-12-06 13:28:20 +01:00
twinaphex e87c38bbed Remove driver_clear_state 2015-12-05 21:14:44 +01:00
twinaphex 5b939e810c Get rid of driver_t and driver_get_ptr 2015-12-05 16:54:13 +01:00
twinaphex 67e8647acb Start isolating usage of driver->netplay_data to netplay.c 2015-12-05 16:27:00 +01:00
twinaphex d4d07f674f Create netplay_driver_ctl 2015-12-05 16:24:31 +01:00
twinaphex 18ab12ab83 Take header include record_driver.h out of driver.h 2015-12-05 16:12:29 +01:00
twinaphex 7e5d1f3117 Only rcord_driver.c references driver->recording now 2015-12-05 16:05:35 +01:00
twinaphex 271975954f move camera_driver.h header incldue out of driver.h 2015-12-05 15:55:26 +01:00
twinaphex 736f343d9f Create RARCH_MENU_CTL_IS_ALIVE 2015-12-05 13:49:34 +01:00
twinaphex 22c08654df Move struct definition of event_cmd_state to runloop.c 2015-12-04 13:09:16 +01:00
twinaphex 67e91033e2 Don't grab config pointer at beginning of rarch_main_iterate_time_to_exit 2015-12-04 12:48:33 +01:00
twinaphex c0a1a6a3fe Move system->shutdown to runloop_ctl, turn it into a local
static variable
2015-12-04 12:44:12 +01:00
twinaphex 371ebc6133 Initialize frame_time_last to 0 2015-12-04 12:27:37 +01:00
twinaphex 3b176eed6f move frame_time_last out of system_t struct and make it
a static local variable inside rarch_main_iterate
2015-12-04 12:26:39 +01:00
twinaphex 599fcec182 Get rid of menu_toggled variable 2015-12-04 11:34:06 +01:00
twinaphex 128095c045 rarch_main_iterate - get rid of now unused ret function 2015-12-04 11:24:53 +01:00
twinaphex 56a26e9014 Reimplement fullscreen toggle 2015-12-04 11:21:06 +01:00
twinaphex f98eef8a53 Backport/rewrites wmarquesr - pt. 5 2015-12-04 10:49:09 +01:00
twinaphex 02d9dcf906 Cleanups 2015-12-04 10:23:39 +01:00
twinaphex d0dba20c5a Pass plain bool to rarch_main_iterate_time_to_exit 2015-12-04 10:19:13 +01:00
twinaphex fddab2a2b8 Turn main_max_frames into static local variable and reimplement
rarch_main_iterate_time_to_exit
2015-12-04 10:18:14 +01:00
twinaphex cc1f0e6ab4 Reimplement EVENT_CMD_SET_FRAME_LIMIT and make frame_limit_minimum_time
and frame_limit_last_time static local variables of rarch_main_iterate
2015-12-04 09:54:12 +01:00
twinaphex bb6ab7351b Move runloop_fullpath to runloop_ctl 2015-12-04 08:43:05 +01:00
twinaphex 1cd32c0dfc Turn mq_lock into static local variable and move it to runloop_ctl 2015-12-04 08:40:42 +01:00
twinaphex 21f4281f88 Turn main_core_shutdown_initiated into static local variable 2015-12-04 08:00:51 +01:00
twinaphex a99c8a148f Turn main_is_paused into static local variable 2015-12-04 07:56:53 +01:00
twinaphex fe236eae32 move main_is_slowmotion to runloop_ctl as static local variable 2015-12-04 07:42:37 +01:00
twinaphex f6dfcd0f68 Turn runloop_perfcnt_enable into local static variable 2015-12-04 07:22:42 +01:00
twinaphex 16912401c3 Move g_extern to global_get_ptr as static local variable 2015-12-04 07:18:39 +01:00
twinaphex ad97c7f589 Turn main_is_idle into static local variable 2015-12-04 03:07:05 +01:00
twinaphex 646d697d95 Turn main_exec into static local variable 2015-12-04 03:01:48 +01:00
twinaphex ad3e74670b Move shader_dir_list to runloop.c 2015-12-01 04:00:09 +01:00
twinaphex 10875bf6a0 Move shader_dir references 2015-12-01 03:55:31 +01:00
twinaphex 3555fc1d02 Cleanups 2015-12-01 03:51:34 +01:00
twinaphex fcde5ae8ff Add RUNLOOP_CTL_GET_WINDOWED_SCALE 2015-12-01 03:46:56 +01:00
twinaphex c5df156f23 Cleanups 2015-12-01 03:33:50 +01:00
twinaphex 43abd39f6a Start limiting scope of global->cheat to cheats.c 2015-12-01 02:43:34 +01:00
twinaphex f1a0068dc7 Move bsv global state to movie.c 2015-12-01 01:47:26 +01:00
twinaphex 251075fc03 global->bsv.movie not accessed outside now 2015-12-01 01:38:45 +01:00
twinaphex ca48d12858 Get rid of global->bsv references 2015-12-01 01:29:16 +01:00
twinaphex a6d8d28895 Create more BSV_MOVIE_CTL_* enums 2015-12-01 00:16:48 +01:00
twinaphex 4131abf489 Don't access global->bsv. directly 2015-12-01 00:08:02 +01:00
twinaphex 5d9e6bca60 Move bsv movie code to movie.c 2015-12-01 00:04:04 +01:00
twinaphex d3ac25ae3e Turn global->path.fullpath into static variable 2015-11-30 23:45:29 +01:00
twinaphex 952ecf22cd (runloop.c) Turn some functions static 2015-11-30 23:29:46 +01:00
twinaphex 809f8da955 move msg_queue_pushf to tasks/tasks.c 2015-11-30 23:24:11 +01:00
twinaphex 3281ba6e91 Header include 2015-11-30 22:30:13 +01:00
twinaphex 0db7cda264 Start moving rewind code to rewind.c 2015-11-30 22:25:13 +01:00
twinaphex 6b92167050 Move block_config_read to retroarch.c 2015-11-30 22:09:28 +01:00
twinaphex 04605f085c Create RUNLOOP_CTL_{PERFCNT} 2015-11-30 21:56:35 +01:00
twinaphex 9824eb7ea9 Rename rarch_main_ctl to runloop_ctl 2015-11-30 21:42:59 +01:00
twinaphex 4e333302ae Rename RARCH_MAIN_CTL* to RUNLOOP_CTL* 2015-11-30 21:35:50 +01:00
twinaphex ca71e1a5bb Rename RARCH_ACTION_STATE_ to RARCH_CTL_ 2015-11-30 21:28:55 +01:00
twinaphex 1368897cd6 (Wii) Warning fixes 2015-11-30 19:34:34 +01:00
twinaphex 5d70131ce1 Move global->autosave to autosave.c 2015-11-30 19:23:13 +01:00
twinaphex b0c36c18dd Move global->exec to runloop.c as static variable 2015-11-30 15:46:39 +01:00
twinaphex 86de67b3d7 Move core_shutdown_initiated to runloop.c and turn it into
static variable
2015-11-30 15:43:49 +01:00
twinaphex 4e0a4150b5 Merge runloop and runloop_data.c 2015-11-30 15:35:57 +01:00
twinaphex 871713dd9d Move driver->keyboard_linefeed_enable to input_driver.c 2015-11-30 03:23:35 +01:00
twinaphex d4e88324ac Move driver->osk_enable to input_driver.c 2015-11-30 03:14:26 +01:00
twinaphex 3cd701450a Cleanups 2015-11-30 00:13:51 +01:00
twinaphex 777f8e94d0 Don't pass driver to rarch_main_cmd_get_state 2015-11-29 23:11:33 +01:00
twinaphex 1c867cedf0 Move nonblock_state to input_driver.c (NOTE: we probably need
to relocate this later on)
2015-11-29 17:53:11 +01:00
twinaphex f7bb3650d9 Simplify driver_set_nonblock_state 2015-11-29 17:45:07 +01:00
twinaphex 253649b0cf Move flushing_input to input_driver.c 2015-11-29 17:23:30 +01:00
twinaphex fa0e2032c6 Move EVENT_CMD_PREPARE_DUMMY to rarch_main_ctl 2015-11-29 00:29:41 +01:00
twinaphex f97f0aa480 Merge runloop.c and runloop_msg.c 2015-11-29 00:19:01 +01:00
twinaphex bd6b79fdee command_event should only be used for events that the user can call,
so start moving things that the user shouldn't call to rarch_main_ctl
instead
2015-11-29 00:15:51 +01:00
twinaphex 1df5d44bdb Rename input/keyboard_line 2015-11-28 16:13:16 +01:00
twinaphex b2613904ee Skip menu rendering and sleep when RARCH_MAIN_CTL_IS_IDLE is true 2015-11-28 15:57:27 +01:00
twinaphex 2b4464f30a Implement RARCH_MAIN_CTL_IS_IDLE 2015-11-28 15:03:59 +01:00
twinaphex 778842abe3 Need to sleep for 10ms and return 1 to prevent high CPU usage
in unfocused mode
2015-11-28 03:41:30 +01:00
twinaphex af2efa8a29 (Menu) Render when we are focused 2015-11-28 03:22:20 +01:00
Twinaphex f0d37aed11 Take out this for now 2015-11-28 03:11:07 +01:00
twinaphex a1226004f5 Revert "Don't render menu if unfocused - reimplement this"
This reverts commit ce7ec0681b.
2015-11-28 03:05:37 +01:00
twinaphex ce7ec0681b Don't render menu if unfocused - reimplement this 2015-11-28 03:03:26 +01:00
twinaphex a6ccc188a8 Rename input_common.c to input_config.c 2015-11-28 02:22:58 +01:00
twinaphex 265e36a5d0 Some CXX_BUILD buildfixes 2015-11-28 00:33:01 +01:00
Jean-André Santoni 63d977d674 (Menu) Fixes #2479 that was caused by bcb54b2eec and resulted in 2000fps on some nvidia cards 2015-11-28 04:40:48 +07:00
twinaphex f42098013f Should now idle at menu if pause_nonactive is true 2015-11-27 20:34:43 +01:00
twinaphex ec9ec9e079 Create RARCH_MAIN_CTL_CHECK_IDLE_STATE 2015-11-27 20:13:52 +01:00
twinaphex 7a831bcea6 Check focus and decide to sleep if 'pause_nonactive' is true 2015-11-27 18:56:11 +01:00
twinaphex 60dd3fe8b3 Move input_data related code to input/input_common.c 2015-11-24 00:53:47 +01:00
twinaphex 09fe26257c header include changes 2015-11-23 21:58:39 +01:00
twinaphex e0f0590269 Rearrange header includes 2015-11-23 19:40:09 +01:00
twinaphex a9cb970d0d Move log_file code to verbosity.c 2015-11-23 15:45:02 +01:00
twinaphex 76d6378228 Go through video_driver_ctl 2015-11-23 15:01:49 +01:00
twinaphex 9b41061143 Rename driver->video 2015-11-23 14:14:12 +01:00
twinaphex 074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex e02fdd5b5b Cleanups 2015-11-23 10:13:27 +01:00
twinaphex d65a445acd Fix concurrency issue with global->verbose 2015-11-22 20:50:39 +01:00
twinaphex b59e2907f3 Add RARCH_AUDIO_CTL_SETUP_REWIND 2015-11-22 15:25:43 +01:00
twinaphex 6286e4b74c Add RARCH_DISPLAY_CTL_CACHED_FRAME_RENDER 2015-11-20 15:34:10 +01:00
twinaphex 533b799692 Create video_driver_ctl and get rid of video_driver_get_frame_count 2015-11-20 15:08:27 +01:00
twinaphex fecdc86475 Create RARCH_MAIN_CTL_SET_WINDOWED_SCALE 2015-11-18 11:55:23 +01:00
twinaphex a4ae655ff4 Start going through rarch_main_ctl for grabbing fullpath 2015-11-18 11:43:25 +01:00
twinaphex 2b727fa941 Add RARCH_MAIN_CTL_SET_LIBRETRO_PATH/RARCH_MAIN_CTL_SET_CONTENT_PATH 2015-11-18 11:15:42 +01:00
twinaphex 88cbdbdfda Reorder runloop global data struct 2015-11-18 03:25:23 +01:00