Commit Graph

240 Commits

Author SHA1 Message Date
twinaphex c706644c05 (Menu) Go through RARCH_CMD_VIDEO_SET_BLOCKING_STATE 2014-08-16 18:49:06 +02:00
twinaphex 823be1ce41 Get rid of more driver_funcs macros 2014-08-15 20:51:59 +02:00
twinaphex 2cb8d06c7a Move config_save_on_exit to g_settings 2014-08-12 03:36:26 +02:00
twinaphex 30db4df19e Rename more references to 'ROMs' 2014-08-12 03:22:44 +02:00
twinaphex 91bad2b25d (PS3) Build fixes 2014-08-09 03:25:11 +02:00
twinaphex 901b5361fd Build fix 2014-08-03 02:44:21 +02:00
twinaphex 675b8370e3 Refactor main_load_content 2014-08-03 02:09:41 +02:00
twinaphex 1ce72b3859 (Android) Fix build 2014-08-03 00:00:41 +02:00
twinaphex 3e8715c3f3 Cleanup main_entry_iterate_load_content 2014-08-02 19:00:34 +02:00
twinaphex 671be27367 Move code to load_menu_content 2014-08-02 18:41:43 +02:00
twinaphex d376fbe8c4 Cleanups 2014-08-02 13:50:56 +02:00
twinaphex 53ae4cd72c Refactor audio stop/start 2014-08-02 12:08:53 +02:00
twinaphex 6a0c3ff25d Refactor more functions - make more functions in retroarch.c static
that don't need to be public
2014-08-02 01:49:36 +02:00
twinaphex 8285f6021f Refactor away rarch_main_idle_iterate 2014-08-01 17:57:14 +02:00
twinaphex f958587a57 Rename load_menu_game to load_menu_content 2014-07-28 01:55:59 +02:00
twinaphex 86f2ef2ae8 Get rid of free_args 2014-07-28 01:28:48 +02:00
twinaphex 458e4d83f4 Make load_menu_game_prepare a static function and call it from
load_menu_game
2014-07-28 01:00:16 +02:00
twinaphex 1175ced819 (Frontend.c) Some more cleanups 2014-07-28 00:31:20 +02:00
twinaphex 1dfccb84e1 Refactor menu_load_game and the content loading routine in
frontend.c
2014-07-28 00:18:05 +02:00
twinaphex e104698f7e Refactor load_menu_game/main function some more 2014-07-27 20:24:06 +02:00
twinaphex b0490c4f8c Build fix 2014-07-27 17:17:23 +02:00
Twinaphex b67b481f1c (Frontend/Menu) start refactoring load_menu_game 2014-07-27 08:17:38 +02:00
twinaphex 24f0dcc550 Refactor away load_menu_game_prepare_dummy 2014-07-25 22:11:34 +02:00
twinaphex fe58051bce Backport ToadKing - (Emscripten) Build fix 2014-07-23 07:18:27 +02:00
twinaphex cd89a37682 (Emscripten) Refactor platform_emscripten.c - ToadKing - test
if this still works
2014-07-22 05:07:40 +02:00
twinaphex 87a21b2e13 Rename ROM history to Content history 2014-07-22 05:01:35 +02:00
Twinaphex 5303e1f094 (Apple) Have apple_rarch_load_content just call rarch_main 2014-07-21 07:41:11 +02:00
twinaphex 6f32841647 Rename g_extern.verbose to g_extern.verbosity to avoid
collisions on OSX
2014-07-18 00:39:31 +02:00
twinaphex 97a262dd60 Rename default_paths to g_defaults 2014-06-12 18:06:29 +02:00
twinaphex 29d6856244 Take out duplicate freeing of log_file 2014-06-10 19:39:46 +02:00
twinaphex 5ac449f564 (RARCH_MOBILE) Set default overlay to retropad
(Frontend) Change preprocessor conditional to RARCH_MOBILE instead of __QNX__
2014-06-10 19:13:54 +02:00
twinaphex a7cb3e22a7 (Menu) Replace some more RGUI strings 2014-06-10 02:44:19 +02:00
twinaphex faea453a0b (Salamander) Refactorings - Salamander should be easier to get to
work now on new console platforms
2014-06-05 06:12:41 +02:00
twinaphex 97c6ae0911 Change return type of process_args to void 2014-06-03 20:03:56 +02:00
Themaister 852e632862 Fix some dubious code in frontend/frontend.c. 2014-06-03 11:36:09 +02:00
twinaphex b5ab16fa53 (PS3) Starts working with new argc/argv building - only
broken usecase right now is Core Selection - we'll have to
mess directly with argc/argv for fixing that one - pretty
similar issue to the one on the Wii
2014-06-03 06:37:57 +02:00
twinaphex 29a3a46e73 Setup main_entry and environment_get for proper building of
argc/argv for console/mobile ports with non-conformant argc/argv
input values
2014-06-03 03:35:12 +02:00
twinaphex 83174b51c4 Correct 'ret' return of process_args at least - 0 is for content
being loaded, 1 is if content is not loaded
2014-06-02 22:58:28 +02:00
twinaphex 12a63a7bc8 (Frontend) Push load game history when process_args returns 1 for
console/mobile
2014-06-02 21:44:02 +02:00
twinaphex 7014b703ba Revert "Always do menu_push_history_current when starting with content"
This reverts commit 30ce741f98.
2014-06-02 18:15:26 +02:00
twinaphex 30ce741f98 Always do menu_push_history_current when starting with content 2014-06-02 18:01:18 +02:00
twinaphex a26bb62a56 (PS3) Add some HAVE_OPENGL ifdefs for platform_ps3.c 2014-06-02 09:37:26 +02:00
twinaphex 001d6e8897 Get rid of PERF_TEST entirely - if Performance Counters setting is
enabled, will also report performance counters log at exit
2014-06-01 22:16:22 +02:00
twinaphex 07592eaf63 Don't use rgui_handle_t pointer in GX video code and frontend.c 2014-06-01 15:59:39 +02:00
twinaphex 908164868f Make 'argc' into int pointer so that we can modify argc inside
get_environment callback
2014-06-01 05:56:38 +02:00
twinaphex 237ac1aa56 Add default_paths.audio_filter_dir 2014-06-01 05:52:16 +02:00
twinaphex 4d63b1d391 Move default_paths to settings.c 2014-06-01 05:06:55 +02:00
twinaphex 6fa7e1894e (GX) Move Wii-specific hack done to argc/argv to environment_get
function (platform_gx.c)
2014-06-01 04:42:32 +02:00
twinaphex 08c8e5fb5f Reduce amount of includes for rarch_console.h 2014-06-01 03:08:26 +02:00
Themaister 206ea8012f Don't completely reinit menu driver unless we're killing Rarch. 2014-05-31 23:54:07 +02:00
Toad King d77c551aad [WII] fix loaders/history/core detect 2014-05-31 16:27:35 -04:00
twinaphex 521c5e077f (Frontend) Add init_msg_queue after rarch_main_clear_state 2014-05-31 16:31:03 +02:00
twinaphex 7ee81ef4d5 Build fix 2014-05-31 08:17:18 +02:00
twinaphex da51530f0e (RARCH_CONSOLE) Setup default_paths properly 2014-05-31 08:15:57 +02:00
Toad King 8d7bbdce95 frontend.c cleanup 2014-05-30 20:21:23 -04: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 c57f780d9f (Menu) Start undoing passing rgui pointer to every menu-related
function - the only functions where it should actually pass a
pointer instead of just grabbing a pointer from menu.driver should
be in the menu init/deinit functions
2014-05-30 19:34:01 +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 b0b9599822 (Frontend) More cleanups 2014-05-28 22:44:25 +02:00
twinaphex 14c81f13c9 (Frontend) Remove attempt_load_game variable 2014-05-28 22:20:08 +02:00
twinaphex d70b8a0f15 Get rid of global driver init/uninit bullshit - we're going to do
console initing/deiniting properly once and for all
2014-05-28 22:09:42 +02:00
twinaphex 1416e47195 (Console) Should bring up menu context in case it fails the first time 2014-05-27 19:21:44 +02:00
twinaphex 701a805737 (Playbook) Fixes Playbook build 2014-05-20 02:33:09 +02:00
twinaphex d62164c4ae (BB10) Build fixes
(General) Fix some unused variable warnings
2014-05-17 22:16:25 +02:00
twinaphex 8821a54aba put frontend_ctx variable into driver struct 2014-05-13 20:23:36 +02:00
twinaphex 10c801b64e Take out MODE_EXIT 2014-05-12 16:01:00 +02:00
twinaphex d7c1ea5ece Revert "(RARCH_CONSOLE) Can finally get rid of global_driver_init"
Spoke too soon - we really need to refactor this mess so that
consoles, mobile and PC all follow the SAME basic initing/deiniting
structure. This kind of backwardsness is going to scale very, very
badly.

