Commit Graph

407 Commits

Author SHA1 Message Date
Twinaphex
e6e96cc74d (OSK) Add fallback for find_osk_driver 2014-08-15 18:13:29 +02:00
twinaphex
33ddbeb149 Rewrite more driver_funcs macros 2014-08-14 20:13:56 +02:00
twinaphex
9992e33a36 Replace more driver_funcs macros 2014-08-14 19:56:45 +02:00
twinaphex
e851d279f8 Start getting rid of driver_funcs.h macros 2014-08-14 19:54:22 +02:00
twinaphex
0966d384d8 (OSK) Get rid of HAVE_OSK ifdef 2014-08-14 06:40:33 +02:00
twinaphex
88af50ab82 Add null drivers 2014-08-14 03:05:44 +02:00
twinaphex
e1a122843b Add null camera - remove HAVE_CAMERA ifdefs 2014-08-14 02:55:04 +02:00
twinaphex
027bd68bb3 Add location/null.c - get rid of HAVE_LOCATION ifdefs 2014-08-14 02:15:48 +02:00
twinaphex
38ec3146f3 Cleanup driver-contexts 2014-08-13 08:55:29 +02:00
twinaphex
fcbbf08109 (Recording) Bake in HAVE_RECORD implicitly 2014-08-12 05:28:43 +02:00
Higor Eurípedes
b6df19dffb (SDL*) Merge input drivers 2014-08-11 19:47:30 -03:00
twinaphex
9df8cda62c Refactor video_xscale/video_yscale into video_scale - scales
both X and Y according to same value
2014-08-11 23:57:57 +02:00
twinaphex
f910a68083 (GX) Ifdef g_settings.vwidth with GEKKO 2014-08-11 11:00:11 +02:00
Twinaphex
0998c5a203 Merge pull request #866 from SuperrSonic/master
Basic video encoder changer (viWidth), affects GC/Wii only
2014-08-11 10:57:01 +02:00
Higor Eurípedes
f53b67aab7 (SDL2) Use sdl_audio.c as audio driver 2014-08-10 19:54:49 -03:00
SuperrSonic
08d95723a9 added viwidth stuff 2014-08-10 16:44:17 -04:00
Higor Eurípedes
46beb117ef (SDL2) Add input driver 2014-08-10 15:00:21 -03:00
Higor Eurípedes
1ea504fcfe (SDL2) Added video driver 2014-08-10 13:39:31 -03:00
twinaphex
c564278809 Refactor record init/deinit 2014-08-02 14:17:20 +02:00
twinaphex
ea64ea465a driver.c - cleanups 2014-08-02 13:44:36 +02:00
twinaphex
e110bd90f5 Refactor DSP filter init/deinit 2014-08-02 13:40:38 +02:00
twinaphex
7d4b6b23c5 Refactor overlay init/free 2014-08-02 12:36:48 +02:00
twinaphex
d70693345c Refactor rarch_set_fullscreen calls to rarch_main_command 2014-08-02 03:56:19 +02:00
twinaphex
8082dfb9cc Refactor away rarch_reinit_drivers 2014-08-01 17:26:11 +02:00
twinaphex
65a64c1111 Backport Themaister - Move g_settings.audio.in_rate to g_extern.audio_data.
It's not a setting.
2014-07-23 07:15:57 +02:00
twinaphex
14dbd27873 (Driver) Move find_audio_driver outside of HAVE_THREADS in init_audio -
man, this whole audio/input/video initing/deiniting is still hacky as shit.
2014-07-18 19:58:05 +02:00
twinaphex
5b727b58b7 Make init_video_input more robust - just failing the entire program
like this instead of defaulting to sane defaults is unacceptable
2014-07-18 19:40:26 +02:00
Themaister
1c1c92f38a Drop misleading "fallback" path for input drivers.
The codepath cannot be hit anyways due to checks in find_input_driver().
2014-07-18 18:42:27 +02:00
Tobias Jakobi
9a38d77655 Remove the lima video driver
The driver is now superseded by the exynos video driver. Also limare
only works up to mali kernelspace driver version r3p2, which makes
the driver nonfunctional with the latest r4p0.
2014-07-17 14:55:56 +02:00
Tobias Jakobi
7efa9def07 Add exynos video driver
Documentation is provided in README-exynos.
2014-07-17 14:41:44 +02:00
twinaphex
039aec9019 Make the init input check more robust in init_video_input 2014-07-17 03:19:23 +02:00
Twinaphex
63cd0eb927 Make find_audio_driver/find_input_driver more robust 2014-07-17 03:17:46 +02:00
Twinaphex
a990d7e319 Make find_video_driver more robust in case of failure 2014-07-17 03:03:05 +02:00
Themaister
53bc4c08ed Check recording based on g_extern.rec and not g_extern.recording.
Fixes some segfaults where g_extern.recording and g_extern.rec mismatch.
Makes it possible to record without loading content directly from CLI.
2014-06-16 15:50:53 +02:00
twinaphex
966db762cf (Menu) More replacement of namespace prefix 'rgui' with 'menu' 2014-06-10 02:06:10 +02:00
twinaphex
d3301083ac Revert "Create public init_menu/uninit_menu"
This reverts commit 8f7e9edd88.
2014-06-06 00:51:56 +02:00
twinaphex
8f7e9edd88 Create public init_menu/uninit_menu 2014-06-05 20:26:21 +02:00
twinaphex
07db4ea692 Menu context destroy needs to be grouped in HAVE_MENU ifdef 2014-06-02 22:00:33 +02:00
twinaphex
8e04ac2f12 (PS3 image) Some more safety checks
(Driver) Safety check before invoking menu_context_destroy
2014-06-02 18:08:08 +02:00
Themaister
4449f071ed Create rarch_reinit_drivers().
Avoid rarch_set_fullscreen() calls which are non-intuitive.
2014-06-01 00:42:36 +02:00
Themaister
41e770eb0c Derp, call context_reset after init_menu. 2014-06-01 00:29:49 +02:00
Themaister
206ea8012f Don't completely reinit menu driver unless we're killing Rarch. 2014-05-31 23:54:07 +02:00
Themaister
f1b3252193 Don't init assets from init.
Rename to context_reset/context_destroy and let the driver init/uninit
step signal the menu when the context is going down and coming up.
2014-05-31 23:24:46 +02:00
twinaphex
b2d9c60613 (Menu) Don't pass menu data to menu_iterate
(Menu) Don't pass menu data to backend - postprocess
2014-05-30 20:53:10 +02:00
twinaphex
d267f27130 (Style nit) Rename 'init' to 'initialize' in comments
(Filter) Get rid of questionable ifdef for HAVE_FILTERS_BUILTIN for
filter init
2014-05-30 18:23:32 +02:00
twinaphex
af440bf545 (Menu) Menu now gets inited from driver.c instead of frontend.c
(Console) Better way to 'restart' instead of using the function
'restart' - call rarch_set_fullscreen instead. 'Restart' function
in driver interface can go now
(Menu) Menu now gets properly deinited/reinited when - say -
rarch_set_fullscreen is toggled or some other state change like this.
If init_assets function of menu_ctx_driver is implemented, this should
ensure all GL/D3D assets get 'cleaned up' prior to teardown of the video
driver, and properly reinited after the video driver is brought up again
2014-05-30 17:49:04 +02:00
twinaphex
6f2927cbac (Filter) rarch_init_failter - Filter init failure was wrongly reported
for HAVE_FILTERS_BUILTIN targets
2014-05-30 09:11:56 +02:00
twinaphex
985a5d9779 Remove unnecessary uninit_video_misc 2014-05-30 03:14:10 +02:00
twinaphex
a97b53f9f1 Reimplement driver.*_data_own variables so that they actually
work for a usecase now -

on Xbox, full teardown/re-initing of D3D context seems to be
error-prone - so by flagging driver.video_data_own to true inside
of the video_init function, we signal later on to the uninit_drivers
function that we DO NOT want to call the free function of this driver
and clean up the handle.

Instead, this driver should properly retain the handle by returning
the pre-existing handle when (for example) driver.video_data is
not NULL. You can see an example of this in xdk/xdk_d3d.cpp.

Overall still a quite clean solution and we will only use this in
extraordinary conditions (like this Xbox one I suppose) - full
teardown/setup will be the goal for all other platforms where we
can be certain that the state can be brought down and up entirely
during runtime without any problems.
2014-05-30 02:37:48 +02:00
twinaphex
346701fce8 (Xbox) Make hack less ugly 2014-05-30 02:01:29 +02:00