Commit Graph

225 Commits

Author SHA1 Message Date
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
twinaphex
dc45cafa32 Create rarch_main_verbosity and rarch_main_log_file 2015-03-21 06:02:00 +01:00
twinaphex
2409da4afe global_get_ptr update pt. 3 2015-03-21 05:55:31 +01:00
twinaphex
5a443d229a global_get_ptr update pt. 2 2015-03-21 05:42:49 +01:00
twinaphex
3d140cdb36 Start going through global_get_ptr 2015-03-21 02:07:46 +01:00
twinaphex
0a5de72318 Move stuff over to runloop.h 2015-03-21 01:59:47 +01:00
twinaphex
533c5c0eb1 Create rarch_main_global_init/rarch_main_global_deinit 2015-03-21 01:53:14 +01:00
twinaphex
c0d5a6c401 Updates pt. 7 2015-03-20 23:22:41 +01:00
twinaphex
6cefa69aa4 Go through settings pointer 2015-03-20 19:48:23 +01:00
twinaphex
b1491e2a5b Put g_runloop on heap 2015-03-20 19:01:03 +01:00
twinaphex
70d57ad911 Go through rarch_main_get_ptr in runloop.c 2015-03-20 18:31:09 +01:00
twinaphex
f6a791a3e0 Call rarch_main_data_deinit from outside 2015-03-19 07:28:46 +01:00
twinaphex
4aa262b1ed Create rarch_main_is_idle 2015-03-18 20:48:17 +01:00
twinaphex
aa8e5bc8cf (GX) Buildfix/warning fix 2015-03-18 20:31:01 +01:00
twinaphex
3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
twinaphex
7378299282 Create rarch_main_get_ptr 2015-03-18 06:47:22 +01:00
twinaphex
a333a629ca Start going through INLINE 2015-03-15 04:30:46 +01:00
twinaphex
892e665f40 Move definition of globals for g_data_runloop and g_runloop
out of settings.c
2015-03-15 03:21:58 +01:00
twinaphex
8c1045c1ae Create wrapper functions for initing the runloop message queue
and freeing it
2015-03-15 03:10:45 +01:00
twinaphex
e378962724 Fix hardcoded arguments in rarch_main_msg_queue_push 2015-03-15 03:03:33 +01:00
twinaphex
761177a885 Update more old code to go through the new wrapper function 2015-03-15 02:59:38 +01:00
twinaphex
00239a30d6 Create wrapper functions for passing a message to the runloop's
message queue
2015-03-15 02:47:23 +01:00
twinaphex
4a68e58b8c (runloop_data.c) Move rarch_main_iterate_overlay_state to runloop_data.c 2015-03-15 01:39:43 +01:00
twinaphex
0e85b11046 (runloop data) Properly namespace everything in runloop_data.c 2015-03-14 15:50:34 +01:00
twinaphex
10208eb625 rarch_main_iterate_overlay_state - early return in case runloop
is idle
2015-03-08 17:57:00 +01:00
twinaphex
57e3c81329 Properly namespace some function names 2015-03-08 12:30:29 +01:00
twinaphex
5b3ab881ba Add g_runloop.is_idle 2015-03-08 01:48:40 +01:00
twinaphex
be4d15f2df Move minimum_frame_time/last_frame_time to g_runloop 2015-03-07 13:43:31 +01:00
twinaphex
d11006e041 Move frame_count to g_runloop 2015-03-07 13:14:04 +01:00
twinaphex
795ef467ac Move msg_queue and nbio/http to runloop struct 2015-03-07 13:01:41 +01:00
twinaphex
a74cb0574b Create g_runloop and start moving variables there 2015-03-07 12:36:50 +01:00
twinaphex
34622f63ed (Overlay) Back to the drawing board 2015-02-27 01:25:08 +01:00
twinaphex
a41c159ece Load first active overlay immediately - much faster 2015-02-23 21:49:08 +01:00
twinaphex
4a7ce3e460 Simplify input_overlay.c 2015-02-23 06:37:27 +01:00
twinaphex
2390e17fc7 (Overlay) Add some logic 2015-02-23 06:03:53 +01:00
twinaphex
a33b06291d Split up NBIO/HTTP/image loading code to runloop_data.c 2015-02-23 02:54:14 +01:00
twinaphex
80072c72c2 (MSVC) Buildfix 2015-02-23 02:30:07 +01:00
neville
a7fbfc0c00 (OSX PPC) Build fixes 2015-02-23 01:32:50 +01:00
neville
93b48c4d96 Remove unused variables 2015-02-22 23:55:35 +01:00
twinaphex
f04cb1deb9 Addendum to earlier commit 2015-02-22 08:28:28 +01:00
twinaphex
b673321322 (nbio interface) Don't immediately free data buffer of nbio handle -
in the case of images we need to retain this data buffer until it's
time to free it. We set nbio_handle->is_blocking to true to indicate
to the nbio interface that we want to 'block' on the nbio interface
(i.e. don't free, iterate or create a new nbio transfer). If
nbio_handle->is_finished is set to true, we cleanup and free the
nbio transfer handle.
2015-02-22 08:24:10 +01:00
twinaphex
f233ccb141 Start making rnbio_handle chain 2015-02-22 07:34:33 +01:00
twinaphex
98b0728604 Start setting up some code in preparation for non-blocking image
loading
2015-02-22 06:35:02 +01:00
twinaphex
0595189fab Create OVERLAY_STATUS_DEFERRED_LOADING_IMAGE 2015-02-21 22:00:12 +01:00
twinaphex
7268eab3e8 Create two more iteration phases for overlays 2015-02-21 09:26:52 +01:00
twinaphex
b064838da7 Call rarch_main_iterate_linefeed_overlay only when HAVE_OVERLAY is defined 2015-02-21 08:52:29 +01:00
twinaphex
b0fe8d719a Make sure that it can restore the original overlay after we open/close OSK 2015-02-21 08:47:03 +01:00
twinaphex
50baeba22a Fix race condition issue in threaded video mode when OSK is
brought up/down
2015-02-21 08:42:19 +01:00
twinaphex
61bbb2a3fb Start making overlay loading 'deferred' 2015-02-21 07:29:13 +01:00
twinaphex
2f63b75697 Move rewind state variables in struct 2015-02-16 18:09:00 +01:00
twinaphex
37a541e8a0 Restructure some settings in g_extern 2015-02-16 17:52:58 +01:00
twinaphex
41d3657b5d Start creating directory content scanning - nonblocking I/O not
yet implemented
2015-02-16 07:53:27 +01:00
twinaphex
939b78753a Get rid of messy 'pending cb' code - instead use
string lists
2015-02-16 05:44:43 +01:00
twinaphex
207181135c Create input_driver_keys_pressed 2015-02-15 01:19:06 +01:00
twinaphex
94856393a9 Change signature of check_block_hotkey 2015-02-15 01:03:19 +01:00
twinaphex
6575c9a344 Don't do conditional inside for loop 2015-02-15 00:34:14 +01:00
twinaphex
01bed976e1 input_keys_pressed - cleanup 2015-02-15 00:27:33 +01:00
twinaphex
7df7201b31 Go through menu_driver_resolve 2015-02-13 23:41:34 +01:00
Alcaro
28e2ca74e7 Double semicolons aren't useful. 2015-02-10 22:29:26 +01:00
twinaphex
521548c99b Take out pretro_run conditional since it didn't solve issue anyway 2015-02-10 21:18:47 +01:00
twinaphex
3b365bb0d7 Put conditional around pretro_run 2015-02-10 20:43:38 +01:00
twinaphex
f507e78765 Create do_pause_state_checks 2015-02-10 19:07:53 +01:00
twinaphex
35bf937325 Create do_netplay_state_checks 2015-02-10 19:04:02 +01:00
twinaphex
6f165b6801 Create video_driver_set_shader 2015-02-10 17:20:02 +01:00
twinaphex
820595379e Create video_driver_has_focus 2015-02-10 17:14:40 +01:00
twinaphex
81ca20c9b5 Create wrapper function for 'is video alive' 2015-02-10 16:54:08 +01:00
twinaphex
5921f8055d Refactor this 2015-02-10 16:50:41 +01:00
twinaphex
d98cd5a680 runloop.c - create check_video_alive - try to prevent segfaults
at all costs
2015-02-10 16:46:49 +01:00
twinaphex
23640fd12e input_keys_pressed - do early return in case driver.input
or driver.input_data is NULL
2015-02-10 16:38:47 +01:00
twinaphex
524f754ec3 Core Update Manager works again when HAVE_NETWORKING is defined -
enygmata jumped the gun with refactoring the HAVE_NETPLAY define
2015-01-28 08:55:02 +01:00