Commit Graph

49 Commits

Author SHA1 Message Date
libretroadmin
cc3169febe (runloop) Cleanups 2022-11-21 19:11:55 +01:00
Cthulhu-throwaway
2d1c238c1d
Special functions for core serialization (#14317) 2022-08-13 02:24:28 +02:00
jdgleaver
1490ad18a2
Prevent log spam when using rewind hotkey with cores that don't support rewind if rewind functionality itself is disabled (#13741) 2022-03-14 18:17:43 +01:00
twinaphex
11defb4009 Move netplay/networking code to netplay_frontend.c - move it out of
retroarch.c
2021-11-05 04:42:03 +01:00
twinaphex
49fbed2423 Get rid of input_mouse_grabbed - move retroarch types to
retroarch_types.h
2021-09-30 23:22:50 +02:00
twinaphex
dbe620db60 Cleanups 2021-03-14 02:11:36 +01:00
twinaphex
b8058a93e1 Reorder structs, alignment 2020-08-15 23:10:31 +02:00
twinaphex
f09df7c6e3 Reorder structs, alignment 2020-08-15 19:43:17 +02:00
twinaphex
10b06ce828 More struct reordering/alignment 2020-08-14 21:00:04 +02:00
twinaphex
87b9c2a367 Add HAVE_REWIND switch 2020-07-01 21:04:05 +02:00
jdgleaver
00397a33f0 (Disk Control Interface) Add support for saving/restoring last used disk in playlists + code overhaul 2020-01-22 17:09:12 +00:00
jdgleaver
a2e1d622e1 Add disk control interface API extension 2020-01-17 16:34:05 +00:00
Twinaphex
b6aa9f2fd1
Revert "Refactor RetroArch input polling settings" 2019-11-17 16:45:40 +01:00
rz5
2678789bd8 Refactor RetroArch input polling settings
* Refactored the way RetroArch sets the input state/poll callbacks, hopefully it's clearer now.

* The unnamed enum of poll type behaviors in core.h was moved to retroarch.h and is now named rarch_poll_type.
It represents polling behaviors implemented specifically by RetroArch.
First element starts at 1 to match the data encoding of RETRO_ENVIRONMENT_POLL_TYPE_OVERRIDE.

* Created rarch_set_input_cbs - sets different input state/poll callbacks based on a
rarch_poll_type parameter.

* Replaced the static variable core_poll_type_override in retroarch.c with a poll_type_lock flag
inside global_t's menu struct;
RETRO_ENVIRONMENT_POLL_TYPE_OVERRIDE will now call rarch_set_input_cbs and set poll_type_lock,
which blocks the user from changing behaviors from the menu.

* To follow the RETRO_ENVIRONMENT_POLL_TYPE_OVERRIDE spec, we now set poll_type_lock and call
rarch_set_input_cbs after calling unload_game.

* core_set/unset_netplay_callbacks will now set/unset poll_type_lock, preventing the
poll type from being changed by the user;

* The MENU_ENUM_LABEL_INPUT_POLL_TYPE_BEHAVIOR action will now call rarch_set_input_cbs if poll_type_lock
isn't set, which means poll type is changed on-the-fly.
2019-11-13 00:11:05 +00:00
twinaphex
2e76deb3a0 Cleanups 2019-07-22 19:58:48 +02:00
twinaphex
60f77cd903 Change core_set_poll_type 2019-07-16 10:10:49 +02:00
twinaphex
e53d4987b4 Combine copy_load_info.c into retroarch.c 2019-07-16 01:56:09 +02:00
twinaphex
abcfcca1d2 Merge dynamic.c into retroarch.c 2019-07-10 09:54:25 +02:00
twinaphex
10c5331cc0 Move runahead dirty_input to retroarch.c - allows us
to make retro_ctx and current_core static
2019-06-20 10:08:32 +02:00
twinaphex
6bc1802914 Move run_ahead.c to retroarch.c - most of the runloop
should now be self-contained in one file. Allows us to
turn more functions static, remove more extraneous functions
that just consisted of a single line (mostly getters/setters), etc.
2019-06-20 09:30:44 +02:00
twinaphex
4d8f5f4dde Merge core_impl.c into retroarch.c 2019-06-19 09:51:56 +02:00
twinaphex
bcb474b3a3 (runahead) Cleanups - create core_free_game_info and move it to
core_impl.c - get rid of free_string_list and just reuse
string_list_free
2019-05-22 04:04:58 +02:00
krzys-h
c8510378dc (UWP) Error if trying to use VFS on cores that don't support it 2019-01-17 11:08:05 +01:00
Dwedit
f5e0346fc2 Runahead system 2018-03-28 14:22:07 -05:00
gblues
6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex
449483206f Revert "New attempt to fix memory leaks of struct retro_system_info"
This reverts commit a1d3dd69dd.
2017-05-30 01:44:49 +02:00
twinaphex
a1d3dd69dd New attempt to fix memory leaks of struct retro_system_info
char variables
2017-05-29 22:24:10 +02:00
twinaphex
3fbed8df27 (Menu) Menu driver no longer uses a duplicate system info
struct
2017-05-28 17:21:57 +02:00
twinaphex
e5059a237a Cleanups 2017-05-21 10:34:50 +02:00
twinaphex
a0924a414f Get rid of some unnecessary function callback wrapper functions 2017-05-21 09:30:32 +02:00
twinaphex
8e53dffdef core_impl.c - some cleanups 2017-01-23 14:50:00 +01:00
Gregor Richards
17e08c7a28 When we disconnect netplay, fully deinit it
In particular, we need to disentangle the interceding netplay callbacks.
In previous versions, if you disconnected netplay but were using a core
that made netplay stall for connections (i.e., one that has no
savestates), netplay would continue to stall because it still
interceded, even though it was supposed to be off. This fixes that.
2016-12-17 23:08:59 -05:00
twinaphex
026e705506 core.h - remove retro_miscellaneous.h include 2016-12-10 09:04:40 +01:00
Andre Leiradella
2b345b8d48 Fixed math to translate a physical address to the memory descriptor index + offset 2016-11-13 20:58:09 +00:00
twinaphex
60d313bf6a Reduce size of more char variables 2016-10-27 09:21:03 +02:00
twinaphex
3094e47820 Cleanup core_frame 2016-10-25 04:58:00 +02:00
Gregor Richards
90bd741786 Switching serialization quirks to uint64_t for consistency with other
bitfields
2016-10-04 23:07:35 -04:00
Gregor Richards
0d661ef6a2 Fix some backwards implementation in reporting serialization quirks 2016-10-04 23:07:35 -04:00
Gregor Richards
b974fa5718 Add a libretro environment for serialization quirks
The new environment RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS allows
cores to communicate any quirks their implementation of serialization
may exhibit. This is useful for distinguishing between serialization
implementations that are sufficient for netplay, rewind, regular use,
etc, as each of these have different requirements and it should be
possible to support a "good enough" serialization without breaking
frontend features.
2016-10-04 23:05:50 -04:00
Gregor Richards
03c9dab93a Adding a netplay menu
In this first cut, Netplay can be enabled "mid-stream", but not much
else is supported. Client reconnection and either-side disconnection are
listed in the menu but don't yet do anything.
2016-09-29 13:04:38 -04: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
twinaphex
6ccf67057b Add 'core_is_inited' and 'core_is_symbols_inited' 2016-09-06 03:52:29 +02:00
Andre Leiradella
073d9aa7d1 added /info rest service to the embedded http server 2016-09-03 17:50:04 +01:00
twinaphex
3669d44de9 Create core_uninit_symbols function 2016-07-23 07:06:32 +02:00
twinaphex
ff8d00e12b Use RETRO_BEGIN_DECLS/RETRO_END_DECLS in more files 2016-06-03 03:22:35 +02:00
twinaphex
4a7ab8366b Move libretro.h headers to libretro-common/include 2016-05-10 19:03:53 +02:00
twinaphex
e165954395 Rename libretro_version_1 to core_impl 2016-05-08 05:29:10 +02:00