This reverts commit 540fad51a6.
2014-05-10 03:33:11 +02:00
twinaphex 540fad51a6 (RARCH_CONSOLE) Can finally get rid of global_driver_init 2014-05-09 06:45:03 +02:00
twinaphex cf669f21ca * Add 'null' frontend context driver (will come into use later on in
more important ways)
* RetroArch when compiled with menu support will now cleanly exit if
menu driver cannot be initialized properly
2014-05-09 06:12:53 +02:00
twinaphex 0454ac623e (Menu) Move 'rgui' global variable to 'driver' struct 2014-05-09 05:47:32 +02:00
twinaphex ba46770f3c Rework frontend.c and make it possible to compile without HAVE_MENU
defined again
2014-04-30 04:00:39 +02:00
twinaphex 125d9e837e Add load_dummy_on_core_shutdown option to cfg and RGUI 2014-04-14 06:07:17 +02:00
Themaister 6eb349dca6 Remove passing around video_data inside RGUI.
Makes very little sense to add cruft to the interface
when it also risks using an invalidated video_data ...
2014-03-25 10:19:02 +01:00
Themaister bad7f9af82 Check command interface in rarch_input_poll. 2014-03-17 11:34:25 +01:00
twinaphex 36716706c2 (Menu) Pass video_data pointer to menu functions 2014-03-07 06:28:49 +01:00
twinaphex f765408f57 (RARCH_CONSOLE) Take out dead core upgrading code 2014-03-05 23:43:21 +01:00
twinaphex 6f19662d75 (Menu) Split up keyboard input line cb code to separate file - menu_input_line_cb 2014-03-02 05:24:57 +01:00
twinaphex efbbe5fbf0 (Frontend) Cleanups/cutdown on code duplication 2014-02-23 01:18:27 +01:00
twinaphex 10f4b5f92a (Apple) Set load_dummy_on_core_shutdown to false for Apple 2014-02-18 02:23:58 +01:00
twinaphex 9d6a0afd4a Reimplement menu clear input courtesy of meancoot 2014-02-18 02:18:34 +01:00
twinaphex d22999ab14 Backpot neagix patch - prevent last button input when resuming from
menu
2014-02-01 22:30:31 +01:00
Themaister c90a8bcfec Return to RGUI when core shuts down.
Don't do this on consoles (uses dummy core).
2014-01-23 20:00:25 +01:00
Themaister 81fc0f621a Only call rarch_main_deinit if main has been initied. 2014-01-03 14:42:38 +01:00
Themaister be81549d92 Only save per-core configs when core specific option is enabled.
Also, need to enforce that g_settings.core_specific_config is true
after loading core specific config. It's possible that core specific
option is set to false before loading a different core (using global
config only).
2014-01-02 18:01:01 +01:00
Themaister 13a006d147 Restructure per-core configs.
Merging yesterday was probably a bit premature.

