Commit Graph

1165 Commits

Author SHA1 Message Date
twinaphex ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
Gregor Richards 45d732a014 New sync system
The idea:
   * Use a fixed number of delay_frames (eventually to be fixed at 120,
     currently still uses the config variable, 0 will still be an option)
   * Determine how long it takes to simulate a frame.
   * Stall only if resimulating the intervening frames would be
     sufficiently annoying (currently fixed at three frames worth of
     time)

Because clients always try to catch up, the actual frame delay works out
automatically to be minimally zero and maximally the latency. If one
client is underpowered but the other is fine, the powerful one will
automatically take up the slack. Seems like the most reasonable system.
2016-12-18 19:28:43 -05:00
Gregor Richards bade067d9a Support for catching up if the netplay peer is ahead of us. 2016-12-18 19:28:43 -05:00
Gregor Richards 262d77546b Adding game/watch key
Adding a key to toggle between playing and spectating. This key takes
the place of the previous flip key, although player flipping does
continue to work (and must be rebound if you still want it)
2016-12-18 19:28:42 -05:00
twinaphex b087a7441a Fix game focus toggle 2016-12-11 03:52:08 +01:00
twinaphex 9957099bf0 Add 'unified menu controls' setting 2016-12-11 01:29:53 +01:00
twinaphex 584e93be4f Cleanup runloop.h header 2016-12-10 07:21:34 +01:00
twinaphex 4971fc53b5 Delete unused runloop_msg_queue_pull 2016-12-07 08:27:06 +01:00
twinaphex d04309fc05 Buildfix 2016-12-07 06:16:12 +01:00
twinaphex 31a7f64f2c Cleanups 2016-12-07 05:41:08 +01:00
twinaphex f6dcfd21cf (MSVC) MSVC build fixes 2016-12-07 05:39:27 +01:00
twinaphex e3620278a8 Add HAVE_MENU ifdefs for menu code 2016-12-07 03:16:34 +01:00
twinaphex 4b1c24adf9 - Move input flushing hack to input_keys_pressed functions
- Move menu binding state hack to menu_input_keys_pressed
2016-12-06 20:50:29 +01:00
twinaphex 77df0ef3ae Rebase input_key_pressed/input_menu_keys_pressed 2016-12-06 18:12:35 +01:00
twinaphex 44324ec62f (runloop.c) Cleanups 2016-12-06 18:05:59 +01:00
twinaphex b3aef50dff Move update_firmware_status to tasks/task_content.c 2016-12-06 08:28:26 +01:00
twinaphex a4e1be2cdb Simplify runloop_iterate 2016-12-06 08:22:52 +01:00
Twinaphex 3a399340e3 Merge pull request #4169 from AdrianoML/kbmquake
Changes to make keyboard and mouse games more playable
2016-12-06 07:21:20 +01:00
twinaphex fad523ea3e Create runloop_check_cheevos 2016-12-06 06:32:47 +01:00
Adriano Moura 6b99eeaf88 Implements a hotkey for toggling mouse grabbing, hiding and hotkey blocking. Usefull for playing tyrquake with kb/m. 2016-12-06 03:32:28 -02:00
twinaphex 0a3bc133dd This can be safely removed 2016-12-06 05:17:00 +01:00
twinaphex 2b07cf0d41 update_firmware_status - Try to prevent Coverity warning 2016-12-05 19:03:06 +01:00
twinaphex a5d3efcf9b (runloop.c) Style nits 2016-12-05 08:21:18 +01:00
twinaphex 46749fad65 Make runloop_iterate_time_to_exit function redundant 2016-12-05 08:16:47 +01:00
twinaphex d3834bb795 Simplify runloop_iterate_time_to_exit 2016-12-05 07:11:38 +01:00
twinaphex c98ef48860 (runloop.c) Get rid of 'default' case for switch 2016-12-05 07:08:34 +01:00
twinaphex cc6b602f6a (runloop.c) runloop_iterate - cleanup 2016-12-05 06:55:09 +01:00
twinaphex 78005f22f6 (runloop.c) Cleanups 2016-12-05 06:51:53 +01:00
twinaphex b467865c82 Cleanup 2016-12-05 02:31:34 +01:00
twinaphex c76e92622d runloop_data - use recording_data directly 2016-12-05 02:29:37 +01:00
twinaphex bbbcc97f57 Simplify input_push_analog_dpad 2016-12-04 22:20:47 +01:00
twinaphex 85aa88f665 Simplify input_push_analog_dpad 2016-12-04 21:30:50 +01:00
twinaphex 59c317dc1d Pass pointers to input_push_analog_dpad 2016-12-04 20:20:35 +01:00
twinaphex 0fdb8881cb Pass pointer variables to input_pop_analog_dpad 2016-12-04 20:17:55 +01:00
radius 1b3789edde better firmware checking 2016-11-29 22:21:44 -05:00
radius 9505602675 Prevent loading content when firmware is missing 2016-11-27 19:25:38 -05:00
twinaphex 80798ab924 Remove hacky 'OSK Keyboard' overlay 2016-11-27 02:46:09 +01:00
twinaphex 66595cd7c5 Cleanup 2016-11-21 15:04:09 +01:00
Diego Viola cf0c60bb98 Fix Netplay fullscreen issue
Fixes #3936
2016-11-07 16:01:18 -02:00
Jean-André Santoni 9677b5a129 Fix iOS touch 2016-11-07 16:18:30 +01:00
radius 2ff53a1b4d fix retroarch locking up when brought back to focus with pause in the background on 2016-11-06 14:31:02 -05:00
Brad Parker 5d28029be8 remove confirm_on_exit menu option 2016-10-30 23:29:03 -04:00
Brad Parker b14c3970d1 clear trigger_input before calling menu_event(), fixes firing of gamepad keys after binding 2016-10-30 00:12:47 -04:00
Brad Parker 2e654658d8 fix hotkey firing when binding quit key 2016-10-29 23:25:47 -04:00
Brad Parker 28c0e78292 ignore trigger input while binding a new key 2016-10-29 21:58:43 -04:00
Brad Parker 3354c07810 fix joypad A button in OSK 2016-10-28 23:47:17 -04:00
twinaphex 5d90b774da Fixes remaining input issues courtesy of bparker 2016-10-29 04:00:36 +02:00
Twinaphex 535215eefa Merge pull request #3879 from libretro/master
Merge
2016-10-28 07:44:10 +02:00
Brad Parker 320c49e08e restore menu animation 2016-10-27 23:56:55 -04:00
Brad Parker b7a8ff9395 fix menu toggle with F1 2016-10-27 23:43:07 -04:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
twinaphex 902c096eb4 Further changes to bring it in line with menu_input branch 2016-10-27 11:13:31 +02:00
twinaphex 1b6e7da2ce Merge branch 'menu_input' 2016-10-27 10:54:49 +02:00
twinaphex f017593501 Reduce size of some char variables and get rid of some implicit memsets 2016-10-27 09:44:20 +02:00
twinaphex f778bee856 Add input_menu_keys_pressed to master 2016-10-27 06:38:02 +02:00
twinaphex 6235a5cd0d Can now toggle fullscreen, use quit key from menu (mouse grab
toggle doesn't work yet)
2016-10-27 06:13:39 +02:00
twinaphex 2bcbe017cd More work 2016-10-27 00:14:01 +02:00
twinaphex a9a2749af9 Add input_menu_keys_pressed 2016-10-27 00:13:29 +02:00
twinaphex 170febb72c (NGC/Wii) Buildfix 2016-10-26 06:04:42 +02:00
twinaphex 830f64446b Remove another RUNLOOP_CTL_ action 2016-10-26 04:11:12 +02:00
twinaphex d0a1c8609f Remove obsolete CTL actions 2016-10-26 04:08:54 +02:00
twinaphex 456c4c4d58 Remove video_driver_cached_frame_render wrapper function 2016-10-25 00:42:26 +02:00
twinaphex f41de35da1 Prevent 'Explicit null dereferenced' warning 2016-10-23 06:21:09 +02:00
twinaphex c6a1bcfcbe Prevent dereference after null check warning 2016-10-23 06:20:13 +02:00
twinaphex 0e79c2c37e Silence another warning 2016-10-23 05:56:55 +02:00
twinaphex 1cbc847133 In case we return false here, we should still unlock the
mutex first
2016-10-23 05:53:47 +02:00
twinaphex 4bffe5fc33 Change default value for last_input 2016-10-22 21:32:07 +02:00
twinaphex e2b16a1f15 Use straight uint64_t types for input states 2016-10-22 17:03:20 +02:00
twinaphex d08668b331 Rollback 4b807b482 - was unnecessary in hindsight anyway 2016-10-22 16:39:55 +02:00
twinaphex b923182e0b Pass settings pointer 2016-10-22 00:59:29 +02:00
twinaphex a96457b90d Further cleanups to runloop_iterate 2016-10-21 23:54:23 +02:00
twinaphex f648a11c0c Cleanups 2016-10-21 23:47:37 +02:00
twinaphex 6874035056 Further improve runloop_check_state 2016-10-21 23:45:56 +02:00
twinaphex e9766ce141 Cleanups 2016-10-21 23:30:34 +02:00
twinaphex 4109e17494 Reimplement runloop_check_state 2016-10-21 23:20:29 +02:00
twinaphex 47374bc719 Refactor runloop_check_state 2016-10-21 22:46:25 +02:00
twinaphex 7dcb57f22d Prevent some null pointer dereferences 2016-10-21 20:47:11 +02:00
twinaphex e80ad9c0b0 Don't grab settings pointer 2016-10-21 04:42:57 +02:00
twinaphex 370b18e95b Cleanup 2016-10-21 04:27:14 +02:00
twinaphex 34f0a4f49f Simplify runloop_check_state 2016-10-21 04:11:07 +02:00
twinaphex c6ae8a527c Cleanups 2016-10-21 04:03:48 +02:00
twinaphex b4e85b9bbd Cleanups 2016-10-21 03:58:16 +02:00
twinaphex 2350ef9234 Get rid of runloop_ctl actions 2016-10-21 03:46:17 +02:00
twinaphex b13a14d923 (runloop.c) Cleanups 2016-10-21 02:56:02 +02:00
twinaphex 1822726452 Cleanups 2016-10-21 02:52:01 +02:00
twinaphex eeb3d5e137 Cleanups 2016-10-21 02:05:43 +02:00
twinaphex 7241f1476c Cleanups 2016-10-21 01:51:50 +02:00
twinaphex 5ed214e5eb Cleanups 2016-10-21 01:50:46 +02:00
twinaphex 5621d258f8 (runloop.c) Cleanups 2016-10-21 01:44:14 +02:00
twinaphex 5a7da6d195 Simplify runloop_check_state 2016-10-20 06:34:39 +02:00
twinaphex 763f7ecb01 Replace some more runloop_ctl calls 2016-10-20 06:17:53 +02:00
twinaphex ea47660282 runloop_iterate - cut down on another runloop_ctl function call 2016-10-20 06:15:53 +02:00
twinaphex 3a4b638824 Simplifications - don't call runloop_ctl so much in runloop_iterate 2016-10-20 06:07:57 +02:00
twinaphex 606a203f29 Simplify runloop_iterate_time_to_exit 2016-10-20 06:02:08 +02:00
twinaphex ae7ccdfb92 Don't pass param to runloop_iterate_linefeed 2016-10-20 03:32:13 +02:00
twinaphex 4b807b482f Create runloop_poll 2016-10-20 02:17:17 +02:00
twinaphex ecce60c6ae Prevent more implicit memsets 2016-10-16 01:27:22 +02:00
twinaphex d078df7a37 Prevent implicit memsets 2016-10-09 09:05:41 +02:00
twinaphex b8f8f159c5 Get rid of unnecesary wrapper function 2016-10-08 18:41:51 +02:00
Gregor Richards 71873e8c97 Moving Netplay pre- and post-frame behavior into core_run
This (mostly) prevents other paths from accidentally side-stepping
Netplay. Netplay itself now sets an in_netplay variable to avoid
self-recursion in its own core_run calls.
2016-10-04 13:40:07 -04:00
twinaphex 19863e4174 autosave_lock/autosave_unlock - no longer require HAVE_THREADS ifdefs 2016-10-04 09:56:58 +02:00
twinaphex ba1f0a31e9 Cleanups 2016-10-03 08:24:35 +02:00
Gregor Richards e41ac34561 Get rid of global->netplay
Moved settings values into settings->netplay, and global->netplay.enable
is moved into netplay itself, and is no longer a configuration value
whatsoever, as that conflicts with the behavior of the netplay menu.
2016-10-02 22:13:34 -04:00
twinaphex 8f163e6972 Revert "Move global->name to paths.c"
This reverts commit 6ee7b733aa.
2016-10-01 08:18:23 +02:00
twinaphex 243dc139d2 Revert "Create path server and add to paths.c"
This reverts commit 00a1e3716a.
2016-10-01 08:17:44 +02:00
twinaphex 7d20224ff0 Revert "Move path settings to paths.c"
This reverts commit 3a7e9a7052.
2016-10-01 08:17:13 +02:00
twinaphex 5a3e5f85a5 Revert "Add record dirs to dirs.c"
This reverts commit fe3281e05d.
2016-10-01 08:15:07 +02:00
twinaphex 2dcc5b8e43 Add LIBRETRO_DEVICE to unset/set/is functions for override settings 2016-10-01 06:14:30 +02:00
twinaphex 5ff13df40f Move global->record to record_driver.c 2016-10-01 00:47:05 +02:00
twinaphex fe3281e05d Add record dirs to dirs.c 2016-09-30 07:45:04 +02:00
twinaphex 3a7e9a7052 Move path settings to paths.c 2016-09-30 06:33:57 +02:00
twinaphex 00a1e3716a Create path server and add to paths.c 2016-09-30 06:22:56 +02:00
twinaphex 6ee7b733aa Move global->name to paths.c 2016-09-30 06:11:11 +02:00
twinaphex 1266c0609a Create path_is_empty 2016-09-30 04:43:16 +02:00
twinaphex 228886062b Create path_clear 2016-09-30 04:31:19 +02:00
twinaphex 9384875ab0 Don't use HAVE_NETPLAY any more 2016-09-29 21:07:10 +02:00
twinaphex 190c417350 Remove stub function 2016-09-29 20:14:26 +02:00
twinaphex 3281c7a1a6 (runloop.c) Cleanups 2016-09-29 12:11:00 +02:00
twinaphex 1537ba312d Remove RUNLOOP_MSG_QUEUE_FREE 2016-09-29 10:22:46 +02:00
twinaphex 30a46a5ab9 Prevent null pointer dereference 2016-09-29 10:07:41 +02:00
twinaphex ed2b89db27 Cleanups 2016-09-29 08:34:08 +02:00
twinaphex 329f6ad612 Update path_get 2016-09-29 08:31:41 +02:00
twinaphex 7e1a61570a Add more functionality to path_set 2016-09-29 07:46:21 +02:00
twinaphex 89505fa011 Get rid of global->patch 2016-09-29 05:46:31 +02:00
twinaphex 093f16dd71 Prevent NULL pointer dereference 2016-09-28 08:08:35 +02:00
twinaphex 90af64769d Get rid of global->sram 2016-09-28 07:27:39 +02:00
twinaphex 5bce79369a Get rid of global->sram.use, turn it into static boolean
variable inside rarch_ctl
2016-09-28 07:17:34 +02:00
twinaphex 0d95e286e3 Add core_poll() back when netplay stalls 2016-09-25 18:46:39 +02:00
twinaphex a1488ae34f Move subsystem path to paths.c 2016-09-25 15:49:09 +02:00
twinaphex bef9a8d9d6 Rearrange some code 2016-09-25 05:00:54 +02:00
twinaphex 8e6d9a6978 move default_shader_preste code to paths.c 2016-09-25 04:55:16 +02:00
twinaphex 2d11ea71cc Move runloop_fullpath to paths.c 2016-09-23 03:39:44 +02:00
twinaphex 6222badb51 Remove header includes 2016-09-23 03:21:33 +02:00
twinaphex 02dc90d7bd Move code from runloop.c to dirs.c 2016-09-23 03:19:33 +02:00
twinaphex 80d577094c Use config_file_exists 2016-09-18 21:57:51 +02:00
twinaphex 4d317ba5d7 Update dirs.c 2016-09-17 14:49:35 +02:00
twinaphex 6bd6245f0a Move path_clear_all call 2016-09-17 14:41:49 +02:00
twinaphex 16289a8622 Cleanup 2016-09-17 14:25:29 +02:00
twinaphex 471347689d Create path_clear_all 2016-09-17 13:47:26 +02:00
twinaphex e338b78792 Use new core options accessors 2016-09-17 13:40:25 +02:00
twinaphex 0aa2cf5019 Create path_set_config and path_is_config_empty 2016-09-17 13:04:12 +02:00
twinaphex b89def5d8f Rename config_get/config_set functions 2016-09-17 12:51:44 +02:00
twinaphex 5aebdb7484 Mov code to paths.c 2016-09-17 12:35:29 +02:00
twinaphex 96d4347c4a Go back to only calling core_poll() if menu is alive or RetroArch
is paused
2016-09-17 12:05:27 +02:00
twinaphex 1cf7d758b5 Move code to movie.c 2016-09-17 01:54:33 +02:00
twinaphex 125c4f9529 Add menu_event.c 2016-09-16 16:39:30 +02:00
twinaphex 2294bcf158 Not sure if this was brought back intentionally; probably not 2016-09-16 14:13:55 +02:00
Gregor Richards f2058620d3 Tell Netplay when the frontend is paused
The runloop now informs Netplay if it's paused. This currently happens
by polling the pause state every frame, which is ugly, but might be the
only feasible technique.
2016-09-16 07:40:24 -04:00
Twinaphex e4cf93cff4 Merge pull request #3600 from GregorR/netplay-new-features
New Netplay features
2016-09-16 13:35:12 +02:00
twinaphex 574d51d1e0 Cleanups 2016-09-16 12:49:26 +02:00
twinaphex 17e78909d5 Cleanups 2016-09-16 12:43:19 +02:00
Gregor Richards 96186438ec Remote pausing
Support for remote pausing, and with it, support for Netplay pausing the
frontend correctly. With this patch alone this doesn't work, since
there's no clean way for the frontend to tell Netplay that it's paused.
2016-09-15 23:06:32 -04:00
twinaphex de1c5ec8bd Rename menu_input_frame_retropad to menu_event 2016-09-15 21:14:45 +02:00
twinaphex f648ea8602 Cleanups 2016-09-15 16:07:20 +02:00
twinaphex 233925bea6 Rename widgets/menu_popup to widgets/menu_dialog 2016-09-15 15:57:25 +02:00
twinaphex 6f23a8ac0d Move httpserver to network/ 2016-09-12 17:21:00 +02:00
twinaphex 056cc8ece8 Move menu_popu.c to menu/widgets 2016-09-11 21:03:31 +02:00
twinaphex b93ef046a7 Header include cleanups 2016-09-11 16:31:23 +02:00
twinaphex 5aaebcfa62 Header include cleanups 2016-09-08 06:07:43 +02:00
twinaphex 8320466824 Add HAVE_CONFIG_H ifdefs 2016-09-06 23:52:33 +02:00
twinaphex c3ba0ba4e9 Revert "Refactor core_system_info_* functions"
This reverts commit f637805c9e.
2016-09-06 08:38:26 +02:00
twinaphex f637805c9e Refactor core_system_info_* functions 2016-09-06 07:08:38 +02:00
twinaphex 82d82110ae Merge system.h with core.h 2016-09-06 06:11:54 +02:00
Brad Parker abd5d81b70 fix core unload when closing content 2016-09-05 12:46:28 -04:00
Brad Parker ef29bc96b0 do not return to game after canceling quit confirm if user toggled the menu manually 2016-09-05 11:35:27 -04:00
Brad Parker 276542ea98 more menu popup refactor, add back working confirm_on_exit 2016-09-05 01:04:15 -04:00
Brad Parker 27925da4ae revert confirm_on_exit option for now 2016-09-04 15:31:50 -04:00
Twinaphex affb159fe2 Buildfix 2016-09-03 08:27:58 +02:00
twinaphex fb1ac7ab38 Cleanups 2016-09-03 08:22:41 +02:00
Brad Parker ee7545857c add config option to enable quit confirmation 2016-09-01 21:47:25 -04:00
twinaphex 3526a2454b Cleanups 2016-08-28 18:39:10 +02:00
twinaphex 36d9b866cc Remove some logs 2016-08-22 02:30:23 +02:00
Brad Parker 0e6059f1eb call quit event when key combination for quit is pressed, fixes autosave in issue #3335 2016-08-20 22:11:06 -04:00
twinaphex 64d6e0facf (Vita) Implement proper gamepad menu toggle combo for Vita, and remove
old hack
2016-08-02 16:48:54 +02:00
twinaphex d77dd4f0d3 Add enums for gamepad menu toggle combos 2016-08-02 16:45:50 +02:00
twinaphex 39aba8e36f Create override setting functions 2016-08-01 20:41:42 +02:00
Andre Leiradella 292335b84c Added an embedded HTTP server to RetroArch; Mapped the /mmaps URI to a JSON-based RESTful API to retrieve memory maps 2016-07-31 22:45:01 +01:00
radius d58c802e3b restore the original shader on close 2016-07-30 14:36:01 -05:00
twinaphex 58c425ef19 Revert "Refactor settings"
This reverts commit afcc9657d2.
2016-07-25 12:30:41 +02:00
twinaphex afcc9657d2 Refactor settings 2016-07-25 11:59:38 +02:00
twinaphex 2be127c04a Start wrapping settings->path.libretro 2016-07-24 11:12:26 +02:00
twinaphex a6aa0b8e0c Cleanups 2016-07-23 14:29:57 +02:00
twinaphex ee87ef0ae9 Turn path_core_specific_config into static variable 2016-07-23 14:27:17 +02:00
twinaphex f7c57d7ae1 Hotkey messages should have precedence over FPS display 2016-07-19 18:34:17 +02:00
twinaphex 8345ad2aba Cleanups 2016-07-18 07:11:08 +02:00
radius c38adcabd3 fix shader next/prev 2016-07-17 23:47:43 -05:00
twinaphex 34fd48c961 Refactor runloop_iterate_menu 2016-07-11 02:47:46 +02:00
twinaphex 38005a4b0a Create runloop_iterate_menu 2016-07-11 02:46:16 +02:00
Twinaphex a2c435ab2c Reintroduce deinit and get rid of slock_unlock at bottom of threaded_worker function 2016-07-06 16:35:00 +02:00
twinaphex 51e2da2cbd Revert this back - reintroduce the leak but should hopefully
solve issues on newer Intel CPUs
2016-07-06 13:21:08 +02:00
twinaphex 241670cec2 Dehardcode some more strings 2016-07-01 06:02:57 +02:00
twinaphex 86fa52a2ea Add FILE_PATH_BSV_EXTENSION 2016-07-01 05:59:36 +02:00
Jean-André Santoni 8c442985cb Forgot to add a break here 2016-06-30 19:17:06 +02:00
Jean-André Santoni b409ced5ad Add start+select to the list of gamepad combos 2016-06-29 10:46:07 +02:00
twinaphex 2a9bf91e0d Use MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE 2016-06-29 02:40:05 +02:00
twinaphex fd5d19eaab Cleanup 2016-06-27 07:48:37 +02:00
twinaphex f6bbe69096 Use string_is_empty 2016-06-26 10:33:46 +02:00
twinaphex 3dff698644 Turn retro_input_t into struct 2016-06-25 09:04:00 +02:00
twinaphex 7ca00fafc0 Cleanup 2016-06-20 21:58:19 +02:00
twinaphex 9aa29d9fc5 runloop_check_shader_dir - cleanups 2016-06-20 21:54:06 +02:00
twinaphex d2eeb6fab0 Create FILE_PATH_CORE_OPTIONS_CONFIG 2016-06-20 05:29:53 +02:00
twinaphex 48987918e4 Cleanups 2016-06-03 04:37:10 +02:00
twinaphex 7d26034ebe Rename rarch_task_* to task_* 2016-05-27 18:14:47 +02:00
Twinaphex 86ef11e756 Prevent another memory leak 2016-05-23 14:45:43 +02:00
twinaphex aabb1e409c Move netplay code to network/netplay dir 2016-05-19 11:46:54 +02:00
twinaphex fcf2decb2e Remove persist argument 2016-05-17 09:07:41 +02:00
twinaphex bb1d1da693 Remove runloop_iterate_data 2016-05-16 17:29:02 +02:00
twinaphex e10270d459 Delete runloop_prepare_dummy 2016-05-16 17:19:16 +02:00
twinaphex d681d30249 Move code to task_content.c 2016-05-16 17:14:05 +02:00
twinaphex f70dc77a61 Pass content_ctx_info_t pointer to rarch_task_push_content 2016-05-16 16:25:16 +02:00
twinaphex fe2eb7f4c1 Add mode to rarch_task_push_content_load_default to make
it explicit what each call does
2016-05-16 14:20:26 +02:00
twinaphex 57fedb9fa8 Use rarch_task_push_content_load_default 2016-05-16 13:43:14 +02:00
twinaphex a9c959b7e5 REmove RUNLOOP_CTL_CHECK_IDLE_STATE 2016-05-15 10:14:23 +02:00
twinaphex 73cc9c4b15 Rename RUNLOOP_CTL_COREOPTS_GET 2016-05-15 10:09:41 +02:00
twinaphex df3b090d7a Revert "Create runloop_get_system_info/runloop_free_system_info/runloop_init_system_info"
This reverts commit 35bf38e05c.
2016-05-12 09:37:21 +02:00
twinaphex 35bf38e05c Create runloop_get_system_info/runloop_free_system_info/runloop_init_system_info 2016-05-12 09:25:52 +02:00
twinaphex c1bfe795f8 Create runloop_prepare_dummy 2016-05-12 09:04:31 +02:00
twinaphex 22bea3a50b Remove some RUNLOOP_CTL_ enums 2016-05-11 19:28:22 +02:00
twinaphex daf031173f Remove unused variable 2016-05-11 19:25:15 +02:00
twinaphex b9df6f52f5 Kill off a bunch of RARCH_CTL_LOAD_CONTENT enums 2016-05-11 04:22:22 +02:00
Twinaphex d9393d5872 Merge pull request #2986 from leiradel/master
implemented the RETRO_ENVIRONMENT_SET_MEMORY_MAPS callback
2016-05-10 22:22:40 +02:00
twinaphex 9aed52ac65 Move performance.c to libretro-common/features/features_cpu.c 2016-05-10 20:31:27 +02:00
Andre Leiradella 723463149e implemented the RETRO_ENVIRONMENT_SET_MEMORY_MAPS callback 2016-05-10 08:04:41 -03:00
twinaphex 35ea37b37f Revert "Move cpu_features to libretro-common"
This reverts commit 2b8ff3bf38.
2016-05-10 09:32:24 +02:00
twinaphex 2b8ff3bf38 Move cpu_features to libretro-common 2016-05-10 09:27:29 +02:00
twinaphex 0d371def5c Refactor performance.c code 2016-05-10 09:17:04 +02:00
twinaphex d0f6facc0f (runloop.c) Rename functions 2016-05-10 01:44:13 +02:00
twinaphex 5d821f42a3 Turn another runloop_ctl action into a static function 2016-05-10 01:41:58 +02:00
twinaphex af2a33a8cb Move core_option_manager to managers/ 2016-05-10 01:25:47 +02:00
twinaphex 2c6d6a223c Rename core_option functions 2016-05-10 01:21:55 +02:00
twinaphex 2691ab0c7d Rename command_event enums 2016-05-09 20:51:53 +02:00
twinaphex a98ef36d36 Rename event_cmd_ctl to command_event 2016-05-09 20:20:50 +02:00
twinaphex 6ae20f2016 Create managers/ dir - move cheats.c and state_manager.c to it 2016-05-09 18:20:52 +02:00
twinaphex 3722826e0a Rename netplay/ to network/ 2016-05-09 17:43:38 +02:00
twinaphex d57574a2ca Rename some autosve functions 2016-05-09 08:17:35 +02:00
twinaphex 372e7d94cd Rename rewind.c to state_manager 2016-05-09 07:14:10 +02:00
twinaphex f8a7154557 Rename rarch_ functions 2016-05-09 07:09:26 +02:00
twinaphex 725c202498 Remove input_driver_ctl 2016-05-08 23:12:04 +02:00
twinaphex de71776405 (audio driver) Cleanups 2016-05-08 18:03:09 +02:00
Hans-Kristian Arntzen d723411436 De ioctl video_driver. 2016-05-08 14:00:51 +02:00
twinaphex b909342e12 Cleanup 2016-05-08 07:00:28 +02:00
twinaphex b21f098119 Cleanups 2016-05-08 06:58:52 +02:00
twinaphex a9cec38c1d Remove RUNLOOP_CTL_IS_FRAME_COUNT_END 2016-05-08 06:36:52 +02:00
twinaphex 8e599379f6 Create runloop_is_focused 2016-05-08 06:34:25 +02:00
twinaphex 3f36c7f877 Get rid of RUNLOOP_CTL_FRAME_TIME 2016-05-08 06:31:12 +02:00
twinaphex 13e67aa44e Create runloop_iterate_data 2016-05-08 06:29:11 +02:00
twinaphex 0f7cdeaf78 Reduce two enums 2016-05-08 06:09:39 +02:00
twinaphex e165954395 Rename libretro_version_1 to core_impl 2016-05-08 05:29:10 +02:00
twinaphex 7e9eb5b6c4 Cleanup 2016-05-08 05:21:31 +02:00
radius 6999322a53 add a function to retrieve the current OSD line 2016-05-07 19:51:51 -05:00
twinaphex a64fe6ce63 Move static variables outside of runloop_ctl 2016-05-08 01:41:32 +02:00
twinaphex 6544772fb8 De-ioctl ify core_ctl 2016-05-08 01:33:57 +02:00
twinaphex 42019bd02f People don't like ioctl functions - so here goes 2016-05-08 00:15:21 +02:00
twinaphex 895783d854 Move some variables 2016-04-28 20:49:13 +02:00
twinaphex 65dec874a8 Move some path settings 2016-04-28 19:52:25 +02:00
twinaphex 00dce981c8 (runloop.c) Create static functions 2016-04-10 15:40:46 +02:00
twinaphex dba04c73e4 Move core options variable 2016-04-06 02:30:20 +02:00
twinaphex c7a9182d59 Create CORE_CTL_{INPUT_DESCRIPTORS} 2016-04-06 01:57:02 +02:00
twinaphex 9a90008543 Frame time needs to be reset back to defaults after we close the
core and its contents - this was causing a crash when jumping
from a core that supports frame time callback (2048) to a core
that doesn't (Mupen64plus)
2016-04-06 01:29:32 +02:00
twinaphex 2fee5edba4 Move linefeed enable enums to input_keyboard.c 2016-03-23 06:18:09 +01:00
twinaphex ac6362cae4 Combine list_special files 2016-03-20 17:28:24 +01:00
twinaphex 93b7dc1bdd (libretro-common) move 'lists' files to lists/ 2016-03-20 14:53:54 +01:00
twinaphex 91d14cbb62 Revert "Create RARCH_NETPLAY_CTL_IS_ENABLED, RARCH_NETPLAY_CTL_SET_ENABLE,"
This reverts commit 1a978b0f3c.
2016-03-18 00:32:02 +01:00
twinaphex 1a978b0f3c Create RARCH_NETPLAY_CTL_IS_ENABLED, RARCH_NETPLAY_CTL_SET_ENABLE,
and RARCH_NETPLAY_CTL_USNET_ENABLE
2016-03-14 15:03:42 +01:00
David Skywalker 1a5273a73b just check hardcore mode changes on menu
also fix a rewind deinit
2016-03-14 12:53:56 +01:00
twinaphex 69998b0d6c Memset runloop_frame_time to NULL at RUNLOOP_CTL_PREPARE_DUMMY
time
2016-03-12 15:17:02 +01:00
twinaphex 3d19ec2e9e Reimplement frame time code 2016-03-12 14:47:10 +01:00
twinaphex b7d3f3b01c Remove functions audio_driver_set_callback/audio_driver_unset_callback 2016-03-04 21:44:44 +01:00
twinaphex e9a0aba85b Silence bunch of warnings and fix an error 2016-03-04 19:42:30 +01:00
twinaphex 90fbc6330c Create RARCH_DISPLAY_CTL_SET_TITLE_BUF 2016-03-04 19:38:15 +01:00
twinaphex 2d158b809c Cleanups 2016-03-04 19:29:22 +01:00
twinaphex 05ce32efe4 Add RUNLOOP_CTL_FORCED_NONBLOCK_{} actions 2016-03-04 19:20:00 +01:00
twinaphex e34943194c Refactor camera driver code 2016-03-04 18:16:07 +01:00
twinaphex 9ba753993b Create RUNLOOP_CTL_{GET/SET}_FRAME_TIME 2016-03-04 17:54:54 +01:00
twinaphex 50f0e19263 Remove unused variable 2016-03-02 06:11:03 +01:00
twinaphex 5dfc3f31db Move game_options_path to paths 2016-03-02 05:29:24 +01:00
twinaphex 34f3963e4e Simplify RUNLOOP_CTL_IS_SLOWMOTION 2016-02-29 01:33:14 +01:00
twinaphex 0f8f980c8f Start reimplementing Zarch joypad input 2016-02-26 22:29:10 +01:00
twinaphex 2f98073fc1 Add setting 'Menu Throttle Framerate' to 'Frame Throttle' 2016-02-24 21:24:32 +01:00
twinaphex 6512e5ff6e Move this check - this should serve as a framerate limiter for the
menu
2016-02-21 12:11:08 +01:00
Hans-Kristian Arntzen adbf9fed16 Vulkan implementation. 2016-02-16 20:42:02 +01:00
twinaphex a36382b938 Create CHEEVOS_CTL_TEST 2016-02-13 06:09:37 +01:00
twinaphex 8c8ea6c167 Cleanups 2016-02-13 05:22:07 +01:00
twinaphex f1ea400456 Refactor away runloop_msg_queue_pull 2016-02-13 05:17:36 +01:00
Twinaphex cf4d31cd80 Shouldn't repeat keys now 2016-02-12 07:49:49 +01:00
twinaphex 37875fb242 Add MENU_CTL_*PENDING_ACTION 2016-02-12 07:30:34 +01:00
twinaphex 774ec5b7ca Some runloop_ctl changes 2016-02-11 01:47:24 +01:00
twinaphex b5e28cda58 Create RARCH_MENU_CTL_ITERATE 2016-02-10 20:13:12 +01:00
twinaphex 9db5d45361 Change return value to menu_driver_iterate 2016-02-10 20:08:10 +01:00
twinaphex d9de92f48b Buildfix 2016-02-09 18:38:57 +01:00
twinaphex 5b6d310abd Rename enums 2016-02-09 18:26:27 +01:00
twinaphex 8b9c7a47e4 Move task_queue to queues/ dir 2016-02-09 18:13:47 +01:00
twinaphex 31112e937b Move task_queue.c to libretro-common 2016-02-09 18:11:11 +01:00
twinaphex 4210ee197b Rename tasks.c to task_queue.c 2016-02-09 17:55:15 +01:00
twinaphex 6e9bc55dd6 Rename task_ctl to task_queue_ctl 2016-02-09 17:51:51 +01:00
twinaphex 0378463130 Remove configuration.h dependencies from tasks.c 2016-02-09 17:41:30 +01:00
radius 14cd4af752 don't create directories when checking for game options, only create when the user selects the menu entry 2016-02-08 00:07:41 -05:00
twinaphex 490c023fe3 Add core_info_ctl actions 2016-02-07 02:37:57 +01:00
twinaphex 7a01fb1616 Create CORE_INFO_CTL commands 2016-02-07 02:24:08 +01:00
twinaphex 0643b83f7d Header include changes 2016-02-05 13:57:08 +01:00
twinaphex 24adcc8e68 Create RUNLOOP_CTL_MSG_QUEUE_PUSH 2016-02-03 17:56:40 +01:00
twinaphex e6d04b2fb4 Create RUNLOOP_CTL_MSG_QUEUE_CLEAR 2016-02-03 17:50:53 +01:00
twinaphex 7803b0d925 Create RUNLOOP_CTL_MSG_QUEUE_PULL 2016-02-03 17:48:01 +01:00
twinaphex 03ddb7baa2 Style nits 2016-02-03 17:10:54 +01:00
radius 659a3ef5d8 write to game options files if created instead of the main options file 2016-01-31 01:54:57 -05:00
twinaphex b47caeb58b Refactor away runloop_msg_queue_push_new 2016-01-29 14:30:09 +01:00
twinaphex a5e8615091 Create TASK_CTL_INIT 2016-01-28 09:52:28 +01:00
twinaphex b008750f18 Add TASK_CTL_DEINIT 2016-01-28 09:48:47 +01:00
twinaphex 7a5fbc6948 Create TASK_CTL_CHECK 2016-01-28 09:45:14 +01:00
twinaphex 9046626256 Cleanup 2016-01-28 09:24:38 +01:00
twinaphex fef5ecd97b Create CORE_CTL_RETRO_GET_SYSTEM_INFO 2016-01-27 08:58:31 +01:00
twinaphex 0434c907c4 Replace another reference to retro_ctx 2016-01-27 04:51:47 +01:00
twinaphex 489b578bf8 rename CORE_CTL_RUN to CORE_CTL_RETRO_RUN 2016-01-27 03:31:42 +01:00
twinaphex d1ffd1f9cc Create CORE_CTL_RUN 2016-01-27 03:21:36 +01:00
twinaphex 9ad50f91e8 Add poll-type - can change it only at compile-time right now 2016-01-27 01:16:53 +01:00
twinaphex d8fef4df6e Style nits 2016-01-26 05:44:21 +01:00
twinaphex 2a9b2d7759 Cut down on duplicated code surrounding game options files 2016-01-26 02:24:59 +01:00
twinaphex 04616522b9 Cleanup action_ok_option_create 2016-01-26 02:21:03 +01:00
twinaphex 6596d15d81 Remove some RARCH_CONSOLE ifdefs 2016-01-25 06:55:15 +01:00
twinaphex 91f7120604 Cleanup 2016-01-23 19:42:05 +01:00
twinaphex 894da665ad Cleanup 2016-01-23 19:40:43 +01:00
twinaphex 372d673a26 Rename event_command to event_cmd_ctl - add second parameter 2016-01-22 15:34:43 +01:00
twinaphex 107cb53b5a Remove unused variable 2016-01-22 14:43:11 +01:00
twinaphex 7924823b32 Fix RUNLOOP_CTL_FRONTEND_KEY_EVENT_GET 2016-01-21 19:45:43 +01:00
twinaphex 25d63c3167 Get rid of some implicit memsets 2016-01-21 02:19:38 +01:00
twinaphex 6bf373a7c7 Divorce frontend_key_event from global variable 2016-01-21 01:52:02 +01:00
twinaphex e1ab34d884 Cleanups 2016-01-20 03:38:08 +01:00
twinaphex 9017fe8c50 Simplify this code 2016-01-20 03:32:03 +01:00
twinaphex 3abbe15637 Fix 'Dummy on Core Shutdown' setting 2016-01-20 03:31:19 +01:00
twinaphex 1eac61e9a0 Create RARCH_CTL_IS_DUMMY_CORE 2016-01-19 23:44:32 +01:00
twinaphex 01d58f8681 Create RARCH_CTL_IS_INITED, RARCH_CTL_SET_INITED, RARCH_CTL_UNSET_INITED 2016-01-19 23:26:47 +01:00
twinaphex 0696e0ca46 Change title 2016-01-14 07:14:40 +01:00
twinaphex 7a55ae3765 Start updating headers for 2016 2016-01-10 04:06:50 +01:00
twinaphex 4504c9fba1 Revert "I think this can be moved below this return block"
This reverts commit a10e36ebb6.
2016-01-07 00:11:58 +01:00
twinaphex a10e36ebb6 I think this can be moved below this return block 2016-01-07 00:10:46 +01:00
twinaphex a6ba6073f3 Move macros to the top of the file 2015-12-26 11:10:13 +01:00
twinaphex 83c3b7f506 Rework runloop_iterate_time_to_exit 2015-12-26 11:08:44 +01:00
twinaphex 15336342fa Move runloop_shader_dir to runloop_ctl as static local variable 2015-12-26 10:05:10 +01:00
twinaphex 7f48d051f6 move runloop_pending_windowed_scale to runloop_ctl as
static variable
2015-12-26 09:53:32 +01:00
twinaphex eb0d76d976 string_is_empty already checks this now 2015-12-26 08:22:45 +01:00
twinaphex 91f61afa16 Start using string_is_empty 2015-12-26 07:07:01 +01:00
twinaphex 5cdbe7e3cc Fixes some crucial bugs 2015-12-25 19:30:31 +01:00
ctult 5bb3ab4d45 Starting to clean up netplay code 2015-12-23 13:25:28 -07:00
radius 4024c9a8c6 Change the label when per-game options are in use 2015-12-17 17:26:11 -05:00
twinaphex 5ef30e3ac4 Fix System Information no longer showing 2015-12-16 03:28:55 +01:00
twinaphex e7749c5d42 Create RUNLOOP_CTL_KEY_EVENT_GET 2015-12-13 14:31:17 +01:00
twinaphex c90737388b Get rid of unused data_runloop_osd_msg 2015-12-11 15:52:26 +01:00
twinaphex a8590e656e Take out header include core_info.h from runloop.h 2015-12-11 13:56:00 +01:00
twinaphex 159fe58926 Move core info list to runloop_ctl 2015-12-11 13:51:17 +01:00
twinaphex eda9009df5 Create RUNLOOP_CTL_CURRENT_CORE_LIST_FREE 2015-12-11 13:33:07 +01:00
twinaphex 23f1bf63c0 Turn core_info_current into static local variable 2015-12-11 13:28:23 +01:00
twinaphex 65eeb3d836 Don't touch global->core_info.current from outside runloop.c 2015-12-11 13:24:14 +01:00
twinaphex df17c38598 Create RUNLOOP_CTL_CURRENT_CORE_GET 2015-12-11 13:19:40 +01:00
twinaphex 45de6fe3b5 Create RARCH_DRIVER_CTL_SET_NONBLOCK_STATE 2015-12-11 11:04:16 +01:00
twinaphex f2911269d5 Create driver_ctl 2015-12-11 10:43:53 +01:00
twinaphex a8c6fc150b Add RUNLOOP_CTL_DATA_ITERATE 2015-12-11 10:17:18 +01:00
twinaphex d7fd52b03f Make g_system_menu no longer a global 2015-12-10 23:08:34 +01:00
twinaphex fc6505e408 Get rid of rarch_system_info_get_ptr 2015-12-10 22:30:25 +01:00
twinaphex 10f934dc70 Move overrides_active variable to runloop_ctl 2015-12-10 21:43:44 +01:00
twinaphex 3965ea8fd6 runloop_iterate - cleanups 2015-12-10 21:31:28 +01:00
twinaphex 4202e9e9d3 Cleanup 2015-12-10 19:43:25 +01:00
twinaphex 7274e6bc3e Cleanups 2015-12-10 12:37:24 +01:00
twinaphex 3c765e30d3 Add RUNLOOP_CTL_GET_CORE_OPTION_SIZE 2015-12-09 09:37:54 +01:00
twinaphex fee5d2a880 Add RUNLOOP_CTL_HAS_CORE_OPTIONS 2015-12-09 09:34:19 +01:00
twinaphex 99824bcad0 Move more code to do with core options to runloop.c 2015-12-09 09:21:49 +01:00
twinaphex 39499eb107 Silence 'cannot be reached' warnings 2015-12-08 19:54:36 +01:00
twinaphex c1c0870328 Cleanup 2015-12-07 16:01:18 +01:00
twinaphex b0b35ba9e5 Remove more references to menu_driver_get_ptr outside of menu/ files 2015-12-07 16:00:48 +01:00
twinaphex ed7e4af287 Rename remaining rarch_main_ functions 2015-12-07 15:36:58 +01:00
twinaphex 2d55dc3bda Complete namespace changes 2015-12-07 15:32:14 +01:00
twinaphex 5b1e1592cb Rename rarch_main_iterate and rarch_main_data_iterate 2015-12-07 15:22:36 +01:00
twinaphex e36712a4e0 Turn shader_dir_init and shader_dir_free into static functions 2015-12-07 14:45:15 +01:00
twinaphex cd8f34e0f8 Move more code to runloop.c 2015-12-07 14:16:34 +01:00
twinaphex 098d983587 Move more core option functionality to runloop.c 2015-12-07 14:13:07 +01:00
twinaphex 4eb669429f Don't make g_system a pointer 2015-12-07 14:02:01 +01:00
twinaphex fd7e4db9aa Combine system.c and runloop.c 2015-12-07 13:56:33 +01:00
twinaphex c6e454da46 Cleanup 2015-12-07 13:20:19 +01:00
twinaphex 5679950f20 Simplify event_cmd_state 2015-12-07 11:23:32 +01:00
twinaphex 7a322e7cd2 More cleanups 2015-12-07 11:04:32 +01:00
twinaphex f1b216f64a Further cleanups 2015-12-07 10:58:10 +01:00
twinaphex c8e8f324db Create rarch_main_cmd_menu_press 2015-12-07 10:56:00 +01:00
twinaphex c3a80c8ee3 Cleanups 2015-12-07 10:33:17 +01:00
twinaphex 6f0f9bf80a Store old state and current input state too 2015-12-07 10:28:47 +01:00
twinaphex f2413baf31 More of previous commit 2015-12-07 10:25:45 +01:00
twinaphex 45430c3346 Start reimplementing event_cmd_state buttons 2015-12-07 10:05:58 +01:00
Twinaphex 74f9c4b88c RUNLOOP_CTL_STATE_FREE - set two more variables back to their default values 2015-12-07 08:34:57 +01:00
Twinaphex 1e59387634 Group under HAVE_THREADS 2015-12-07 07:52:11 +01:00
Twinaphex 9ea78c19c7 Set runloop_msg_queue_lock back to NULL after freeing it 2015-12-07 07:48:14 +01:00
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