Commit Graph

773 Commits

Author SHA1 Message Date
twinaphex 0ced9ca913 Always set controller port device descriptors 2017-09-12 04:29:37 +02:00
radius fe8a0657b4 add input_mapper scafolding 2017-09-11 00:20:20 -05:00
twinaphex 12957e461d Reduce more stack usage for offending functions 2017-09-09 05:26:14 +02:00
twinaphex e16371b8a5 Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
Jean-André Santoni 2ff6bee726 (Menu) Feedback when adding a content to favorites 2017-08-18 15:59:44 +07:00
twinaphex adc3b4b726 Playlist file needs to be written to when we add an entry to
Favorites
2017-08-16 22:43:42 +02:00
Rob Loach 7c54cebfb3
Merge branch 'master' of github.com:libretro/RetroArch into favorites 2017-08-13 21:20:22 -04:00
Jean-André Santoni b906da5131 Save the favorites to the disk 2017-08-14 00:50:16 +02:00
Jean-André Santoni b1daf18772 add_to_favorites OK callback 2017-08-14 00:42:56 +02:00
Jean-André Santoni 9dfb39c672 Start implementing the callback for add-to-favorites 2017-08-14 00:29:38 +02:00
Rob Loach 772c126f1e
Merge branch 'master' of github.com:libretro/RetroArch into libui 2017-08-12 20:50:19 -04:00
Rob Loach f4283f6de0
Add HAVE_LIBUI define 2017-08-12 18:43:16 -04:00
Jean-André Santoni d037546a13 (XMB) Display favorites tab, part 2 2017-08-12 17:10:14 +02:00
twinaphex 921418af03 Backport this regression fix for builds with no network support - this
should presumably restore 3DS performance according to danieljg
2017-08-12 16:47:13 +02:00
Rob Loach ae5535c425
Merge branch 'master' of github.com:libretro/RetroArch into libui 2017-08-12 10:16:37 -04:00
radius 7b09cd34db fix #5257 2017-08-06 20:02:17 -05:00
twinaphex c6379a7c62 Missed break here 2017-08-06 15:31:38 +02:00
radius 2db79242c9 remove remaps 2017-08-05 11:21:07 -05:00
radius 9862b75b4b allow specifying libretro device and analog dpad mode on remap files 2017-08-05 11:21:06 -05:00
Rob Loach 0996291d91
libui: Changes for LIBUI 2017-08-01 12:25:08 -04:00
twinaphex 790cf1c27e C89_BUILD buildfix 2017-07-26 02:55:31 +02:00
radius b64fe2adc2 build fix for platforms without threads 2017-07-24 21:24:22 -05:00
radius fcbcfab3d9 disable SRAM autosave while netplay is underway 2017-07-24 20:13:53 -05:00
radius c2882164f9 reenable rewind if the user disables netplay 2017-07-24 20:13:53 -05:00
radius c101b4ccb3 netplay tweaks: disable rewind 2017-07-24 20:13:53 -05:00
twinaphex 790fcd2264 Add test for libui 2017-07-03 09:45:09 +02:00
twinaphex cdd7fbeb52 Add audio mixer volume setting 2017-06-08 22:58:43 +02:00
twinaphex 420d0d0607 Get rid of audio_driver_set_volume_gain 2017-06-08 22:24:51 +02:00
twinaphex 470c857470 Only unload core when it's not the dummy core 2017-06-06 06:16:43 +02:00
twinaphex c5fe9f4252 Build warning fix 2017-05-30 02:58:59 +02: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 7fabbcebba Revert "Should get rid of the memory leaks to do with the system info"
This reverts commit 1808c6de57.
2017-05-29 03:24:15 +02:00
twinaphex 1808c6de57 Should get rid of the memory leaks to do with the system info 2017-05-29 01:40:46 +02:00
twinaphex 3fbed8df27 (Menu) Menu driver no longer uses a duplicate system info
struct
2017-05-28 17:21:57 +02:00
twinaphex c74104f8c9 Get rid of RARCH_MENU_CTL_SYSTEM_INFO_* 2017-05-28 16:25:46 +02:00
twinaphex dbbcba41a5 Clean this mess up 2017-05-28 15:03:03 +02:00
twinaphex 8e2753cc53 Music history list no longer tied to HAVE_FFMPEG 2017-05-28 00:00:51 +02:00
radius fabdc580ef readd manual connection option, cleanup old codepaths 2017-05-27 12:59:34 -05:00
twinaphex 11576f1d99 Cleanup 2017-05-27 03:43:53 +02:00
twinaphex a6789c5717 Update logs 2017-05-23 21:14:53 +02:00
radius 22a07eaf6c add logging 2017-05-22 01:05:39 -05:00
radius e8cc77e567 cleanup 2017-05-21 23:43:13 -05:00
radius 75182bfc6f fix errors due to rebase 2017-05-21 23:43:13 -05:00
radius d1291f406b allow connecting without reloading content when content_get_crc matches with that of the current loaded game 2017-05-21 23:43:12 -05:00
radius d87b85bdd1 fix LOBBY connect 2017-05-21 23:43:12 -05:00
twinaphex 0742ebec21 Get rid of local_enable variable 2017-05-20 16:32:57 +02:00
twinaphex 2139abe8b7 Cut down on code duplication 2017-05-20 15:50:38 +02:00
twinaphex 58787e6d89 (libretro-common) Create stdin_stream.c 2017-05-20 14:58:51 +02:00
twinaphex 3ae54e0eed Move send_udp_packet to libretro-common 2017-05-20 14:28:18 +02:00
twinaphex 59fb7700b8 Combine menu_driver.c and menu_display.c 2017-05-19 15:25:14 +02:00
twinaphex d01b81749d Cleanups 2017-05-15 05:32:23 +02:00
twinaphex bf3188eac4 Combine runloop_ctl and rarch_ctl 2017-05-15 05:06:23 +02:00
twinaphex 160c8167d6 Cleanups 2017-05-15 04:36:48 +02:00
twinaphex e2c7671e9f Create rarch_menu_running/rarch_menu_running_finished 2017-05-15 04:31:40 +02:00
twinaphex b22d7902f1 Turn macro back into function 2017-05-13 19:37:16 +02:00
twinaphex 42ebe7a7ad Merge runloop.c and retroarch.c 2017-05-11 09:11:46 +02:00
Twinaphex e3f854092f Remove unused variables 2017-05-09 01:53:03 +02:00
twinaphex 097515fa63 No longer have to grab settings pointer to get audio mute value 2017-05-08 21:39:08 +02:00
twinaphex 9605c01c49 Rename command_event_quit to retroarch_main_quit 2017-05-08 03:54:51 +02:00
twinaphex 0815055906 Pressing hotkey should invoke same operation as manually selecting
'Quit' from the menu - should hopefully fix issues with flushing
SRAM to disk/saving autostate
2017-05-08 03:41:23 +02:00
twinaphex 308ff366de Fix missing break in switch 2017-05-07 22:44:07 +02:00
Twinaphex 12027bf1a8 Merge pull request #4889 from leiradel/master
Reverted cheevos changes in preparation for conversion to task; fixed 4884
2017-05-07 20:28:32 +02:00
Andre Leiradella 844d1475e6 Reverted cheevos changes in preparation for conversion to task; fixed 4884 2017-05-07 19:06:03 +01:00
twinaphex a2fe3dcaaf Revert "Refactor BSV movie code"
This reverts commit 7dca09d6f8.
2017-05-07 18:28:07 +02:00
twinaphex 7dca09d6f8 Refactor BSV movie code 2017-05-07 18:21:58 +02:00
twinaphex e09358c712 Refactor bsv_movie_init code 2017-05-07 18:15:30 +02:00
twinaphex ce8083fd2e Create runloop_{set|unset} - only do autosave lock/unlock if
autosaves are actually active
2017-05-07 18:05:37 +02:00
twinaphex 4d20460e6b Cleanup task_save.c 2017-05-07 17:52:48 +02:00
twinaphex 33f2fe8029 Move cheevos.c to tasks/task_cheevos.c and add TODO/FIXME note 2017-05-06 05:50:46 +02:00
twinaphex e6ab06a701 Move path variables 2017-04-29 00:39:29 +02:00
twinaphex 05e4ec733e Move uint variables 2017-04-28 21:03:04 +02:00
twinaphex 7bbd20b31d Move int settings 2017-04-28 19:12:48 +02:00
twinaphex 0da40fb3aa Move all float settings 2017-04-28 14:57:55 +02:00
twinaphex ed53be7c81 Move all bool settings 2017-04-28 14:11:34 +02:00
twinaphex 3e24672a43 Move bool settings 2017-04-28 12:23:59 +02:00
twinaphex cc095e56fc Start refactoring bool variables 2017-04-28 00:53:20 +02:00
Twinaphex 129da8a802 Get rid of unused local variables 2017-04-25 17:19:31 +02:00
twinaphex e1e83b17b7 Wrap settings->input.libretro_device 2017-04-25 17:14:46 +02:00
twinaphex 15a8f0c485 Wrap some more settings manipulation 2017-04-25 15:31:32 +02:00
twinaphex df60fa7a19 Bugfix 2017-04-23 17:51:06 +02:00
twinaphex c9646c1fd2 Use configuration macro wrappers 2017-04-23 17:36:25 +02:00
twinaphex 3ec5816259 Rewrite RUNLOOP_CTL_SYSTEM_INFO_GET 2017-04-23 16:41:26 +02:00
Gregor Richards fbb508ab5e Make rewind compatible with netplay.
This commit adds support for temporary desync in netplay. When frontend
features that can't be truly synced, in particular rewind, are used,
netplay is momentarily disabled. As soon as the feature finished, e.g. a
rewind ending, netplay resumes with a state load. For rewind, netplay
peers won't actually experience the effect of rewind, but they will load
the rewound state.
2017-04-18 15:25:58 -04:00
twinaphex 0a8f7b9ff2 Simplify CMD_EVENT_AUDIO_STOP/CMD_EVENT_AUDIO_START 2017-04-18 04:11:34 +02:00
twinaphex 55dd4ac754 Simplifications 2017-04-18 03:52:01 +02:00
twinaphex 662755c899 Start simplifying audio driver start/stop 2017-04-18 03:49:35 +02:00
twinaphex 8c89ec158c Update copyrights 2017-03-22 03:09:18 +01:00
Brad Parker c6b1a4bb48 join MITM server when host starts game, if the announcement requested MITM 2017-03-05 14:19:39 -05:00
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
twinaphex 8f01bcfb8d Update of command.c 2017-02-26 09:35:35 +01:00
twinaphex c653e6d886 Buildfix 2017-02-26 06:14:33 +01:00
twinaphex e523280cb0 Add fallback message that informs us when config saving is not working 2017-02-26 06:07:58 +01:00
twinaphex d0e49a2d8f Rename some tasks 2017-02-21 16:50:39 +01:00
twinaphex ba16bee5d1 Create task_push_content_load_nothing_with_dummy_core 2017-02-21 03:32:52 +01:00
Gregor Richards 4c1abfaa71 Support for reset in netplay
This patch transfers core_reset across netplay. Resets effectively
worked before thanks to check_frames, but this makes resets work even
without check_frames, and in particular should allow resets to force
sync in savestateless cores, bringing them one step closer to actually
being usable by non-experts.
2017-02-15 14:40:37 -05:00
radius cd17927990 fix contentless netplay! thanks Gregor 2017-02-09 21:22:52 -05:00
Andre Leiradella 0c8ee93e3e Moved cheevos files to their own folder in preparation for the changes to support leaderboards 2017-02-03 10:03:57 +00:00
twinaphex 77cdc9d550 Another refinement 2017-01-25 17:52:58 +01:00
twinaphex da891b97b2 Fix logically dead code warning 2017-01-25 17:52:38 +01:00
twinaphex 41349621cf Add extra param to runloop_get_status 2017-01-25 16:57:22 +01:00
twinaphex 84cb05d4de Fix typo 2017-01-25 16:13:39 +01:00
twinaphex 018cb7ebe6 Add another parameter to content_get_status 2017-01-25 15:51:57 +01:00
twinaphex 361bd471de Create content_get_status 2017-01-25 15:44:21 +01:00
twinaphex bacef54766 Cleanups - use runloop_get_status 2017-01-23 15:19:46 +01:00
twinaphex 8e53dffdef core_impl.c - some cleanups 2017-01-23 14:50:00 +01:00
twinaphex 0d5b3b9273 Create menu_driver_is_alive 2017-01-23 00:37:52 +01:00
Twinaphex 1410668d34 Cleanups 2017-01-22 21:33:59 +01:00
twinaphex 2f7f8b01c9 Cleanups 2017-01-22 21:25:35 +01:00
twinaphex 178d959cad Fix C89_BUILD 2017-01-22 21:24:57 +01:00
Twinaphex 3ff158b907 Merge pull request #4436 from fr500/lobby
Basic lobby system (don't merge, just for tracking)
2017-01-22 21:08:43 +01:00
radius 33cc168eb9 allow connecting to lobby port instead of the port in settings 2017-01-22 12:29:29 -05:00
twinaphex 90bc170829 Get rid of runloop_ctl calls inside audio drivers 2017-01-22 18:05:07 +01:00
Brad Parker 1d3e1a6962 DOS/DJGPP buildfix 2017-01-20 18:23:45 -05:00
radius 0de43b954e can now connect when starting a game too 2017-01-20 16:04:10 -05:00
twinaphex 0c814f767c Remove configuration.h header dependencies 2017-01-17 19:39:12 +01:00
twinaphex 8366278d45 More of where that came from 2017-01-17 15:39:14 +01:00
twinaphex a3e13fde32 Put this around HAVE_COMMAND ifdefs 2017-01-17 15:36:06 +01:00
twinaphex cb64f28950 Create drivers_init 2017-01-16 22:04:57 +01:00
twinaphex dfec7a44ca Cleanups 2017-01-09 02:49:39 +01:00
Alcaro f62ad35238 Shut up some warnings 2017-01-02 02:16:29 +01:00
twinaphex fa606ee479 Cleanup command_event_save_current_config 2017-01-01 05:36:18 +01:00
Gregor Richards 2a7929f123 Server prompt when connecting to netplay host 2016-12-27 16:41:27 -05:00
Gregor Richards 9ecd0ba8c7 Fixing a bug that caused retroarch to crash if netplay failed to connect 2016-12-27 15:07:44 -05:00
twinaphex e5f9c4d713 command_event_save_config - check if config_path is empty 2016-12-27 03:19:07 +01:00
twinaphex 1d070aae93 Silence warnings; set default autoconfig dir 2016-12-25 19:28:44 +01:00
twinaphex 17609e1d42 Only grab setting pointer for command events where we need it 2016-12-25 01:28:16 +01:00
twinaphex e50ecc1b5f command_event - cleanup 2016-12-25 01:24:17 +01:00
twinaphex d76a5ac3f7 Remove default switch case for command_event 2016-12-25 01:22:47 +01:00
twinaphex d66c23f3f3 Only read system info for disk core options 2016-12-25 01:19:38 +01:00
twinaphex f2c022cd54 command.c - use string_is_empty 2016-12-25 01:14:30 +01:00
twinaphex c3c963799b Create command_event_resize_windowed_scale 2016-12-25 01:11:18 +01:00
twinaphex 46d3f7983d When fullscreen toggling, when we go from windowed to fullscreen,
hide the system cursor, otherwise show it
2016-12-24 01:03:20 +01:00
twinaphex 77e5cdbfde Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
This reverts commit ad7386913c.
2016-12-22 23:36:11 +01:00
twinaphex b56f59d29d Cleanup 2016-12-22 21:56:54 +01:00
twinaphex ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
Gregor Richards f0bb0a77f8 Make netplay no longer cache passwords
Netplay now always loads passwords from the configuration, so that
passwords can be changed mid-session.
2016-12-21 09:51:50 -05:00
Gregor Richards 03415c261d Added netplay spectator password separate from play password 2016-12-18 19:28:43 -05:00
Gregor Richards 763a657f82 Terrible first cut at password (sent in plain text D-8) 2016-12-18 19:28:42 -05:00
Gregor Richards 262d77546b Adding game/watch key
Adding a key to toggle between playing and spectating. This key takes
the place of the previous flip key, although player flipping does
continue to work (and must be rebound if you still want it)
2016-12-18 19:28:42 -05:00
Gregor Richards 9b2270f5d4 Say goodbye to spectator mode (for now) 2016-12-18 19:28:42 -05:00
twinaphex 0cce0a7789 Reset RARCH_PATH_CORE when we select 'Unload Core' 2016-12-12 17:27:47 +01:00
twinaphex a47dd21751 Don't print game focus OSD message if input is -1 2016-12-11 06:39:30 +01:00
Twinaphex 3a399340e3 Merge pull request #4169 from AdrianoML/kbmquake
Changes to make keyboard and mouse games more playable
2016-12-06 07:21:20 +01:00
Adriano Moura 6694ae3c56 Removed a nasty debug message... 2016-12-06 04:19:20 -02:00
twinaphex 86a222e0e6 Create just one screenshot function 2016-12-06 06:52:57 +01:00
Adriano Moura 6b99eeaf88 Implements a hotkey for toggling mouse grabbing, hiding and hotkey blocking. Usefull for playing tyrquake with kb/m. 2016-12-06 03:32:28 -02:00
twinaphex f751199860 Create driver mask enums 2016-12-05 01:47:56 +01:00
Gregor Richards 077d5440ee Allow Netplay to receive a struct netplay_host to connect to rather than
using the configured setting
2016-12-02 21:16:15 -05:00
Jean-André Santoni 2cc4bef3aa Do the screenshot in the savestate callback 2016-12-01 22:39:13 +01:00
Jean-André Santoni d00566b018 Add setting for the savestate thumbnails 2016-12-01 20:31:07 +01:00
Jean-André Santoni 367dcef0b1 Savestate thumbnails 2016-12-01 20:31:07 +01:00
Jean-André Santoni 70053afd03 Revert "Add way to hide message for screenshot tasks"
This reverts commit 0aca3d04c0.
2016-12-01 20:30:54 +01:00
twinaphex 0aca3d04c0 Add way to hide message for screenshot tasks 2016-12-01 20:22:44 +01:00
twinaphex 4e8bb52038 (input_overlay.c) Remove more hacks 2016-11-27 15:21:53 +01:00
twinaphex 267fdbe21e (input_overlay.c) remove more hacks 2016-11-27 15:17:44 +01:00
twinaphex bbb2ffea9c Remove nasty input overlay hack for input_overlay_set_scale_factor 2016-11-27 15:10:09 +01:00
twinaphex 7e5d2321c5 Create video_driver_reinit 2016-11-06 14:18:29 +01:00
Brad Parker 5d28029be8 remove confirm_on_exit menu option 2016-10-30 23:29:03 -04:00
twinaphex bb987cf5ac Fix segfault courtesy of AdrianoML - Segfault when booting a core
with a keyboard device
2016-10-30 09:42:59 +01:00
twinaphex 696abbed83 C89_BUILD fix 2016-10-30 03:30:32 +01:00
Twinaphex bd684065c3 Prevent null pointer dereference crash 2016-10-30 02:18:03 +02:00
lasers af569e0929 Add persistent pause notification 2016-10-28 09:09:52 -05:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
Jean-André Santoni a7efe032af (Lakka) Force saving the settings before a OS shutdown or reboot 2016-10-25 10:28:16 +02:00
twinaphex 456c4c4d58 Remove video_driver_cached_frame_render wrapper function 2016-10-25 00:42:26 +02:00
twinaphex feef0d19b9 Cleanups 2016-10-23 00:49:36 +02:00
twinaphex 62c80085a6 Cleanup some labels 2016-10-23 00:35:40 +02:00
twinaphex 149e7768a0 More translatable strings 2016-10-22 05:05:07 +02:00
twinaphex 7479c238f4 Simplify two strings - do away with 'of' separator 2016-10-22 04:18:50 +02:00
twinaphex e4fd727687 More translated strings 2016-10-20 18:23:34 +02:00
twinaphex ce7cb96e99 Add more translatable strings 2016-10-20 18:08:31 +02:00
twinaphex 09fd2fa118 Make two strings translatable 2016-10-20 18:02:23 +02:00
aliaspider 4503e5fd22 add a CMD_EVENT_QUIT request to CMD_EVENT_RESTART_RETROARCH. 2016-10-08 01:51:09 +01:00
Brad Parker 97a5e77181 mute state-related OSD messages when auto-saving 2016-10-04 17:58:16 -04:00
Gregor Richards 3953018547 Clarifications to Netplay menu and removing obsolete setting
This commit:
 * Reorders the Netplay settings menu to put more useful options at the
   top.
 * Renames the swap_input setting from "Swap Netplay Input", which is
   meaningless and confusing, to "Netplay P2 Uses C1", which is oddly
   truncated but at least true.
 * Removes the is_client setting altogether, as that's no longer how
   client vs. server mode is determined (each are separate options when
   enabling Netplay)
2016-10-03 17:28:20 -04:00
twinaphex ba93600b29 Remove path_get_default_shader_preset 2016-10-03 15:59:51 +02:00
Gregor Richards e41ac34561 Get rid of global->netplay
Moved settings values into settings->netplay, and global->netplay.enable
is moved into netplay itself, and is no longer a configuration value
whatsoever, as that conflicts with the behavior of the netplay menu.
2016-10-02 22:13:34 -04:00
Twinaphex f6a1eb65bb Cleanups 2016-10-03 03:30:34 +02:00
Twinaphex 5aa856d7cd remove unused variables 2016-10-03 03:24:09 +02:00
Brad Parker cf3ae942c2 make undo_save_state a task 2016-10-02 19:05:30 -04:00
Brad Parker eac3ca770a load/save state are now actual tasks 2016-10-02 19:05:30 -04:00
twinaphex 8f163e6972 Revert "Move global->name to paths.c"
This reverts commit 6ee7b733aa.
2016-10-01 08:18:23 +02:00
twinaphex 6ee7b733aa Move global->name to paths.c 2016-09-30 06:11:11 +02:00
twinaphex 1266c0609a Create path_is_empty 2016-09-30 04:43:16 +02:00
twinaphex 228886062b Create path_clear 2016-09-30 04:31:19 +02:00
twinaphex 1cf45d785f Turn path_set_names into static function 2016-09-30 04:19:57 +02:00
twinaphex 9384875ab0 Don't use HAVE_NETPLAY any more 2016-09-29 21:07:10 +02:00
twinaphex 329f6ad612 Update path_get 2016-09-29 08:31:41 +02:00
twinaphex be81edad84 Create path_get 2016-09-29 08:23:41 +02:00
twinaphex 5bce79369a Get rid of global->sram.use, turn it into static boolean
variable inside rarch_ctl
2016-09-28 07:17:34 +02:00
twinaphex a1488ae34f Move subsystem path to paths.c 2016-09-25 15:49:09 +02:00
twinaphex 8e6d9a6978 move default_shader_preste code to paths.c 2016-09-25 04:55:16 +02:00
twinaphex 5f5ac1557e Turn command_event_save_current_config into static function 2016-09-24 17:19:38 +02:00
twinaphex 9637e4ee29 Attempt to fix issue #3605 2016-09-24 17:17:43 +02:00
twinaphex 3aea25479c Cleanups 2016-09-24 16:54:01 +02:00
Twinaphex 22bd770571 Cleanup unused variable 2016-09-24 16:51:45 +02:00
twinaphex a27bc0da4f Create static function command_event_save_config 2016-09-24 16:49:42 +02:00
twinaphex a090deb8c1 Cleanups 2016-09-23 03:50:10 +02:00
twinaphex 6222badb51 Remove header includes 2016-09-23 03:21:33 +02:00
twinaphex 02dc90d7bd Move code from runloop.c to dirs.c 2016-09-23 03:19:33 +02:00
twinaphex 2277428f52 Move more global->savefiles usage to task_save.c 2016-09-19 04:09:27 +02:00
twinaphex f91a8eacdb Move event_load_files to task_save.c 2016-09-19 04:05:44 +02:00
twinaphex 082476f7b2 Move code to paths.c 2016-09-19 03:03:31 +02:00
Gregor Richards d53373a5cb Netplay savestate loading frontend changes
Support for the frontend to inform Netplay when a savestate has been
loaded, so Netplay can in turn inform the peer.
2016-09-17 11:24:23 -04:00
twinaphex 075599e818 Start using path_ functions for accessing and modifying global->path.config 2016-09-17 13:14:14 +02:00
twinaphex b89def5d8f Rename config_get/config_set functions 2016-09-17 12:51:44 +02:00
twinaphex 1dd28bdf9f Move retroarch_set_pathnames/retroarch_fill_pathnames 2016-09-17 12:25:26 +02:00
twinaphex fb8237f1bb Cleanup command_event_save_current_config 2016-09-17 00:28:47 +02:00
Gregor Richards 27188e102d Support for savestate loading over netplay
Assuming the core supports saving/loading states, and (crucially)
assuming the states are portable across the architectures on both sides
of the connection, Netplay now supports the transmission of savestates.
Right now the frontend doesn't actually send any such requests, as it's
not clear exactly where the code for that should be.

This works in either direction, although I'll admit I have no idea what
happens if they both load at the same time.
2016-09-15 23:06:32 -04:00
twinaphex f648ea8602 Cleanups 2016-09-15 16:07:20 +02:00
twinaphex 233925bea6 Rename widgets/menu_popup to widgets/menu_dialog 2016-09-15 15:57:25 +02:00
radius 8fddf7f1ff prevent settings from propagating to main config when creating new overrides 2016-09-13 00:37:23 -05:00
twinaphex 51823f7169 Cleanups 2016-09-12 18:16:42 +02:00
twinaphex 056cc8ece8 Move menu_popu.c to menu/widgets 2016-09-11 21:03:31 +02:00
twinaphex 29c05599a3 Cleanup enum 2016-09-11 17:37:05 +02:00
twinaphex 583795ee36 Silence warning for targets that don't have HAVE_NETPLAY (GX/Wii) 2016-09-11 16:47:51 +02:00
Alcaro 439590d3ca More noise here... 2016-09-11 16:38:36 +02:00
twinaphex b93ef046a7 Header include cleanups 2016-09-11 16:31:23 +02:00
twinaphex 74c186c184 Cleanups 2016-09-08 08:08:50 +02:00
twinaphex 5aaebcfa62 Header include cleanups 2016-09-08 06:07:43 +02: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 8467404fd6 Inline CMD_EVENT_LOAD_CORE_DEINIT 2016-09-06 05:05:50 +02:00
twinaphex a09601cbfa Change ifndef HAVE_DYNAMIC to ifdef HAVE_DYNAMIC 2016-09-06 04:55:24 +02:00
Brad Parker abd5d81b70 fix core unload when closing content 2016-09-05 12:46:28 -04:00
Brad Parker ef29bc96b0 do not return to game after canceling quit confirm if user toggled the menu manually 2016-09-05 11:35:27 -04:00
twinaphex 4bc837fe77 Fix confirm on exit codepath so that 'Quit RetroArch' works
again when selecting it
2016-09-05 08:21:51 +02:00
Brad Parker 276542ea98 more menu popup refactor, add back working confirm_on_exit 2016-09-05 01:04:15 -04:00
Brad Parker 27925da4ae revert confirm_on_exit option for now 2016-09-04 15:31:50 -04:00
twinaphex 6e89e8f209 Style nit 2016-09-03 23:31:26 +02:00
Twinaphex f5a4b402d7 (OSX) Fix some crashes that could occur 2016-09-03 23:27:53 +02:00
Brad Parker ee7545857c add config option to enable quit confirmation 2016-09-01 21:47:25 -04:00
twinaphex 4f577f1932 Get rid of some header includes 2016-09-01 05:36:52 +02:00
radius 725e41b20b (ovr) add osd messages 2016-08-26 09:54:15 -05:00
radius 671aa0f59c (ovr) add game overrides too 2016-08-26 09:43:29 -05:00
radius 45ca269573 (ovr) define paths for override files 2016-08-26 00:45:01 -05:00
radius c6c054bad1 (ovr) start implementing diff function 2016-08-25 01:34:51 -05:00
radius 1fbeebf8a9 (ovr) add menu items 2016-08-25 00:54:39 -05:00
twinaphex 7c19b2fac5 More translatable strings 2016-08-22 13:41:11 +02:00
twinaphex a43dab71ba More translated strings 2016-08-22 02:38:19 +02:00
twinaphex 60158f5247 Make it possible to compile again with ./configure --disable-rgui 2016-08-01 18:29:26 +02:00
Twinaphex a739b7e60c Merge pull request #3289 from fr500/master
Per-core & Per-game shader presets #2
2016-07-31 01:42:34 +02:00
twinaphex 8b706ad805 Start creating new history files for music/video/image 2016-07-30 22:47:43 +02:00
radius 785d5519a6 only load shaders compatible with the current backend 2016-07-30 15:28:47 -05:00
radius 0026a91d62 clear the runloop variable 2016-07-30 14:37:07 -05:00
radius d58c802e3b restore the original shader on close 2016-07-30 14:36:01 -05:00
radius fccb4387d2 implement shader overriding 2016-07-30 13:55:50 -05:00
twinaphex 58c425ef19 Revert "Refactor settings"
This reverts commit afcc9657d2.
2016-07-25 12:30:41 +02:00
twinaphex afcc9657d2 Refactor settings 2016-07-25 11:59:38 +02:00
twinaphex 2be127c04a Start wrapping settings->path.libretro 2016-07-24 11:12:26 +02:00
twinaphex 3fd8d0e1d2 Start using config_get_active_path 2016-07-23 14:22:04 +02:00
twinaphex 0506684e9f Cleanup 2016-07-23 11:22:13 +02:00
twinaphex 7ef4f5a717 Cleanup 2016-07-23 08:53:19 +02:00
twinaphex 282dbf0b38 (PS3) Should get playlist entries working again - now we need to
propagate the core path to the playlist correctly
2016-07-23 07:47:05 +02:00
twinaphex aae99faf12 (Non-HAVE_DYNAMIC) should correctly call retro_unload_game and
core_deinit now when we select 'Close Content'
2016-07-23 07:13:21 +02:00
twinaphex 3669d44de9 Create core_uninit_symbols function 2016-07-23 07:06:32 +02:00
Sebastien Ronsse f65eaf1de9 command: Remove core deinitialization on close for non-dynamic targets 2016-07-21 20:16:14 +10:00
twinaphex 0eb467e04d Dehardcode more strings, can get rid of some TODOS/FIXMEs 2016-07-01 07:28:46 +02:00
twinaphex dcbd68b11b Create FILE_PATH_AUTO_EXTENSION 2016-07-01 07:07:18 +02:00
Twinaphex 1e9300be68 Prevent crash inside command_event_save_auto_state 2016-07-01 07:03:44 +02:00
twinaphex dc4275b673 Should autosave state now at exit 2016-07-01 06:55:44 +02:00
Sebastien Ronsse 087e26bd2d command: Load dummy core on close only if core has not been initialized yet 2016-06-29 17:24:55 +10:00
twinaphex 099be6ed2d Use noext versions of fill_path* functions 2016-06-28 13:13:36 +02:00
twinaphex 7a745c3f70 Use string_is_empty 2016-06-28 11:02:51 +02:00
Alcaro 5b388d8c92 Fix some Coverity errors 2016-06-27 21:16:49 +02:00
Hans-Kristian Arntzen c80127d29d Vulkan: Hook up async compute test more properly.
Supports multiple queues and queues from different families.
2016-06-27 20:54:53 +02:00
twinaphex 728249fa61 Add more strings 2016-06-27 08:19:39 +02:00
twinaphex 946de514dc Don't use strcpy 2016-06-27 08:07:19 +02:00
twinaphex 07ce0eabd9 Cleanup 2016-06-27 07:57:14 +02:00
twinaphex a6bfc6240f C89_BUILD fixes 2016-06-23 07:40:51 +02:00
Arzed Five 1f028395d2 Merge remote-tracking branch 'upstream/master' 2016-06-22 22:40:17 +01:00
twinaphex f9d9070de8 command.c - cleanups 2016-06-20 22:04:59 +02:00
Alcaro 77d0745f38 Kill some warnings 2016-06-19 22:43:52 +02:00
Twinaphex a52e55e909 Revert "Fix overlap of source and destination buffers in snprintf call" 2016-06-18 23:14:22 +02:00
Nikola Kocić ebfb7652b0 Fix overlap of source and destination buffers in snprintf call 2016-06-18 22:53:49 +02:00
Alcaro a2947da8ec Fix command_read_ram if core doesn't use the mem map envs. 2016-06-17 18:50:59 +02:00
Arzed Five 8e20b9e938 Both Undo options now write distinct messages in the OSD when buffers
are empty, when undoing fails and when undoing is successful.

Aside from some TODO/FIXME areas added by this fork, the features in the
fork are now complete.
2016-06-10 20:12:43 +01:00
Arzed Five 83a1d9ac1f Clean up some stuff, add comments, reduce the places where
content_reset_backup_buffers is called, try to make the undo messages
nicer.

* I'm trying to write to differentiate read/write errors from empty
buffer errors. I changed command.c and task_save_state.c so the
content_undo funcs are the ones writting the success messages.

I was told to use runloop_msg_queue_push() to write to the OSD, but that
doesn't seem to be working.
2016-06-09 16:14:40 +01:00
radius 4ad2eba602 cleanups 2016-06-08 23:02:19 -05:00
Arzed Five 9944ec98fd Both undo options print messages now. Undo Load State can now also be
undone ad infinitum. Doing it in succession swaps the current state for
the backed up state.
2016-06-09 00:38:27 +01:00
Arzed Five 8c5238c349 Undo Load State and Undo Save State both seem to be working. 2016-06-08 23:03:49 +01:00
Arzed Five 051cc3fe4d Undo Save State currently seems to be working almost as intended
(missing OSD messages). Undo Load State isn't working yet.
2016-06-08 20:27:54 +01:00
Arzed Five 70b1f385e8 Change task_save_state so we save a single state and a single savestate
file in memory, allowing to undo a loadstate/savestate once.
2016-06-07 18:33:01 +01:00
twinaphex 52b7a95a2b C89_BUILD fixes 2016-06-07 00:03:07 +02:00
twinaphex 8bef9743aa Avoid 'function not used' warnings 2016-06-06 23:42:12 +02:00
twinaphex b110b08b25 command.c - Prevent explicit NULL dereferenced 2016-06-05 19:08:19 +02:00
twinaphex 85802e6d5a Prevent defined but not used warnings 2016-06-05 05:25:44 +02:00
Twinaphex b59f7c0276 Merge pull request #3068 from libretro/command-ram
Add support for reading/writing core RAM over the command interface
2016-06-05 03:05:52 +02:00
radius f80ecf7739 fix a few message issues with undo operations 2016-06-04 19:27:17 -05:00
radius 20540a8f42 add menu entry for undo save state 2016-06-04 14:34:06 -05:00
radius 93acf0caa9 check if saving undo data was successful 2016-06-04 12:42:45 -05:00
radius 28aafddd91 copy the old save state before making a new savestate 2016-06-04 12:38:55 -05:00
radius aa81de0ca0 fix nit 2016-06-04 12:07:11 -05:00
Alcaro e3f594564a Fix segfault if no game is loaded. 2016-06-04 18:26:11 +02:00
Alcaro 6484fb0c75 This fits better as an argument. 2016-06-04 17:51:27 +02:00
Alcaro 1a64520a23 Fix some silly copypasta. 2016-06-04 17:46:11 +02:00
Alcaro d845093c7b Add support for reading and writing core RAM over the command interfaces. 2016-06-04 17:41:14 +02:00
radius 04fc5d042f fix osd message 2016-06-02 23:35:57 -05:00
radius a86cf6b99d initial implementation of undo save state 2016-06-02 23:33:52 -05:00
twinaphex da7f6a2a3b Prevent more warnings 2016-06-01 05:18:59 +02:00
twinaphex 7d26034ebe Rename rarch_task_* to task_* 2016-05-27 18:14:47 +02:00
twinaphex 150d05c160 Not sure why it tried to call input_overlay_free twice in a row 2016-05-27 04:09:46 +02:00
twinaphex 03ded43280 Prevent explicit null dereferenced warnings 2016-05-26 18:09:46 +02:00
twinaphex cd176d0737 Remove input_overlay_init 2016-05-25 00:57:58 +02:00
twinaphex 25eaab0a2b Start passing input_overlay_t * state around to other functions 2016-05-24 23:15:19 +02:00
twinaphex fd7e2cd394 input_overlay_new - Call input_overlay_free from outside 2016-05-24 15:25:46 +02:00
radius 6b0c978acb cut down some code duplication 2016-05-20 17:54:29 -05:00
radius dbb8cf7e32 AUTOSAVE should happen before loading the dummy core, not after 2016-05-20 17:36:55 -05:00
radius a49ef997de fix override unloading on close content 2016-05-20 02:21:15 -05:00
twinaphex aabb1e409c Move netplay code to network/netplay dir 2016-05-19 11:46:54 +02:00
twinaphex 2559139154 Cleanup tasks_save_ram.c 2016-05-17 15:32:50 +02:00
twinaphex 146d2c8a1d Rename screenshot.c to tasks/task_screenshot 2016-05-17 14:31:33 +02:00
twinaphex fcf2decb2e Remove persist argument 2016-05-17 09:07:41 +02:00
twinaphex e10270d459 Delete runloop_prepare_dummy 2016-05-16 17:19:16 +02:00
twinaphex a687c47f7e Move command_event_cmd_exec to tasks/task_content.c 2016-05-16 14:58:08 +02:00
twinaphex 6ef0b86e30 Reimplement content loading - task_content_load 2016-05-16 12:51:55 +02:00
twinaphex 43b88cfba9 CMD_EVENT_LOAD_CONTENT_PERSIST - cleanup 2016-05-16 12:23:19 +02:00
twinaphex 449c7483cd Rename content_playlist_ to playlist_ 2016-05-16 09:07:44 +02:00
twinaphex df3b090d7a Revert "Create runloop_get_system_info/runloop_free_system_info/runloop_init_system_info"
This reverts commit 35bf38e05c.
2016-05-12 09:37:21 +02:00
twinaphex 35bf38e05c Create runloop_get_system_info/runloop_free_system_info/runloop_init_system_info 2016-05-12 09:25:52 +02:00
twinaphex c1bfe795f8 Create runloop_prepare_dummy 2016-05-12 09:04:31 +02:00
twinaphex 90d7722125 Remove CMD_EVENT_QUIT_RETROARCH 2016-05-11 20:56:02 +02:00
twinaphex cf3f8d587c Cleanup 2016-05-11 20:53:28 +02:00
twinaphex 322d11e387 Avoid some warnings when compiling with --disable-netplay 2016-05-11 19:37:56 +02:00
twinaphex 7ebfe1b66d Create retroarch_set_pathnames 2016-05-11 04:32:29 +02:00
twinaphex 030513bcee Create retroarch_fill_pathnames 2016-05-11 04:29:01 +02:00
twinaphex 95a6428915 RARCH_CTL_FORCE_QUIT is the same as RARCH_CTL_QUIT 2016-05-11 04:24:27 +02:00
twinaphex b9df6f52f5 Kill off a bunch of RARCH_CTL_LOAD_CONTENT enums 2016-05-11 04:22:22 +02:00
twinaphex b79b2dca13 Create performance_counters 2016-05-10 08:53:14 +02:00
twinaphex 3dc55d4e72 command.c - cleanups 2016-05-09 21:36:17 +02:00
twinaphex b3422b33fd Add parameter to command_new 2016-05-09 21:25:37 +02:00
twinaphex f15f28ce02 Refactor some command code 2016-05-09 21:23:53 +02:00
twinaphex 2691ab0c7d Rename command_event enums 2016-05-09 20:51:53 +02:00
twinaphex c6e65e1669 Rename functions 2016-05-09 20:41:59 +02:00
twinaphex 523ebed112 Combine command_event.c and command.c 2016-05-09 20:30:47 +02:00
twinaphex 3c74031c2f Rename rarch_cmd to command 2016-05-09 20:10:08 +02:00
twinaphex 80a453bad1 De-ioctlify command.c 2016-05-08 00:25:04 +02:00
twinaphex 70d3bce2bf (command.c) Nit 2016-05-02 19:36:02 +02:00
twinaphex b25b2a0e6c Some code de-duplication 2016-05-02 18:54:55 +02:00
twinaphex 2d348f68f9 Cleanup 2016-05-02 01:33:47 +02:00
twinaphex f4762f6f33 (netplay.c) Use socket_bind 2016-05-01 22:59:35 +02:00
twinaphex 004d9a613c Create socket_bind 2016-05-01 22:57:44 +02:00
twinaphex 78bb85e2f3 Reuse socket_init for net_http code 2016-05-01 22:45:32 +02:00
twinaphex 8b9456f419 Add socket_type to socket_init 2016-05-01 22:25:23 +02:00
twinaphex a7b856b65f (libretro-common) Create net_socket 2016-05-01 21:18:45 +02:00
twinaphex 81e13aa2c1 (command.c) Cut down on some functions 2016-03-04 17:35:44 +01:00
Hans-Kristian Arntzen adbf9fed16 Vulkan implementation. 2016-02-16 20:42:02 +01:00
twinaphex fcac9a8401 Cleanups 2016-02-13 07:20:55 +01:00
twinaphex 954c5a86f6 Add rarch_cmd_ctl 2016-02-13 07:19:21 +01:00
twinaphex 6cb55231d9 use more string_is_equal 2016-01-20 05:21:52 +01:00
twinaphex 7a55ae3765 Start updating headers for 2016 2016-01-10 04:06:50 +01:00
twinaphex 2d55dc3bda Complete namespace changes 2015-12-07 15:32:14 +01:00
twinaphex 9471020bf7 Reduce some more msg char variables 2015-12-06 15:55:05 +01:00
twinaphex 7d6b7b7729 Some cleanups 2015-12-06 13:17:04 +01:00
twinaphex 074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex d65a445acd Fix concurrency issue with global->verbose 2015-11-22 20:50:39 +01:00
twinaphex 02a43c6b2a Change 'rarch' to 'retro' namespace in libretro-common 2015-10-26 03:18:13 +01:00
twinaphex 631da50dfa More static code analysis nits 2015-09-28 18:22:27 +02:00
twinaphex 432aac58a3 Get rid of more fcntl header includes 2015-09-18 04:03:11 +02:00
twinaphex 69ce3776b4 (command.c) Cleanups 2015-07-02 21:35:57 +02:00
twinaphex 934bf2cda1 (command.c) Translatable strings 2015-07-02 00:29:02 +02:00
twinaphex affd3683de Remove instances of 'RetroArch' name with 'program' 2015-06-30 15:26:14 +02:00
twinaphex 9a2ca8cc9c (command.c) Refactor 2015-06-14 17:19:32 +02:00
twinaphex 29c82f9360 (General) Cleanups pt. 2 2015-06-12 17:04:25 +02:00
twinaphex 4dfaddd16f (command.c) Add MENU_LEFT and MENU_RIGHT 2015-04-10 08:09:59 +02:00
Radius 2f2a86e97f add osk enable hotkey 2015-03-25 22:24:12 -05:00
twinaphex 4c9ac9d6e4 Use video_driver_set_shader 2015-03-22 22:17:52 +01:00
twinaphex e6f0d366cb Go through global_get_ptr 2015-03-21 04:43:18 +01:00
twinaphex d2c97de070 Move net_compat/net_http to libretro-common 2015-03-20 17:56:00 +01:00
twinaphex 3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +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 795ef467ac Move msg_queue and nbio/http to runloop struct 2015-03-07 13:01:41 +01:00
mwtremblay 5e7295d87f Fix for issue #1365 2015-01-28 20:29:07 -05:00
Higor Eurípedes 41a48b8ac8 Rename netplay_compat.* to net_compat.* 2015-01-27 20:16:08 -03:00
twinaphex f6d0a80b3d (Netplay) Create wrapper function for select() 2015-01-23 11:44:13 +01:00
twinaphex cec500ece5 Create socket_close in netplay_compat.c 2015-01-23 11:36:45 +01:00
twinaphex 57933ec70e Get rid of CONST_CAST/NONCONST_CAST - just do this by default 2015-01-23 11:30:13 +01:00
twinaphex 4cb34282c5 Move socket_nonblock to netplay_compat.c 2015-01-23 11:11:22 +01:00
twinaphex 4cdbe6f0c6 Usse wrapper functions freeaddrinfo/getaddrinfo in command.c 2015-01-23 08:46:31 +01:00
twinaphex 46402deb04 Use PATH_MAX_LENGTH instead of PATH_MAX.
Refactor OSX settings menu code somewhat
2015-01-17 05:47:52 +01:00
twinaphex 453321c50b Start updating headers 2015-01-07 17:46:50 +01:00
twinaphex 9daecea53e Create network_init and network_deinit functions 2014-12-21 03:29:52 +01:00
twinaphex d025637eca Remove driver.h include in command.c 2014-10-22 07:09:31 +02:00
twinaphex 9a9fa6532a Move file_path.c to libretro SDK 2014-10-22 00:23:06 +02:00
a-shark 4439644e69 Add support for more Network Commands. 2014-10-07 23:04:46 -05:00
AndresSM 7249ebc00c fix disk_next, add option for disk_prev 2014-10-07 20:19:12 -05:00
Lioncash a300ce5b2e command: Fix possible null dereference in rarch_cmd_free
Free called on null pointers is OK, but if it's ever null and it hits this conditional, it will be a null pointer dereference.
2014-09-12 08:07:41 -04:00
twinaphex 46b6b112b8 Cleanups - C-style comments, 80-char limit 2014-09-03 06:14:13 +02:00
twinaphex e84e255013 Cleanups, 80-char limit 2014-09-02 05:10:54 +02:00
twinaphex 823be1ce41 Get rid of more driver_funcs macros 2014-08-15 20:51:59 +02:00
twinaphex ed25984a3c command.c - declare variables at top 2014-08-03 01:38:49 +02:00
twinaphex 64fe591b64 Expand ifdefs for HAVE_NETWORK_CMD 2014-08-02 04:24:05 +02:00
twinaphex 25e0ead417 Build fix - make RetroArch work without HAVE_NETPLAY defined 2014-08-02 04:21:07 +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
Themaister 08cfb27f35 Fix some C++ issues. 2014-06-17 17:10:24 +02:00
Themaister c7eee695ce Remove references to XML shaders. 2014-05-25 23:40:14 +02:00
Themaister addba80c3b Rewrite DSP plugin interface. 2014-05-20 12:28:33 +02:00
Themaister 3a1c3f608a Fix some GCC 4.9 warnings. 2014-05-02 18:23:07 +02:00