One issue I overlooked was that per-core configs were not flushed to disk
when loading a new core on PC. The per-core flushing only happened on
main_exit(), which is only run on application termination. This hence
would only work with consoles with exitspawn.

config_set_defaults() must be called when loading per-core-specifics as
well or lots of options silently leak into other core specific configs
when cores are changed.

The handling with g_extern.config_path and original_config_path was
difficult logic and very error prone considering it was mutated aribitrarily by RGUI.
I've removed the original config path concept and stuck
with that config_path is *only* for global config, and
core_specific_config_path is for core-specifics (which are resolved
during config load). Saves some memory too,
which is always nice.

The block_config_read solution I proposed yesterday was not good after
all (in fact, broken on PC), and the current solution should work better.

"RetroArch Config" option in RGUI now only shows global config.
2014-01-02 17:52:48 +01:00
Toad King 8f45063f74 menu support for core specific config 2014-01-01 15:02:57 -05:00
Toad King 0a91c528f9 core-specific config files 2014-01-01 14:44:20 -05:00
twinaphex 0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
Toad King defb6efc5a [EMSCRIPTEN] build fix 2013-12-29 16:19:15 -05:00
twinaphex ff036066e2 Rework frontend - separate functions now for iterating per frame
and for doing teardown - Emscripten and Apple ports can make use
of this now so we don't need separate frontend implementations
2013-12-28 21:08:30 +01:00
twinaphex 9d0c5a5a03 (frontend.c) Some cleanups 2013-12-28 04:40:40 +01:00
twinaphex 742f85eafc Add HAVE_LOCATION - still need to write frontend drivers now for
location
2013-12-19 01:51:51 +01:00
twinaphex 9852c5dc4c Rewrite perf interface - exposes callbacks now for RETRO_PERFORMANCE_INIT/RETRO_PERFORMANCE_START/RETRO_PERFORMANCE_STOP calls without messy, hardcoded preprocessor-dependent variables in macros - will update cores accordingly too 2013-12-18 19:03:08 +01:00
twinaphex 166aa29443 (Libretro) Expose perf_log as callback too to libretro 2013-12-17 19:37:33 +01:00
twinaphex 38d785984f Add RETRO_ENVIRONMENT_GET_PERF_INTERFACE to libretro.h 2013-12-17 19:10:40 +01:00
meancoot 693a826f2f (OSX) Fix frontend/frontend.c so passed arguments are accepted. 2013-12-10 16:41:23 -05:00
Squarepusher 7231fdfa40 (OSX) Doesn't try to boot up game now at startup - can launch into RGUI 2013-11-19 11:31:46 +01:00
Themaister b44bd25ab3 Fix segfault with video_poke missing. 2013-11-18 13:44:34 +01:00
Themaister adb0b4dfbe Fix ifdef for pushing early to history. 2013-11-18 09:27:51 +01:00
twinaphex f8c37fc933 (Menu) Simplify menu preprocessor conditionals - there is now
one common catch-all define called HAVE_MENU
2013-11-08 04:36:47 +01:00