Commit Graph

423 Commits

Author SHA1 Message Date
Jorge Suarez 6aad439160 [all] verify if paths are already configured before creating defaults 2015-09-17 14:59:39 -05:00
Alcaro 9554597160 Add missing header includes, fixes CXX_BUILD. 2015-09-06 14:46:25 +02:00
twinaphex f88575633e Cleanups 2015-09-05 20:34:22 +02:00
twinaphex fdd1d3ee9f Pass sleep_ms argument to rarch_main_iterate 2015-08-27 14:52:02 +02:00
twinaphex 4b0ee4b9c2 Move rarch_sleep outside of rarch_main_iterate so that caller
can implement the idle step itself
2015-08-27 13:13:14 +02:00
Twinaphex f87425ef9a Re-enable UI Companion Start on Boot again 2015-08-23 09:20:24 +02:00
twinaphex 65aa759ab8 (iOS) There's currently a problem with enabling the UI companion
driver at startup to boot, so launch into GLUI/RGUI mode first
and allow the user himself to switch to CocoaTouch mode
2015-08-06 08:57:20 +02:00
Twinaphex 1faa62e902 Remove two unused variables 2015-07-27 17:22:43 +02:00
twinaphex a70f09a90d Rearrange structs 2015-07-27 17:18:10 +02:00
radius 4b234a4ed9 clean-up System/BIOS in content dir, should now just use the basename instead of actually overwriting the setting 2015-07-26 16:23:41 -05:00
radius a06dd9c3a2 fix system dir resetting on each startup 2015-07-17 02:53:59 -05:00
radius b717828cf0 fix setting and clearing system directory when using content dir 2015-07-16 01:46:11 -05:00
radius 48068f147a same as the previous commit but when the user exits without unloading content 2015-07-12 02:35:28 -05:00
radius 06f656004b make system directory restore correctly when closing content in case it was set to content dir 2015-07-12 02:35:27 -05:00
twinaphex 362d8025d8 Add g_defaults.core_assets_dir 2015-07-04 04:47:14 +02:00
twinaphex 1efaaab53d (main_exit) Don't set shutdown to false 2015-06-25 14:54:40 +02:00
twinaphex f5dbf50ebc (frontend.c) Use rarch_system_info_get_ptr 2015-06-25 13:38:46 +02:00
twinaphex 6ee5029bb0 (android_input.c) Use rarch_system_info_get_ptr 2015-06-25 13:20:53 +02:00
twinaphex 42fcb4490c Change signature of rarch_system_info_get_ptr 2015-06-25 12:36:55 +02:00
twinaphex 850d6b0274 (frontend.c) Use rarch_system_info_get_ptr 2015-06-25 11:06:02 +02:00
twinaphex 6f1bc69fc7 Refactor libretro_dummy mechanics 2015-06-20 23:42:30 +02:00
twinaphex b70c1c134f (Android) Cleanups 2015-06-12 23:32:23 +02:00
twinaphex 29e3f5ff66 Expand playlist format - rename it to 'lpl' 2015-06-08 23:38:03 +02:00
Twinaphex 99099c34ef Fix two serious warnings 2015-05-26 09:06:53 +02:00
radius 51dad5c922 make sure to reset paths when exiting too 2015-05-25 20:54:51 -05:00
radius cc5b069494 make sure to reset paths when exiting too 2015-05-25 20:54:00 -05:00
twinaphex 8fb8887c34 Create new playlist format 2015-05-26 00:12:49 +02:00
twinaphex 74ee699d5c Split up rarch_main_data_iterate outside of rarch_main_iterate 2015-05-16 17:00:50 +02:00
twinaphex 14505cc222 Create new rarch_main signature 2015-04-20 21:31:25 +02:00
twinaphex 4e187ad642 Refactor around HAVE_MAIN and do away with HAVE_MAIN_LOOP 2015-04-20 21:12:39 +02:00
twinaphex 5d24c75925 Create HAVE_MAIN define 2015-04-20 21:10:01 +02:00
twinaphex 445bf04892 Cleanups to rarch_main - and also fix Android platform struct 2015-04-20 20:53:17 +02:00
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 57877284ec (UI Companion) Call UI companion 'toggle' function at startup when setting is
enabled
2015-04-13 02:14:34 +02:00
twinaphex 35e3daf951 (frontend.c) Cleanup 2015-04-12 16:17:11 +02:00
twinaphex f8a31effb0 (UI companion) Some further improvements 2015-04-12 02:09:14 +02:00
twinaphex 5a2ed01eec Create frontend_get_ptr 2015-04-08 00:08:53 +02:00
twinaphex be13f3c8c0 (frontend.c) Style nits 2015-03-22 08:19:14 +01:00
twinaphex a57abb74dc Rename some functions 2015-03-22 03:32:28 +01:00
twinaphex 2a8f9fdfc0 Put g_driver on heap and make it a pointer 2015-03-22 01:16:57 +01:00
twinaphex 248d985ae6 Don't call driver_get_ptr until after call to rarch_main_state_alloc
has been made
2015-03-22 00:43:10 +01:00
twinaphex 83947f473b Split up rarch_main_state_new into two - rarch_main_state_alloc
allocates all state, rarch_main_state_new actually 'initializes'
the drivers, etc.
2015-03-21 19:31:38 +01:00
twinaphex ff83aab195 Move rarch_main_state_new up 2015-03-21 19:04:20 +01:00
twinaphex e6f0d366cb Go through global_get_ptr 2015-03-21 04:43:18 +01:00
twinaphex 9f6cb1bca7 Rename settings.c to configuration.c 2015-03-21 00:42:09 +01:00
twinaphex 7bc845006b Start replacing more g_settings usages 2015-03-20 20:43:22 +01:00
twinaphex 3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
twinaphex 97d8bc1488 Add cheats_dir to g_defaults 2015-03-13 00:24:17 +01:00
twinaphex 5d95d6d761 Add cursor_dir and database_dir to g_defaults 2015-02-01 12:25:20 +01:00
twinaphex 3b7dac52ef (main_load_content) Do early return if wrap_args can't be allocated 2015-01-30 07:42:58 +01:00
twinaphex 756a9bf214 (Android) Add default path for extraction_directory on Android - needed
now ever since increased limitations on SD external storage
2015-01-28 09:29:11 +01:00
twinaphex fae8a8d8d7 Remove main_entry_decide 2015-01-11 17:48:21 +01:00
twinaphex b53e8f6437 Create rarch_main_iterate_quit 2015-01-11 17:33:05 +01:00
twinaphex 90a32b022d Slight refinement to main_entry_decide 2015-01-11 17:10:14 +01:00
twinaphex 76c392718f Create runloop.h 2015-01-09 18:40:33 +01:00
twinaphex 99c9afa5cd Update PATH_MAX to PATH_MAX_LENGTH 2015-01-09 18:04:29 +01:00
twinaphex ec22bada36 Add retroarch.h header 2015-01-09 17:40:47 +01:00
twinaphex 8f511815d1 Create new header 'settings.h' 2015-01-09 16:56:21 +01:00
twinaphex 2929073a42 Document frontend.c 2015-01-09 01:55:10 +01:00
twinaphex 1d45517d48 Declare variables at top 2015-01-09 01:23:58 +01:00
twinaphex 453321c50b Start updating headers 2015-01-07 17:46:50 +01:00
Jay McCarthy ace60b5827 Include auto save state in main_exit_save_config so that iOS users actually get auto saving 2014-12-31 15:30:28 -05:00
twinaphex c76a293a2e Add main_exit_save_config 2014-12-31 13:22:08 +01:00
twinaphex 9ed2ba8412 [PATCH] Fix some C++ build issues. 2014-11-29 21:07:12 +01:00
twinaphex af0d416323 Fix bug in history_playlist_push 2014-11-29 16:53:26 +01:00
twinaphex 6393badfb5 Move rarch_main_command(RARCH_HISTORY_INIT) outside of check
for history list enable
2014-11-27 09:03:15 +01:00
twinaphex 678460b5c1 Add early return to RARCH_CMD_HISTORY_INIT 2014-11-27 08:58:31 +01:00
twinaphex df8e3dfc55 Add content history dir and change 'retroarch-history.txt' to 'retroarch-content-history.txt' 2014-11-27 08:46:30 +01:00
twinaphex d22a2896b5 Add check for g_extern.system.no_content as well 2014-11-24 06:25:11 +01:00
twinaphex 064f23b354 Add content_is_init - set to true if content file has been loaded
into memory, set to false when it has failed in doing so
2014-11-24 06:21:52 +01:00
twinaphex 1c1297b3e6 Take out unused process_events callback from frontend_context driver 2014-11-08 16:45:55 +01:00
twinaphex 739cd59dc9 Add video_filter_dir to check_defaults_dir 2014-11-08 02:48:40 +01:00
Twinaphex 12c118ac3f Add menu_config_dir to check_defaults_dirs 2014-11-07 17:08:20 +01:00
twinaphex ccc4b70123 don't redefine returntype macro 2014-10-22 07:22:24 +02:00
twinaphex 9a9fa6532a Move file_path.c to libretro SDK 2014-10-22 00:23:06 +02:00
twinaphex 42bb37816e Take file_path.h include out of file.h 2014-10-20 21:51:04 +02:00
twinaphex 7b2deee502 Rename playlist_push to history_playlist_push 2014-10-17 04:33:44 +02:00
twinaphex 7adcbc7311 Move rarch_playlist_push to frontend.c 2014-10-17 04:32:56 +02:00
twinaphex 0f5161d621 Add History List Enable option 2014-10-17 04:17:28 +02:00
twinaphex 34915aefce Add RARCH_CMD_PERFCNT_REPORT_FRONTEND_LOG 2014-10-16 08:31:10 +02:00
twinaphex 65bc796011 Make rarch_playlist_push more useful 2014-10-11 16:46:59 +02:00
twinaphex 150539decc Take out header include in frontend.c 2014-10-08 01:08:16 +02:00
twinaphex 458eff5f4d Both the 'pause' state and the 'menu' state return 1 - so that
we can signal to the Apple upper-layer function that we want
to run CFRunLoopWakeUp
2014-10-04 14:14:45 +02:00
twinaphex f86ad85fcd Use -1 for indicating we want to exit out of rarch_main_iterate 2014-10-04 13:41:57 +02:00
twinaphex e79d3d1630 Change return values for rarch_main_iterate and do_state_checks 2014-10-04 13:30:09 +02:00
twinaphex db47e069c2 Get rid of unused negative_return macro 2014-10-03 14:08:42 +02:00
twinaphex 4a623684c2 Init history file right before we attempt to push something to it
in rarch_main
2014-10-03 13:07:33 +02:00
twinaphex e6a79f798b Refactor MODE_EXITSPAWN and MODE_EXITSPAWN_START_GAME 2014-10-02 21:39:29 +02:00
twinaphex f273b34f73 deinit_msg_queue becomes static function - clean it up in rarch_main_state_free 2014-09-30 21:29:28 +02:00
twinaphex 9daad8bdb8 Split up rarch_main_clear_state into two functions - rarch_main_state_new
and rarch_main_state_free
2014-09-30 20:46:15 +02:00
twinaphex 3c8cc513ab Make it possible to compile without menu support again 2014-09-28 18:01:59 +02:00
twinaphex 3bfa247770 (frontend.c) cleanups 2014-09-28 17:35:58 +02:00
twinaphex 94de11b060 Add resampler directory setting 2014-09-27 15:55:55 +02:00
twinaphex 7b49e072ff Get rid of unnecessary function main_entry_iterate_shutdown 2014-09-24 08:33:43 +02:00
Twinaphex 6353240af4 Get rid of unused variables 2014-09-21 18:02:23 +02:00
twinaphex 430e0f1911 Reimplement rarch_main_iterate - menu iteration frame now gets
called from here too. Do away with the hoky 'MENU_GAME' state
as well.
2014-09-21 09:18:26 +02:00
twinaphex ff9a16d407 Refactor main entry iteration function 2014-09-21 08:05:35 +02:00
twinaphex bdf9df6c2e Clean up more code in frontend.c 2014-09-21 07:39:17 +02:00
twinaphex 29aed58e4e Refactor MODE_LOAD_GAME 2014-09-21 06:50:10 +02:00
twinaphex 7056c9ca39 Refactor MENU_CLEAR_INPUT 2014-09-21 06:41:47 +02:00
twinaphex 9dc35b056f Refactor MODE_MENU_PREINIT code 2014-09-21 06:33:49 +02:00
twinaphex 92938fe45f Optimizations - prevent static bools everywhere in check_* functions
- input_keys_pressed_func takes a pointer and sets it to the last
input state. We then pass this around functions and use it where
necessary
2014-09-17 06:55:03 +02:00
twinaphex 310438f15b Refactor away input_key_pressed_func 2014-09-17 00:29:47 +02:00
Higor Eurípedes e15c683b44 (frontend.c) Fix include 2014-09-15 17:48:11 -03:00
Higor Eurípedes b6dd4df368 (frontend) Add support for frontend specific video drivers 2014-09-15 16:48:55 -03:00
Higor Eurípedes 83b6aeb6cc Fix C++ build linkage 2014-09-15 13:14:19 -03:00
twinaphex 89676e8424 Add Playlist Directory path setting 2014-09-15 04:12:41 +02:00
twinaphex aae73438de Simplify frontend.c entry functions 2014-09-14 16:36:15 +02:00
twinaphex 2284395c4d Get rid of frontend_loop 2014-09-14 16:29:09 +02:00
Twinaphex cb1eea1ec2 Add logging to main_entry_decide 2014-09-14 16:08:28 +02:00
twinaphex fe49a0fe40 Some control flow changes 2014-09-14 15:32:32 +02:00
twinaphex e9c865f56a Create main_entry_decide to delegate decisionmaking process of
what to bind frontend_loop to
2014-09-14 15:23:40 +02:00
Lioncash 64272ef327 Squash some more potential null pointer dereferences 2014-09-11 23:04:02 -04:00
twinaphex 2c61fdcc7f (Menu) Refactor away load_menu_content_prepare 2014-09-06 21:52:44 +02:00
twinaphex fdbe3337c2 Take out some unnecessary includes 2014-09-06 21:52:44 +02:00
twinaphex 24500dfeb5 (Android) Build fixes 2014-09-06 03:39:37 +02:00
twinaphex 125f256c5e (Menu) Refactor menu_content_history_push_current 2014-09-05 19:56:23 +02:00
twinaphex 1111bd2f6d (Menu) Move early return when core is a dummy to menu_history_push_current
function
2014-09-05 18:21:03 +02:00
twinaphex e4681e0013 Make it possible to compile without HAVE_MENU defined 2014-09-05 18:14:00 +02:00
twinaphex a66b16c862 (frontend.c) Cleanup non-HAVE_MENU codepath 2014-09-05 18:05:46 +02:00
twinaphex 4569b4f32c Refine frontend_loop some more 2014-09-05 16:34:37 +02:00
twinaphex 1426e705c9 (Frontend) Go through frontend_loop function pointer 2014-09-05 16:08:03 +02:00
twinaphex f495170f3a (frontend.c) Cleanups 2014-09-05 06:08:48 +02:00
twinaphex ca1066d60e Refactor CLEAR_INPUT 2014-09-05 05:57:27 +02:00
twinaphex d539bed82c Hide more manipulation of lifecycle_state behind rarch_main_set_state
function
2014-09-03 18:36:46 +02:00
twinaphex ba8f817587 (Frontend) Go through rarch_main_command 2014-09-03 17:01:06 +02:00
twinaphex bc611b8cc1 (Menu) Add MENU_FILE_PLAYLIST_ENTRY 2014-09-02 23:42:40 +02:00
twinaphex 76591ecc9f (frontend.c) build fix - missing return statement 2014-09-02 17:24:52 +02:00
twinaphex af3e648a42 (frontend.c) Get rid of some extraneous elses in frontend.c 2014-09-02 17:13:43 +02:00
twinaphex 4a2d3cbd4b Cleanups - 80-char limit 2014-09-02 05:32:04 +02:00
twinaphex e6472b5a72 Move MAX_ARGS define to frontend.c 2014-08-27 01:08:29 +02:00
twinaphex 51637bc69e Code reformatting to abide by 80-character limit 2014-08-20 16:26:34 +02:00
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