Commit Graph

2264 Commits

Author SHA1 Message Date
twinaphex 81d22c63de (task_content) Some simplifications 2019-04-21 05:33:41 +02:00
meleu c2364096f3
Merge branch 'master' into runtime_rcheevos_switch 2019-04-19 21:50:00 -03:00
twinaphex 70373dba9a (task_screenshot.c) Cleanups 2019-04-13 04:56:11 +02:00
twinaphex 3619fae2d9 (LGTM) Silence some warnings 2019-04-13 02:15:26 +02:00
Twinaphex 8918d0d873
Merge pull request #8580 from bparker06/playlist_subsystem
Add subsystem support for (history) playlists, make playlist_entry struct public to simplify function parameters
2019-04-12 23:45:02 +02:00
bparker06 15c0191f08
Update task_content.c 2019-04-12 13:04:59 -04:00
Brad Parker f7b0c0947c add subsystem_name (friendly name) to history playlist, make playlist_entry struct public to simplify function parameters 2019-04-12 12:50:27 -04:00
radius d08779adf0 [subsystem] add a function to get the friendly name 2019-04-11 18:51:27 -05:00
natinusala 942d228e3a menu widgets: fix screenshot flash tainting the image 2019-04-11 16:46:41 +02:00
Brad Parker 230c64ba4b add subsystem support for playlists, only missing the content load portion 2019-04-11 00:09:13 -04:00
natinusala 3d52f2bf8f menu widgets: reimplement screenshot widget 2019-04-08 17:06:04 +02:00
jdgleaver 2c65068be0 More 'Log to File' Additions:
- Add optional timestamped log files

- Handle errors if log file cannot be opened

- Android: flush log file immediately

- 3DS: log to file tested and fully working

- Default log paths added for all platforms
2019-03-25 17:22:59 +00:00
meleu a5acd559d6 namespace both cheevos implementations & add a runtime setting to allow debugging 2019-03-19 21:13:10 -03:00
jdgleaver dc8ef72323 Populate crc32 and db_name fields when adding history/favourites playlist entries
playlist.c: Fix silly range check error
2019-03-09 13:58:53 +00:00
Brad Parker 9279d06f93 Merge branch 'master' into send_debug 2019-03-07 19:23:41 -05:00
Brad Parker 10df615d14 add "Send Debug Info" option under Help 2019-03-07 19:17:54 -05:00
jdgleaver 8a2cd64889 Always use core display name when populating playlists 2019-03-07 16:54:46 +00:00
Brad Parker e0b75ec3fb fix a whole bunch of memory leaks 2019-03-01 12:05:14 -05:00
Brad Parker 4f0d61a2ac update copyright 2019-02-22 19:13:36 -05:00
rlnilsen e71b6d6d23 Fix content scanner creating false positive playlist entries that also have wrong label and crc32. 2019-02-21 04:24:07 +01:00
twinaphex 386657a366 (menu widgets backport) Re-commit task queue changes 2019-02-08 08:00:32 +01:00
twinaphex 894f3b7aef Change function signature back 2019-02-08 07:29:50 +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
Twinaphex f62e44c3e8
Merge pull request #7971 from Wiimpathy/WiiSkipCrc
Wii: Skip CRC. Avoid an unnecessary delay.
2019-02-07 18:42:13 +01:00
twinaphex affd507151 Warning fix 2019-02-07 08:05:43 +01:00
radius 671e90a415 [discord] party & ask to join refinements 2019-02-06 22:45:05 -05:00
Twinaphex 477170884b Some warning fixes 2019-02-06 23:25:41 +01:00
Wiimpathy 79b5a05aeb
Merge branch 'master' into WiiSkipCrc 2019-02-06 21:51:27 +01:00
natinusala c20ab3864d First version of menu widgets (gl only) 2019-02-06 20:48:24 +01:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
orbea 4c56167446 Convert to linux line endings. 2019-02-03 15:43:42 -08:00
twinaphex 987a91a1ae Silence some warnings 2019-01-31 21:24:13 +01:00
twinaphex 9421584772 Header include updates 2019-01-31 19:41:51 +01:00
Brad Parker 90db5e7e27 Implement in-menu sound effects 2019-01-27 11:22:16 -05:00
Twinaphex 556b7b19de
Merge pull request #8025 from krzys-h/uwp-storagefile
(UWP) StorageFile implementation
2019-01-27 08:33:17 +01:00
radius b0b39a1610 this should fix errors with --disable-menu 2019-01-20 17:20:17 -05:00
twinaphex b13777e9fc Header cleanups 2019-01-20 03:16:58 +01:00
twinaphex cfd7228469 Cleanups 2019-01-20 02:57:12 +01:00
twinaphex 0083e10926 Some header include changes - create task_file_transfer.h 2019-01-20 02:17:43 +01:00
Brad Parker afcaccbd05 task_audio_mixer: free nbio_buf path memory 2019-01-18 19:06:59 -05:00
twinaphex fc57b41ab6 (Audio mixer) You can now specifically set a slot to load a sound in
- set type to AUDIO_MIXER_SLOT_SELECTION_MANUAL and set idx to the
slot you want to load in (begins at 0)
2019-01-18 00:24:31 +01:00
krzys-h 4461d32900 (UWP) Fallback to a file copy when core doesn't support VFS 2019-01-17 11:48:09 +01:00
krzys-h c8510378dc (UWP) Error if trying to use VFS on cores that don't support it 2019-01-17 11:08:05 +01:00
twinaphex 65d5de6674 Add 4 additional mixer slots for system sound effects and music
for menu
2019-01-17 03:03:46 +01:00
Brad Parker e2df9b52ce Fix issue that was causing old name labels to appear in content history 2019-01-16 16:48:20 -05:00
Twinaphex 31b1a91c3b
Merge pull request #8014 from orbea/screenshot
Fix screenshot filename with no core or content.
2019-01-16 16:07:57 +01:00
orbea 02382b1cd7 Fix screenshot filename with no core or content. 2019-01-15 21:55:03 -08:00
radius 82836c5778 [netplay] simplify find content task 2019-01-14 20:17:53 -05:00
radius dad3fe42db [netplay] load subsystem content
cleanup

