Commit Graph

494 Commits

Author SHA1 Message Date
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
aliaspider 6e2b9df32f (3ds) fix non-griffin build. 2015-11-11 21:10:13 +01:00
twinaphex 22f85b11df Don't need this anymore 2015-11-07 20:59:12 +01:00
twinaphex e2ced6bd6a Don't need this additional code anymore 2015-11-07 20:47:29 +01:00
twinaphex 37e450c94c devices_mask no longer needed 2015-11-07 20:44:40 +01:00
twinaphex df01279cf3 Add non-HAVE_MENU ifdefs 2015-10-28 00:55:11 +01:00
twinaphex 02a43c6b2a Change 'rarch' to 'retro' namespace in libretro-common 2015-10-26 03:18:13 +01:00
twinaphex 257efd2899 Make menu_input_frame_pointer part of menu_input_frame_retropad
again
2015-10-24 03:56:28 +02:00
twinaphex 896a80d6b8 Call menu_driver_iterate another time for pointer/mouse controls 2015-10-23 09:15:05 +02:00
twinaphex 8c74be0879 Rename menu_input_frame to menu_input_frame_retropad 2015-10-23 09:01:57 +02:00
twinaphex 6512e95945 Pass device input mask to menu_input_frame 2015-10-22 19:34:25 +02:00
twinaphex 1a20e19c51 We will now be able to know from which input device type the input
event comes from - i.e. keyboard or gamepad
2015-10-22 19:17:47 +02:00
twinaphex cd1f3510eb Move some code around 2015-10-22 18:29:35 +02:00
twinaphex 21f23ea51d Backport 'remove cheevos from the build unless HAVE_CHEEVOS=1;' 2015-10-16 18:04:59 +02:00
twinaphex 528a020d86 Always assume we are going to render when calling menu_driver_iterate 2015-10-11 12:58:21 +02:00
Andre Leiradella c53766dde3 added cheevos_test back to runloop.c; included runloop.c and jsonsax.c in griffin.c 2015-10-09 15:29:50 -03:00
Andre Leiradella 18db59b446 removed cheevos_test for now 2015-10-09 14:09:49 -03:00
Andre Leiradella fa3f17d219 preliminary code for retro achievements (cheevos) 2015-10-09 13:29:57 -03:00
Andre Leiradella 5fce3f4138 grouped core functions inside a retro_core_t structure; swapped core function globals by one retro_core_t variable 2015-10-06 14:34:09 -03:00
twinaphex 6d4900dc1c Create function pointer for iterate function 2015-10-03 05:08:29 +02:00
twinaphex 0acb119f61 Don't use menu_driver_get_ptr in runloop anymore 2015-10-03 04:40:19 +02:00
twinaphex ba1ef9c3c2 (MSVC) Buildfixes 2015-10-02 17:57:37 +02:00
twinaphex a91a326c0f Mistakenly passed cmd to rarch_main_ctl 2015-09-30 19:59:21 +02:00
twinaphex 5c087ecf00 Style nits 2015-09-30 19:12:27 +02:00
twinaphex c926b9fb06 Refinements to rarch_main_iterate_time_to_exit 2015-09-30 19:11:16 +02:00
twinaphex c9a0a48448 Create rarch_main_iterate_time_to_exit 2015-09-30 19:09:26 +02:00
twinaphex 4f889124ae Move video_driver_t * variable around 2015-09-29 18:11:09 +02:00
twinaphex 4ca5d31f9b Some more static code analysis nits when ran with enable=all 2015-09-28 18:12:02 +02:00
twinaphex 9679804382 Rename rarch_main_set_state to rarch_ctl 2015-09-27 01:58:24 +02:00
twinaphex 870ae8b7af (runloop.c) Refactors/cleanups 2015-09-26 21:32:41 +02:00
twinaphex fc96ac60f3 Add RARCH_MAIN_CTL_GLOBAL_FREE 2015-09-26 21:30:20 +02:00
twinaphex a3386f8f56 Refactor away rarch_update_frame_time 2015-09-26 21:06:27 +02:00
twinaphex f62abdfed8 Refactor away rarch_limit_frame_time 2015-09-26 21:03:38 +02:00
twinaphex e911e91f1b Move global->exec unsetting to the right place 2015-09-26 15:46:36 +02:00
twinaphex 8f7fbb973b (runloop.c) Refine/refactor do_quit code 2015-09-26 15:45:45 +02:00
twinaphex 0c674e8917 rarch_main_ctl - cleanups 2015-09-26 15:37:16 +02:00
twinaphex b15347c893 Refactor rarch_main_ctl 2015-09-26 15:35:01 +02:00
twinaphex ca7f547412 Add RARCH_MAIN_CTL_CHECK_STATE 2015-09-26 15:24:05 +02:00
twinaphex bae9abb525 Add RARCH_MAIN_CTL_CHECK_PAUSE 2015-09-26 15:16:28 +02:00
twinaphex fd4ce8659c Cleanups 2015-09-26 15:08:52 +02:00
twinaphex ce36506734 Move around global_get_ptr 2015-09-26 15:00:29 +02:00
twinaphex 36b3576f20 Add more RARCH_MAIN_CTL_ enums 2015-09-26 14:57:46 +02:00
twinaphex ab2e10fe70 Cleanups 2015-09-26 13:44:19 +02:00
twinaphex 54c3b60603 Refactor away rarch_main_clear_state 2015-09-26 13:35:04 +02:00
twinaphex 374a5bf635 Refactor away rarch_main_set_max_frames 2015-09-26 13:28:33 +02:00
twinaphex 7e6b6d8be6 Refactor away rarch_main_set_frame_limit_last_time 2015-09-26 13:25:58 +02:00
twinaphex e3e1a5a35c Refactor away rarch_main_set_idle 2015-09-26 13:20:15 +02:00
twinaphex 5ad2987449 Refactor away rarch_main_set_slowmotion 2015-09-26 13:16:19 +02:00
twinaphex 4ba88ccabf Refactor away rarch_main_set_pause 2015-09-26 13:12:26 +02:00
twinaphex 0d18c61bc5 Add RARCH_MAIN_CTL_IS_PAUSED 2015-09-26 13:04:07 +02:00
twinaphex cc4a918296 Create rarch_main_ctl 2015-09-26 12:58:02 +02:00
twinaphex 8dbdc90ebe Revert "Main menu loop now does rendering, data runloop does actual"
This reverts commit 297a63c77b.
2015-09-25 00:20:53 +02:00
twinaphex 297a63c77b Main menu loop now does rendering, data runloop does actual
state handling
2015-09-25 00:00:06 +02:00
twinaphex 5465da0139 Rename rarch_sleep to retro_sleep 2015-09-22 18:55:14 +02:00
twinaphex 2b840c0384 Refactor perf counters 2015-09-20 10:02:59 +02:00
twinaphex 28ac662440 Cleanups 2015-09-16 12:30:47 +02:00
twinaphex 576626ead0 Refactor frame_is_reversed - shader drivers should no longer
be dependent upon global state
2015-09-16 11:14:43 +02:00
twinaphex e1c1917ed5 Cleanup headers 2015-09-05 19:24:21 +02:00
twinaphex d7cde1675d Build fixes 2015-08-29 15:05:40 +02:00
twinaphex 4b3d520c19 Buildfix 2015-08-29 15:04:59 +02:00
twinaphex 70ff0a62f3 N/A 2015-08-27 15:00:48 +02:00
twinaphex fdd1d3ee9f Pass sleep_ms argument to rarch_main_iterate 2015-08-27 14:52:02 +02:00
twinaphex 1ec90df165 Refactor fastforward ratio 2015-08-27 14:39:42 +02:00
twinaphex fc763f5e25 Add EVENT_CMD_SET_FRAME_LIMIT 2015-08-27 14:25:57 +02:00
twinaphex 4e03865a78 Cleanup 2015-08-27 14:09:32 +02:00
twinaphex d4534cca19 Simplify rarch_frame_limit_time 2015-08-27 13:56:59 +02:00
twinaphex 4b0ee4b9c2 Move rarch_sleep outside of rarch_main_iterate so that caller
can implement the idle step itself
2015-08-27 13:13:14 +02:00
twinaphex d45b953078 Integrate main_is_idle check inside do_state_checks 2015-08-27 13:01:32 +02:00
twinaphex 3b9eca025e rarch_main_iterate - another change 2015-08-27 12:48:35 +02:00
twinaphex bcb54b2eec (rarch_main_iterate) Another refactor 2015-08-27 12:46:32 +02:00
twinaphex b6c34b362d Refactor rarch_main_iterate 2015-08-27 12:43:35 +02:00
twinaphex 8bf28544ef Add parameter to function signature of menu_iterate 2015-08-21 04:33:55 +02:00
twinaphex 7831fd6fc0 Cleanups pt. 3 2015-08-21 04:16:43 +02:00
twinaphex c9a3caeca5 Cleanup 2015-08-06 03:44:32 +02:00
twinaphex 00af8fa7db Cleanups 2015-08-06 03:43:19 +02:00
twinaphex b6812cc365 Refactor away input_flush 2015-08-06 03:20:15 +02:00
twinaphex 18af1a74a6 Refactor input_flush 2015-08-06 03:17:56 +02:00
twinaphex d279b158c9 Bring back input_flush 2015-08-06 03:09:42 +02:00
twinaphex 6cee3c6701 Cleanups 2015-08-06 02:56:44 +02:00
twinaphex 4f69881592 Cleanups 2015-08-05 15:54:21 +02:00
twinaphex 3e21d0a0d0 (runloop) Add quit goto 2015-08-05 15:48:54 +02:00
twinaphex 9b43c973bb Cleanups 2015-08-05 15:08:09 +02:00
twinaphex e418067610 Cleanup 2015-08-05 15:04:57 +02:00
twinaphex 77baab1577 Cleanups #2 2015-08-05 14:59:55 +02:00
twinaphex 517ec935b7 Cleanup 2015-08-05 14:57:06 +02:00
twinaphex adb28bb341 Refactor max_frames 2015-08-05 14:45:56 +02:00
twinaphex f39ab89867 (runloop.c) Refactors 2015-08-05 14:36:35 +02:00
twinaphex a1e6313453 Refactor away input_flush 2015-08-05 14:24:21 +02:00
twinaphex 4cc71c0574 Refactor ui_companion_is_on_foreground 2015-08-05 13:56:59 +02:00
twinaphex b18442dc5a Refactor is_slowmotion 2015-08-05 13:06:44 +02:00
twinaphex ccac72f1e7 Refactor is_paused 2015-08-05 12:58:25 +02:00
twinaphex 74ee9b05f3 Create rarch_main_set_idle - make 'idle' variable self-contained 2015-08-05 12:40:47 +02:00
twinaphex 89d8b246b0 (runloop) Less pointer grabbing 2015-08-03 23:48:58 +02:00
twinaphex d184e9b99e (runloop) Less pointer grabbing 2015-08-03 23:46:50 +02:00
twinaphex 0c023dcb68 Reimplement frame count 2015-08-03 23:01:07 +02:00
twinaphex d98902c21e Don't use video_driver_get_frame_count in crucial runloop function 2015-08-03 20:39:58 +02:00
twinaphex 3d36cb02ac No more separate runloop_t 2015-08-03 20:15:46 +02:00
twinaphex bd6ee135e9 Take out runloop_t dependencies 2015-08-03 20:03:14 +02:00
twinaphex e43f54f7c1 Take max frames out of runloop 2015-08-03 19:49:34 +02:00
twinaphex a70f09a90d Rearrange structs 2015-07-27 17:18:10 +02:00
twinaphex 4d78dc4bdf Make g_runloop not a pointer anymore 2015-07-27 14:41:25 +02:00
twinaphex aa649f90fc Make g_extern not a pointer 2015-07-27 14:38:01 +02:00
twinaphex cdef82b185 Make late binding possible for frontend drivers
(PS3) Fix shutdown/quit hang - now we have to fix exitspawn instead
2015-07-27 03:44:28 +02:00
twinaphex 7ad1beeb81 Some robustness checks 2015-07-18 15:26:31 +02:00
twinaphex a2af5252c1 Get rid of input_driver_key_pressed 2015-07-17 03:09:12 +02:00
twinaphex f938c75e0b When 'Hide In Menu' is enabled, overlay should reappear now when we
select 'Resume Content', 'Load State', or 'Save State'
2015-07-16 11:57:50 +02:00
twinaphex 6001d6bacd (runloop_t) Refactor more continuous pointer grabbing 2015-07-12 19:17:57 +02:00
twinaphex b50f6a02ed (runloop.c) Minimize pointers grabbed 2015-07-12 19:06:24 +02:00
twinaphex 2aac64552d Cut down on some more superfluous wrapper functions 2015-07-12 11:28:19 +02:00
twinaphex 7e46058362 Set system->shutdown to false when loading dummy core 2015-07-12 02:20:45 +02:00
twinaphex c09cc19cfe Add Menu Toggle Joypad Combo 2015-07-09 06:27:17 +02:00
twinaphex 4cb5d57ede Add 'Hide Overlay In Menu' option 2015-07-09 04:05:59 +02:00
twinaphex 46cdc34b9b Set up groundwork for new mobile-friendly setting 2015-07-09 03:47:07 +02:00
twinaphex e4384c5a10 Updates pt .3 2015-07-02 18:46:27 +02:00
twinaphex 5cc09b844d Style nits 2015-07-02 05:24:38 +02:00
twinaphex 0c6809952d Cleanups 2015-07-02 00:56:51 +02:00
twinaphex 42b7c15129 Update msg_hash code 2015-07-01 19:30:34 +02:00
twinaphex 6cc06b6c17 Start putting messages through new message queue push function 2015-07-01 02:00:39 +02:00
twinaphex b96e02db75 Create runloop_msg.c 2015-07-01 01:19:14 +02:00
twinaphex affd3683de Remove instances of 'RetroArch' name with 'program' 2015-06-30 15:26:14 +02:00
twinaphex 96c119bb1d Move retroarch_logger.h to libretro-common/include 2015-06-30 00:38:10 +02:00
twinaphex 7a2bd21b3d (runloop.c) Cleanup 2015-06-27 15:52:24 +02:00
twinaphex 6ad1ebcd2a More C89 fixes 2015-06-26 19:57:40 +02:00
twinaphex 8bfea0322f More C89 build fixes 2015-06-26 19:37:41 +02:00
twinaphex 7e9869b02b (runloop.c) use rarch_system_info_get_ptr 2015-06-25 13:06:06 +02:00
Higor Eurípedes b2bd80edd4 (runloop) Fix shader hotkeys 2015-06-22 19:01:35 -03:00
twinaphex 5c826a6bdf Cleanups 2015-06-22 11:45:00 +02:00
twinaphex 6f1bc69fc7 Refactor libretro_dummy mechanics 2015-06-20 23:42:30 +02:00
twinaphex 0e046c2fbb Create input_driver_keyboard_mapping_is_blocked/input_driver_keyboard_mapping_set_block 2015-06-19 03:45:23 +02:00
twinaphex 0c7d2e0d00 DOn't use strcmp in check_shader_dir 2015-06-14 18:46:00 +02:00
twinaphex 098c8a6063 Move some header includes around 2015-06-13 19:12:10 +02:00
twinaphex c36e21ed13 (General) Cleanup 2015-06-12 17:00:37 +02:00
Higor Eurípedes 9bbff40a46 (runloop.c) Add some locks around message queue calls 2015-05-20 20:50:51 -03:00
twinaphex cf2c0f6930 Rename rarch_render_cached_frame to video_driver_cached_frame 2015-05-20 21:06:44 +02:00
twinaphex a053b41223 Create video_viewport_get_system_av_info and video_viewport_get_custom -
move custom viewport and system av info outside of global state
2015-05-20 18:57:17 +02:00
twinaphex 4afc100924 Move audio_data out of global struct to prevent threading issues 2015-05-19 21:18:07 +02:00
Twinaphex 337b37fc49 Merge pull request #1709 from heuripedes/master
stuff
2015-05-19 20:16:20 +02:00
Twinaphex 10e66028e0 Remove some unused variables 2015-05-19 20:13:26 +02:00
Higor Eurípedes f093c00e9c (runloop.c) Remove uneeded statement 2015-05-19 15:13:05 -03:00
twinaphex 375c49b6c8 Move is_menu out of runloop struct and create get/set functions in menu_driver.c
and make the underlying variable static to make it thread-safe
2015-05-19 20:11:57 +02:00
Higor Eurípedes 8abe315896 (runloop.c) Set g_extern to NULL on free 2015-05-19 14:41:02 -03:00
Higor Eurípedes feef97f0df Set the global variable to NULL on free in driver.c and runloop.c 2015-05-19 14:01:02 -03:00
Twinaphex ba220f1868 Cleanup unused variable 2015-05-16 17:01:46 +02:00
twinaphex 74ee699d5c Split up rarch_main_data_iterate outside of rarch_main_iterate 2015-05-16 17:00:50 +02:00
twinaphex 085297f2d7 Relying on rarch_main_data_is_active to block on isn't very safe apparently 2015-05-16 16:45:28 +02:00
twinaphex 6f84857ec3 Make rarch_main_data_get_ptr a public function 2015-05-16 16:42:08 +02:00
twinaphex 0330d2f245 Make rarch_main_data_active a public function 2015-05-16 16:37:58 +02:00
twinaphex dd7d1493a6 Revert "Create menu_refresh"
This reverts commit 7baa41422d.
2015-05-15 18:05:52 +02:00
twinaphex 7baa41422d Create menu_refresh 2015-05-15 17:58:09 +02:00
twinaphex 9b9e65abf3 Start using video_driver_get_frame_count 2015-05-09 16:04:12 +02:00
twinaphex d97b744b32 (runloop.c) Cleanup 2015-04-27 05:36:41 +02:00
twinaphex 9ef656dc61 (MSVC) Build fixes 2015-04-20 20:00:39 +02:00
twinaphex 62960177fe Rename rarch_cmd_state to event_cmd_state and move to command_event.h 2015-04-13 11:41:44 +02:00
twinaphex 0818b178f9 Rename rarch_main_command to event_command 2015-04-13 11:26:02 +02:00
Twinaphex de2eb5f972 Rename RARCH_CMD_* to EVENT_CMD_* 2015-04-13 10:29:15 +02:00
twinaphex 09feb15e97 Simpler way of showing download progress message on threaded
data runloop (also usable for other messages in the future)
2015-04-11 03:34:26 +02:00
twinaphex 11d75d088c (data runloop) Start creating separate message queue for data runloop 2015-04-11 01:17:46 +02:00
twinaphex d117362b93 (runloop.c) Refactor do_pause_state_checks 2015-04-05 21:37:34 +02:00
twinaphex 634fda75e2 (runloop.c) Fix rewind 2015-04-05 21:35:07 +02:00
twinaphex bea8fb1b19 Remove unused variable 2015-03-27 16:58:45 +01:00
Radius 2f2a86e97f add osk enable hotkey 2015-03-25 22:24:12 -05:00
twinaphex e05af60111 Style nit 2015-03-24 14:04:17 +01:00
twinaphex c7e78d48d5 Create runloop_data.h 2015-03-24 13:45:53 +01:00
twinaphex e4f81bff30 (runloop.c) Initialize cmd 2015-03-24 10:15:53 +01:00
twinaphex bc749d1c3c Move rarch_cmd_state_t definition to retroarch.h 2015-03-24 10:10:14 +01:00
twinaphex d573093f0b Create rarch_main_cmd_get_state 2015-03-24 10:01:17 +01:00
twinaphex 053fb20efa (runloop.c) Cleanups 2015-03-24 09:44:18 +01:00
twinaphex b21c3c460a Move rarch_main_data_free to RARCH_CMD_PREPARE_DUMMY 2015-03-23 06:54:39 +01:00
twinaphex c274ab94a0 Create input_driver_key_pressed 2015-03-23 03:22:57 +01:00
twinaphex db1087ad33 Create input_driver_state 2015-03-23 03:04:05 +01:00
twinaphex b07e4e40d8 Style nits 2015-03-22 07:52:14 +01:00
twinaphex 4b8de58878 Rename functions 2015-03-22 03:41:20 +01:00
twinaphex 2a8f9fdfc0 Put g_driver on heap and make it a pointer 2015-03-22 01:16:57 +01:00
twinaphex 572b59d417 Robustness fixes 2015-03-22 00:29:30 +01:00
twinaphex 508ade73f9 Rename menu_driver_resolve to menu_driver_get_ptr 2015-03-21 23:56:42 +01:00
twinaphex 7e7a42ec21 Reimplement rarch_main_state_free 2015-03-21 19:43:46 +01:00
twinaphex 323475c516 Create RARCH_CMD_VOLUME_UP/RARCH_CMD_VOLUME_DOWN 2015-03-21 09:25:21 +01:00
twinaphex 359349895f Simplify rarch_limit_frame_time 2015-03-21 09:14:07 +01:00
twinaphex 7dcd98471f Simplify runloop pt. 2 2015-03-21 09:05:30 +01:00
twinaphex 06f5972d16 Simplify runloop.c 2015-03-21 09:01:27 +01:00
twinaphex de0ca98487 Refactor time_to_exit 2015-03-21 08:54:27 +01:00
twinaphex 148da6b5f9 runloop.c - simplify 2015-03-21 08:41:08 +01:00
twinaphex fdc4f3058f Simplify runloop.c - get rid of convenience macros 2015-03-21 08:27:30 +01:00
twinaphex f1fe7559bc Put g_extern on heap 2015-03-21 06:17:03 +01:00