Commit Graph

212 Commits

Author SHA1 Message Date
twinaphex 386657a366 (menu widgets backport) Re-commit task queue changes 2019-02-08 08:00:32 +01:00
twinaphex 7022786f34 Revert parts of menu_widgets that were causing breakage, but leave
all the hooks in so we can add them back piece by piece again
2019-02-08 07:26:43 +01:00
natinusala c20ab3864d First version of menu widgets (gl only) 2019-02-06 20:48:24 +01:00
twinaphex b13777e9fc Header cleanups 2019-01-20 03:16:58 +01:00
twinaphex 3ac631c7a3 (MSVC) Some more static code analysis warning fixes 2019-01-10 22:49:23 +01:00
orbea bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
twinaphex 0ba8597041 Cleanups/silence warnings 2018-10-04 16:24:10 +02:00
twinaphex 931397671f Increase size of string to silence warning 2018-09-28 21:40:17 +02:00
twinaphex 09d27fc591 Silence some warnings 2018-09-15 07:19:51 +02:00
Sven b4081d9347 implement libretro private def to allow cores to tell RA to save states in background 2018-09-07 19:09:56 -04:00
Tatsuya79 dd9db41403
fix task_save.c 2018-09-01 01:50:30 +02:00
Tatsuya79 64459bda3a
revert #7156
revert https://github.com/libretro/RetroArch/pull/7156
2018-09-01 01:41:21 +02:00
Twinaphex e2a650cb26 Remove unused variable 2018-08-31 19:02:47 +02:00
Sven 75abd1f36e Merge remote-tracking branch 'upstream/master' 2018-08-30 12:07:41 -04:00
Sven b8ab6c1e74 push save state into background for cores that need the emulator to be running to correctly save states 2018-08-30 11:21:31 -04:00
Brad Parker b0146abd11 add fullpath and use_thread parameters to take_screenshot() 2018-08-18 23:08:55 -04:00
Sven 5f35249216 Implement robust cheat searching interface with rumble features 2018-07-25 19:19:14 -04:00
twinaphex 041670fe02 Get rid of multitude of casting warnings 2018-04-13 00:47:42 +02:00
twinaphex 1751f4a0af Make it possible to read bigger files by replacing ssize_t with int64_t
and size_t with uint64_t
2018-04-13 00:18:11 +02:00
twinaphex c7c4b723d6 Move path_file_exists to filestream and do away with filestream
dependencies in file/file_path
2017-12-14 20:05:46 +01:00
Brad Parker 8c0adf3594 move path_file_rename and path_file_remove into VFS 2017-12-14 13:32:26 -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 c4d8a8c800 Free after intfstream_close 2017-12-11 20:24:00 +01:00
twinaphex 32511090ca (task_save.c) Move to intfstream 2017-12-11 14:56:58 +01:00
twinaphex 61d3f90cae Add hint defines to libretro.h 2017-12-11 12:53:47 +01:00
twinaphex 318f17c4cb Start using VFS API constant defines 2017-12-11 12:15:00 +01:00
twinaphex 2e979ec537 Replace function signatures of file_stream file functions 2017-12-10 22:25:38 +01:00
Brad Parker 68a8198e4a convert more file IO functions to use filestream, fixes encoding issues on Windows 2017-10-29 12:08:24 -04:00
Brian Koropoff 20aa59249c task_save: fix double-free 2017-10-11 21:26:26 -07:00
twinaphex c68db61188 Silence more Clang warnings 2017-10-11 22:49:13 +02:00
Alcaro dc4c2cd6d9 Wipe out a buncha warnings and pointless ifdefs (some warnings will remain until #5497 is fixed) 2017-10-03 00:26:29 +02:00
twinaphex 57ded65189 (task_save.c) Use malloc 2017-09-29 22:40:31 +02:00
twinaphex 0007d66bf8 Fix memory leaks 2017-09-11 02:22:46 +02:00
twinaphex 0724cbbf2b Reduce stack usage 2017-09-10 21:58:05 +02:00
twinaphex 6df9c7ca30 Cleanup 2017-09-09 20:10:28 +02:00
Brad Parker 0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
Tatsuya79 1df9766491 Hide load message when saving state.
fix https://github.com/libretro/RetroArch/issues/4460
2017-05-30 14:07:04 +02:00
twinaphex 126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
twinaphex 80d9d1f143 Rewrite task_queue 2017-05-14 20:43:48 +02:00
twinaphex b22d7902f1 Turn macro back into function 2017-05-13 19:37:16 +02:00
radius 4af9a92f76 fix 3829 2017-05-09 22:10:46 -05:00
twinaphex 924296c680 task_save.c - remove runloop.h header include 2017-05-07 17:53:53 +02:00
twinaphex 4d20460e6b Cleanup task_save.c 2017-05-07 17:52:48 +02:00
twinaphex 750d404e23 Rewrite autosave_init 2017-05-07 17:45:53 +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 ed53be7c81 Move all bool settings 2017-04-28 14:11:34 +02:00
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
radius e980577531 fix #4663 2017-02-18 20:10:37 -05:00
twinaphex 7a5ed7cc65 Add filestream_flush and use filestream interface for tasks/task_save.c 2017-02-17 03:03:18 +01:00
twinaphex 50a7e634c9 Get rid of this log message 2017-01-24 15:15:41 +01:00
twinaphex 4aac4aa2e6 Revert "Use task_set_title"
This reverts commit c867784898.
2017-01-23 14:15:26 +01:00
twinaphex c867784898 Use task_set_title 2017-01-23 13:19:35 +01:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
Brad Parker 41f40acfc4 guard task struct read/writes across threads with a mutex, fixes several data races found by ThreadSanitizer and helgrind 2016-12-29 00:54:12 -05:00
twinaphex 67f1cca625 Don't try to use settings_t pointer from task callback functions 2016-12-29 06:09:58 +01:00
twinaphex 31aa1d6d19 Fix saved state message 2016-12-28 00:44:29 +01:00
twinaphex 6708da5ec1 task->progress is where the data race issues come from - commenting
out for now
2016-12-28 00:20:34 +01:00
twinaphex 91f3a4bf11 Remove this - not threadsafe 2016-12-27 23:21:00 +01:00
twinaphex 3ec564f97c Revert "(task_save.c) Cleanups"
This reverts commit d6aae88737.
2016-12-27 20:11:22 +01:00
twinaphex c6269e3ade (task_save.c) Further cleanups 2016-12-27 15:16:42 +01:00
twinaphex 2a5e74ecb0 Cleanup autosave_free/autosave_deinit 2016-12-27 15:14:27 +01:00
twinaphex a42d5c9ec8 Cleanup autosave_unlock 2016-12-27 03:15:58 +01:00
twinaphex b0ebd33094 (task_save.c) Cleanups 2016-12-27 02:14:35 +01:00
twinaphex d6aae88737 (task_save.c) Cleanups 2016-12-26 18:25:42 +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 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
twinaphex 86a222e0e6 Create just one screenshot function 2016-12-06 06:52:57 +01:00
Brad Parker 94915815ae use task message system 2016-12-06 00:24:45 -05:00
twinaphex 0c74d19112 (tasks/task_save) Replace some instances of runloop_msg_queue_push 2016-12-03 06:46:53 +01:00
Jean-André Santoni 2cc4bef3aa Do the screenshot in the savestate callback 2016-12-01 22:39:13 +01:00
Brad Parker e378a4636b make save/load state messages fully translatable, rename jp.c to ja.c to match proper language code 2016-11-08 08:37:51 -05:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
twinaphex e11b170173 Cleanups/more translation work 2016-10-22 05:13:37 +02:00
twinaphex 1b944c1cce Cleanups 2016-10-22 05:10:13 +02:00
twinaphex c3ab8800f4 Prevent implicit memsets 2016-10-21 05:57:40 +02:00
twinaphex 051c103ea1 Prevent implicit memsets 2016-10-16 01:31:06 +02:00
Brad Parker 97a5e77181 mute state-related OSD messages when auto-saving 2016-10-04 17:58:16 -04:00
Gregor Richards 8418196557 Make core_unserialize universally inform Netplay 2016-10-04 13:44:35 -04:00
Brad Parker e5970e8095 prevent divide by zero 2016-10-04 08:35:08 -04:00
twinaphex 6c454bb468 content_undo_save_state - abitilityability to return false 2016-10-04 11:19:24 +02:00
twinaphex 166e300471 Plug more memor yleaks 2016-10-04 11:16:02 +02:00
twinaphex f06ea9ba70 Fix 17 new memory leaks catched by Coverity 2016-10-04 11:02:01 +02:00
twinaphex 19863e4174 autosave_lock/autosave_unlock - no longer require HAVE_THREADS ifdefs 2016-10-04 09:56:58 +02:00
twinaphex 49e54356f4 Fix relative path 2016-10-03 18:24:28 +02:00
Gregor Richards 35666e21ae Reimplemented savestate task informing Netplay 2016-10-03 08:47:47 -04:00
twinaphex 8953255b6b Another buildfix for MSVC 2016-10-03 05:17:37 +02:00
twinaphex 95e2b6ac51 BUildfix warning 2016-10-03 05:17:09 +02:00
Brad Parker 06f06d512b finish task if state file cannot be loaded 2016-10-02 19:31:07 -04:00
Brad Parker 795fd0cfa3 add blocking task type that only allows one instance in the queue 2016-10-02 19:05:30 -04:00
Brad Parker cf3ae942c2 make undo_save_state a task 2016-10-02 19:05:30 -04:00
Brad Parker 18290ae777 comment 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 90af64769d Get rid of global->sram 2016-09-28 07:27:39 +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 8fd94e4aab Move variables around 2016-09-23 02:48:10 +02:00
twinaphex 4a1f593689 Get rid of unused typedef 2016-09-23 02:47:05 +02:00
twinaphex 2c29e599e8 Revert this code back to what it was 2016-09-22 16:28:45 +02:00
twinaphex 693a9660f3 Prevent null pointer dereference 2016-09-22 16:10:51 +02:00
twinaphex 4db42db980 content_flush_save_blocks - cleanup 2016-09-22 14:40:07 +02:00
twinaphex dad9a079c7 Rework content_flush_save_blocks/content_allocate_save_blocks 2016-09-22 14:39:13 +02:00
twinaphex 8b67551799 Turn dump_to_file_desprate into static function 2016-09-20 04:08:55 +02:00
twinaphex 1e5d4198de Add HAVE_CONFNIG_H - task_save.c 2016-09-19 19:27:19 +02:00
Twinaphex 1205b12e15 remove unused variables 2016-09-19 04:23:53 +02:00
twinaphex c133b03a63 Move task_save_files to task_save.c 2016-09-19 04:22:02 +02:00
twinaphex 8469235005 global->savefiles only accessed now from task_save.c 2016-09-19 04:18:40 +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 2ecef082f8 Cleanups 2016-09-19 03:36:55 +02:00
twinaphex bb6bc9bd6d Merge task_save_ram/task_save_state 2016-09-19 02:57:23 +02:00