cleanup
2019-01-14 18:58:57 -05:00
radius 9d0472c3ac [netplay] finding content works now
cleanup
2019-01-14 18:58:56 -05:00
CozmoP 2052e15a08 pass content label when loading content from Qt (#7982) 2019-01-11 18:51:44 -05:00
twinaphex 3ac631c7a3 (MSVC) Some more static code analysis warning fixes 2019-01-10 22:49:23 +01:00
twinaphex c98b2e2292 Buildfixes and more static code analysis warning fixes 2019-01-10 22:24:43 +01:00
benoa 9fec6d4a18 Wii: Skip CRC. Avoid an unnecessary delay. 2019-01-10 20:16:36 +01:00
orbea 7eead5c59f Fix crashes with '--disable-menu' and the Qt frontend.
When failing to load content in the companion ui when HAVE_MENU is not
defined RetroArch will crash in just about every input and video driver.
Even if several sanity checks are added the dummy core will immediately
exit.

Now it will print that it failed to load the core in the companion ui
and reinit the dummy core to match the behavior with the null menu
driver.
2019-01-09 10:02:32 -08: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
Brad Parker 5bedd981ec allow shaders when menu is disabled 2019-01-06 23:03:28 -05:00
orbea 06d0a19e95 Fix png file names for screenshots with contentless cores.
For contentless cores like 2048 and the retropad RetroArch will save png
files with the content field missing.

  -181227-133151.png

Now RetroArch will save png files with the correct names for contentless
cores.

  2048-181227-133151.png
  RetroPad Remote-181227-133202.png

Cores with content will have no change in behavior.

  Akumajou Dracula (J)-181227-133232.png

And with cores that support content and no content such as 4DO both
variations will work.

  4DO-181227-144102.png
  LuciennesQuest-181227-144118.png

Fixes https://github.com/libretro/RetroArch/issues/7828
2018-12-27 14:50:09 -08:00
orbea 80ed61f257 cli: Fix the --no-patch argument.
Fixes https://github.com/libretro/RetroArch/issues/5885

First bad commit:
  d28c138d09
2018-12-25 13:12:59 -08:00
orbea 4da7092aff menu: Reset position after pushing quick menu.
Fixes:
  https://github.com/libretro/RetroArch/issues/5595
  https://github.com/libretro/RetroArch/issues/2506
2018-12-21 18:43:14 -08:00
radius 319124c7a0 subsystem: remember last used folder 2018-12-16 12:33:27 -05:00
radius 479104ee05 cleanup task_content.c too 2018-12-10 23:27:04 -05:00
radius cad5ae287f fix https://github.com/libretro/fbalpha/issues/24#issuecomment-445803876 2018-12-10 22:09:42 -05:00
twinaphex 1c6602e35d Add thread safety note 2018-11-28 11:02:36 +01:00
Twinaphex 02e7b16461
Merge pull request #7643 from fr500/subsystem
WIP: try to load subsystems without loading content
2018-11-27 18:56:41 +01:00
twinaphex ff4fa3be7a Fix more string is too small warnings 2018-11-25 18:49:04 +01:00
radius 77faf4ac4a [subsystem] try to load subsystems without loading content 2018-11-24 23:34:51 -05:00
Francisco Javier Trujillo Mata 0880bd00b0 PS2 is compiling with null drivers 2018-11-09 22:40:50 +01:00
twinaphex a662b62d19 Use runloop_get_libretro_system_info in more places - clean some code up 2018-10-30 17:11:07 +01:00
twinaphex 51430e9e5f Add runloop_get_libretro_system_info 2018-10-30 08:21:32 +01:00
twinaphex 03dac742cb (task_content.c) Some more cleanups 2018-10-29 04:59:54 +01:00
twinaphex e6dfa35f9d (task_content.c) More cleanups 2018-10-29 04:48:22 +01:00
twinaphex 305a07a3f3 Create some variables for size 2018-10-29 04:43:05 +01:00
twinaphex e31c4f541a Simplify init_subsystem function 2018-10-29 04:04:25 +01:00
radius 32766f0017 [content] CRC calculation for needs_fullpath should be within else block 2018-10-28 19:40:18 -05:00
Nathan Strong edacf67e75 Capture CRC content for deferred-loading cores
== DETAILS

Fixes a bug where content CRC32 is not calculated when content loading
is done by the core instead of libretro. This impacts the ability to
do accurate content matching on netplay.

This notably affects MAME, but is by no means limited to MAME.

Change summary:
- adds a method to the crc32 implementation that calculates crc32 for
  a file (as opposed to an in-memory buffer)
- fix a minor bug that would print the "core will load its own content"
  right before attempting to load compressed content
- in the actual "core will load its own content" path, calculate the CRC32
  and log it before returning

== TESTING
Tested locally on OSX:
- loaded content
- started netplay
- confirmed CRC showing in netplay data
- verified CRC32 against external crc32 tool
2018-10-18 11:26:45 -07:00
twinaphex 421e6178e5 Buildfix 2018-10-17 18:20:01 +02:00
Nathan Strong 0abe42d9a4 Rewrite content search task
== DETAILS

In attempting to identify where netplay lobby errors were occuring,
I found that the code which does the content search was pretty messy,
so I've cleaned it up.

- Search is now more efficient. Playlists are only iterated over once,
  instead of twice.
- Error messages are more helpful
- Eliminated goto abuse
- code is easier to follow and has comments describing the logical
  flow.

== TESTING
Tested lightly locally, although hard to test thoroughly due to tight
netplay requirements.
2018-10-16 22:40:13 -07:00
twinaphex 0ba8597041 Cleanups/silence warnings 2018-10-04 16:24:10 +02:00
Sven fc40e6ac85 fix gdi scanning - database only contains crcs for track 1 - so do not try to find largest track - just stop on track 1 2018-10-02 15:15:45 -04:00
M4xw 03ad3b5c30 [LIBNX] Remove task_autodetect workaround 2018-09-29 19:36:12 +02:00
twinaphex 931397671f Increase size of string to silence warning 2018-09-28 21:40:17 +02:00
twinaphex 6825cb2cc7 task_database.c - use string_is_equal 2018-09-20 12:48:00 +02:00
twinaphex 09d27fc591 Silence some warnings 2018-09-15 07:19:51 +02:00
M4xw 3a6e410833 [LIBNX] Add pthreads wrapper 2018-09-15 02:28:52 +02:00
twinaphex 7c2da36af9 Prevent warning 2018-09-08 02:11:18 +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 23836bfba9 use_thread option for screenshot was backwards 2018-08-27 13:38:43 -04:00
Brad Parker b0146abd11 add fullpath and use_thread parameters to take_screenshot() 2018-08-18 23:08:55 -04:00
Twinaphex f07b8b1965
Merge pull request #7090 from Dwedit/fix_missing_content
Fix console mode loading core without content
2018-08-18 16:06:41 +02:00
Dwedit 0e34c12d5c Fixed bug that let Retroarch proceed to retro_run without loading content
Removed unlocalized and redundant error message
2018-08-18 08:40:19 -05:00
Brad Parker c59cbfc4e8 fix memory leaks 2018-08-18 01:07:57 -04:00
Brad Parker 077ef86bab fix null pointer dereferences 2018-08-18 01:07:51 -04:00
Brad Parker a1b831abdb allow 7z archives to have multiple files extracted at once 2018-08-06 20:44:59 -04:00
Sven 5f35249216 Implement robust cheat searching interface with rumble features 2018-07-25 19:19:14 -04:00
radius aa35b9da46 subsystem: set the subsystem correctly 2018-06-14 16:38:27 -05:00
retro-wertz ce27e986e9
Better no log at all than showing a false log
This false message has been like foreve. Nobody seems interested in updating "small and minor" things. so lets just remove this....
2018-06-11 17:08:59 +08:00
Dwedit 51f7746407 reformat like the old code 2018-05-28 10:58:04 -05:00
Dwedit 8cd8e7d3ae Fix a calloc(0) which led to uninitialized data being used later on. 2018-05-28 10:54:25 -05:00
twinaphex 5e32f7ab40 Add To Mixer and Add To Mixer And Play actions 2018-05-02 20:39:55 +02:00
twinaphex 9fbfd503af Add value descriptions for audio mixer streams 2018-05-02 20:13:13 +02:00
twinaphex eff75a3bcd Move nbio_buf_t to task_audio_mixer.c 2018-05-02 19:30:06 +02:00
Brad Parker a1aefc901c Qt WIMP GUI 2018-04-30 14:33:05 -04:00
twinaphex 5aeab54ab7 (Audio mixer) Ability to individually set volume per stream 2018-04-30 17:51:01 +02:00
twinaphex 965859ddcb Start adding mixer controls - ability to stop and remove loaded tracks 2018-04-30 14:34:25 +02:00
Rob Loach 00092eb5ea
feat: Add Wii Backup File WBFS scanning 2018-04-29 09:51:38 -04:00
twinaphex e7272ddefa (Audio mixer) Add MP3 support as well 2018-04-28 14:18:04 +02:00
twinaphex 3f7c318e3f (Audio mixer) Add FLAC support to audio mixer 2018-04-28 11:17:37 +02:00
twinaphex f050104740 Change return type of content_get_subsystem_rom_id 2018-04-17 03:19:35 +02: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 6761ec471d Silence some Coverity warnings 2018-04-12 21:39:31 +02:00
i30817 7da45bc789
Serial magic should only match on full match
As was mentioned on the wii dual layer disc issue, this line is comparing binary sequences as strings, which fails very obviously because neither of the 'strings' tested are strings and it's very likely both start with \0.
2018-04-11 01:37:35 +01:00
twinaphex c24179dc63 Scanning should now work in standalone program 2018-04-10 05:16:33 +02:00
twinaphex c9e48cd9de Cleanups / get rid of more dependencies 2018-04-10 04:31:19 +02:00
twinaphex 6f0fc2426d (database_info/task_database) Get rid of list_special dependencies 2018-04-10 04:13:45 +02:00
twinaphex 3016edce0a Move retroarch.h dependencies out of core_info.c 2018-04-10 04:00:01 +02:00
twinaphex 06bafe3cc3 Fix typo 2018-04-10 02:41:09 +02:00
twinaphex be0c118c87 (task_database.c) Don't use msg_hash_calcualte and msg_hash_to_file_type 2018-04-10 01:18:40 +02:00
twinaphex 908de15e7b Start adding samples - not done yet 2018-04-09 22:12:59 +02:00
twinaphex 22e5d000c2 Cleanups 2018-04-09 19:30:36 +02:00
twinaphex fdec9c50e0 (task_database.c) Add some RARCH_INTERNAL ifdefs 2018-04-09 19:26:49 +02:00
Twinaphex 08a54e45f2 Get rid of a lot of implicit conversions 2018-04-09 15:56:45 +02:00
retro-wertz 55450a5d73
Fix false [ERROR] when closing content
filestream_delete() returns 0 on success, and -1 on failure.
This PR removes this false error when closing content.

e.g.
[ERROR] Failed to remove temporary file: /EMULATORS/ConsoleRoms/Nintendo - Nintendo Entertainment System/Super Mario Bros. (World).nes.
2018-04-03 12:08:53 +08:00
twinaphex 3fe6ecbce7 More static analyzer warning fixes 2018-03-29 14:19:24 +02:00
twinaphex 02bf41a686 (task_content.c) Minor cleanup 2018-03-25 00:14:35 +01:00
twinaphex 3c6490d828 Update 2018-03-25 00:09:57 +01:00
radius fd9d8c9512 fix potential crash on task_push_http_transfer 2018-03-18 12:52:04 -05:00
radius c52fdc469f remove task_push_http_transfer_raw, encode before sending data to the task 2018-03-16 22:38:21 -05:00
meleu eb5a69ded3 fixing cheevos (broken after #6389) 2018-03-16 01:03:57 -03:00
radius b01e63e2cd make sure to always encode urls, also change the PS3 default urls 2018-03-14 23:04:50 -05:00
Twinaphex ae6e410de1 Remove unused variables 2018-03-01 22:28:26 +01:00
twinaphex 0de23512e7 Should fix APK extraction (hopefully) 2018-03-01 14:59:37 +01:00
twinaphex 74309e6e1c shader code - Get rid of more hashes 2018-02-25 17:20:22 +01:00
twinaphex f00d194ae3 Get rid of more hashes 2018-02-25 16:32:54 +01:00
twinaphex fae9223641 Remove hashes from task_overlay 2018-02-25 13:03:54 +01:00
radius fd767f65bd subsystem fix 2018-02-17 12:28:19 -05:00
twinaphex ff831a7d99 Silence Coverity warning 2018-02-15 13:07:46 +01:00
radius a16cbe7cde de-hardcode rom count 2018-02-12 22:10:44 -05:00
radius 755578fc43 C89 build fixes 2018-02-12 21:19:51 -05:00
radius 1f2054d42f subsystem part 3: cleanups 2018-02-12 02:44:54 -05:00
radius d254c3eca4 subsystem part 3: fix saves 2018-02-12 02:39:26 -05:00
radius 9a23ee8017 subsystem part 3: remove more globals 2018-02-12 02:39:25 -05:00
radius 2a9046c06f subsystem part 3: cleanups 2018-02-12 02:39:25 -05:00
radius 9730fa5c51 subsystem part 2: load content! hacky 2018-02-12 02:39:25 -05:00
radius 752e729ec2 subsystem part 2: set paths 2018-02-12 02:39:24 -05:00
radius b212640732 subsystem part 2: add a wrapper to set the current subsystem 2018-02-12 02:39:24 -05:00
radius 597e0ce1ec subsystem part 1: get the required data to load content 2018-02-12 02:39:23 -05:00
twinaphex 457d543cb1 Get rid of callback function hashes 2018-02-05 19:14:55 +01:00
twinaphex 969067b359 Revert "Cleanup code"
This reverts commit 8d835d9b51.
2018-02-05 16:42:02 +01:00
twinaphex 8d835d9b51 Cleanup code 2018-02-05 16:41:02 +01:00
twinaphex d2aa12149f task_load_content - simplify code 2018-02-05 15:37:43 +01:00
twinaphex 69fedc6b40 task_screenshot.c - remove XBOX1 specific code 2018-02-05 00:29:05 +01:00
twinaphex 9dd33b9797 More CXX_BUILD linking error fixing 2018-02-04 20:57:30 +01:00
aliaspider 700fce3bd2 various fixes for CXX_BUILD. 2018-02-04 20:03:27 +01:00
twinaphex 0ee124582c Silence another Coverity warning 2018-02-02 21:53:58 +01:00
twinaphex 7cf4763bfb Add TODO/FIXME note 2018-01-31 23:05:42 +01:00
bparker06 3d2c579bc7
Change Bliss-Box feature report size per ulao 2018-01-28 20:26:47 -05:00
twinaphex 8e3b3762ad More compatibility fixes for CXX_BUILD 2018-01-25 16:33:28 +01:00
twinaphex ed38887910 (VS2017) Update solution 2018-01-23 08:38:40 +01:00
twinaphex 924007eda2 Prevent calling task_image_process if image is NULL 2018-01-23 04:57:12 +01:00
aliaspider 5db96f35fa (WIN32) various build fixes. 2018-01-20 20:05:32 +01:00
radius d1dba26565 fix display name for builtin autoconfs again 2018-01-16 22:18:28 -05:00
twinaphex 897c1654ab Reduce usage of string_is_not_equal_fast 2018-01-17 01:03:48 +01:00
twinaphex 61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
radius 2e210b6bb4 fix my last PR for builtin autoconfs 2018-01-12 10:29:35 -05:00
radius 3b334b60d6 add display name and config name to autoconf 2018-01-11 17:06:14 -05:00
twinaphex 0e337bb110 Use d3d_device_get_backbuffer 2018-01-03 16:25:45 +01:00
twinaphex e17baf411c Use d3d_surface_free 2018-01-03 14:10:14 +01:00
twinaphex 3528923507 Fix crash with Linux HTTP tasks - null pointer dereference 2018-01-02 13:41:59 +01:00
Brad Parker e62e0c83da win32: Show progress meter on taskbar for downloads (Windows 7 and up) 2018-01-01 02:08:09 -05:00
twinaphex d09e0f7da2 (task_autodetect.c) Too much verbose spam 2017-12-31 04:24:42 +01:00
gblues 704cc61fd8 Fix bug in autodetect macro, gamepad now works properly
== DETAILS
The gamepad didn't work because I had tried to rename the pad from
'WIIU Gamepad' to 'WiiU Gamepad'.

I added some debug logging and (to cut out a lot of trial-and-error)
discovered that the reason it didn't work was because a bug in a macro
was  using the define literally instead of substituting it (so e.g.
the autodetect handler was trying to match 'WiiU Gamepad' against the
literal string 'PAD_NAME_WIIU_GAMEPAD').

- Fixed the macro bug
- Left a minimal amount of the debug logging in place; may come in
  handy for someone else.
- Updated wpad/kpad/hidpad to use the define constants

== TESTING
Did a test build and confirmed the gamepad responded.
2017-12-30 04:43:33 +01:00
twinaphex 7b5547d368 Try to be safer with strlcpy calls 2017-12-28 05:56:45 +01:00
David Walters adffa5fc4c Fixes for overlay buttons 2017-12-17 12:36:18 +00: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 0f7de204f7 Last batch of whitespace cleanup (post-rebase)
-- looks like a few files committed with DOS line endings
2017-12-12 00:24:46 -08: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 e62e9233d7 Add intfstream_get_size 2017-12-11 13:21:44 +01:00
twinaphex 61d3f90cae Add hint defines to libretro.h 2017-12-11 12:53:47 +01:00
twinaphex 38e6d2443f Change functions 2017-12-11 12:31:14 +01:00
twinaphex 8aa4d6d148 Move convenience functions to interface_stream.c 2017-12-11 12:23:40 +01:00
twinaphex 6897f9a987 Pass hints to intfstream_open_file 2017-12-11 12:20:06 +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
David Walters 004c1d2f0a Fix for relative paths being normalised and generating a duplicate history entry. 2017-12-08 23:37:07 +00:00
Brad Parker b0445e1e21 Bliss-Box: Work around Windows sharing violation bug by trying to open device as read/write if read-only fails. Show OSD message if it still fails. 2017-12-07 17:47:20 -05:00
David Walters 609bcb4dc2 fix device indexing 2017-12-05 22:03:56 +00:00
Brad Parker 4efc8453c2 buildfix for certain mingw environments 2017-12-02 15:59:42 -05:00
twinaphex 2608fd1550 (task_autodetect.c) Cleanups 2017-12-02 11:36:22 +01:00
Brad Parker 067f5bcd16 blissbox: add 4-Play to overridden hid name 2017-12-01 22:40:17 -05:00
Brad Parker 0eb8c47166 try to fix lack of GUID type on buildbot that I cannot reproduce 2017-12-01 14:38:13 -05:00
Brad Parker b9394846dc blissbox: use win32 HID API to get pad type on windows, libusb seems broken there 2017-12-01 14:07:40 -05:00
Brad Parker 5a2dff0ff1 only use libusb code if we have support for it 2017-11-28 22:32:41 -05:00
Brad Parker def24ef8eb blissbox: print message if detecting update mode or old firmware versions, override vid/pid check for autoconfig profiles, misc comments 2017-11-28 21:25:54 -05:00
Brad Parker 2dd64d9c11 Initial blissbox support, requires firmware 2.0. Currently limited to platforms with libusb support. 2017-11-28 18:25:12 -05:00
twinaphex d75c187c5b Don't show 'Scanning of Directory Finished' if we are scanning a
file instead
2017-11-27 07:04:52 +01:00
twinaphex e35394d4bd Fix MSVC 2003 build 2017-11-26 22:41:34 +01:00
radius 1003e681cc don't assume the core never has content 2017-11-26 11:33:02 -05:00
twinaphex 5e3eb437ac Change RARCH_ERR invocations 2017-11-26 00:57:02 +01:00
twinaphex b4ac3e7b2f Cleanups 2017-11-25 23:06:56 +01:00
twinaphex 8cc2e9bade Cleanups 2017-11-25 23:06:25 +01:00
twinaphex ca616f3e32 Cleanup 2017-11-25 22:33:43 +01:00
Brian Koropoff fb5e788c1e task_database: fix crash from Windows-incomptabile format string 2017-11-24 18:17:43 -08:00
Brian Koropoff 711877b056 content: preserve info for history/favorites
If the content came from a playlist, use the original label.
Preserve the core path and name in the favorites list.
2017-11-17 16:55:32 -08:00
Brian Koropoff bedf65e72e scanner: prioritize databases with recent matches
This should improve performance when scanning many files
in a row that all match against the same database, which is
the expectation.
2017-11-17 16:53:49 -08:00
Brian Koropoff b668193923 scanner: allow matching archives by member
This allows more flexible detection of content packaged as multiple
compressed files (e.g. MAME).
2017-11-17 16:53:49 -08:00
twinaphex e5d4e2ac0a Silence a lot of warnings 2017-11-06 19:13:54 +01:00
Twinaphex 7ba2797032
Merge pull request #5629 from lunixoid/master
Fixed twice assigned values
2017-10-31 06:23:55 +01:00
Roman Kalashnikov 400b27a227
Fixed twice assigned values 2017-10-31 00:26:41 +03: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
Jean-André Santoni bd17c11350 Fix gamecube scanning 2017-10-27 15:17:18 +07:00
Jean-André Santoni 2ddba6770d Start implementing gamecube scanning 2017-10-27 15:17:18 +07:00
Jean-André Santoni 93ee38af05 Add gamecube magic number 2017-10-27 15:17:18 +07:00
orbea 33eb1f9e28 Fix regressions from commit 538d51553c. 2017-10-23 05:39:54 -07:00
orbea 538d51553c When starting content from the cli open the quick menu.
Fix https://github.com/libretro/RetroArch/issues/5554
2017-10-22 08:07:37 -07:00
Brad Parker a7c8cc88e5 win32: support local multibyte encoding for file paths 2017-10-14 23:13: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
Higor Eurípedes 41024fbb0a Fix conditional jump on uninitialized data
This fixes a bug introduced in 862cf48108
2017-10-03 19:54:32 -03: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
Alcaro b97853a536 Rename STRING_REP_ULONG to STRING_REP_USIZE 2017-10-02 22:51:51 +02:00
Brad Parker 7a6d2cb5e6 set list to NULL after free in case autoconfig directory is empty 2017-09-30 19:03:39 -04:00
twinaphex 45ce8bf773 Cleanups 2017-09-30 20:45:06 +02:00
twinaphex de6b1bcbf0 Fix another Coverity error 2017-09-30 17:11:51 +02:00
twinaphex 73d1539bb0 Fix another Coverity error 2017-09-30 17:08:42 +02:00
twinaphex 2a8b74eeb9 Fix some Coverity errors 2017-09-30 16:52:41 +02:00
twinaphex f61b9e1747 Cleanup 2017-09-30 08:24:01 +02:00
twinaphex 063343e538 Simplify this 2017-09-30 07:29:19 +02:00
Brad Parker c856a36a58 more null checks 2017-09-30 01:18:40 -04:00
twinaphex 00ea9be8fc Be safer 2017-09-30 06:38:53 +02:00
twinaphex ff926439ac Fix this up 2017-09-30 06:29:07 +02:00
twinaphex 5fd05c6b56 There were some unused variables 2017-09-30 06:25:41 +02:00
twinaphex eae2217c6d Cleanup 2017-09-30 06:23:23 +02:00
twinaphex 3040d1da36 (task_database.c) Simplify conditionals 2017-09-30 06:21:38 +02:00
twinaphex f323168251 Simplify conditionals 2017-09-30 06:08:09 +02:00
twinaphex dc2664a4ef Reorder variables 2017-09-29 22:58:32 +02:00
twinaphex 57ded65189 (task_save.c) Use malloc 2017-09-29 22:40:31 +02:00
twinaphex 862cf48108 (task_image.c) Don't use calloc 2017-09-29 22:36:48 +02:00
twinaphex 127d98fb68 Rewrite path from nbio struct 2017-09-29 22:16:17 +02:00
twinaphex bae31a318d Prevent memory leak 2017-09-29 21:32:05 +02:00
twinaphex 3490c3dbc5 Cleanups 2017-09-29 20:51:20 +02:00
twinaphex 3090f3ff3a (task_database.c) Rewrite char arrays 2017-09-29 20:47:54 +02:00
twinaphex 819e3fb02a Initialize struct 2017-09-29 17:06:38 +02:00
Twinaphex f713a30705 Update task_autodetect.c 2017-09-29 15:08:09 +02:00
twinaphex 5951bed07d Make stdin an option 2017-09-29 06:16:35 +02:00
twinaphex f34250e38e Buildfix 2017-09-27 23:55:54 +02:00
twinaphex e7d41f6ea7 Cleanup 2017-09-27 23:54:31 +02:00
twinaphex fcf6228dce Turn into char pointer array 2017-09-27 20:11:44 +02:00
twinaphex b79f95668b Turn it into char pointer array 2017-09-27 20:08:37 +02:00
twinaphex 6cf6d46e4b Try silencing more warnings - do something with return value 2017-09-26 03:51:50 +02:00
twinaphex cc8e897222 C89_BUILD fixes 2017-09-22 05:12:26 +02:00
twinaphex e74da12d26 Fix another memory leak 2017-09-22 00:03:40 +02:00
twinaphex 50d48139a3 Fix some more memory leaks 2017-09-21 23:38:29 +02:00
twinaphex 1a77c383b9 Fix plethora of memory leaks again 2017-09-21 21:33:13 +02:00
twinaphex 0f80e31382 task_database.c - cleanups 2017-09-21 19:57:10 +02:00
Twinaphex cff35f3611 Fix warning - wrong type used 2017-09-21 19:24:42 +02:00
Brian Koropoff 2cfedab339 task_database_cue: only return error when errno would be set
On a short read, errno will be 0, and returning 0 without
setting system_name will cause a crash later.  Just continue
to the next magic number instead.
2017-09-20 21:24:59 -07:00
twinaphex 0002912328 Change size of variables 2017-09-20 16:35:18 +02:00
twinaphex 808a723969 Fix memory leaks 2017-09-20 12:18:31 +02:00
twinaphex ac732ecdb0 Fix memory leak 2017-09-20 12:13:44 +02:00
twinaphex 37715114ae Cleanup 2017-09-20 09:55:53 +02:00
Aaron Oneal 4a929bd8e2 Optimize scanning using directory name hint
As discussed in issue #5440, directory scans are slow when compressed files must be checked against multiple databases. This commit adds support to hint to the scanner that a particular database should be used so that only a single scan is required. If the directory name being scanned matches the database name then that single database is selected.
2017-09-19 16:58:28 -07:00
Aaron Oneal 6ac4486f4d Fix typo from 9a76a93ea that broke the build 2017-09-19 16:49:45 -07:00
Twinaphex 9a76a93ea8 OSX buildfixes/cleanups 2017-09-19 21:37:51 +02:00
twinaphex e8f39f004e MSVC buildfixes 2017-09-19 21:29:28 +02:00
Twinaphex ee06a8f175 Merge pull request #5447 from bkoropoff/scanning2
More scanning rework
2017-09-19 15:46:04 +02:00
Aaron Oneal fb8fe84684 Fix archive scanning
Archive scans were broken for cores like Atari 5200 and Commodore 64 because archive contents were skipped if a core reported it supported compressed files. The problem is, it's a false assumption that just because a core supports compressed files that the content database contains CRCs for compressed files.

Instead of adding the contents of every compressed file to the scan list ahead of time, the patched logic now checks for the CRC of the archive itself as it always has but then adds the archive contents to the scan list if the archive itself is no match. This maintains the logic of adding only the archive if the core supports compressed files and the archive CRC matches but also allows for deeper content scans when there is no match.

The patch also removes `core_info_unsupported_content_path` as it was redundant with existing `core_info_database_supports_content_path` logic.
2017-09-18 23:15:28 -07:00
Brian Koropoff d4beeeda33 task_database: skip serials for the right file type! 2017-09-18 09:03:43 -07:00
Brian Koropoff 84edc8ffb0 task_database: prune files referenced from cue/gdi files
Since we use cue/gdi files to find the right track file to
scan, don't bother scanning them separately.
2017-09-18 09:03:43 -07:00
Brian Koropoff 46e78e9d1b task_database: fix parsing CUEs with one track 2017-09-18 09:03:43 -07:00
Brian Koropoff c6c090052e task_database: fix memory leak 2017-09-18 09:03:43 -07:00
Brian Koropoff 6c1044a699 task_database: support GDI files 2017-09-18 09:03:43 -07:00
Brian Koropoff fa6d0fac67 task_database: more scanning rework
- Use the primary (largest data) track for CRC identification, as it
  seems least likely to be shared among multiple discs
- CRC the primary track when importing a loose .cue file.
- If multiple tracks are in the same file, CRC the correct chunk
2017-09-18 09:03:43 -07:00
Brian Koropoff edf90d250f task_database: fix memory leak in error path 2017-09-18 09:00:39 -07:00
twinaphex 49cf80db10 Fix resource leaks 2017-09-18 15:57:05 +02:00
Twinaphex 6648ebed0d Silence some warnings 2017-09-18 11:56:59 +02:00
Brian Koropoff 5a3969d4fa task_database: rework cd scanning
Support chd files.  Fall back to using the CRC32 of the last track
of CDs if a serial number is not available.  This requires new
database files, but is necessary for chd scanning to work.
2017-09-17 02:11:07 -07:00
twinaphex b51a19da5c Fix memory leak 2017-09-12 05:26:59 +02:00
twinaphex c1f60c1aa6 task_database_cue.c - reduce stack usage 2017-09-12 05:04:27 +02:00
twinaphex c1c42cac6b (task_database.c) Reduce stack usage 2017-09-12 05:00:22 +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 91b1afad0a (dirs.c/task_content.c) reduce stack usage 2017-09-10 21:42:24 +02:00
twinaphex 750621e28c (tasks/task_content.c) Reduce stack usage 2017-09-09 23:17:28 +02:00
twinaphex 6df9c7ca30 Cleanup 2017-09-09 20:10:28 +02:00
Twinaphex ca6a7578e4 Merge pull request #5407 from aarononeal/hotfix/slowscan
Fix slow content scans.
2017-09-08 20:22:33 +02:00
Brad Parker 07566c51a1 VC6 buildfixes, add Makefile.griffin target for it 2017-09-07 11:50:10 -04:00
Aaron Oneal e3f4e0d71a Fix ISO scan crash from buffer overflow
Recent additions in commit #bbb2a7d6f to scan ISO files with ASCII characters overflowed the serial number buffer and caused a crash. This fix limits the read to 15 bytes which is all that is actually required.
2017-09-06 23:37:46 -07:00
Aaron Oneal 48550235d5 Fix slow content scans.
The check for unsupported content was reversed which was causing files to be checked against every database. Correcting this improves performance drastically. This appears to have been broken since at least commit #fc1f2cdcf.
2017-09-06 20:51:37 -07:00
Brad Parker 0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
twinaphex e16371b8a5 Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
twinaphex af477ff317 C89 buildfix 2017-08-06 17:11:13 +02:00
radius cf8783644d allow screenshots into content dir via bool setting in addition of the empty string 2017-08-05 13:57:24 -05:00
Twinaphex d11b9e80b4 Merge pull request #5244 from rtissera/modsupport
Add MOD/S3M/XM support to audio mixer (libretro-common) through micromod/ibxm
2017-08-04 20:36:55 +02:00
Romain Tisserand cbe2d9a941 Preliminary MOD/S3M/XM support through ibmx library (part of micromod repository) 2017-08-04 15:05:29 +02:00
radius 3a3d9cd41e if swap override is not specified it should be false 2017-08-04 01:37:16 -05:00
twinaphex 50b838d8ed Cleanups 2017-07-30 10:11:41 +02:00
Rob Loach bbb2a7d6f4
Add serial detection for Wii 2017-07-29 23:23:05 -04:00
Brad Parker 5733d8ebd5 move content list builder into scanner task with progress, fixes menu freeze with large playlists 2017-07-09 00:44:02 -04:00
Twinaphex 6995154a9a Merge pull request #5133 from fr500/master
Fix #5091
2017-07-01 04:35:59 +02:00
twinaphex e9f9702a2d (playlist.c) Don't expose struct details to outside 2017-07-01 03:38:36 +02:00
radius 0a7968761f improve logging 2017-06-30 20:05:30 -05:00
twinaphex b11620e1eb Add retro_timers.h/retro_math.h 2017-06-28 04:41:38 +02:00
twinaphex 6af5bd01bf Merge retro_stat and file_path 2017-06-16 15:00:11 +02:00
twinaphex 6c81007eb9 Should hopefully fix scanning of PS1 games 2017-06-07 11:12:11 +02:00
twinaphex c7b45aaf80 warning fix for C89_BUILD 2017-06-06 23:22:20 +02:00
twinaphex f5225a479e (task_database_cue.c) Use string_is_equal instead 2017-06-06 10:20:34 +02:00
twinaphex 3d54afdc1b Change to string_is_equal 2017-06-06 09:46:13 +02:00
twinaphex 6b638cae8b prevent uninitialized variable 2017-05-31 02:21:43 +02: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 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 dfae380f33 Backport patches -
- Attempt to skip cheevos when path is of media type
- Don't do CRC32 encoding for media types
2017-05-29 20:26:10 +02:00
twinaphex 9fa871ccf9 Buildfixes for consoles 2017-05-28 18:33:44 +02:00
twinaphex cf2f8f6489 Prevent passing NULL/empty strings to memcmp 2017-05-28 18:07:00 +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
radius f019b434ef resume game immediately if it was already underway 2017-05-27 20:21:44 -05:00
twinaphex 9438545bca Add music tab for non-ffmpeg enabled builds now; add 'Run'
and 'Add to mixer' options when selecting Ogg/WAV files
2017-05-27 23:56:10 +02:00
aliaspider bf7d19f401 skip loading a core when it is already active when starting a netplay
game.
2017-05-24 15:10:31 +01:00
radius a98c2c38c0 update copyrights 2017-05-23 19:55:47 -05:00
Twinaphex 50fc71a0a6 Merge pull request #4957 from fr500/fixes
[lobby] allow connecting without reloading content
2017-05-22 08:23:24 +02:00
aliaspider 634de19dc9 (WiiU) enable libretrodb. 2017-05-22 06:07:27 +01:00
radius bae2110bb4 cleanup conditionals 2017-05-21 23:43:12 -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
aliaspider eede1a4978 no need to swap endianess here. 2017-05-22 05:26:13 +01:00
twinaphex 4333e3d5e7 Cleanups 2017-05-20 14:02:16 +02:00
twinaphex a87f3ae3cd Prevent explicit NULL pointer dereference warning 2017-05-19 18:54:40 +02:00
twinaphex c53bb90b75 Get rid of error_msg label 2017-05-18 08:04:24 +02:00
twinaphex 82d37d2036 Don't loop audio files by default 2017-05-18 07:27:41 +02:00
twinaphex 5343648dc9 Start creating state machien for audio mixer streams 2017-05-18 06:16:16 +02:00
twinaphex 312a2b5c80 Cleanups/try to prevent memory leaks with task_audio_mixer.c 2017-05-18 05:12:41 +02:00
twinaphex 668813cca9 (task_image.c) Refactor code 2017-05-18 01:31:14 +02:00
twinaphex 9a90477c6d Reimplement task_audio_mixer.c 2017-05-18 01:19:47 +02:00
twinaphex b3faed3906 Remove NBIO_STATUS_TRANSFER_PARSE_FREE to NBIO_STATUS_TRANSFER_FINISHED 2017-05-18 00:39:39 +02:00
twinaphex 4ad8d3c917 Remove NBIO_STATUS_POLL 2017-05-18 00:09:17 +02:00
twinaphex 80512800e1 (task_audio_mixer.c) Further work on task_audio_mixer.c 2017-05-17 14:13:02 +02:00
twinaphex 21341c5b3a Rework task_audio_mixer.c to use NBIO 2017-05-17 14:04:33 +02:00
radius 6e45af3858 look into the history playlist too 2017-05-17 02:08:17 -05:00
twinaphex 1bf0175da4 Try to prevent string message leaking in tasks 2017-05-16 04:50:20 +02:00
twinaphex 126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
twinaphex 8eca08c6ac Start using string_is_equal_fast/string_is_not_equal_fast macros
instead of straight memcmp
2017-05-16 03:20:59 +02:00
twinaphex 7e89335392 (task_wifi.c) Prevent memory leak for title 2017-05-16 02:52:30 +02:00
twinaphex 8e76c4a131 Prevent title memory leak 2017-05-16 02:48:54 +02:00
twinaphex 2f9eb86a59 Cleanup 2017-05-16 00:02:26 +02:00
twinaphex c21abd28f8 Implement audio_mixer_stopped differently 2017-05-15 23:15:22 +02:00
twinaphex b8cea125e4 Create stub function for looping sounds 2017-05-15 23:03:54 +02:00
twinaphex 69f9bc840d Remove unused variable 2017-05-15 19:16:40 +02:00
twinaphex 5fc5cb4962 Cleanups 2017-05-15 11:25:45 +02:00
twinaphex 67610b8263 Update task_audio_mixer.c 2017-05-15 11:07:12 +02:00
twinaphex 375b588847 Cleanups 2017-05-15 09:29:44 +02:00
twinaphex bf3188eac4 Combine runloop_ctl and rarch_ctl 2017-05-15 05:06:23 +02:00
twinaphex e2c7671e9f Create rarch_menu_running/rarch_menu_running_finished 2017-05-15 04:31:40 +02:00
twinaphex b9148c1d70 Cleanups 2017-05-15 02:50:14 +02:00
twinaphex 8bdcb2f123 Push callback to task_push_wifi_scan 2017-05-15 02:44:24 +02:00
twinaphex 56fb642119 Rewrite task_netplay_lan_scan.c - pass callback function to task 2017-05-15 02:09:26 +02:00
twinaphex c898ef1d6d Attempt to copy over audio mixer data 2017-05-15 01:28:46 +02:00
twinaphex 949a5c76fe Cleanup 2017-05-14 23:58:48 +02:00
twinaphex 3410d5c4e4 Cleanups 2017-05-14 23:36:30 +02:00
twinaphex 3afd2497d2 Add test 2017-05-14 23:27:03 +02:00
twinaphex b0746a4910 Update 2017-05-14 23:14:50 +02:00
twinaphex dd4146e302 Try to write initial implementation of audio mixer task 2017-05-14 23:12:27 +02:00
twinaphex b13ca2df97 (task_patch.c) Cleanup 2017-05-14 22:23:05 +02:00
twinaphex 80d9d1f143 Rewrite task_queue 2017-05-14 20:43:48 +02:00
twinaphex c6dd51da35 Cleanups 2017-05-14 20:25:13 +02:00
twinaphex 9e26332c48 Cleanups 2017-05-14 20:23:10 +02:00
twinaphex ed40b13ea0 (task_image.c) Cleanups 2017-05-14 17:32:07 +02:00
twinaphex f98473b9da (task_image.c) Cleanups 2017-05-14 08:09:21 +02:00
twinaphex a4ac0df389 (task_image.c) Cleanups 2017-05-14 08:06:40 +02:00
twinaphex 13d6827689 (task_image.c) Cleanups 2017-05-14 07:58:43 +02:00
twinaphex f70da4c2e2 Cleanups 2017-05-14 05:06:01 +02:00
twinaphex 2df6b201da Cleanup 2017-05-14 05:02:17 +02:00
twinaphex fe56e4ffea Grab from global pointer 2017-05-14 05:00:24 +02:00
twinaphex e6bcb64ced Add name_ips/name_bps/name_ups 2017-05-14 04:52:34 +02:00
twinaphex 70457e06d8 Cleanups 2017-05-14 04:50:57 +02:00
twinaphex e5ed82858f C89_BUILD buildfix 2017-05-14 03:24:59 +02:00
twinaphex def3343272 Add empty audio_mixer file 2017-05-14 02:03:40 +02:00
twinaphex 88dbbb284d Add ips_pref/bps_pref/ups_pref to content_information_ctx 2017-05-14 01:12:47 +02:00
twinaphex 88c04be7a4 Cleanups 2017-05-14 01:04:37 +02:00
twinaphex 7dfbfef995 Cleanups 2017-05-14 00:54:58 +02:00
twinaphex 71499abf1f (task_patch.c) Cleanups 2017-05-14 00:52:56 +02:00
twinaphex 6dd3a84bc9 Cleanup 2017-05-13 23:41:13 +02:00
twinaphex b75f242a7f Cleanups 2017-05-13 22:35:10 +02:00
twinaphex 484fff5e28 Cleanups 2017-05-13 22:30:45 +02:00
twinaphex bd7970b9b7 Cleanups 2017-05-13 22:28:19 +02:00
twinaphex 8ae708576f task_patch.c - cleanups 2017-05-13 22:21:57 +02:00
twinaphex b22d7902f1 Turn macro back into function 2017-05-13 19:37:16 +02:00
twinaphex 72fe4a1e3c CLeanups 2017-05-13 18:10:26 +02:00
twinaphex 72bd83b8d1 Cleanups to tasks_internal.h 2017-05-13 18:08:37 +02:00
twinaphex 541c6e6c41 (task_image.c) Cleanups 2017-05-13 08:06:52 +02:00
twinaphex 43dcc3d501 Add NBIO_TYPE_OGG/NBIO_TYPE_WAV 2017-05-13 08:03:00 +02:00
twinaphex 42ebe7a7ad Merge runloop.c and retroarch.c 2017-05-11 09:11:46 +02:00
twinaphex 2906bec7a8 Create input_driver_get_uint 2017-05-11 07:36:21 +02:00
radius 4af9a92f76 fix 3829 2017-05-09 22:10:46 -05:00
twinaphex 06f5f635ca Cleanups 2017-05-09 20:10:58 +02:00
twinaphex 476738cc5c Cleanups 2017-05-09 20:08:40 +02:00
twinaphex 739495027b Cleanups 2017-05-09 20:03:39 +02:00
twinaphex 7ed57ee77d (task_image) Cleanups 2017-05-09 20:01:42 +02:00
twinaphex da1ab24c57 Cleanups 2017-05-09 07:13:47 +02:00
twinaphex 5245590bae (audio_mixer.c) Prevent null pointer dereference 2017-05-08 05:55:20 +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 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 03db246f88 Refactor cheevos_is_nes_game 2017-05-06 18:47:16 +02:00
twinaphex 637e8d76ab Create cheevos_is_nes_game 2017-05-06 18:43:45 +02:00
twinaphex 881b18a965 Cleanups 2017-05-06 17:23:19 +02:00
twinaphex 75c45c4f2b Try to avoid warning 2017-05-06 17:15:35 +02:00
twinaphex 88ca3e993c (task_cheevos.c) Use retro_miscellaneous' next_pow2 function 2017-05-06 17:03:53 +02:00
twinaphex de80671658 Simplify content_get_crc 2017-05-06 16:41:22 +02:00
twinaphex 46b1b113e0 Cheevos - buildfix 2017-05-06 06:48:32 +02:00
twinaphex 558cb64438 Don't grab settings pointer during task_overlay_handler 2017-05-06 06:08:24 +02:00
twinaphex 36375cecf8 input_swap_override - Get rid of dependency on settings 2017-05-06 06:01:15 +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 75a5af26c6 Revert "(task_autodetect.c) Set input_swap_override later on"
This reverts commit 582573f324.
2017-05-06 05:42:11 +02:00
twinaphex 582573f324 (task_autodetect.c) Set input_swap_override later on 2017-05-06 05:32:46 +02:00
twinaphex 44b9943738 Cleanups to task_content.c 2017-05-06 05:19:19 +02:00
twinaphex 2c28505e04 Refactor cheevos_load 2017-05-06 05:13:28 +02:00
twinaphex 969403fadb Header include cleanups 2017-04-29 13:20:50 +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 0c6ba894fd task_autodetect.c - cleanups 2017-04-26 18:48:28 +02:00
twinaphex 3087ceb482 Don't go through all these slow wrapper functions 2017-04-25 20:47:21 +02:00
twinaphex f4e5f896a2 Move input.device_name_index to task_autodetect and move it
outside of settings struct
2017-04-25 16:57:44 +02:00
twinaphex c871faa1f5 Move pid/vid arrays out of settings struct and move them
to input_config
2017-04-25 16:49:54 +02:00
twinaphex acf3b22fd3 Go through wrapper functions 2017-04-25 16:36:31 +02:00
twinaphex 6ace8ce66a Rewrite autoconf_binds and move it to task_autodetect.c - take
it out of the settings struct
2017-04-25 16:33:30 +02:00
twinaphex f4b168f9b6 Call functions from task_autodetect.c 2017-04-25 15:53:30 +02:00
twinaphex 7b5b49a5e6 Move autoconfigured variables out of settings struct;
these values are not written back to the config file
2017-04-25 15:49:27 +02:00
twinaphex 15a8f0c485 Wrap some more settings manipulation 2017-04-25 15:31:32 +02:00
twinaphex eb208b170f Fix codepath for HAVE_MENU not being defined 2017-04-23 17:48:45 +02:00
twinaphex 3ec5816259 Rewrite RUNLOOP_CTL_SYSTEM_INFO_GET 2017-04-23 16:41:26 +02:00
twinaphex aea00f1e00 Use memcmp instead of string_is_equal for more instances 2017-04-23 12:17:51 +02:00
twinaphex 6ebd4e139e Rewrite more string_is_equal call invocations as memcmp 2017-04-22 08:51:16 +02:00
twinaphex f9bc2d3783 Use memcmp instead of string_is_equal where possible for
better performance
2017-04-21 22:47:15 +02:00
twinaphex 04223b464a Check for return value of config_get_bool 2017-04-20 21:52:29 +02:00
twinaphex d5821c7f61 Update logs 2017-04-18 05:42:49 +02:00
radius a759cd9a19 allow swapping ok/cancel via autoconf parameter 2017-04-16 16:59:05 -05:00
radius d236b2db58 try to override swap ok/cancel for remote controls 2017-04-16 16:51:54 -05:00
radius 0b2afde90b Partial match is never used and interferes with the fallback mechanism 2017-04-15 10:47:51 -05:00
radius 89829d22b4 [lobby] disable these logs, too verbose for production 2017-04-15 10:47:51 -05:00
radius 40ac2126c9 [lobby] fallback to filename based matching when a match isn't found by CRC, should help users with manually created playlists 2017-04-01 00:19:15 -05:00
radius 74d3915302 fix comments 2017-03-31 23:20:35 -05:00
Jean-André Santoni ff575a3460 PCE-CD magic number detection 2017-03-07 01:16:58 +01:00
Brad Parker c31823aa94 add HTTP POST support 2017-03-05 14:19:34 -05:00
radius e50ea80dfa integrate the rest of the lan scan parameters 2017-02-27 21:24:34 -05:00
radius b719f30b8e add lan games 2017-02-27 19:00:43 -05:00
twinaphex 10bf8d4a8a Backport enlarge char buffers 2017-02-27 09:28:38 +01:00
Twinaphex 216e7bcdaf Silence more warnings on iOS 2017-02-26 21:46:19 +01:00
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
twinaphex b5b87d7735 Avoid 'unused scalar variable' warning 2017-02-23 21:49:51 +01:00
twinaphex 5e6a79c4ac Try to fix Coverity warnings 2017-02-22 01:57:16 +01:00
twinaphex ef5b26350d patch_content - cleanup 2017-02-21 20:38:02 +01:00
twinaphex 7c83071b01 Prevent 'explicit NULL dereferenced' 2017-02-21 20:30:52 +01:00
twinaphex 8b4893965f task_image.c - FIx another REVERSE_INULL coverity warning 2017-02-21 20:29:29 +01:00
twinaphex 4645e7709b Fix another REVERSE_INULL coverity warning 2017-02-21 20:28:49 +01:00
twinaphex 2ed15fbfbc (task_image.c) Fix REVERSE_INULL coverity warning 2017-02-21 20:28:10 +01:00
twinaphex f8576ca88c Fix C89_BUILD again 2017-02-21 19:56:43 +01:00
twinaphex e3ddb75a2a signed/unsigned warning fix 2017-02-21 19:35:22 +01:00
twinaphex 227b862cba Cleanups to task_load_content 2017-02-21 19:09:43 +01:00
twinaphex 85053cb210 Make it unneeded to have to grab settings pointer from
firmware_update_status
2017-02-21 19:06:08 +01:00
twinaphex c215fef8dd Updates 2017-02-21 18:58:03 +01:00
twinaphex f553f3f6bd Cut down on HAVE_MENU ifdefs 2017-02-21 18:55:11 +01:00
twinaphex d789013789 Cut down on some duplicate code 2017-02-21 18:51:47 +01:00
twinaphex 0789fff6df Rename load content tasks 2017-02-21 18:36:47 +01:00
twinaphex d3e8e66b9f Create task_push_load_content_with_current_core_from_companion_ui 2017-02-21 17:29:30 +01:00
twinaphex 03948eafd3 Create task_push_start_builtin_core 2017-02-21 17:22:04 +01:00
twinaphex 9087bc82a0 Add TODO/FIXME note 2017-02-21 17:02:37 +01:00
twinaphex 8206a751f0 Create task_push_load_content_from_cli 2017-02-21 16:59:48 +01:00
twinaphex 1ec7b79ad6 Rename another task 2017-02-21 16:53:02 +01:00
twinaphex d0e49a2d8f Rename some tasks 2017-02-21 16:50:39 +01:00
twinaphex d7fda3016e Update 2017-02-21 16:33:22 +01:00
twinaphex d74f1a56f3 Create load_content_with_new_core_from_companion_ui 2017-02-21 16:30:47 +01:00
twinaphex 4bbf2ab535 Cleanups 2017-02-21 16:11:54 +01:00
twinaphex 36f5504375 Cleanup 2017-02-21 06:37:42 +01:00
Twinaphex c6d255ef63 Merge pull request #4677 from GregorR/netplay-nat-traversal-task-3
Properly conditionalize NAT traversal task on HAVE_NETWORKING
2017-02-21 05:50:03 +01:00
twinaphex 81949ae2fe (task_content.c) Cleanups 2017-02-21 05:31:34 +01:00
Gregor Richards 631586b0b7 Properly conditionalize NAT traversal task on HAVE_NETWORKING 2017-02-20 23:27:50 -05:00
twinaphex a7592c2db7 Create task_load_content_callback function 2017-02-21 05:17:07 +01:00
twinaphex 0e24e2a9ef Cleanup 2017-02-21 05:07:53 +01:00
twinaphex 14297ef0d9 Cleanups 2017-02-21 04:50:26 +01:00
twinaphex b6fcc0dfac Cleanups 2017-02-21 04:47:01 +01:00
twinaphex 0a3cc7da52 Cleanups 2017-02-21 04:43:08 +01:00
twinaphex 409a7769c6 Cleanup task_push_content_load_default 2017-02-21 04:40:57 +01:00
twinaphex 1582a47bb9 Create task_push_content_load_new_content_with_new_core_from_menu 2017-02-21 04:31:03 +01:00
twinaphex f80064e0a3 Cleanup task_push_content_load_default 2017-02-21 04:18:51 +01:00
twinaphex 90b9cf2d46 Cleanups 2017-02-21 04:11:46 +01:00
twinaphex 0b5118423d Create task_push_content_load_nothing_with_new_core_from_menu 2017-02-21 04:07:40 +01:00
twinaphex e075ade748 Cleanups 2017-02-21 03:55:42 +01:00
twinaphex cca72126f2 Create task_push_content_load_nothing_with_current_core_from_menu 2017-02-21 03:54:34 +01:00
twinaphex 96210188b0 Create task_push_content_load_content_from_playlist_from_menu 2017-02-21 03:44:36 +01:00
twinaphex ba16bee5d1 Create task_push_content_load_nothing_with_dummy_core 2017-02-21 03:32:52 +01:00
Gregor Richards 5f723d1bda Moving NAT traversal into a task to avoid blocking the UI. 2017-02-20 19:08:31 -05:00
Andrés 342be9a594 Merge pull request #4669 from fr500/master
fix no playlists + no content edge case
2017-02-19 11:58:30 -05:00
radius f33b6bc226 fix no playlists + no content edge case 2017-02-19 11:58:09 -05:00
bparker06 0231585d06 Merge pull request #4665 from fr500/master
fix #4663
2017-02-18 20:41:58 -05:00
radius e980577531 fix #4663 2017-02-18 20:10:37 -05:00
twinaphex d1aff197b9 Cleanup netplay_lan_scan_callback 2017-02-18 22:12:41 +01:00
twinaphex 7a5ed7cc65 Add filestream_flush and use filestream interface for tasks/task_save.c 2017-02-17 03:03:18 +01:00
radius f00dd6f7c4 update changelog & copyright 2017-02-15 18:25:21 -05:00
radius 3a6c7b96fd prevent null check 2017-02-15 18:15:42 -05:00
Pedro Ribeiro 6659c6af3a Fix dualshock 3 detection bug 2017-02-13 21:52:53 +00:00
Brad Parker 91ebcc0680 revert 6e969d0, but need to investigate if the original change to string_is_equal is valid 2017-02-13 15:37:34 -05:00
Brad Parker 6e969d0bc6 should be !string_is_equal 2017-02-13 15:12:04 -05:00
radius cd17927990 fix contentless netplay! thanks Gregor 2017-02-09 21:22:52 -05:00
radius a33778cb87 fix crashes when trying to connect with contentless cores 2017-02-09 21:10:40 -05:00
radius ee6d76e932 fix message 2017-02-07 00:12:30 -05:00
radius c9015aa9ba attempt autoconf fallback for android 2017-02-07 00:12:30 -05:00
twinaphex e3a1b1859d Fix ./configure --disable-rgui 2017-02-04 09:20:41 +01: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
Juan 2c721a478c Workaround for manual netplay content loading 2017-02-02 16:32:01 -03:00
Andrés 39e7b9ffde Add a few comments 2017-02-02 14:11:20 -05:00
Brad Parker 44040a066a make another netplay string translatable 2017-01-31 13:41:02 -05:00
twinaphex 75133941a9 Fix relative includes 2017-01-31 05:33:42 +01:00
twinaphex 1a5978d7a2 Move patch.c to tasks/task_patch.c 2017-01-31 05:33:13 +01:00
twinaphex ae4f5104a4 Include patch.c inside task_content.c 2017-01-31 04:53:16 +01:00
twinaphex e802c07d71 Silence warning 2017-01-31 03:57:29 +01:00
radius cfb882f4fc add support for no content cores 2017-01-28 22:12:34 -05:00
twinaphex 41349621cf Add extra param to runloop_get_status 2017-01-25 16:57:22 +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 721e9ec083 (task_content.c) Try to use strlcpy instead of snprintf for
certain messages
2017-01-25 02:05:42 +01:00
twinaphex 5577b21f95 (netplay_find_content.c) Try to use strlcpy where possible 2017-01-25 02:00:44 +01:00
Twinaphex 071c4c1f3f Merge pull request #4500 from fr500/master
Refactor the task
2017-01-25 01:56:32 +01:00
radius 9ae228f76e look for the proper extension too 2017-01-24 18:45:26 -05:00
radius b90a23af55 rename variables 2017-01-24 18:39:17 -05:00
radius 080a9632f9 refactor this code to be able to check for proper extension support before loading 2017-01-24 18:35:57 -05:00
Alcaro 6ff36461b4 Fix #4493 in a less incompatible way 2017-01-25 00:34:58 +01:00
twinaphex 6e59a2cce1 Copy buf inside entry first 2017-01-24 16:56:22 +01:00
twinaphex 0006849ed5 use path_remove_extension from libretro-common file_path.c instead 2017-01-24 16:50:40 +01:00
twinaphex 50a7e634c9 Get rid of this log message 2017-01-24 15:15:41 +01:00
Twinaphex a9ceed79fa Silence unused variable warning 2017-01-24 14:15:36 +01:00
Twinaphex 8b02d2bd36 Merge pull request #4494 from fr500/master
better filename matching
2017-01-24 12:10:03 +01:00
radius 8f766574d3 strstr produces lot of false matches, path_remote_extension didn't seem to work so I included my own version 2017-01-23 21:21:26 -05:00
twinaphex 793c894abb (task_screenshot.c) Cleanups 2017-01-24 01:58:48 +01:00
twinaphex 062433491f (task_netplay_find_content.c) Try to prevent new resource leaks 2017-01-24 00:48:40 +01:00
twinaphex d28c138d09 (task_content.c) Cleanups 2017-01-23 21:03:41 +01:00
twinaphex c19a0bdc5d Simplify take_screenshot function 2017-01-23 15:13:31 +01:00
twinaphex 1749941881 Refactor patch.c 2017-01-23 14:56:09 +01:00
twinaphex 4aac4aa2e6 Revert "Use task_set_title"
This reverts commit c867784898.
2017-01-23 14:15:26 +01:00
twinaphex ee46e427ae Revert "Use task_set_title"
This reverts commit 83b1bbe247.
2017-01-23 14:15:14 +01:00
twinaphex 83b1bbe247 Use task_set_title 2017-01-23 13:29:34 +01:00
twinaphex c867784898 Use task_set_title 2017-01-23 13:19:35 +01:00
radius 9f3e2f6ba3 fix msg 2017-01-23 01:00:32 -05:00
radius 732c389f26 fix CRC matching 2017-01-22 23:49:37 -05:00
radius f6b09c25e3 fix CRC matching 2017-01-22 23:41:59 -05:00
radius 8581067d65 merge 2017-01-22 22:49:55 -05:00
radius c421baef0c netplay quick connect fixes 2017-01-22 22:49:01 -05:00
radius 86e332038b netplay quick connect fixes 2017-01-22 22:45:48 -05:00
Brad Parker 7b533c6720 cleanup 2017-01-22 21:56:14 -05:00
radius 2be1355b57 this should work as soon as the server component is updated 2017-01-22 18:57:50 -05:00
radius 3306f5274a add name matching 2017-01-22 18:39:07 -05:00
radius 97c629ebc3 this could be freed before loading so let's prevent that 2017-01-22 17:43:05 -05:00
radius 50f3a3318d cleanup this 2017-01-22 16:02:24 -05: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 c8081bc3df it loads now 2017-01-22 13:52:35 -05:00
radius fc68abebdd find the core from core_info 2017-01-22 13:39:27 -05:00
radius a0e6a24f38 use deferred netplay init 2017-01-22 13:07:30 -05:00
Jean-André Santoni 680d281cb9 Unhardcode CRC 2017-01-22 18:53:33 +01:00
Jean-André Santoni 469aed2e0f Improve the task, with hostname and corename 2017-01-22 18:39:19 +01:00
twinaphex 2f504b4057 (gfx/drivers) Get rid of remaining runloop.h / runloop_ctl
references inside gfx/drivers
2017-01-22 18:17:48 +01:00
Brad Parker 45d4a8865c free task state when finished 2017-01-22 11:33:20 -05:00
Brad Parker 8c216bd233 task title must point to memory that can be freed 2017-01-22 11:31:54 -05:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
Jean-André Santoni 2dee8f77b6 (Netplay) Add a task to find a game from its CRC 2017-01-22 03:17:50 +01:00
twinaphex aa47903520 Prevent 'dereference before null check' 2017-01-18 17:53:25 +01:00
twinaphex a3f5590f41 remove dependence on configuration.h inside task_database.c 2017-01-18 01:23:24 +01:00
twinaphex 6e52a25b86 Attempt to fix 'write to pointer after free' issues 2017-01-14 13:51:20 +01:00
twinaphex add7d26c3d Set device name for xinput/dinput even when autoconfig is
disabled
2017-01-13 04:40:44 +01:00
twinaphex 899601e7bb Do an early return inside menu_shader_manager_init if already initialized 2017-01-11 03:36:35 +01:00
twinaphex f246cc7b40 (task_autodetect.c) Style nits 2017-01-09 11:45:04 +01:00
twinaphex ccca4c303d Set supports_rgba for overlay images 2017-01-08 21:45:43 +01:00
Twinaphex 2834370e09 Revert "allow serial scanner to match PBP" 2017-01-07 05:52:12 +01:00
radius 1866706c75 allow serial scanner to match PBP 2017-01-06 22:05:55 -05:00
twinaphex 6078deb510 (PS3) Fix warnings 2017-01-05 07:48:11 +01:00
twinaphex e75633064a Add 'Y button' callback function for input binds 2017-01-05 04:52:04 +01:00
twinaphex b3c477902c conditional is not necessary 2017-01-03 19:30:11 +01:00
twinaphex 1d6f88b0ec Try to prevent 'write to pointer after free' issues 2017-01-03 19:07:56 +01:00
twinaphex faf939856b Rewrite task_queue.c - get rid of messy internal Rarch code 2017-01-03 18:27:09 +01:00
twinaphex 314fd776e3 (task_screenshot.c) Cleanups 2017-01-03 06:57:55 +01:00
twinaphex 135394d193 Add is_paused member variable to screenshot task state 2017-01-03 04:42:10 +01:00
twinaphex 80519955ca (task_screenshot.c) Nits 2017-01-03 04:40:11 +01:00
twinaphex f6c861cf1a Cleanup 2017-01-03 04:37:52 +01:00
twinaphex 20d313204a Add history_list_enable to screenshot task state 2017-01-03 04:35:13 +01:00
twinaphex 5de111212a (task_screenshot.c) Cleanups 2017-01-03 04:30:02 +01:00
twinaphex be21e30230 task_autodetect.c - cleanup 2017-01-03 03:52:26 +01:00
twinaphex 03818dc780 Always set VID/PID/name for connect tasks 2017-01-02 07:47:38 +01:00
twinaphex 824ba64daa Set autoconfig directory for autodetect task 2017-01-02 05:33:29 +01:00
twinaphex 6d4659a902 (overlay) Reduce dependence on grabbing settings pointer everywhere 2017-01-01 04:12:24 +01:00
twinaphex d3470637ad Add max_users param to autoconfig_params_t 2016-12-31 07:54:38 +01:00
twinaphex 103042de96 Rewrite task_autodetect.c 2016-12-31 07:43:34 +01:00
twinaphex 6faabfeebf Don't use settings struct from thrading functions 2016-12-31 07:03:29 +01:00
twinaphex 5d6bdbc2cd (task_image.c) Cleanup 2016-12-30 05:36:06 +01:00
twinaphex 876a68717e We don't need enum_idx for task_push_image_load 2016-12-30 05:33:04 +01:00
twinaphex 583511c045 nbio handle should be initialized on the thread, not the
main thread
2016-12-30 04:58:58 +01:00
twinaphex 9657bbd998 Get rid of set_rgba/unset_rgba inside image_texture.c 2016-12-29 23:22:40 +01:00
twinaphex 05a899a411 Add nbio_status_flags 2016-12-29 23:14:48 +01:00
twinaphex 6a166faa0c Revert "Remove supports_rgba varaible from image_texture.c"
This reverts commit bd0c97fdc4.
2016-12-29 22:53:10 +01:00
twinaphex bd0c97fdc4 Remove supports_rgba varaible from image_texture.c 2016-12-29 22:39:52 +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 3a581ba8b0 (task_autodetect.c) Solve some threading errors 2016-12-29 05:49:24 +01:00
twinaphex 31aa1d6d19 Fix saved state message 2016-12-28 00:44:29 +01:00
twinaphex 28dedee477 Attempt to prevent crashes in task_image 2016-12-28 00:40:46 +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 2f0c66da34 Use non-C++ comments 2016-12-28 00:14:16 +01:00
twinaphex 89bb4f610d task_http.c - comment this out until we have fixed the threading
errors
2016-12-28 00:11:56 +01:00
twinaphex 141046b45b Add note about race issue 2016-12-27 23:56:32 +01:00
twinaphex ea39d3914e Prevent some heap-use-after-free issues 2016-12-27 23:48:10 +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 1cfc6f571a (RARCH_CONSOLE) Another buildfix 2016-12-27 02:01:22 +01:00
Twinaphex 13536a864b (task_content.c) Prevent warnings 2016-12-27 01:32:58 +01:00
twinaphex d6aae88737 (task_save.c) Cleanups 2016-12-26 18:25:42 +01:00
twinaphex 958a028b0a (task_database.c) Remove unused message queue 2016-12-24 20:36:37 +01:00
twinaphex c27038d9bd (Wii) Fix build 2016-12-24 03:21:29 +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 02f1de920a If we load a ROM from the commandline, it will still get pushed
to the history list
2016-12-22 02:42:22 +01:00
twinaphex 711c4116e0 Be more careful with strdup 2016-12-22 00:43:46 +01:00
twinaphex a91e00026b (task_content.c) Only do strdup when variable is non-empty 2016-12-22 00:42:56 +01:00
twinaphex d39acc3f8e Prevent crash when loading a core like 2048 from the commandline 2016-12-22 00:41:36 +01:00
twinaphex 54a569a085 (task_content.c) Cleanup 2016-12-21 15:31:55 +01:00
twinaphex 9dab728067 Cleanup load_content_from_compressed_archive 2016-12-21 15:30:14 +01:00
twinaphex cb28584883 content_file_init_extract - cleanups 2016-12-21 15:27:08 +01:00
twinaphex a5c52dcc07 (task_content.c) Minor cleanups 2016-12-21 15:23:31 +01:00
twinaphex 52c2e1a501 (task_content.c) Cleanups 2016-12-21 15:21:11 +01:00
twinaphex 5f0efed08b (task_content.c) Attempt to fix some coverity bugs 2016-12-21 02:02:47 +01:00
twinaphex 7e43d9c469 Attempt to fix Coverity ID 158346 2016-12-21 01:45:19 +01:00
twinaphex b114aa9616 (task_content.c) Put public functions last; reorganization 2016-12-21 00:32:01 +01:00
twinaphex 06e010b318 Remove forced message on content load; in preparation for task-ification 2016-12-21 00:30:23 +01:00
twinaphex a2c0073678 content_file_init_subsystem - cleanup 2016-12-21 00:19:22 +01:00
twinaphex 12255c9f5c Use error_string in order to print (log) messages 2016-12-21 00:16:25 +01:00
twinaphex c13639147e (task_load_content) Cleanups 2016-12-21 00:06:34 +01:00
twinaphex 7914dda336 Cleanup 2016-12-21 00:02:09 +01:00
twinaphex 4f3a715514 Use content_ctx inside task_push_content_load_default function 2016-12-21 00:00:59 +01:00
twinaphex 710fc20314 Cleanup task_push_content_update_firmware_status 2016-12-20 23:45:37 +01:00
twinaphex 8cf2cbe86d Get rid of another sys_info variable 2016-12-20 23:39:31 +01:00
twinaphex bb0c03afff Cleanup content_file_init_subsystem 2016-12-20 23:36:39 +01:00
twinaphex b9602ef57e (task_content.c) Reduce dependency on settings_t struct 2016-12-20 23:25:35 +01:00
twinaphex 8c8aaf5bb8 Grab system info once in content_init instead of grabbing it
all the time
2016-12-20 23:12:56 +01:00
twinaphex ffdcce9511 (task_content.c) Rename local variable to sys_info 2016-12-20 22:55:58 +01:00
twinaphex e28ace8b0c (task_content.c) Use string_is_empty 2016-12-20 22:51:29 +01:00
twinaphex bdc05e9c10 (task_content.c) Rename function 2016-12-20 22:49:26 +01:00
twinaphex af2393b821 Remove content_push_to_history_playlist 2016-12-20 22:48:10 +01:00
twinaphex 3f1064d001 Cleanup 2016-12-20 22:35:59 +01:00
twinaphex 336d825525 (task_content.c) Allocate error_string and only print runloop
message at exit of function
2016-12-20 22:32:54 +01:00
twinaphex eec1f8a5cf Cleanup 2016-12-20 22:05:40 +01:00
twinaphex 59ca04dad2 (task_content.c) Cleanups 2016-12-20 22:03:04 +01:00
twinaphex 76ada44fb0 (task_powerstate.c) Cleanup 2016-12-20 21:46:12 +01:00
twinaphex c8dc0fef0c Cleanups - turn some functions into static functions and move
to task_database.c
2016-12-20 21:08:31 +01:00
Brad Parker d20f45c9d4 make battery level check into a task 2016-12-20 09:18:07 -05:00
twinaphex 3c7c667cf5 Get rid of some implicit memsets 2016-12-19 19:04:52 +01:00
twinaphex 4c9f2e41ff Get rid of some implicit memsets 2016-12-19 14:04:37 +01:00
twinaphex 96ffd8e025 Revert "Remove HAVE_COMPRESSION ifdefs in file_path.c"
This reverts commit 4103b70833.
2016-12-17 12:55:38 +01:00
twinaphex 4103b70833 Remove HAVE_COMPRESSION ifdefs in file_path.c 2016-12-17 12:20:49 +01:00
twinaphex 5364b0b837 Move compression-related code outside of libretro-common file_path.c
and move it into RetroArch's file_path_special.c file instead
2016-12-17 11:54:46 +01:00
twinaphex 2153f3f011 Check if autodetect is enabled at beginning of connect task 2016-12-16 15:18:04 +01:00
twinaphex 209305f944 Connect task now sets PID/VID too 2016-12-16 14:02:11 +01:00
twinaphex d9def056e7 The 'connect' task now sets the device name upon completion 2016-12-16 12:33:56 +01:00
twinaphex 62f5b2d3c3 The disconnect task now clears the device name 2016-12-16 12:20:31 +01:00
twinaphex ee7787dd52 (task_decompress.c) Don't log this 2016-12-15 21:21:39 +01:00
twinaphex f80d838aa0 Revert "make state screenshots non-gpu"
This reverts commit e0989d0b9e.
2016-12-12 14:14:45 +01:00
radius e0989d0b9e make state screenshots non-gpu 2016-12-11 12:30:20 -05:00
twinaphex a5a594f619 Don't push screenshot to image history if we are just saving
a state
2016-12-11 10:34:12 +01:00
twinaphex b3aef50dff Move update_firmware_status to tasks/task_content.c 2016-12-06 08:28:26 +01:00
twinaphex 0d1fcbbe1e (task_screenshot.c) Prevent memory leak 2016-12-06 06:56:07 +01:00
twinaphex 1b3b0c26d1 take_screenshot - simplifications 2016-12-06 06:54:30 +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 81096a27b9 Fix one Coverity issue 2016-12-05 07:06:32 +01:00
twinaphex d0cc1afe0a (tasks) Style nits 2016-12-04 19:12:35 +01:00
twinaphex 47274607f4 (tasks) * Respect 80-char limit - * Fix leaking of ssid_list in task_wifi.c 2016-12-04 19:08:24 +01:00
twinaphex 1386476792 Cleanups 2016-12-04 05:53:44 +01:00
twinaphex 3dc944977c (task_autodetect.c) Fix memory leak 2016-12-04 05:50:50 +01:00
twinaphex e2b27f6dc7 (tasks) Cleanups 2016-12-04 04:30:43 +01:00
twinaphex 0c74d19112 (tasks/task_save) Replace some instances of runloop_msg_queue_push 2016-12-03 06:46:53 +01:00
twinaphex 697760d580 Silence some warnings 2016-12-03 06:09:55 +01:00
Gregor Richards 0577749fae Netplay LAN scanning is go! (sort of) 2016-12-02 22:40:26 -05:00
Gregor Richards addff325d0 Netplay discovery LAN scanning task (incomplete) 2016-12-02 18:56:29 -05:00
twinaphex 642310e08a Remove runloop.h header include from many files 2016-12-02 06:19:27 +01:00
Jean-André Santoni b8db914af4 Fix savestate thumbnail path when screenshot dir is set 2016-12-01 23:24:16 +01:00
Twinaphex 4c41c7a3d0 Fix for when a device is not able to be autoconfigured - properly finish
the task then
2016-12-01 23:03:09 +01:00
twinaphex 02c0e8013b C89_BUILD fixes 2016-12-01 22:59:00 +01:00
twinaphex 230d7105fd CXX_BUILD fix 2016-12-01 22:57:43 +01:00
twinaphex 22e1854b8c Get rid of runloop.h header include 2016-12-01 22:49:16 +01:00
Jean-André Santoni 2cc4bef3aa Do the screenshot in the savestate callback 2016-12-01 22:39:13 +01:00
twinaphex 24a689c274 Cleanup 2016-12-01 22:38:19 +01:00
twinaphex 82bea3ba9f Remove FIXME/TODO 2016-12-01 22:37:27 +01:00
twinaphex 3db866e5dc disconnect action is a task now too 2016-12-01 22:36:38 +01:00
twinaphex 4a894afc57 Don't make it a blocking task 2016-12-01 22:19:09 +01:00
twinaphex 6a2df4615b task_autodetect.c- style nits 2016-12-01 22:17:36 +01:00
twinaphex 305b2becbd input_autoconfigure_connect - now a task 2016-12-01 22:16:06 +01:00
Jean-André Santoni cbc6bc942e Merge branch 'master' of https://github.com/libretro/RetroArch 2016-12-01 20:45:23 +01:00
twinaphex 25cc9446e8 Simplify input_autoconfigure_connect 2016-12-01 20:41:41 +01:00
Jean-André Santoni db8f47cb58 Set task_screenshot to non blocking 2016-12-01 20:40:54 +01:00
twinaphex f1dd06db20 (task_autodetect.c) Remove header include 2016-12-01 20:39:42 +01:00
twinaphex d3c22cb0e4 Move input/input_autodetect.c to tasks/task_autodetect.c 2016-12-01 20:38:20 +01:00
Jean-André Santoni 41f1063da3 Hide the screenshot message 2016-12-01 20:32:13 +01:00
Jean-André Santoni d142ccca02 Never add the date in the screenshot filename if it is a savestate thumbnail 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
Jean-André Santoni f41e420b44 Unhardcode more strings 2016-12-01 00:49:48 +01:00
Twinaphex d26905389b Cleanup 2016-11-30 17:38:14 +01:00
twinaphex 981cbf93c9 Add task_wifi to Griffin 2016-11-30 17:37:42 +01:00
radius 5cf668c302 set the option as false by default for the time being 2016-11-30 10:29:34 -05:00
Twinaphex 12b17a8319 Merge pull request #4109 from libretro/async-wifi
Async wifi
2016-11-30 16:10:32 +01:00
radius 7f62fee375 fix close content after loading has been blocked 2016-11-29 23:46:07 -05:00
radius 2e7821e337 add a toggle to the firmware check so it can be overruled 2016-11-29 23:22:22 -05:00
radius 4f760352f4 don't show the message for ten seconds 2016-11-29 22:23:15 -05:00
radius 1b3789edde better firmware checking 2016-11-29 22:21:44 -05:00
Jean-André Santoni 99ab41be4a Don't use structs in global_t. Also simplifies the async wifi code. 2016-11-30 01:21:21 +01:00
Jean-André Santoni bb7a96e9a8 Async Wi-Fi scan 2016-11-30 00:18:27 +01:00
Jean-André Santoni dc15a880f7 Fix screenshots in content_dir 2016-11-28 01:00:14 +01:00
twinaphex 80798ab924 Remove hacky 'OSK Keyboard' overlay 2016-11-27 02:46:09 +01:00
twinaphex a50a47b89f (task_screenshot.c) Cleanup 2016-11-21 09:06:31 +01:00
twinaphex a7585f9988 Move video_frame.h to libretro-common 2016-11-08 15:35:24 +01:00
twinaphex 279a90a01b Remove dependencies from gfx/video_frame.c 2016-11-08 15:26:15 +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
Jean-André Santoni 6cc14a4fb9 Add missing copyright mention on some files 2016-10-27 18:17:43 +02:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
twinaphex 13cc4787f2 Reduce more char variable sizes 2016-10-27 10:19:04 +02:00
twinaphex 456c4c4d58 Remove video_driver_cached_frame_render wrapper function 2016-10-25 00:42:26 +02: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
Francisco José García García 8e329a2072 Merge pull request #3781 from frangarcj/master
(VITA) Working scanning content
2016-10-13 17:51:13 +01:00
Francisco José García García 4c19543427 (VITA) Workaround for scanning content 2016-10-13 18:00:40 +02:00
twinaphex a4b90bcede Set msg[127] = 0 2016-10-13 13:33:51 +02:00
Brad Parker 88c8c49ef8 skip scanning of compressed files within archives if the core attached to this database supports archive files themselves 2016-10-12 16:14:00 -04:00
Higor Eurípedes 5f883b7ad1 (task_http) Don't use 100% CPU in threaded mode
This task is network bound and the HTTP functions use non-blocking I/O,
so task_http_iterate_transfer() returns "too fast" and the worker thread
gets no rest.
2016-10-09 14:44:27 -03:00
twinaphex 82472c82ea (task_screenshot) Prevent implicit memsets 2016-10-09 10:43:16 +02:00
twinaphex 481ebced22 Prevent implicit memsets 2016-10-09 09:56:03 +02:00
twinaphex 1388220866 (tasks) Don't do implicit memsets in crucial performance-oriented code 2016-10-08 18:31:43 +02:00
twinaphex 7d68a20a97 Silence Deference before null check warning (Coverity) 2016-10-06 05:17:22 +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
Brad Parker 1c9a54db27 ignore return value of init_content_file_extract, fixes exit/crash when we can't load the content. (non-compressed corrupt content returns true anyway) 2016-10-03 22:23:39 -04:00
Brad Parker fc1f2cdcf4 only scan the content databases that support the file's extension 2016-10-03 16:09:10 -04:00
twinaphex 49e54356f4 Fix relative path 2016-10-03 18:24:28 +02:00
Twinaphex faba2bfe0b Merge pull request #3722 from GregorR/netplay-savestate-task
Reimplemented savestate task informing Netplay
2016-10-03 16:11:25 +02:00
twinaphex 25f27c3f4c Get rid of path_get_content 2016-10-03 15:39:57 +02:00
Gregor Richards 35666e21ae Reimplemented savestate task informing Netplay 2016-10-03 08:47:47 -04:00
twinaphex a4d48688c6 Create generic functions for dirs.c 2016-10-03 08:15:41 +02: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 e50414db74 make screenshots into a real task 2016-10-02 22:41:46 -04: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 9050f75fc8 Create dir_is_empty 2016-10-01 23:30:09 +02:00
twinaphex 8f163e6972 Revert "Move global->name to paths.c"
This reverts commit 6ee7b733aa.
2016-10-01 08:18:23 +02:00
twinaphex 8409d81e8e Revert "Create dir_is_empty"
This reverts commit fa469c4dcc.
2016-10-01 08:16:19 +02:00
twinaphex 8458a039ca Revert "Create dir_get"
This reverts commit db3738babb.
2016-10-01 08:16:13 +02:00
twinaphex 67432fde57 Add void * param to is_set 2016-10-01 06:05:08 +02:00
twinaphex db3738babb Create dir_get 2016-09-30 07:11:52 +02:00
twinaphex fa469c4dcc Create dir_is_empty 2016-09-30 07:06:27 +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 9384875ab0 Don't use HAVE_NETPLAY any more 2016-09-29 21:07:10 +02:00
twinaphex d6b9c4f17a Prevent some Coverity warnings 2016-09-29 19:24:18 +02:00
twinaphex cae92ed91d (tasks) Cleanups 2016-09-29 12:02:45 +02:00
twinaphex dc915713dd Simplify task_push_overlay_load_default 2016-09-29 11:46:37 +02:00
twinaphex d79c28f13b task_overlay.c - cleanups 2016-09-29 11:35:22 +02:00
twinaphex c8dc941c42 iso_get_serial - cleanup 2016-09-29 11:10:52 +02:00
twinaphex a304b42f73 (task_database.c) Cleanup 2016-09-29 11:07:56 +02:00
twinaphex 1842e35b8d Cleanups 2016-09-29 11:03:59 +02:00
twinaphex cfe91125db Create database_info_get_current_element_name 2016-09-29 10:59:50 +02:00
twinaphex b286703a81 Cleanup task_database_handler 2016-09-29 10:55:50 +02:00
twinaphex 7e1639f33b Create database_info_set_type 2016-09-29 10:43:38 +02:00
twinaphex fc3c17547e Use database_info_get_type 2016-09-29 10:41:30 +02:00
twinaphex 24f34431ee Header include cleanups 2016-09-29 10:37:31 +02:00