Commit Graph

3845 Commits

Author SHA1 Message Date
jdgleaver ee8a2f4268 Add API extension for cores to query the number of active inputs provided by the frontend 2020-08-11 14:07:00 +01:00
twinaphex 4092fd7e83 Minor cleanup 2020-08-11 06:35:12 +02:00
Érico Rolim 057dd563aa [linux] Add missing include in nbio_linux.c.
On musl-libc, the compiler would print a warning for nbio_linux.c:
"warning: 'struct timespec' declared inside parameter list will not be
visible outside of this definition or declaration", indicating a missing
header defining this structure.

On glibc, this definition is provided through the stdlib header.
2020-08-10 00:33:43 -03:00
Bernhard Schelling 4a09907802
Return true when RBUF_TRYFIT is called with 0 2020-08-07 05:19:09 +09:00
Bernhard Schelling 0a67c0416a Change playlist to use dynamic array
Instead of initial 12MB memory allocation, use a dynamically growing array.
This shares the container structure (now called rbuf) with the explore menu.
2020-08-07 03:27:52 +09:00
twinaphex 3680804217 Undo path_basedir_size 2020-08-04 03:05:20 +02:00
twinaphex 4a6f49fc0a (360) Fix build 2020-08-03 22:35:10 +02:00
twinaphex c5b9786675 Turn retro_sleep into macros for most systems 2020-08-03 20:11:00 +02:00
twinaphex f35010e1ae Cleanups 2020-08-02 10:28:23 +02:00
twinaphex 8a24cc350e Resync 2020-08-01 22:55:08 +02:00
twinaphex 97297f71af (MSVC 2005) MSVC 2005 and earlier cannot use nbio_windowsmmap.c -
so disable it
2020-08-01 22:51:23 +02:00
twinaphex 6f0874f2b1 Silence warning 2020-08-01 18:26:20 +02:00
twinaphex aba17fdc92 Warning fix 2020-08-01 18:18:09 +02:00
twinaphex cd9ea1f44b Another warning fix 2020-08-01 18:16:19 +02:00
twinaphex 4ee45304b0 More warning fixes 2020-08-01 18:14:48 +02:00
twinaphex 3635bf0d01 Silence some warnings 2020-08-01 18:04:56 +02:00
Jamiras 92e61ccb5c move temporary buffer off stack 2020-07-29 19:54:48 -06:00
twinaphex 4f931f2729 Use UINT32_C / UINT64_C throughout the codebase 2020-07-29 04:48:11 +02:00
twinaphex eba83390ba Warning fixes 2020-07-23 07:39:08 +02:00
twinaphex fa6d5333f7 More silencing of warnings 2020-07-23 06:39:21 +02:00
twinaphex 98516280ad (s16_to_float) Silence aggressive-loop-optimization undefined
behavior because of potential signed integer overflow
2020-07-23 06:35:30 +02:00
Francisco Javier Trujillo Mata 8334be07bf Fix issue with the PS2 and PRI_SIZET 2020-07-21 10:17:16 +02:00
Autechre 343a04e2b8
Merge pull request #11027 from schellingb/archive_cleanup_1b
Use MMAP again for ZIP loading/parsing
2020-07-16 03:28:54 +02:00
Bernhard Schelling b03cdbd0da First set of cleanups to archive handling (Rev B)
- Don't read the entire archive file into memory on systems without HAVE_MMAP
- Support ZIP files between 2GB ~ 4GB on 32bit architectures
- Remove zip exclusive members from `file_archive_transfer`
- Add `zip_context_t` for zip like the already existing `sevenzip_context_t`
- Unify cleanups of zip and 7z in `file_archive_file_backend::archive_parse_file_free`
- Handle some sizes and offsets as int64_t (preparation for future Zip64 support)
- Handle ZIP compression methods in `zlib_stream_decompress_data_to_file_init` not in `file_archive_perform_mode`
- Return progress of 7z iterating with `file_archive_parse_file_progress`
- Uses MMAP where available, for files up to 256MB
2020-07-16 02:47:59 +09:00
Twinaphex 367530683c Get rid of unused variables 2020-07-15 19:47:45 +02:00
twinaphex 06064a0527 Revert "Bring back MMAP support"
This reverts commit 32dcff3880.
2020-07-13 23:52:23 +02:00
twinaphex c84aa90075 Merge branch 'archive_cleanup_1' of git://github.com/schellingb/RetroArch 2020-07-13 21:30:02 +02:00
Bernhard Schelling 32dcff3880 Bring back MMAP support
Will be used where available for files up to 256MB
2020-07-14 03:04:01 +09:00
Bernhard Schelling c05f1e91fc Fix another memory leak that was there originally
When loading a single file out of a ZIP with many files it leaked memory allocated for all found filenames that weren't requested.
2020-07-14 03:00:47 +09:00
Bernhard Schelling a978b939ff Fix C89 build 2020-07-14 01:56:48 +09:00
Bernhard Schelling 54db0fe515 Fix memory leak
Properly release buffers for extracted files from ZIP
Use RETRO_VFS_SEEK_POSITION_START instead of SEEK_SET for filestream_seek
2020-07-14 00:29:46 +09:00
twinaphex 750140779c (libretro-common) Fix 2020-07-13 16:18:46 +02:00
Autechre 84ca79fcc1
Merge pull request #11006 from Jamiras/save_task_wait
only wait for save task to complete
2020-07-12 19:14:04 +02:00
Jamiras 6f964681ae update comment 2020-07-12 08:21:02 -06:00
twinaphex be0148406e fill_pathname_application_dir - cleanup 2020-07-11 19:45:24 +02:00
twinaphex 8656b3d6f8 Create specialized optimized path_basedir_size 2020-07-11 19:29:43 +02:00
Bernhard Schelling 0ddb073784 First set of cleanups to archive handling
- Don't read the entire archive file into memory on systems without HAVE_MMAP
- Support ZIP files between 2GB ~ 4GB on 32bit architectures
- Remove zip exclusive members from `file_archive_transfer`
- Add `zip_context_t` for zip like the already existing `sevenzip_context_t`
- Unify cleanups of zip and 7z in `file_archive_file_backend::archive_parse_file_free`
- Handle some sizes and offsets as int64_t (preparation for future Zip64 support)
- Handle compression methods in `zlib_stream_decompress_data_to_file_init` not in `file_archive_perform_mode`
- Return progress of 7z iterating with `file_archive_parse_file_progress`
2020-07-12 00:51:35 +09:00
Jamiras 9aa42c9d5e only wait for save task to complete 2020-07-10 20:18:03 -06:00
twinaphex 638d692d2e Cleanups 2020-07-09 02:35:32 +02:00
twinaphex e48ffd14cd Cleanups 2020-07-09 00:24:09 +02:00
twinaphex 0a1942f528 Turn fifo_read_avail and fifo_write_avail into macros 2020-07-07 08:13:32 +02:00
twinaphex 6e59d52184 Cleanups/comments 2020-07-07 05:58:07 +02:00
twinaphex d5bdec3f60 (net_http) Refactor 2020-07-05 00:51:41 +02:00
twinaphex 4489e5490d Add more tests 2020-07-03 01:34:54 +02:00
twinaphex 96dd505a0f (libchdr) Backport baka0815 commits 2020-07-01 19:50:46 +02:00
twinaphex 6bdc9795e7 (libchdr) Backport f08156f947 2020-07-01 19:44:17 +02:00
twinaphex 5ded7872de (libretro-common/libchdr) Backport 2785de8481 2020-07-01 19:41:24 +02:00
twinaphex 8d8800229c (libchdr) Backport 16eae7e4e5/src/chd.c 2020-07-01 19:27:14 +02:00
twinaphex d2afef58d7 (libchdr) Resync against c05c91300a (diff-b4791a43102472fe8d3959f86bd376c4) 2020-07-01 19:23:33 +02:00
twinaphex 9e9fb47c05 (libchdr) More resyncs 2020-07-01 19:21:40 +02:00
twinaphex 436f161cc3 (libchdr) More rebases 2020-07-01 19:15:45 +02:00
twinaphex 88804a05de (libchdr) Cleanups + attempts to rebase against upstream 2020-07-01 19:12:20 +02:00
twinaphex 8f65c4e6dd Cleanups 2020-07-01 17:10:00 +02:00
twinaphex 3580db3ebe (deps/mbedtls) Cleanups 2020-07-01 03:48:13 +02:00
twinaphex d6ec4029db (mbedtls) Remove MBEDTLS_DEBUG_C 2020-07-01 01:29:27 +02:00
twinaphex 69756ebd93 Add HAVE_NEAREST_RESAMPLER ifdef 2020-06-30 21:45:05 +02:00
twinaphex 2c62a10d6c - Fix codepaths for compiling without HAVE_RWAV
- Add back HAVE_BSV_MOVIE
2020-06-30 18:08:49 +02:00
twinaphex ad8c22e6ac Fix build for MSVC 2003 2020-06-30 01:50:12 +02:00
twinaphex 968922e151 Fix static code analysis warnings 2020-06-29 21:24:32 +02:00
twinaphex a2f2a882cb Cleanups 2020-06-29 21:06:21 +02:00
twinaphex b93c3b36ed Prevent more static code analysis warnings 2020-06-29 20:34:47 +02:00
twinaphex 5cfc4defc6 (libretro-common) Prevent more static code analysis warnings 2020-06-29 20:31:14 +02:00
twinaphex 55d9456cbb More static code analyzer fixes 2020-06-29 20:14:14 +02:00
twinaphex 672deef31a Prevent static code analyzer complaining about potential
memory leaks
2020-06-29 20:06:37 +02:00
twinaphex 6318e11027 Try to prevent static code analyzer warning about potential leak 2020-06-29 20:02:28 +02:00
twinaphex 28399641da task_queue_put - prevent dereference of null pointer 2020-06-29 19:57:52 +02:00
twinaphex 316914cb45 Prevent another static code analysis warning 2020-06-29 19:23:45 +02:00
twinaphex c7bb666214 CRITICAL_SECTION implementation can differ - use calloc here 2020-06-29 14:19:50 +02:00
twinaphex 03b232552e (MSVC) Buildfix 2020-06-29 13:53:40 +02:00
Twinaphex fc2e11d4b7 Fix pthread codepath 2020-06-28 23:31:44 +02:00
twinaphex a833c5f4a6 Cleanups in audio mixer code 2020-06-28 23:24:00 +02:00
twinaphex 6d50ac7cb7 Cleanups 2020-06-28 22:59:51 +02:00
twinaphex 47d93f7fb1 (formats/xml) Cleanups 2020-06-28 22:30:53 +02:00
twinaphex 5a0bc479b1 (libretro-common) Avoid more callocs 2020-06-28 20:57:00 +02:00
twinaphex 1a625f32e8 Update 2020-06-28 20:40:43 +02:00
twinaphex 595c8ce5d0 (libretro-common/streams) Cleanups 2020-06-28 20:32:23 +02:00
twinaphex 3dafbb8487 (libretro-common) Use malloc 2020-06-28 06:52:02 +02:00
twinaphex 3541b2aa0e task_init - use malloc 2020-06-28 06:41:07 +02:00
twinaphex c1c3f75804 dir_list_read - avoid two strcmps 2020-06-27 22:26:20 +02:00
twinaphex 6085ed358d (RPNG) Use malloc 2020-06-27 21:09:29 +02:00
twinaphex 5783494e13 (libretro-common) Cleanups 2020-06-27 14:55:08 +02:00
twinaphex c3f8b7741c Add fallback paths for nbio_stdio.c 2020-06-27 14:07:41 +02:00
twinaphex c1275cc83d Cleanups 2020-06-27 13:58:15 +02:00
twinaphex b0b588a56a (VFS) Add fseeko/ftello support 2020-06-27 13:41:59 +02:00
twinaphex 1b86ea43c3 Try to use vsnprintf where possible instead of vsprintf 2020-06-26 20:56:14 +02:00
twinaphex 1ae20ea17c Style nits - turn macro names into upper-case - some while style nits 2020-06-26 20:00:19 +02:00
twinaphex fa50695b89 Cleanups 2020-06-26 19:25:53 +02:00
twinaphex 966348327d Cleanups 2020-06-26 19:07:38 +02:00
twinaphex 08a1a21d71 (libretro-common) Cleanups 2020-06-26 15:26:52 +02:00
twinaphex b39ef98d2a Small optimization 2020-06-26 14:45:48 +02:00
twinaphex 2f235f0abb Cleanups 2020-06-25 23:16:08 +02:00
jdgleaver b6364407fd Optimise parsing of configuration files 2020-06-25 15:15:08 +01:00
twinaphex de36ff20fb Create string_ends_with_size 2020-06-25 14:38:06 +02:00
twinaphex e727e85b1d Updates 2020-06-25 14:01:19 +02:00
twinaphex aa48eeb98e Turn path_default_slash uppercase, and do some optimizations 2020-06-25 13:36:01 +02:00
twinaphex 601a73fa8b Use string_starts_with_size where possible - avoids the strlen 2020-06-25 12:51:04 +02:00
twinaphex 35527c24c3 Revert "Optimize config_get_bool"
This reverts commit 1c38dc67c2.
2020-06-25 12:08:36 +02:00
jdgleaver 9c2b6dffc2 (config_file) Fix handling of comments at the end of config file lines 2020-06-25 10:29:40 +01:00
twinaphex 1c38dc67c2 Optimize config_get_bool 2020-06-25 03:03:42 +02:00
twinaphex 8fccac666e Use STRLEN_CONST where possible 2020-06-24 22:57:41 +02:00
twinaphex 198df77c29 Update 2020-06-24 20:18:06 +02:00
twinaphex 472bb775ee retro_vfs_file_open_impl - avoid two strlens at start 2020-06-24 20:17:09 +02:00
twinaphex 7cac61e5eb Use malloc instead of calloc when possible 2020-06-24 18:52:42 +02:00
twinaphex 74b3b505c9 This part of the code looked suspicious and was leaking memory
for one codepath
2020-06-24 18:39:21 +02:00
twinaphex 3a4af3149b (libretro-common) Use malloc instead of calloc when possible 2020-06-24 17:35:02 +02:00
twinaphex 53f3199652 Reordered this code somewhat 2020-06-24 15:40:42 +02:00
jdgleaver 9b22874c73 (config_file) Optimise parsing of 'comment' lines in configuration files 2020-06-24 14:31:46 +01:00
twinaphex b9f65af98a (Libretro-common) Sync 2020-06-24 15:05:03 +02:00
twinaphex 0cdea62072 (core_info.c) Try to avoid config_get_string 2020-06-24 11:57:58 +02:00
twinaphex a00ab53ef6 Put fprintfs and printfs behind ifndef NDEBUG 2020-06-17 11:22:31 +02:00
twinaphex 01bd76405f Buildfixes 2020-06-13 08:37:26 +02:00
jdgleaver 321ede2256 (X11/udev) Input fixes 2020-06-12 14:12:22 +01:00
twinaphex ac8985a38f Buildfix for OSX PPC 2020-06-08 13:45:32 +02:00
Jamiras 7d488aa200 use rcheevos for identifying games 2020-06-07 17:13:50 -06:00
twinaphex bb73fc6a89 Silence warnings 2020-06-05 22:39:44 +02:00
Autechre b88377d277
Merge pull request #10787 from guoyunhe/new-languages
Add Persian, Hebrew and Asturian language options
2020-06-04 16:31:12 +02:00
Guo Yunhe 0701b99039 Add Persian, Hebrew and Asturian language options 2020-06-04 14:54:28 +03:00
jdgleaver 0a33e562f4 Add option to backup/restore installed cores 2020-06-04 12:20:58 +01:00
jdgleaver a1210d63cc Extended core message interface - add API support for 'progress' messages 2020-05-26 11:42:46 +01:00
jdgleaver 23916f88c7 Extended core message interface - add concept of message 'type' 2020-05-26 10:03:25 +01:00
jdgleaver fc8b76708a Add API extension to provide cores with finer grained control over environment callback messages 2020-05-26 10:03:25 +01:00
twinaphex a1752db25a Put this behind DEBUG ifdef 2020-05-24 20:49:58 +02:00
twinaphex 8bf11e9b18 (libretro-common) Try to prevent implicit usage of stdio fprintf 2020-05-24 20:18:36 +02:00
twinaphex d9bbe604e9 silence unused variable warnings 2020-05-24 19:13:22 +02:00
twinaphex 67f0df94f9 (CDROM) Reduce log spam 2020-05-24 19:11:55 +02:00
twinaphex 376b62e8fa Cut down on more unnecessary strlens 2020-05-24 17:25:52 +02:00
Weedy Weed Smoker 80c1b54b52
Merge branch 'master' into International-translations-update 2020-05-23 03:14:09 +07:00
jdgleaver d24498bdf1 Image file type detection fixes/optimisations 2020-05-22 16:57:37 +01:00
twinaphex 0edd97d5db file_path.c) Cleanup 2020-05-21 20:04:36 +02:00
jdgleaver f522cfcce8 Optimise 'path_is_absolute()' 2020-05-21 13:28:42 +01:00
Francisco Javier Trujillo Mata 1eeb3dcf30 Adapt PS2 port to new SDK with newlib support (CDVDFS support is missing) 2020-05-20 20:13:19 +02:00
jdgleaver c346e1f816 Various file path handling optimisations 2020-05-20 17:05:22 +01:00
twinaphex 0aff65e77b Sync libretro-common 2020-05-19 15:22:00 +02:00
Jamiras c805fd3213 return false when special track cannot be found 2020-05-18 09:10:06 -06:00
twinaphex 89c7d1a835 Update libretro-common 2020-05-14 09:27:58 +02:00
Vladimir Serbinenko cab004f08a cpu_features_get_time_usec: Use sceKernelGetSystemTimeWide on PSP and Vita 2020-05-13 11:20:40 +02:00
Vladimir Serbinenko 31d9fedf47 cpu_features_get_time_usec: Use monotonic_clock on djgpp 2020-05-12 22:55:15 +02:00
Vladimir Serbinenko 306fed32f6 Fix djgpp clock 2020-05-12 03:09:38 +02:00
Vladimir Serbinenko 67c3c93aec dos fixes 2020-05-12 03:09:38 +02:00
MrHuu e519ccd0be (3DS) Enable basic networking / cheevos 2020-05-08 20:50:15 +02:00
Weedy Weed Smoker 7d849ac8fb
International: Add all the languages from Crowdin… 2020-05-02 13:29:17 +07:00
Alcaro c9dcc18fa4
Fix copypasted typo 2020-05-01 17:46:18 +02:00
jdgleaver 548c5dc925 (glcore/slang) Set filter and wrap mode correctly when intialising shader textures 2020-04-30 17:04:02 +01:00
twinaphex 156d3629e6 libretro-common Update 2020-04-28 16:26:26 +02:00
twinaphex 4f9a3f6813 Update 2020-04-28 16:25:00 +02:00
Autechre 3744f2454c
Merge pull request #10519 from julianaito/master
Remove OpenBSD/macppc specific quirk
2020-04-27 20:29:40 +02:00
jdgleaver 9eb8472805 Only write config files to disk when parameters change 2020-04-27 17:06:35 +01:00
Charlène Wendling 0e4857c8f6 Remove OpenBSD/macppc specific quirk
OpenBSD/macppc moved to clang and __mftb() is not available anymore,
leading to undefined references errors. It's fixed with #10383 already.
2020-04-26 14:13:59 +02:00
Autechre 89c405b196
Merge pull request #10487 from jdgleaver/playlist-compression
Add optional playlist compression
2020-04-23 13:30:58 +02:00
twinaphex bdf9969c7e Update libretro-common 2020-04-23 07:20:06 +02:00
jdgleaver fa9290cf1e Add optional playlist compression 2020-04-21 16:44:26 +01:00
twinaphex 8a15f0094a Bugfix 2020-04-21 00:49:02 +02:00
twinaphex 3a2a365ec9 (libretro-common) Fix retro_endianness.h 2020-04-21 00:46:48 +02:00
twinaphex 64bbe5b646 (MSVC 2010) Buildfix 2020-04-21 00:20:31 +02:00
twinaphex 3fa60d08de Update libretro-common 2020-04-19 20:44:22 +02:00
jdgleaver c1f4a7536a Expand functionality of 'rzip_stream' interface 2020-04-17 16:18:16 +01:00
jdgleaver 233456df47 Add optional save state compression 2020-04-15 15:48:41 +01:00
Vladimir Serbinenko c957e07399 Fix psl1ght compilation
pkg.py is not necessatily in path
mftb works better than posix on psl1ght
2020-04-09 15:53:38 +02:00
jdgleaver c1d41e190c (task_queue) Add warning about the usage of 'task_queue_remove()' 2020-04-06 14:16:24 +01:00
jdgleaver 13df7795fc Fix task deadlocks 2020-04-06 13:51:22 +01:00
Jamiras 23ba478f82 fix race condition where task could momentarily not be in the queue when reordering 2020-04-04 09:37:55 -06:00
Greg V f9ae48c3f6 features_cpu: synchronize ifdefs for CLOCK_MONOTONIC
The ifdef in cpu_features_get_time_usec was more portable
than the one in cpu_features_get_perf_counter.

Make them the same to avoid 'undefined reference to __mftb'
on FreeBSD/powerpc64.
2020-04-02 15:09:49 +03:00
Jamiras 7fe952ddeb don't ignore errors from decompress_v5_map 2020-03-31 11:08:35 -06:00
Vladimir Serbinenko 2fb7ba22e5 PSL1GHT port
Working:

* packaging
* running cores
* switching cores
* gamepad including axis
* rgui
* audio
* video

Not working:

* OSD
* menus other than rgui
* shaders
* Graphical acceleration
* Proper signing
* ODE build
* rumble
* keyboard
* mouse

Not tested:

* A lot
2020-03-30 05:39:22 +02:00
jdgleaver c61f6aafc1 (m3u_file.c) Replace tab indents with spaces 2020-03-20 14:53:53 +00:00
jdgleaver e24274a314 (Manual content scanner/playlist cleaner) Prevent redundant playlist entries when handling M3U content 2020-03-20 14:26:08 +00:00
twinaphex 5f8020b32e (libretro-common samples udp test) Rewrite while (1) to for (;;) 2020-03-05 15:52:02 +01:00
twinaphex 4933b89736 Buildfix 2020-03-05 14:18:41 +01:00
jdgleaver 35977efe43 Prevent improper display of (old style) OSD text when widgets are enabled 2020-03-05 12:28:38 +00:00
twinaphex 899c21257c (Video layout) move init_string and set_string to stdstring -
rename them - cleanup strcmp usage in video layout and other
code cleanups
2020-03-05 11:19:44 +01:00
Alcaro 472fe9a991
Avoid overflow when calculating multiplying performance counter 2020-02-28 18:07:00 +01:00
twinaphex a2a5ca0d01 Move this struct over to rhash.c 2020-02-23 05:22:11 +01:00
twinaphex 8fe2fe7b62 (UNIX) Remove hashing dependency 2020-02-23 04:52:27 +01:00
Jamiras c8c05306a3 add comments 2020-02-22 13:01:07 -07:00
Jamiras e00449c410 delay subsequent unlock attempts on failure 2020-02-22 07:11:01 -07:00
twinaphex dce610747b Update audio resampler 2020-02-07 07:53:23 +01:00
twinaphex 5ff4ee96e4 (Resampler) More buildfixes 2020-02-03 03:33:50 +01:00
twinaphex e1603c0f44 (Resampler) Cleanups 2020-02-03 01:59:24 +01:00
twinaphex 076fddd9d9 (Resampler) Turn this void 2020-02-03 00:16:16 +01:00
twinaphex e7e7a284f5 Cleanups 2020-02-02 02:16:19 +01:00
twinaphex 3b492142db Add CDROM_DEBUG ifdefs around this 2020-02-01 19:39:44 +01:00
twinaphex 64c515bac4 Turn while (true) into for (;;) for easier MSVC backwards compatibility 2020-02-01 04:15:22 +01:00
twinaphex cd9ca691ca (libretro-common) Update copyright 2020-01-31 15:43:42 +01:00
twinaphex 84251b02bd verbosity.c - add necessary header 2020-01-31 15:06:50 +01:00
Twinaphex b490c774bf
Update compat_ifaddrs.c 2020-01-31 07:48:32 +01:00
twinaphex d631da7d11 Start taking settings dependencies out of rarch_log_file_init
function
2020-01-30 19:04:05 +01:00
twinaphex 7c0e80a415 (RPNG) Fix test compilation, currently fails though 2020-01-30 17:52:32 +01:00
twinaphex 0ff69ec3df Move test over to samples 2020-01-30 17:47:15 +01:00
twinaphex cad21249e0 Move crc32.c to samples 2020-01-30 17:44:29 +01:00
twinaphex acfe7ab16d Updates to samples/utils 2020-01-30 17:41:38 +01:00
twinaphex 652923d056 Move files around 2020-01-30 17:31:49 +01:00
twinaphex 4d18f3e9b7 Create more tests 2020-01-30 17:25:58 +01:00
twinaphex df06a0effe Fix names 2020-01-30 17:14:45 +01:00
twinaphex e13ffc7507 Add missing samples 2020-01-30 17:13:44 +01:00
twinaphex 12ec690044 Add samples test file for config_file 2020-01-30 17:02:52 +01:00
twinaphex 74cd84399f Cleanups - Replace '== NULL' 2020-01-30 16:47:33 +01:00
twinaphex a034909ae9 Cleanups 2020-01-30 16:35:59 +01:00
twinaphex f785e4b045 Replace while (1) with for (;;) - avoids MSVC warnings 2020-01-30 16:15:52 +01:00
twinaphex eb4e365820 (libretro-common) Cleanups 2020-01-27 17:00:18 +01:00
Jamiras d0d1c5bb37 allow characters other than / to follow port 2020-01-23 07:00:50 -07:00
twinaphex 64d3408188 (ffmpeg) Fixups 2020-01-18 05:40:11 +01:00
Jamiras 59302e816c fix parsing of port in net_http_connection_done 2020-01-17 20:22:49 -07:00
jdgleaver a2e1d622e1 Add disk control interface API extension 2020-01-17 16:34:05 +00:00
orbea 8d6b70c22c Don't use uname -a. 2020-01-15 06:27:42 -08:00
twinaphex 3492ba5fd6 (libretro-common) Prevent warning 2020-01-11 04:48:33 +01:00
twinaphex df8f93e9d5 Split up VFS file_path code into separate file 2020-01-09 15:44:48 +01:00
twinaphex 291012d2a9 (libretro-common) Updates 2020-01-08 19:47:23 +01:00
twinaphex 3b2ec53100 (libretro-common) Update 2020-01-08 04:26:49 +01:00
twinaphex 3a8f12dff3 Update libretro-common 2020-01-08 01:44:58 +01:00
twinaphex 02d1eeb400 (VFS UWP) Get rid of verbosity.h dependency 2020-01-08 00:28:30 +01:00
twinaphex 261f1b72d4 Remove separate null_resampler.c file and move it into audio_resampler.c 2020-01-07 23:03:23 +01:00
Francisco Javier Trujillo Mata 3901c2d63a Add in libretro-common the psp1 implementation 2020-01-07 20:06:47 +01:00
twinaphex 3d950b2324 Optimize audio_mix_volume_SSE 2020-01-04 14:40:37 +01:00
twinaphex d88e37a2f1 (Audio resampler/Sinc) Don't do kaiser window check inside hot loop 2020-01-03 22:12:11 +01:00
twinaphex b3e8d6e9ca Remove this check - hope it solves the PNG inversion color issues with
VideoCore GPUs
2019-12-26 04:05:51 +01:00
jdgleaver 695749f155 (Core Updater) Only download when new core is available + add option to update all installed cores 2019-12-23 17:34:44 +00:00
Jamiras 3b4e55d0e5 proper calculation of offset to track 2 when sector sizes vary 2019-12-19 13:17:32 -07:00
negativeExponent d96409ff37
Fix heap-use-after-free found when using asan
Fix https://github.com/libretro/RetroArch/issues/9871
2019-12-19 04:44:34 +08:00
twinaphex 168395af74 (libretro-common) Update 2019-12-18 18:25:54 +01:00
twinaphex 60b182b821 Promote tpool as libretro-common component 2019-12-18 18:21:03 +01:00
Nils Hasenbanck d046594591 Fix ffmpeg core memory leak when using pthreads. 2019-12-18 15:05:01 +01:00
driver1998 aa19d5180b [UWP] Move RunAsync out of VFS implementation 2019-12-05 16:32:38 +08:00
jdgleaver a27ee73622 Manual content scan arcade DAT files: Add support for MAME 'Software List' XML format 2019-12-04 16:19:32 +00:00
jdgleaver 9b012e907a (Manual Content Scanner) Enable automatic naming of arcade content via DAT files 2019-12-04 12:46:04 +00:00
jdgleaver 170397456c Add manual content scanner 2019-11-29 17:14:46 +00:00
Jamiras c69a11a219 better detection of pregap data in file 2019-11-22 19:36:38 -07:00
twinaphex f0784351c4 Update header include - should look in system dir 2019-11-19 06:19:09 +01:00
Twinaphex 53b7fb2ba2 Remove unused variables 2019-11-19 06:08:54 +01:00
Huw Pascoe 4eebfa237b Fixed xml parsing 2019-11-16 20:56:12 +00:00
Charlène 3038e9e1ce OpenBSD/powerpc: fix "undefined reference to __mftb" 2019-11-12 22:24:35 +01:00
Jamiras 67e9fba9d7 generate User-Agent for retroachievement API calls 2019-11-02 21:52:30 -06:00
twinaphex d4b7be4ae4 Update libretro-common 2019-10-31 01:25:27 +01:00
twinaphex eb77d84716 Update libretro-common 2019-10-31 01:02:01 +01:00
twinaphex d215d3ff44 Add HAVE_LIBNX conditional 2019-10-30 13:28:04 +01:00
Twinaphex 0719f9861c
Merge pull request #9657 from p-sam/switch-input-sensor
(Switch) input driver sensor
2019-10-29 20:53:44 +01:00
p-sam 0e79aa80d9 wip: merge libretro-common 2019-10-28 16:36:46 +00:00
Jamiras 0b92224c36 update PCEngine-CD hash algorithm; pregap cdfs support for CUE and CHD files 2019-10-24 18:46:43 -06:00
twinaphex 362b76fd74 Update sthread_get_current_thread_id 2019-10-21 14:01:09 +02:00
twinaphex e968dd85e2 Implement sthread_get_thread_id (functional equivalent for
SDL_GetThreadId) and sthread_get_current_thread_id (functional
equivalent
for SDL_ThreadID)
2019-10-20 23:55:19 +02:00
twinaphex 836fb17d0d (libretro-common) Update libretro-common 2019-10-17 01:48:41 +02:00
Rinnegatamante 7fee4ad11b Update libretro-common. 2019-10-15 17:43:50 +02:00
twinaphex cb576b1b95 Move include headers to rglgen_private_headers.h 2019-10-09 22:12:14 +02:00
Twinaphex 419eb5a6c0 Remove unused variables 2019-10-04 16:06:34 +02:00
jdgleaver 1df3e20bdd Add option to automatically rotate overlays 2019-10-04 12:15:57 +01:00
Jamiras 1ab81e5711 support for Sega CD/Saturn; reduce hash calls to server 2019-09-29 09:07:16 -06:00
jdgleaver 58ad81f063 Menu drop-down lists: Add proper titles, and remember last postion when navigating core options 2019-09-24 17:41:06 +01:00
Twinaphex ae7d956341 Silence warning 2019-09-23 01:44:53 +02:00
twinaphex b94b9e2adb Go back to plain strlcpy/strlcat - probably best to look at
opportunities to reduce these calls vs. replacing them with
unsafe macros
2019-09-23 00:19:01 +02:00
LazyBumHorse f309c85f92 STRLCAT_CONST_INCR should be at most 1 statement, so single-line if, for etc work 2019-09-22 20:12:56 +02:00
LazyBumHorse db723df879 fix path_relative_to 2019-09-22 16:29:54 +02:00
twinaphex 5f87fa1aca CXX_BUILD buildfix 2019-09-22 14:04:02 +02:00
Barry Rowe 4e155dbc8e Added in rpng string streaming to ai service. 2019-09-21 23:57:59 -07:00
Jamiras c5750da85a improve handling of line endings in m3u and cue files 2019-09-21 08:06:06 -06:00
twinaphex f65e005d97 label_sanitization - change a bunch of functions to static 2019-09-21 03:55:20 +02:00
twinaphex 7cfd996802 Add return value to fill_pathname_noext 2019-09-21 01:41:56 +02:00
twinaphex 6d8bc91220 Start returning sizes for file_path functions 2019-09-21 00:01:09 +02:00
twinaphex 3b057d9605 Start using STRLCAT_CONST_INCR and STRLCPY_CONST 2019-09-20 23:33:17 +02:00
twinaphex 76f4cf5cc5 Start using STRLCAT_CONST/STRLCAT_CONST_INCR/STRLCPY_CONST 2019-09-20 20:39:34 +02:00
twinaphex db624a7c99 Start cleaning up the rather messy manual assignment 2019-09-20 02:03:26 +02:00
twinaphex 15470596ad Remove 'puts' lines 2019-09-19 04:19:18 +02:00
twinaphex f4c6b06b49 (file_path.c) Remove some strlcpy/strlcat invocations 2019-09-19 03:45:18 +02:00
twinaphex 7dc2ca425f (RTGA) Further optimizations 2019-09-18 21:49:18 +02:00
twinaphex 1075522147 (RTGA) Cleanups 2019-09-18 21:13:46 +02:00
twinaphex 9a5b8f0475 (RBMP) Typo fix and some further cleanups 2019-09-18 20:30:39 +02:00
twinaphex bd39d72acd (RBMP) More optimizations 2019-09-18 20:25:15 +02:00
twinaphex b582f1c7c6 (RBMP/RJPEG) Cleanups + optimizations 2019-09-18 19:52:45 +02:00
Twinaphex d09362ed6f (OSX) Silence warnings for OSX 2019-09-18 10:04:21 +02:00
twinaphex 922680851a (features_cpu) noticed that the buffer wasn't actually being used,
so it can go
2019-09-18 08:37:35 +02:00
twinaphex 698387e762 (task_screenshot.c) Cleanups - don't use snprintf unless necessary 2019-09-18 02:31:02 +02:00
twinaphex 8928052863 (libretro-common) (VFS implementation) Cleanup 2019-09-18 02:23:25 +02:00
twinaphex 8fa6230426 Cleanups 2019-09-18 02:16:47 +02:00
twinaphex c3c4638b22 Replace some snprintf usage where not necessary 2019-09-17 05:49:54 +02:00
twinaphex a36d5926d7 Cleanups 2019-09-17 05:30:07 +02:00
twinaphex 6f6b1a8333 (Net HTTP) Avoid unnecessary snprintf 2019-09-17 05:26:00 +02:00
Brad Parker c7c7d0988e initial network video driver, sends raw frames over TCP 2019-09-17 04:18:44 +02:00
twinaphex 5024b77492 Prevent more strlcats that are quite trivial 2019-09-17 02:43:40 +02:00
twinaphex d01ae6929d Don't use strlcat for basic concatenation of characters
except when absolutely necessary
2019-09-17 02:00:04 +02:00
twinaphex 4c7beacfe4 (RPNG) rpng_is_valid - cleanup 2019-09-15 07:40:02 +02:00
twinaphex b7fe19b6c8 (libretro-common) RPNG - Cleanup 2019-09-15 02:04:37 +02:00
Twinaphex 753be84ae0 (Apple) Silence some warnings 2019-09-14 17:15:30 +02:00
Twinaphex 85f07b6f27
Merge pull request #9405 from Jamiras/psx_cheevos_cdfs
add hashing support for PSX cheevos (bin/cue, chd, or real CD)
2019-09-11 23:38:23 +02:00
bmaupin 3047c55121 Fix PSP audio conversion code
Fixes https://github.com/libretro/QuickNES_Core/issues/72
2019-09-06 21:02:37 -04:00
Jamiras b1fb7a1c1e add hashing support for PSX cheevos (bin/cue, chd, or real CD) 2019-09-01 11:13:54 -06:00
Twinaphex 29dc30fa48
Revert " add hashing support for PSX cheevos (bin/cue, chd, or real CD)" 2019-08-30 15:55:07 +02:00
Jamiras a8232e6a2e don't try to build CUE file if media isn't available 2019-08-29 22:25:33 -06:00
Jamiras 1348c2cc75 fix wiiu build 2019-08-29 21:05:44 -06:00
Jamiras bcd61d7f9b add hashing support for PSX cheevos (bin/cue, chd, or real CD) 2019-08-29 21:05:14 -06:00
twinaphex d6df17a154 Revert "add hashing support for PSX cheevos (bin/cue, chd, or real CD)"
This reverts commit 1185433374.
2019-08-30 03:14:42 +02:00
Twinaphex 5a82c809dc
Merge pull request #9334 from Jamiras/psx_cheevos
add hashing support for PSX cheevos (bin/cue, chd, or real CD)
2019-08-29 13:48:42 +02:00
twinaphex 0a35a84c4d Prevent ASAN runtime error 2019-08-28 08:13:01 +02:00
twinaphex c93c7c82b0 Add this back 2019-08-28 07:47:19 +02:00
twinaphex ca3a7aa654 Prevent ASAN runtime error 2019-08-28 07:44:13 +02:00
Jamiras 1185433374 add hashing support for PSX cheevos (bin/cue, chd, or real CD) 2019-08-23 08:02:06 -06:00
twinaphex a3e2531bd6 Remove duplicate function in translation_service.c 2019-08-21 21:51:25 +02:00
twinaphex d8860104d3 Get rid of file_list_get_alt_at_offset 2019-08-20 06:13:33 +02:00
Francisco Javier Trujillo Mata c987945b5e Apply some improvement preparing for new toolchain (#9330) 2019-08-19 20:36:15 +02:00
jdgleaver 3da96deec3 Enable per-playlist thumbnail selection 2019-08-15 18:05:31 +01:00
twinaphex d5c7ada96d Prevent warning 2019-08-15 13:51:07 +02:00
Brad Parker 3432f3b852 cdrom: initialize all buffers used for drive paths, make sure to null-terminate filled paths in all cases 2019-08-12 20:42:40 -04:00
jdgleaver 5ac152a5f3 (glslang_util) Remove C++ 'isms' (where possible) 2019-08-12 13:10:50 +01:00
twinaphex 4d45174940 file_path.c - cleanups 2019-08-11 22:37:23 +02:00
Brad Parker cb2be97e7d fix unused warning, add extra info to cdrom print 2019-07-31 17:51:58 -04:00
Twinaphex 58286367d7
Delete rsemaphore.h 2019-07-30 23:57:27 +02:00
Twinaphex 7ebee349ad
Merge pull request #9214 from tmtvl/9107-playlist-name-sanitization
9107 playlist name sanitization
2019-07-30 21:48:30 +02:00
bparker06 8ee1e7b39f
remove rsemaphore (#8645) 2019-07-30 14:53:03 -04:00
Tim Van den Langenbergh 35e71ad786 Merge branch 'master' into 9107-playlist-name-sanitization 2019-07-30 12:41:19 +02:00
Brad Parker 7935cc80ee media: add function to parse cue and detect system from first data track 2019-07-30 02:37:00 -04:00
Brad Parker a191112634 cdrom: add PC Engine CD detection 2019-07-29 15:11:28 -04:00
Brad Parker 39187f33b1 cdrom: print fix 2019-07-29 14:15:24 -04:00
Brad Parker 6cf3b0b769 cdrom: fix prints 2019-07-29 14:08:32 -04:00
Tim Van den Langenbergh d3a98fea79 Make wording of messages for label display mode clearer.
Use strlcpy for safety in sanitization.
Change label sanitization to use the No-Intro conventions.
Remove integer manipulation of enums for hash strings.
Add handler for start button on label display mode.
2019-07-29 19:08:15 +02:00
Tim Van den Langenbergh 771134eb52 More C89 compatibility fixes 2019-07-28 15:52:48 +02:00
Tim Van den Langenbergh 8bbfd52a5e Implement changes for Android, Xcode, C89 & CXX.
Fix bad match in removal of parens and brackets.
Use libretro string comparison features instead of a long char-wise
comparison.
2019-07-28 12:39:00 +02:00
Tim Van den Langenbergh 55f4c04ff2 Add label_display_mode to playlist.
Add label_display_mode to JSON format.
Add label_display_mode to old playlist format.
Add label_display_mode to configuration.
Add label sanitization functions to libretro common.
2019-07-28 01:22:46 +02:00
Tim Van den Langenbergh fcf5d6bcdd Add sanitization settings to playlist.
Add sanitization functions to libretro-common.
Add sanitization functionality to menu display.
2019-07-28 01:14:40 +02:00
twinaphex 4df62acac4 Get rid of this check 2019-07-26 20:50:40 +02:00
Twinaphex 213fd3a2e8
Merge pull request #9196 from orbea/zlib2
Clean up the builtin zlib.
2019-07-26 03:40:22 +02:00
twinaphex ce37405d29 (DirectSound) Add audio device selection - can set audio_device
either by name or by index
2019-07-26 02:36:41 +02:00
orbea 983172d0c2 deps/libz: Move zutil.h back to deps.
This is an internal zlib header and should not be used by other projects.

See the comment in the file.

/* WARNING: this file should *not* be used by applications. It is
   part of the implementation of the compression library and is
   subject to change. Applications should only use zlib.h.
 */
2019-07-25 11:18:33 -07:00
orbea 0565f80ceb deps/libz: Remove uneeded files. 2019-07-25 11:18:33 -07:00
orbea 84f4dcba2b Remove WANT_ZLIB. 2019-07-25 11:18:33 -07:00
Brad Parker afc2888116 cdrom: add some debug prints if we cannot find any devices 2019-07-25 14:02:28 -04:00
Brad Parker d8b99470b3 cdrom: add debug print if no sg devices were found\n 2019-07-25 09:53:53 -04:00
jdgleaver 35cdff8704 (config_file.c) Only attempt to load config file if it exists 2019-07-25 12:25:52 +01:00
Twinaphex 52ef1af14e
Merge pull request #9137 from LazyBumHorse/realpath
replace realpath() by custom code which does not resolve symlinks
2019-07-24 22:20:38 +02:00
Brad Parker a5f5d2b328 Update Japanese translation, cdrom cleanups 2019-07-23 22:36:29 -04:00
Brad Parker 99dbc4d13e griffin: increase warning level for vc2010, fix signed/unsigned mismatch 2019-07-22 14:51:00 -04:00
twinaphex f3eb48d1f5 Fix MSVC warnings 2019-07-22 20:16:27 +02:00
LazyBumHorse 2de6e9b43a silence compiler warnings 2019-07-22 19:27:31 +02:00
LazyBumHorse 6285c05948 add resolve_symlinks parameter to path_resolve_realpath() and cleanup playlist_resolve_path() 2019-07-22 13:44:35 +02:00
LazyBumHorse 7006764c12 replace realpath() by custom code which does not resolve symlinks 2019-07-22 12:10:28 +02:00
Brad Parker 41b3adc8a4 cdrom: always request one sector at a time 2019-07-21 12:06:10 -04:00
Twinaphex 388c4857d3
Merge pull request #9140 from LazyBumHorse/shader_paths
much improved handling of relative shader paths
2019-07-20 21:54:58 +02:00
LazyBumHorse 2245af23e9 much improved handling of relative shader paths
- save texture paths in relative format as well
 - always write portable relative paths on Windows using '/' instead of '\'
 - remove an ancient piece of code that could sometimes fail loading relative paths
 - fix absolute path handling between different drives for Windows
 - integrate video_shader_resolve_relative() into video_shader_parse_* functions
2019-07-20 18:29:46 +02:00
twinaphex efb98a8a01 Cleanup file_archive_get_file_backend 2019-07-20 16:01:56 +02:00
twinaphex c2c7c106a1 Add conf->path for config_file_new_from_path_to_string 2019-07-20 00:39:55 +02:00
twinaphex a92bac4cea Fix last warning 2019-07-19 13:42:35 +02:00
twinaphex 10d40cc2e8 Fix some dangerous warnings 2019-07-19 13:41:32 +02:00
twinaphex 0cdfd4c542 Use config_file_new_from_path_to_string entirely 2019-07-18 16:15:02 +02:00
twinaphex 41a2fabb4e Create config_file_new_from_path_to_string 2019-07-18 12:03:50 +02:00
twinaphex 4c276feb4a Update 2019-07-17 23:16:25 +02:00
twinaphex 876aca8817 (fopen_utf8.c) Cleanup 2019-07-17 21:03:38 +02:00
twinaphex a6d6c21e52 Rename config_file_new_null to config_file_new_alloc 2019-07-17 19:50:32 +02:00
twinaphex 0c31437c24 Create config_file_new_null 2019-07-17 18:27:53 +02:00
Twinaphex 986c1bb235
Merge pull request #9109 from yoshisuga/playlist_support_abbreviated_paths
[iOS] Playlist: support abbreviations for application/home directory
2019-07-16 16:07:49 +02:00
Brad Parker 84ac0dbc5b cdrom: skip retries for MODE SENSE command 2019-07-16 00:46:02 -07:00
Yoshi Sugawara dba1302360 Playlist (iOS): support abbreviating and expanding application and home directory paths so that playlist entries are valid across installs
iOS: add call to realpath() when setting directory to ensure expanding special chars in paths work; fixed braces style
2019-07-15 16:11:22 -10:00
Brad Parker cc3b44f7ba cdrom: fix warnings, use dot for frame notation in disc info 2019-07-15 17:16:30 -04:00
Brad Parker cfc56bbad3 media: add Dreamcast detection, add version/release date to disc info for saturn and dreamcast 2019-07-15 12:24:31 -04:00
Brad Parker e843354b14 cdrom: use sys/ioctl header instead of stropts 2019-07-15 10:38:54 -04:00
barbudreadmon 674da847ef
fix return value of rfread when elem_size isn't 1 2019-07-15 09:47:31 +02:00
Brad Parker 534b9125a9 cdrom: C89 fix, timeout calculation fix 2019-07-15 00:55:06 -04:00
twinaphex 28c40ffab6 Revert "Revert "Improve vfs_implementation""
This reverts commit 1d5049294a.
2019-07-15 06:49:33 +02:00
twinaphex dca848df52 Revert "Revert "(VFS) Add codepath for MSVC CDROM code""
This reverts commit 651774daf1.
2019-07-15 06:49:20 +02:00
twinaphex 651774daf1 Revert "(VFS) Add codepath for MSVC CDROM code"
This reverts commit 7fb8965416.
2019-07-15 06:48:25 +02:00
twinaphex 1d5049294a Revert "Improve vfs_implementation"
This reverts commit bb29b87ac3.
2019-07-15 06:48:06 +02:00
twinaphex bb29b87ac3 Improve vfs_implementation 2019-07-15 06:43:37 +02:00
twinaphex 7fb8965416 (VFS) Add codepath for MSVC CDROM code 2019-07-15 06:30:57 +02:00
Brad Parker 30c3b1ea9d cdrom: add Disc Information details 2019-07-15 00:23:20 -04:00
twinaphex 594dd84e6e Fix 'declaration hides parameter' 2019-07-14 13:21:14 +02:00
twinaphex 2e3162cdca Fix 'declaration hides parameter' 2019-07-14 13:15:55 +02:00
twinaphex 6bc0f0fcbd (config_file) Be more safe with free 2019-07-13 15:23:28 +02:00
jdgleaver 0476901ca5 Add ability to manually set default core option values when using the new v1 core options interface 2019-07-12 18:20:19 +01:00
jdgleaver 4f3adb8d2c An environment callback for selectively hiding core options 2019-07-12 17:12:03 +01:00
jdgleaver 380812f83e Core Options: Add sublabels + localisation support 2019-07-11 16:10:43 +01:00
Brad Parker cf12a10ba0 cdrom: add CDROM tag to log prints 2019-07-10 20:56:23 -04:00
twinaphex 3639614eba (VFS) Should fix CXX_BUILD 2019-07-10 23:10:20 +02:00
twinaphex 84bf51acee Take out HAVE_CDROM include ut of vfs/vfs_implementation.h 2019-07-10 22:53:38 +02:00
Brad Parker 980de11974 cdrom: check if disc is inserted before trying to load or dump 2019-07-10 11:17:28 -04:00
Brad Parker b564441097 fix some warnings 2019-07-09 22:34:28 -04:00
Brad Parker 60e7e5be8d fix some warnings 2019-07-09 22:32:11 -04:00
Brad Parker ae87f87ee3 C89 buildfix 2019-07-09 16:46:53 -04:00
Zer0xFF 04e9cef462
explicit use flag `RTLD_LOCAL` with dlopen()
On OSX, `dlopen()` default to`RTLD_GLOBAL` while linux defaults to `RTLD_LOCAL`.
so on OSX, it can cause issue with false positively detecting shared library as statically linked, as was the case with `Play!`.
2019-07-09 14:42:23 +01:00
twinaphex 124283a934 (MSVC 2010) Add HAVE_CDROM
(CDROM) Ensure code compiles with MSVC
2019-07-09 09:23:47 +02:00
Brad Parker f94a924be9 cdrom: skip retries for ATIP read if command fails 2019-07-08 23:46:42 -04:00
Brad Parker cd98fa2745 cdrom: fix drive model string corruption 2019-07-08 16:06:35 -04:00
Brad Parker 15d97dbaf3 cdrom: add disc dump option 2019-07-08 16:06:35 -04:00
Brad Parker 2ef16de941 cdrom: add atip check function, show relative and absolute MSF for read command 2019-07-08 16:06:35 -04:00
Brad Parker 9e4ce6c7e3 cdrom: fix group1 timeout error 2019-07-06 21:54:10 -04:00
Brad Parker 59d8b918a1 cdrom: store group timeouts 2019-07-06 20:16:47 -04:00
Brad Parker 44245cc942 cdrom: windows cue fix 2019-07-06 17:23:10 -04:00
Brad Parker 0b1ee7d00a windows buildfix 2019-07-06 09:58:33 -04:00
twinaphex 3ffc5fc343 (MSVC2017 UWP) Buildfix 2019-07-06 07:29:51 +02:00
twinaphex 538cca8bcd Fix issue in file_stream.c - it would corrupt memory if
maxlen is negative
2019-07-06 06:20:01 +02:00
Brad Parker 46ed5c3fcb vfs: fix circular dependency issues by moving main structs to separate header 2019-07-05 23:45:48 -04:00
Brad Parker d116784249 cdrom: go back to MSF read command, still having issues with LBA calculation 2019-07-05 11:09:11 -04:00
Brad Parker e8d488ba67 cdrom: fix conflict with libchdr function names 2019-07-04 23:05:28 -04:00
Brad Parker d0695fc428 cdrom: add LBA offset 2019-07-04 22:42:42 -04:00
Brad Parker 38d49136ce cdrom: add function for reading via LBA numbers 2019-07-04 18:20:05 -04:00
Brad Parker 788b6cd39c remove unimplemented command 2019-07-04 17:50:38 -04:00
Brad Parker 9d163493da cdrom: print sense data on each failure 2019-07-04 17:47:39 -04:00
Brad Parker 0ecac5c8ff http: fix memory leak and potential null pointer argument to strlen 2019-07-04 16:27:51 -04:00
Brad Parker 7db030f98e cdrom: add command to retrieve/print sense data 2019-07-04 16:15:21 -04:00
twinaphex 35c2810d6e (Xbox) Skip warnings 2019-07-04 20:18:33 +02:00
Brad Parker ef669533c8 cdrom: windows buildfix 2019-07-04 14:04:25 -04:00
Brad Parker 6f0268ca30 cdrom: need const to call these from outside of internal functions 2019-07-04 01:06:47 -04:00
Brad Parker 052a8e48cf cdrom: add extra debug functions, add function to check if media is inserted/ready 2019-07-04 00:22:16 -04:00
twinaphex 44eee1cf42 (VFS UWP) Real fix 2019-07-04 04:43:34 +02:00
twinaphex b14dfc2585 Revert "(UWP) Fix VFS"
This reverts commit 163ec0f979.
2019-07-04 04:40:13 +02:00
twinaphex 163ec0f979 (UWP) Fix VFS 2019-07-04 04:21:51 +02:00
Brad Parker 112a88688d cdrom: add windows implementation for list of available drives 2019-07-03 17:18:57 -04:00
Brad Parker 03d48ab2fd cdrom: windows buildfix 2019-07-03 16:05:15 -04:00
Brad Parker 9a52595ce3 cdrom: add function to get list of available drives (initial linux implementation), show list in "Dump Drive" menu entry 2019-07-03 14:19:32 -04:00
Brad Parker 4cedaaefe1 cdrom: add open/close tray commands 2019-07-02 21:35:20 -04:00
Brad Parker 3817395803 cdrom: fix rounding 2019-07-02 03:31:28 -04:00
Brad Parker 1eba59a20c cdrom: fix calculation of track length, add pregap to cuesheet 2019-07-02 00:12:00 -04:00
Brad Parker 5aa2ebe6d5 cdrom: I/O always starts at the beginning of the file, and we translate those byte positions to start from the beginning MSF of the track anyway, so index should always be zero, fixes some audio playback issues 2019-06-30 19:50:58 -04:00
Brad Parker 9d5e91a6e5 cdrom: set default track to 1 2019-06-30 18:34:00 -04:00
Brad Parker 24bd43a53f cdrom: improve position setting 2019-06-30 18:34:00 -04:00
Brad Parker 9617605371 cdrom: set optimal read speed 2019-06-30 18:34:00 -04:00
Brad Parker e901f3d523 cdrom: only use cdrom function if it was compiled in 2019-06-30 18:34:00 -04:00
Brad Parker 8d2392e36c cdrom: use correct seek function 2019-06-30 18:34:00 -04:00
Brad Parker 11f8361d15 unused variable 2019-06-30 18:34:00 -04:00
Brad Parker 02575ddf67 cdrom: fix printf warnings 2019-06-30 18:34:00 -04:00
Brad Parker fa041e4040 cdrom: fix unused variable warnings if debug is off 2019-06-30 18:34:00 -04:00
Brad Parker 8f1b150806 cdrom: windows fixes, use starting address of current track for read/seeks 2019-06-30 18:34:00 -04:00
Brad Parker 12388e038a cdrom: add flush for debug prints because they were never appearing, remove unused variables 2019-06-30 18:34:00 -04:00
Brad Parker 11106cc2a7 cdrom: linux buildfix 2019-06-30 18:34:00 -04:00
Brad Parker 07c0451b93 cdrom: add windows support 2019-06-30 18:34:00 -04:00
Brad Parker 999f4fa2e8 cdrom: retry on unit attention code 2019-06-30 18:34:00 -04:00
Brad Parker 93b81198c2 cdrom: increase retry time, use alternate method for reading sub-channel data (not all drives can read Q data from READ CD) 2019-06-30 18:34:00 -04:00
Brad Parker 8af3078966 track1 playback is working, redbook might have issues currently 2019-06-30 18:34:00 -04:00
Brad Parker 0ad77800d9 use memcpy instead of strlcpy, some cores request 1 byte at a time from the cuesheet 2019-06-30 18:34:00 -04:00
Brad Parker 08cd3a90f2 initial cdrom reading work 2019-06-30 18:33:59 -04:00
Twinaphex 29e4b8e2c1 Get rid of warning 2019-06-22 15:48:42 +02:00
Twinaphex bf1951ae37 Fix plethora of warnings on OSX 2019-06-22 14:52:29 +02:00
twinaphex 023d2cb9a9 (Libretro) implement new environment callback RETRO_ENVIRONMENT_GET_INPUT_BITMASKS 2019-06-21 11:21:07 +02:00
twinaphex 0611868762 (libretro-common) pixconv.c - Add conditional to prevent SIMD from being compiled in for MSVC 2012 and earlier - won't work 2019-06-20 02:24:28 +02:00
twinaphex 33d4d8b7c9 Update libretro-common 2019-06-14 13:13:49 +02:00
twinaphex 133c38c601 (file_path.c) Cleanups 2019-06-14 04:57:17 +02:00
Yoshi Sugawara 2dde223d23 Support returning the number of touches in the current input to support multi-touch inputs, like using a 2 finger touch to reload or secondary fire in lightgun games 2019-06-11 11:49:27 -10:00
jdgleaver feae08e5e7 (Wii) Fix recursive path_mkdir() operations 2019-06-10 14:26:41 +01:00
twinaphex 77e7bc7a1c Move stirng_list_clone to libretro-common 2019-06-09 06:10:28 +02:00
twinaphex aea55f9c2d (RJPEG) Cleanup 2019-06-09 05:55:03 +02:00
LazyBumHorse d67a118ad4 path_relative_to: fix return in void function 2019-06-08 19:15:52 +02:00
LazyBumHorse 2816730b2f make shader presets use relative paths
Also change fill_pathname_resolve_relative() to apply path_resolve_realpath() as well
2019-06-07 16:11:06 +02:00
twinaphex c3c3eedfa2 file_archive_get_file_list - file_archive_walk returns boolean type,
not integer
2019-05-31 07:48:10 +02:00
jdgleaver ff297e72e7 (task_image) Make image loading/processing non-blocking on non-threaded systems 2019-05-28 12:57:52 +01:00
Twinaphex 23e326a50b
Merge pull request #8860 from jdgleaver/rpng-fix
(RPNG) Fix undefined behaviour when loading bad/corrupt PNG images
2019-05-27 14:42:02 +02:00
Twinaphex 68085af944 (net http) Cleanups 2019-05-27 14:40:38 +02:00
jdgleaver 431877799d (RPNG) Fix undefined behaviour when loading bad/corrupt PNG images 2019-05-27 13:07:11 +01:00
twinaphex 22d762be67 We need to split up zlib headers in libretro-common to its own separate
dir
2019-05-27 03:40:14 +02:00
twinaphex 237e8c3d02 (VFS) Cleanup remove and rename impl. too so we get no more warnings 2019-05-22 22:36:38 +02:00
twinaphex 8eed2f0259 Refactor this again to make it cleaner 2019-05-22 22:24:23 +02:00
twinaphex a57fb7fe51 Splitup retro_vfs_stat_impl - was becoming a big mess -
also add checking for empty string to beginning of function
for all codepaths
2019-05-22 22:19:00 +02:00
twinaphex 15e7078361 string_list_free - try to be safer 2019-05-22 05:28:41 +02:00
twinaphex bcb474b3a3 (runahead) Cleanups - create core_free_game_info and move it to
core_impl.c - get rid of free_string_list and just reuse
string_list_free
2019-05-22 04:04:58 +02:00
twinaphex 32f9b9ab9a (PS4/ORBIS) Move path_is_directory code parts to VFS layer - hope I did
it right
2019-05-22 02:32:22 +02:00
twinaphex f117d763d6 Create path_stat and use it 2019-05-22 02:21:30 +02:00
twinaphex 9f297f5f7c Cleanups 2019-05-19 05:50:28 +02:00
twinaphex f49f33f546 We don't need glsm inside libretro-common - cores that need
this will need to make their own version separately
2019-05-19 05:42:44 +02:00
Twinaphex d0707437c9 Remove some unused variables 2019-05-18 21:26:29 +02:00
twinaphex f07952ecf0 Fix ASAN error 2019-05-16 17:43:16 +02:00
twinaphex 55e0a97446 Revert "Turn palette 64bit"
This reverts commit 8b8d4c83c0.
2019-05-16 16:51:59 +02:00
twinaphex 8b8d4c83c0 Turn palette 64bit 2019-05-16 16:42:11 +02:00
Themaister a672cc13a9 Scaler: Fix SSE2 path for argb/bgra -> bgr24.
Somehow a epi32 was added, but apparently this was never caught for some
reason. Fixes non-GPU screenshots for 32-bit color cores.
2019-05-13 17:01:11 -04:00
twinaphex 63d9d4e2d3 (menu entries) Cleanups 2019-05-13 04:05:11 +02:00
Twinaphex fbec6b84e8
Merge pull request #8529 from huwpascoe/mame_overlay
video_layout (mame artwork)
2019-05-13 00:42:26 +02:00
twinaphex 64f9477ef6 Simplify find_last_slash for non-WIN32 2019-05-12 05:02:45 +02:00
twinaphex 985ed6cd2b Small cleanups 2019-05-12 04:47:27 +02:00
Huw Pascoe ea931428e1 rxml read from string and fix memory violation 2019-05-11 09:58:45 +01:00
Huw Pascoe cd714dbd0b image_texture_load_buffer 2019-05-11 09:58:45 +01:00
Barry Rowe 8745333892 OCR Translation feature finaliziation. (#8738) 2019-05-11 07:15:39 +02:00
twinaphex 74388d8490 Remove string_concat 2019-05-10 18:05:58 +02:00
Nathan S 775c272029 Menu widgets stuff + vulkan sanity check (#8710)
* task_screenshot: fix hang with menu widgets

* word_wrap: add max_lines parameter

* vulkan: better instance creation sanity check
2019-05-06 21:10:57 +02:00
twinaphex 5794c2051c path_mkdir - safety check 2019-05-06 03:09:44 +02:00
twinaphex 0919cd9746 (Legacy Win32) Be more careful with retro_vfs_stat_impl 2019-05-06 03:00:51 +02:00
natinusala 486f438cc3 task_database: reimplement task progression 2019-05-01 15:13:41 +02:00
twinaphex 39eadbab6f Use string_concat in more performance critical areas 2019-04-30 21:17:51 +02:00
twinaphex 4b22522ae0 We need faster string concatenation for performance-critical
codepaths - this is being run every frame
2019-04-30 19:36:40 +02:00
twinaphex bc2bdd5734 config_file_read not needed anymore 2019-04-30 13:37:10 +02:00
twinaphex 44b83cf353 Cleanups 2019-04-30 11:16:14 +02:00
twinaphex 34be5862ee (task_database) Use task_init 2019-04-30 10:25:23 +02:00
Twinaphex a797324133
Revert "task_database: use regular progress report" 2019-04-30 10:01:07 +02:00
natinusala 8c7db837b4 task_database: use regular progress report 2019-04-29 20:04:41 +02:00
twinaphex 0984a13665 We can't use RARCH_LOG and friends inside libretro-common code 2019-04-29 14:49:24 +02:00
twinaphex 4f8e59a3f8 (UWP) Rewind should now work - issues with the BitScanReverse
codepath for compat_ctz on UWP/WinRT - have not figured out a
solution yet, so just make it default to slowest ctz codepath
for now
2019-04-29 07:06:06 +02:00
twinaphex 4c3e0d44b8 Revert "Start using string_is_equal_memcmp and"
This reverts commit 26d6aee1eb.
2019-04-29 04:04:33 +02:00
twinaphex bae73a0ccc Revert "(dir_list) Use string_is_equal_memcmp_fast"
This reverts commit c8ad747a46.
2019-04-29 04:03:57 +02:00
twinaphex c8ad747a46 (dir_list) Use string_is_equal_memcmp_fast 2019-04-28 19:05:51 +02:00
twinaphex 26d6aee1eb Start using string_is_equal_memcmp and
string_is_equal_memcmp_fast
2019-04-28 17:23:11 +02:00
Twinaphex 4c154f347d
Merge pull request #8649 from Ghabry/uwp-vfs
UWP VFS: Calculate buffer offset correctly when read fails due to EOF
2019-04-28 12:20:13 +02:00
Ghabry 5faf6a124d UWP VFS: Calculate buffer offset correctly when read fails due to EOF 2019-04-28 12:15:46 +02:00
twinaphex 6888a0cc71 (config_file.c) Seems unnecesary to check if a config file is a
directory first
2019-04-28 03:12:59 +02:00
Ghabry c209b0b3d9 UWP: Improve IO performance by manually buffering short reads.
Reduce copies by binding by reference in the lambdas
2019-04-27 23:47:52 +02:00
Ghabry 4390317992 Revert "(UWP/WinRT)"
This reverts commit b43b3e2bb0.
2019-04-27 15:01:01 +02:00
twinaphex b43b3e2bb0 (UWP/WinRT)
- Disable VFS for now - seems to be very problematic right now
- Move uwp_is_path_accessible_using_standard_io to file_path.c
since it seems to have no VFS dependencies, and rename it to
is_path_accessible_using_standard_io so it could possibly be later
used for other platforms as well that also have sandboxed filesystems
2019-04-27 09:20:19 +02:00
twinaphex cff92152db (VFS UWP) Revert this back 2019-04-27 09:05:39 +02:00
twinaphex e1b11593fc (file_list.c) Cleanups/optimizations 2019-04-27 07:32:40 +02:00
twinaphex 890e1eb064 (file_list.c) file_list_expand_if_needed - unroll this function 2019-04-27 07:21:50 +02:00
twinaphex 3e72c502a8 strlen optimizations :
- use STRLEN_CONST for constant strings, translates to sizeof
which should be computed at compile-time
- found some places where we are needlessly calling strlen two
times instead of just once
2019-04-27 04:21:10 +02:00
twinaphex 2b401ce13b (archive_file) Small optimizations - use one strlen less in one instance 2019-04-27 02:39:33 +02:00
twinaphex 7af68ca0b9 (libretro-common) Update 2019-04-27 02:21:35 +02:00
twinaphex a2cb3f60a4 path_get_extension - fix regression 2019-04-27 02:17:17 +02:00
twinaphex fbae4efc97 Simplify path_basename and path_get_extension 2019-04-27 02:07:25 +02:00
twinaphex 5c3d340e01 (UTF) Small optimizations 2019-04-27 00:46:26 +02:00
M4xw ca80a3a4da [Libnx] Toolchain related changes
-Remove switch_pthread - It should be no longer used
-Increase SAVE_STATE_CHUNK to 4MB
-Fix overclocking on Horizon 8.0+

Note: This requires the updated Toolchain before Merge
2019-04-26 21:58:40 +02:00
twinaphex 1598cc773c More small cleanups 2019-04-26 12:53:12 +02:00
twinaphex 68ab984603 (archive_file) Safe optimizations 2019-04-26 12:46:44 +02:00
twinaphex aa156bd804 Have to revert this for now 2019-04-26 11:28:08 +02:00
twinaphex 60c028a562 (archive_file) Some optimizations 2019-04-26 10:26:48 +02:00
twinaphex cec858748f (dir_list) Optimize dir_list_read 2019-04-26 08:23:56 +02:00
twinaphex 1433a587b2 (dir_list) Simplify parse_dir_entry 2019-04-26 07:54:37 +02:00
twinaphex ad03ac055d dir_list - simplify dir_list_append 2019-04-26 06:36:55 +02:00
twinaphex ddace03872 (config_file.c) Cleanups 2019-04-26 06:28:10 +02:00
twinaphex 89563ce9c8 (stdstring) Small cleanups 2019-04-26 06:07:40 +02:00
twinaphex d41827ec7e (VFS implementation) Small cleanups 2019-04-26 05:53:59 +02:00
twinaphex fb653d22dc (file_path.c) Small simplifications 2019-04-26 04:49:42 +02:00
twinaphex 5e82940a08 (VFS) Reimplement path_mkdir_error 2019-04-24 17:41:02 +02:00
twinaphex d6e9776ab8 (VFS) Small cleanups 2019-04-24 02:19:09 +02:00
twinaphex f573626144 Simplify path_parent_dir 2019-04-23 23:21:16 +02:00
twinaphex b8694ff127 (file_path.c) More simplifications 2019-04-23 23:10:53 +02:00
twinaphex 7fe3f5f7ff (file_path.c) Turn path_stat into a macro 2019-04-23 22:59:57 +02:00
twinaphex cca51030d7 simplify path_mkdir 2019-04-23 22:53:07 +02:00
twinaphex f9f66a14b3 Simplify retro_vfs_mkdir_impl 2019-04-23 22:30:38 +02:00
twinaphex 566abd0cfd (MSVC 2012) Start making the code in pixconv.c more backwards compatible 2019-04-23 00:08:34 +02:00
twinaphex 69168ec6bc Core info list iteration was calling path_stat two times on the same
paths - unnecessary file I/O is an issue with UWP/WinRT so let's cut
this down to only one path_stat. config_file_read function created -
acts the same as config_file_new except it doesn't check if the path
provided is actually a directory, which in turn would lead to another path_stat call
2019-04-22 01:13:19 +02:00
twinaphex 91d56bf43f (PS3) Buildfix 2019-04-21 01:39:10 +02:00
twinaphex 1d3533d847 Add rsemaphore.c 2019-04-20 01:14:38 +02:00
Brad Parker e7dbac7eb0 prevent null derefs found by scan-build 2019-04-18 11:46:53 -04:00
Brad Parker d8968d8d0b add initial Turkish translation from Ömercan Kömür (fpscan) 2019-04-17 19:08:23 -04:00
Huw Pascoe fed06044c4 silence warnings 2019-04-12 17:32:11 +01:00
Twinaphex f718b3558f
Merge pull request #8565 from markwkidd/patch-1
SET_ROTATION: not only for accelerated video drivers
2019-04-09 16:08:11 +02:00
Twinaphex 076a0d2f56 (OSX) Code analysis cleanups 2019-04-08 23:13:39 +02:00
Twinaphex d6dfa240c8 Some cleanups 2019-04-08 19:36:44 +02:00
markwkidd d03ff44d53
allow non-accelerated video to rotate the display 2019-04-07 22:34:01 -04:00
twinaphex b49577b65f (UWP VFS) Code formatting cleanups 2019-04-07 22:45:35 +02:00
twinaphex dd016c44c9 (UWP VFS) Code formatting cleanups 2019-04-07 21:58:10 +02:00
twinaphex 79ffb53ef2 (UWP VFS) Try to rewrite this - baby steps 2019-04-07 21:35:45 +02:00
twinaphex e0cb900abe (UWP VFS) Cleanups 2019-04-07 21:22:20 +02:00
bparker06 c8b9b4ef25
Update stdstring.h 2019-04-03 12:06:31 -04:00
Brad Parker ae12c30285 strcmp will always be faster 2019-04-03 10:41:19 -04:00
Twinaphex 052137b027 (OSX) Silence warnings 2019-04-03 13:31:45 +02:00
twinaphex cec06a0859 C89 buildfixes 2019-03-24 18:15:26 +01:00
Twinaphex 123cd67a6a
Merge pull request #8486 from huwpascoe/rxml
Re-enable RXML and purge libxml
2019-03-23 03:25:32 +01:00
barbudreadmon b9b9464652
Add glsym private
Allows core developpers to add their own definitions when working with glsm. 2 things needed : 
- enable the `HAVE_GLSYM_PRIVATE` define
- create a glsym_private.h with your logic
You can find an example of usage at https://github.com/libretro/yabause/tree/yabasanshiro/yabause/src/libretro
2019-03-22 17:04:17 +01:00
Huw Pascoe 45069537fb Re-enable RXML and purge libxml
Fixed rxml to work with griffin.c
2019-03-17 03:04:35 +00:00
Francisco Javier Trujillo Mata 8d1adbc6ee Cleaning no needed functions and library 2019-03-15 20:19:14 +01:00
Francisco Javier Trujillo Mata adf2743464 Implement CDFS and custom file descriptor support 2019-03-15 20:19:14 +01:00
Francisco Javier Trujillo Mata 4c24a17119 Extract IRX variables 2019-03-15 20:19:14 +01:00
Hugo Hromic 0cfefdd2a8 (libretro-common/libchdr) Use int types and format aligned to the `chd_header` typedef 2019-03-14 18:12:10 +00:00
Hugo Hromic 794f4a6b34 (libretro-common/libchdr) Silence warnings in C89 build 2019-03-14 16:22:22 +00:00
Francisco Javier Trujillo Mata 27ab4ac78b [PS2] Some audio improvements 2019-03-06 20:11:15 +01:00
Twinaphex 58a71c0ae8
Merge pull request #8394 from fjtrujy/feature/FIOImprovements
[PS2] Files IOS improvements
2019-03-02 16:25:50 +01:00
Francisco Javier Trujillo Mata 6d2bba220f [PS2] Improvements with the device detection and different folder to save config 2019-03-02 16:06:36 +01:00
Brad Parker e0b75ec3fb fix a whole bunch of memory leaks 2019-03-01 12:05:14 -05:00
twinaphex 5cce51ed8d Move runtime_file to RetroArch 2019-03-01 01:22:35 +01:00
jdgleaver 5ddf0b948f Runtime logging: Fix xcode build errors 2019-02-28 16:00:32 +00:00
jdgleaver 5d8ea231be Use JSON format for runtime log files 2019-02-28 15:35:24 +00:00
Francisco Javier Trujillo Mata 43ff843757 [PS2] Now Files IO works for USBs and Hosts (net) 2019-02-28 14:19:16 +01:00
jdgleaver 3ffb52121c Move runtime logs to <playlist_dir>/logs 2019-02-28 11:09:37 +00:00
jdgleaver 38c54eaebe Add persistent content runtime logging 2019-02-27 16:20:59 +00:00
twinaphex d1dbf6fbe1 * The menu is now able to run at higher refresh rates than 60Hz
* Also added a new environment callback that a core can use to
query the display refresh rate
2019-02-27 04:44:04 +01:00
Francisco Javier Trujillo Mata 3ec2ec2e11 Fix load state issue 2019-02-26 23:48:37 +01:00
Brad Parker 1c9ac4e825 osx: add cpu model name 2019-02-23 17:29:08 -05:00
Brad Parker 1d0a9262ae osx buildfix 2019-02-23 16:57:11 -05:00
Brad Parker e22148fed4 show cpu model name in log, implemented for x86/64 on windows/linux so far 2019-02-23 16:50:42 -05:00
twinaphex a39bed3bb1 Silence warnings 2019-02-21 21:31:29 +01:00
radius 8936faf21f fix [Config]: blah blah blah printing on the OSD on save configuration
fix new configurations having two periods in the filename
2019-02-21 13:57:06 -05:00
Francisco Javier Trujillo Mata b8e2216dd4 Improvement the use of the palette 2019-02-17 23:29:16 +01:00
twinaphex 158a442036 Add further HAVE_OPENGL1 support 2019-02-17 10:42:16 +01:00
Brad Parker 542f2f4262 vc2005: fix MMX load instrinsics, add GL and ozone 2019-02-16 19:13:32 -05:00
Brad Parker 09d409d5cc pixconv: add MMX version of conv_rgba4444_argb8888 2019-02-16 18:43:22 -05:00
Brad Parker 1922d898af pixconv: add MMX version for conv_rgb565_argb8888 2019-02-16 12:51:13 -05:00
Brad Parker f6a31b37a0 pixconv: typo in SSE2 ifdef 2019-02-15 19:58:49 -05:00
Themaister 3b9ad729fb Vulkan: Fix color issues with RGBA8888 swapchains in readback. 2019-02-15 20:30:08 +01:00
twinaphex 660d0c8de9 Remove mutexes - should hopefully fix dolphin/reicast threaded
again
2019-02-12 03:55:08 +01:00
twinaphex d1a831e6ec (UWP) Buildfix 2019-02-11 23:15:11 +01:00
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
Hugo Hromic 7cde32a2b3 libretro-common: fix PRI_SIZET not being set in PS2
* use `lu` for PS2 builds
2019-02-07 23:23:31 +00:00
Hugo Hromic e2b620ae05 libretro-common: improve PRI_SIZET for non-windows platforms
In non-windows platfoms, the `size_t` type may not necessarily use
the `%lu` format specification. For example in 32 bits platforms
instead it needs to be `%u`. Therefore, for non-windows platforms,
it is better to define PRI_SIZET more precisely.

Silences these types of warnings in 32 bits non-windows platforms:

    libretro-common/file/config_file.c: In function ‘config_get_size_t’:
    libretro-common/file/config_file.c:694:32: warning: format ‘%lu’ expects
    argument of type ‘long unsigned int *’, but argument 3 has type
    ‘size_t * {aka unsigned int *}’ [-Wformat=]
           if (sscanf(entry->value, "%" PRI_SIZET, &val) == 1)
                                    ^~~

Discussed in #8191
2019-02-07 16:25:48 +00:00
twinaphex bd19958658 (libretro-common) Don't use RARCH_LOG inside libretro-common files 2019-02-07 05:45:25 +01:00
twinaphex 45b1ed33b2 (MSVC) Silence warning 2019-02-06 23:42:13 +01:00
Twinaphex 477170884b Some warning fixes 2019-02-06 23:25:41 +01:00
natinusala c20ab3864d First version of menu widgets (gl only) 2019-02-06 20:48:24 +01:00
Twinaphex a1150800f8
Merge pull request #8197 from orbea/c89
Fix c89 build with 32-bit linux.
2019-02-06 20:08:14 +01:00
orbea cf6c49b9a1 Fix c89 build with 32-bit linux. 2019-02-06 10:21:28 -08:00
twinaphex 5d1c45e8f9 (orbis) 'else ifdef' not necessary 2019-02-06 19:03:07 +01:00
Themaister 5e7513ad60 Sinc: memset the resampler buffer.
No idea how this survived asan and valgrind over these years ...
2019-02-05 23:35:39 +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 1796d359c5 Don't use setvbuf for PSP too 2019-02-02 16:43:17 +01:00
twinaphex 0413ba7215 Buildfix for GL3 OSX 2019-02-01 19:56:12 +01:00
twinaphex 5d77244334 (OSX) Implement flyinghead's GL3 support 2019-01-31 21:30:49 +01:00
twinaphex 64460824aa Fix another CXX_BUILD warning 2019-01-31 20:21:04 +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
Brad Parker 1ee66d5204 d3d: fix cross-compilation on Linux 2019-01-25 23:28:07 -05:00
orbea cb602c190d Some C89_BUILD fixes. 2019-01-20 14:03:42 -08:00
orbea 46676289d4 Fix segfault with a null gl context. 2019-01-19 13:56:39 -08:00
krzys-h e5a2221eac Make lambdas safer for multithreading 2019-01-19 12:13:16 +01:00
krzys-h 20cb84189e Fix problems with UWP filesystem in Release builds 2019-01-19 12:04:55 +01:00
Brad Parker cb4a87d6b1 fix system menu sound memory leaks in mod mixing 2019-01-19 00:46:54 -05:00
Brad Parker ae397f2ae5 fix system menu sound memory leaks in flac mixing 2019-01-18 21:03:47 -05:00
Brad Parker 32313b398b fix system menu sound memory leaks in mp3 mixing 2019-01-18 21:00:41 -05:00
Brad Parker 95a7b8c29b fix system menu sound memory leaks in ogg mixing 2019-01-18 20:02:24 -05:00
orbea e062b98088 Remove trailing blank lines.
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
2019-01-17 19:39:38 -08:00
Twinaphex 5182f24711
Merge pull request #8030 from fjtrujy/feature/PS2Palette
[PS2] Allow Palettes
2019-01-18 00:33:31 +01:00
krzys-h a116bb908e (UWP) Support access through the file picker 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
krzys-h b7cc124070 (UWP) Base StorageFile implementation 2019-01-17 11:04:19 +01:00
twinaphex b70683fa08 Buildfix 2019-01-17 09:14:34 +01:00
Twinaphex b5d8b8b3bc
Merge pull request #8020 from krzys-h/vfs-v3
VFS v3 (improved)
2019-01-17 03:14:35 +01:00
Brad Parker 16fffd67ea Normalize archive progress calculation 2019-01-16 17:22:46 -05:00
Francisco Javier Trujillo Mata 3706aa9904 ClearVRAM detection improved 2019-01-16 22:57:08 +01:00
Francisco Javier Trujillo Mata f7c9bc4e61 Make GFX PS2 support palette in the cores 2019-01-16 22:57:08 +01:00
krzys-h f011579c78 Fix memory leak when opening non-existent directories 2019-01-16 21:21:49 +01:00
krzys-h f93ae772f3 Fix error in path_get_size 2019-01-16 21:03:15 +01:00
krzys-h 5a97738f3e Revert "Revert "Cleanups""
This reverts commit 5c2d271f9f.
2019-01-16 21:01:37 +01:00
krzys-h e6fc4220fa Revert "Revert "VFS v3: stat, mkdir, directory listings""
This reverts commit a549e28f01.
2019-01-16 21:01:29 +01:00
Twinaphex c05be12ff4
Merge pull request #8019 from Datamats/libretro-glsym-nx
regenerate the glsym headers for the switch in libretro-common
2019-01-16 20:52:00 +01:00
Mats A 4f15d4a64c regenerate the glsym headers for the switch in libretro-common 2019-01-16 20:30:14 +01:00
Twinaphex a549e28f01
Revert "VFS v3: stat, mkdir, directory listings" 2019-01-16 03:53:34 +01:00
twinaphex 5c2d271f9f Revert "Cleanups"
This reverts commit 73e78f5135.
2019-01-16 03:53:23 +01:00
twinaphex 73e78f5135 Cleanups 2019-01-16 02:58:08 +01:00
Twinaphex d4b33ac1ad
Merge pull request #7995 from krzys-h/vfs-v3
VFS v3: stat, mkdir, directory listings
2019-01-16 02:38:54 +01:00
krzys-h cc7541338c Fix parent of root directory turning into ./ on Windows (#7803) 2019-01-14 20:48:55 +01:00
Twinaphex fab4834b82
Merge pull request #7959 from bparker06/json_playlist
add JSON playlist format
2019-01-14 03:14:54 +01:00
krzys-h 4b2278688b Unix buildfix for dirent_is_directory 2019-01-13 14:49:01 +01:00
krzys-h 109de0bebb VFS v3: stat, mkdir, directory listings 2019-01-13 00:33:24 +01:00
twinaphex 6ca9afbd57 Silence more warnings with CXX_BUILD 2019-01-12 18:51:06 +01:00
natinusala 52479ad09f libnx: implement perf counters 2019-01-11 17:45:06 +01:00
Brad Parker f0e2f7dcf4 Merge branch 'master' into json_playlist 2019-01-11 09:02:11 -05:00
twinaphex c98b2e2292 Buildfixes and more static code analysis warning fixes 2019-01-10 22:24:43 +01:00
Francisco Javier Trujillo Mata 9c7c5e0814 This commit revert part of the changes done for the PS4 implementation but fixes PS2 crash 2019-01-10 02:20:49 +01:00
Brad Parker c7041260d7 add JSON playlist format 2019-01-09 17:13:13 -05:00
twinaphex 9b801aee17 Buildfixes 2019-01-08 20:43:03 +01:00
twinaphex 6bd4d91038 Cleanups 2019-01-08 20:32:40 +01:00
Twinaphex 40997473ed
Merge branch 'master' into orbis2 2019-01-08 20:18:08 +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
krzys-h dcdcc938bf (UWP) Fix win32 nbio 2019-01-06 15:45:51 +01:00
orbea 34f3eb7277 qb: Fix '--disable-rgui'.
Also fixes a crash on startup with '--disable-rgui'.

Thread 1 "retroarch" received signal SIGSEGV, Segmentation fault.
0x0000000000529f52 in strlcpy_retro__ (dest=0x7fffffffbb17 "treaming_toggle",
    source=0x1 <error: Cannot access memory at address 0x1>, size=250)
    at libretro-common/compat/compat_strl.c:38
38	      while (--n && (*dest++ = *source++)) src_size++;
(gdb) bt
    dest=0x7fffffffbb17 "treaming_toggle",
    source=0x1 <error: Cannot access memory at address 0x1>, size=250)
    at libretro-common/compat/compat_strl.c:38
    size=250) at libretro-common/compat/compat_strl.c:60
    out_path=0x7fffffffbb10 "input_", dir=0x94b460 "input", path=0x0,
    delim=95 '_', size=256) at libretro-common/file/file_path.c:964
    prefix=0x94b460 "input", btn=0x0, bind=0x151e180 <input_autoconf_binds+4672>)
    at input/input_driver.c:2483
    binds=0x151cf40 <input_autoconf_binds>) at tasks/task_autodetect.c:172
    params=0x26adb40, task=0x26b74f0) at tasks/task_autodetect.c:252
    params=0x26adb40, task=0x26b74f0) at tasks/task_autodetect.c:393
    at tasks/task_autodetect.c:851
    at libretro-common/queues/task_queue.c:182
    at libretro-common/queues/task_queue.c:609
    at frontend/frontend.c:146
    at frontend/frontend.c:170

Fixes https://github.com/libretro/RetroArch/issues/7893
2019-01-05 16:54:40 -08:00
Twinaphex 95a27bc28e
Merge pull request #7896 from fjtrujy/feature/dateImprovement
PS2 Timing Improvement
2019-01-05 19:09:34 +01:00
Francisco Javier Trujillo Mata d5a8c30dfe PS2 Timing Improvement 2019-01-05 18:47:39 +01:00
orbea 849259d8f6 libretro-common: Sort config file conditionally.
This allows optionally sorting configure files and is needed to fix the
order of inputs in the autoconfig profiles which should not be sorted
alphabetically.

Fixes https://github.com/libretro/RetroArch/issues/7873
2019-01-03 15:28:32 -08:00
psxdev 967bca8f9d [ORBIS] Add partial support for file_path 2019-01-03 21:23:44 +01:00
psxdev 1fd88b865e [ORBIS] Add retro_dirent support 2019-01-03 21:23:44 +01:00
psxdev d52de24e79 [ORBIS] Add support to config save for orbis 2019-01-03 21:23:44 +01:00
psxdev 66ba53c79b [ORBIS] Add vfs implementation for orbis 2019-01-03 21:23:44 +01:00
psxdev 63d61b05ca [ORBIS] Added nbio implementation for orbis 2019-01-03 21:23:44 +01:00
psxdev ae0c4bde1e [ORBIS] Limit path legth to avoid calloc issues 2019-01-03 21:23:44 +01:00
twinaphex e53ac5b38b (PS2) platform_ps2.c - style nits 2019-01-03 13:34:12 +01:00
Francisco Javier Trujillo Mata 1591bc2db2 Create Audio Driver from PS2 2019-01-03 13:16:27 +01:00
twinaphex f1fc622e99 (UWP) - Implement retro_sleep with SleepEx (untested) 2019-01-03 11:40:21 +01:00
twinaphex 9c5c0aea58 Start replacing WinRT ifdefs so that Windows Phone 8 can be detected
too
2019-01-02 13:30:58 +01:00
Twinaphex e64f713942
Merge pull request #7860 from krzys-h/uwp
(UWP) Add optional packages support and fix ARM builds
2019-01-01 18:17:37 +01:00
krzys-h 54ac14e205 Fix path problems after b201d669b5, again
My previous patch sometimes generated double slashes. All of these
problems are because the original version of this function assumed that
the app path always ends with a slash and the home path never does,
which is not true on UWP (they both have a slash)
2019-01-01 17:53:02 +01:00
krzys-h 2c4d2418d6 (UWP) Fix ARM builds 2019-01-01 16:21:47 +01:00
krzys-h 48d82929ff (UWP) Add support for loading cores from optional packages 2019-01-01 16:21:47 +01:00
twinaphex 556bcc18e4 Find different ifdef for Windows Phone 2019-01-01 03:57:37 +01:00
twinaphex c6ba5d9ebc (UWP) Start adding some Windows Phone 8.1 ifdefs 2018-12-31 01:38:45 +01:00
twinaphex 6b35e8d4f6 (UWP) Implement cpu_features_get_core_amount 2018-12-30 22:13:55 +01:00
twinaphex fc8abd7baf Add header include for printf 2018-12-30 07:53:09 +01:00
Twinaphex 22e54dfc6b
Merge pull request #7839 from frangarcj/orbis2
[WIP] ORBIS / PS4 Port
2018-12-30 01:04:50 +01:00
krzys-h ad782e6eb4 Fix HOME path issues after b201d6 (libretro#7836) 2018-12-29 15:21:18 +01:00
krzys-h b201d669b5 First iteration of UWP support
Enough to kind of run

Working drivers: xinput, d3d11
Still missing: input driver with keyboard support, audio driver
2018-12-28 22:09:22 +01:00
Francisco José García García 19549ddccf [ORBIS] Fix __assert 2018-12-27 20:18:53 +01:00
Francisco José García García f02ef2e0c6 [ORBIS] Initial Platform driver + minor changes 2018-12-27 20:17:48 +01:00
Francisco Javier Trujillo Mata 69ad3273b9 Disable use of `setvbuf` for the PS2 2018-12-26 14:17:25 +01:00
Twinaphex 7835d0c54c
Merge pull request #7745 from orbea/mbedtls
Support building with the system mbedtls.
2018-12-19 01:53:14 +01:00
Brad Parker d6741651b7 net_socket_ssl: keep reading data from server until finished, fixes #7451 2018-12-18 03:01:52 -05:00
orbea 14905e33e1 Fix more gcc -Wformat= warnings with C89_BUILD.
The "z" modifier was introduced in c99, but using "l" instead
seems to work.

setting_list.c: In function ‘setting_get_string_representation_size’:
setting_list.c:175:24: warning: ISO C90 does not support the ‘z’ gnu_printf length modifier [-Wformat=]
       snprintf(s, len, "%" PRI_SIZET,
                        ^~~
setting_list.c: In function ‘setting_get_string_representation_size_in_mb’:
setting_list.c:183:24: warning: ISO C90 does not support the ‘z’ gnu_printf length modifier [-Wformat=]
       snprintf(s, len, "%" PRI_SIZET,
                        ^~~
setting_list.c: In function ‘setting_set_with_string_representation’:
setting_list.c:508:24: warning: ISO C90 does not support the ‘z’ gnu_scanf length modifier [-Wformat=]
          sscanf(value, "%" PRI_SIZET, setting->value.target.sizet);
                        ^~~

libretro-common/file/config_file.c: In function ‘config_get_size_t’:
libretro-common/file/config_file.c:692:32: warning: ISO C90 does not support the ‘z’ gnu_scanf length modifier [-Wformat=]
       if (sscanf(entry->value, "%" PRI_SIZET, &val) == 1
2018-12-16 19:59:50 -08:00
orbea f4a5c3bd55 Fix c89 build. 2018-12-15 21:03:28 -08:00
orbea 7c50dfb397 Fix c89 incompatible comments. 2018-12-15 18:55:21 -08:00
Stuart Carnie c00b6e0750
fix: Fix use of freed memory in menu animations
`menu_animation_update` enumerates `menu_animation.list` to process each
`tween`. It was observed that some tweens execute a callback that
pushes more animations via `menu_animation_push`. During the push, if
the tween `list` does not have enough space, a `realloc` occurs,
potentially invalidating the existing list. The remaining pointer access
in menu_animation_update is therefore invalid. Best case is the memory
is unused and thus does not affect the program. Worst case is memory
corruption.
2018-12-15 14:55:10 -07:00
orbea dc020f2569 qb: Support building with the system mbedtls.
Fixes https://github.com/libretro/RetroArch/issues/7639

v2: Fix build failures with griffin.
2018-12-15 09:10:43 -08:00
meepingsnesroms 94f691e5d2 More info 2018-11-18 11:44:46 -08:00
meepingsnesroms ca5eddf7ff Clarify documentation 2018-11-18 11:18:40 -08:00
Benjamin FRANCOIS d8483a9dc9 Temporary fix until Haiku implements the optional POSIX functions 2018-11-12 21:52:01 +00:00
Francisco Javier Trujillo Mata 99b77a2c9c Copied from core compat string methods 2018-11-09 22:40:51 +01:00
Francisco Javier Trujillo Mata 17d30f9dd5 Use SDL timer for counters and sleep the thread 2018-11-09 22:40:51 +01:00
Francisco Javier Trujillo Mata 5ba2509e7c Now the directories are working 2018-11-09 22:40:50 +01:00
Francisco Javier Trujillo Mata b4aedc801b Fixed issue on retro_dirent with if clausules 2018-11-09 22:40:50 +01:00
Francisco Javier Trujillo Mata 0880bd00b0 PS2 is compiling with null drivers 2018-11-09 22:40:50 +01:00
twinaphex e37f5a2465 Update libretro-common 2018-11-05 14:47:06 +01:00
twinaphex e5b9ca5187 Silence code warnings 2018-10-21 05:43:23 +02:00
Nathan Strong dc18196844 get rid of TODO 2018-10-18 16:44:30 -07:00
Nathan Strong d03c0be71d Rewrite file hasher to limit amount hashed
== DETAILS
Since the content file could potentially be huge, hashing the
whole thing at runtime may take a really long time. Plus, it
was loading the whole file into RAM at once.

Now, we only load 1MB at a time and hash up to the first 64MB.

== TESTING
I don't have any large content files to test it with, but I
tested it with a small one and confirmed that the hash was
correct.
2018-10-18 16:38:02 -07: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 cf9341f2ea Update libretro-common 2018-10-17 05:45:43 +02:00
Sven b48768c023 extend cheat searching to accommodate multiple memory pointers 2018-10-14 14:25:44 -04:00
natinusala eac0d603f4 libnx: add network interfaces info 2018-10-12 17:37:03 +02:00
Twinaphex 58f8c2eddb
Merge pull request #7416 from lambolighting/master
(Language) Greek Translation of RetroArch - WIP
2018-10-12 01:35:20 +02:00
Nathan Strong c5f9fc0a34 WiiU: fix network information
== DETAILS

For local netplay, it's useful to have your IP address easily
available. This commit makes the Information > Network Information
menu display the Wii U's IP address.

Change summary:
- Fix the logging init to be reentrant to avoid socket consumption
- Add implementation of POSIX `getifaddrs()` and `freeifaddrs()`
  to `missing_libc_functions.c`
- Remove compiler directives protecting the code paths that call
  `getifaddrs()` from being used in Wii U builds

== TESTING

Have tested locally, successfully get IP address information in
the Information > Network Information.

I think this may also fix NAT traversal. Will need to be tested.
2018-10-11 15:37:15 -07:00
LamboLighting 8509132ebd (Language) Greek translation of RetroArch
First steps of the translation.
Still a WIP. Most of the menu labels have been translated. Lots of sublabels still need translation.
2018-10-12 01:22:33 +03:00
Twinaphex f00f2e3ccf
Merge pull request #7169 from GregorR/wii-u-netplay-fix
Fix netplay on Wii U
2018-10-10 20:14:24 +02:00
Sven 4c3b06d640 bugfix cheat saving 2018-10-10 11:10:49 -04:00
Sven 30d4df7634 Merge remote-tracking branch 'upstream/master' 2018-10-10 09:16:39 -04:00
Sven f53e1ca4b1 fix new rumble types ; increase max displayed cheats to 6000 2018-10-10 09:15:46 -04:00
twinaphex 1b1a0c8d27 Stub this out for GEKKO 2018-10-10 02:01:34 +02:00
twinaphex f277489efc Comment out pthread attr for 3DS 2018-10-09 15:35:39 +02:00
twinaphex 0d699208d3 Update rthreads 2018-10-09 03:55:34 +02:00
twinaphex 521b978d31 Add sthread_create_with_priority - missing functionality from desmume
rthreads implementation
2018-10-09 03:43:34 +02:00
twinaphex 31ba215c94 Update GLSM 2018-10-06 17:05:06 +02:00
twinaphex f1e7e0c5f7 Update GLSM 2018-10-06 15:40:48 +02:00
twinaphex 22424fce0f Update libretro-common 2018-10-06 15:16:33 +02:00
twinaphex 1cb4a0a34f Update 2018-10-06 15:15:37 +02:00
M4xw b8ec926078 [LIBNX] Split non-inline functions from the header, increase stack 2018-10-01 21:12:59 +02:00
twinaphex 983c234a3e Update libretro.h 2018-10-01 16:23:08 +02:00
twinaphex 7a72619eff Update libretro-common 2018-10-01 15:50:41 +02:00
twinaphex 3dcefa9316 Update libretro.h 2018-10-01 15:49:54 +02:00
twinaphex 072848445c Fix some C89_BUILD errors 2018-10-01 03:31:13 +02:00
Twinaphex f7e4f440c8
Merge pull request #7311 from m4xw/libnx
[LIBNX] GL by default, enable XMB, rgui color changes for Libnx only
2018-09-28 11:09:24 +02:00
M4xw ef736d02c2 [LIBNX] Improve Threading, Fix Video Threaded. Scan content no longer crashes. 2018-09-28 03:24:12 +02:00
lifajucejo 9be2321c02 Add networking support to libnx 2018-09-27 21:23:01 -04:00
M4xw cf097d7f42 [LIBNX] Implement OpenGL 2018-09-27 01:23:24 +02:00
M4xw 72ed1c0b82 [LIBNX] Threading; Use a ThreadCoreMask and let the system schedule it. 2018-09-27 00:53:26 +02:00
Nathan Strong 0900f08696 Wii U: Fix menu lag when built with DevKitPro r32
== DETAILS

Updates to the newlib library bundled with DevKitPro have caused
incorrect behavior in `cpu_features_get_time_usec()`. Specifically,
it defines `_POSIX_MONTONIC_CLOCK` which results in calling newlib's
time functions which are.. buggy, at least on Wii U.

By moving the WIIU case higher up, we end up calling the actual
Wii U time library routines, and get nice snappy animations as a
result.

== TESTING
I tested this locally on my wiiu and confirmed resolved menu sluggishness.
2018-09-23 17:26:45 -07:00
misson20000 7072bbb829 [NSW] SDK compat fixups 2018-09-15 03:27:29 -07:00
misson20000 fa76a3cb60 CRLF -> LF 2018-09-15 03:27:05 -07:00
M4xw 3a6e410833 [LIBNX] Add pthreads wrapper 2018-09-15 02:28:52 +02:00
twinaphex 19b4ef3b2c Add conv rgb565 to ABGR8888 by m4xw 2018-09-12 20:04:52 +02:00
twinaphex 517b1b9089 Add HAVE_LIBNX ifdefs to switch_input.c/switch_joypad.c, and
features_cpu.c
2018-09-12 19:54:51 +02:00
Sven 3c0eadbdf2 per request 2018-09-11 18:52:51 -04:00
Sven b771a3e0f5 move libretro.h defines to retroarch.h 2018-09-11 18:45:01 -04:00
Sven d8796732aa provide a means for cores to coordinate with the frontend when shutting down multiple threads gracefully 2018-09-11 13:29:20 -04:00
twinaphex df059c585f Implement RETRO_ENVIRONMENT_GET_FASTFORWARDING 2018-09-08 02:19:05 +02:00
Rob Loach 9da261c6d9
Update config entries pointer to the new beginning of the list after sorting 2018-09-03 13:31:46 -04:00
David Walters b592f254b9 Support for "OEM-102" key (usually '\' on Euro keyboards) 2018-09-02 18:24:51 +01:00
Gregor Richards 7634b1bbb0 Fix netplay on Wii U
getaddrinfo on Wii U doesn't support node==NULL. As I don't know of this
bug on any other platform, I've made a Wii-U-specific workaround in
getaddrinfo_retro.
2018-09-01 21:14:56 -04:00
Twinaphex 93af9baf48 Remove warning 2018-09-01 04:04:15 +02:00
Twinaphex 65535a1259 Cleanups 2018-09-01 01:03:58 +02:00
twinaphex 1265d7546c Revert "Start using raw constants for OSX version detection"
This reverts commit ab34a70873.
2018-08-31 19:19:42 +02:00
Rob Loach c7e6eda438
libretro-common: Restore libretro-common/audio/dsp_filters/configure 2018-08-30 22:23:05 -04:00
twinaphex 7c22f265b8 Update libretro-common 2018-08-31 02:28:20 +02:00
twinaphex ab34a70873 Start using raw constants for OSX version detection 2018-08-30 16:35:44 +02:00
twinaphex 821ffc9962 Clang scan-build error fix 2018-08-19 16:13:13 +02:00
Brad Parker 2f87f669f1 fix null dereference (but scan-build still warns with "Assigned value is garbage or undefined") 2018-08-18 01:00:53 -04:00
Brad Parker fbe08aa0c5 fix double free 2018-08-18 00:51:07 -04:00
twinaphex 7250181319 Add some __WINRT__ ifdefs 2018-08-17 14:51:27 +02:00
twinaphex c12baad087 Fixup compat_snprintf.c for MSVC 2008 2018-08-16 10:12:17 +02:00
twinaphex a6941fb4ed Initial work done on VS2017 solution for Android 2018-08-14 16:02:31 +02:00
twinaphex 66367d41a3 Update libretro-common 2018-08-13 19:56:02 +02:00
Brad Parker 5fd0664277 fix heap buffer overflow 2018-08-11 21:20:05 -04:00
Brad Parker fe6dda917a word_wrap: hack to workaround long lines without spaces 2018-08-09 23:54:16 -04:00
twinaphex a3847ed656 Not available on PSP either 2018-08-08 06:03:01 +02:00
twinaphex 1becd89699 Remove DEBUG ifdef 2018-08-08 04:51:03 +02:00
twinaphex 80227bfcdb Vita doesn't have ftruncate it seems 2018-08-08 01:46:32 +02:00
twinaphex 137a39c705 Update 2018-08-07 06:22:56 +02:00
twinaphex 7fdc516d8d Update 2018-08-07 06:19:27 +02:00
twinaphex 653bcba2e0 Update libretro-common 2018-08-07 06:17:48 +02:00
twinaphex f52708e205 Update filestream_transforms.h 2018-08-07 06:00:16 +02:00
twinaphex c563eedb32 Hopefully the VFS interface can now remain stable 2018-08-07 05:53:32 +02:00
twinaphex 1bda6ba204 Update libretro-common 2018-08-07 05:43:19 +02:00
twinaphex 0fb7d6a9e4 (SSL) Re-enable drbg 2018-08-07 04:57:33 +02:00
twinaphex 9403489f2e try to bake out debug parts of mbedtls 2018-08-07 04:51:26 +02:00
Brad Parker a1b831abdb allow 7z archives to have multiple files extracted at once 2018-08-06 20:44:59 -04:00
twinaphex 5b9115c848 C89_BUILD fixes 2018-08-01 01:27:30 +02:00
Sven c750235414
Merge branch 'master' into cheater 2018-07-26 19:40:20 -04:00
Sven 5f35249216 Implement robust cheat searching interface with rumble features 2018-07-25 19:19:14 -04:00
Brad Parker 7e609d6a05 fix some config entries not being saved 2018-07-16 23:01:21 -04:00
Brad Parker 62e89974af sort config file variables 2018-07-16 00:15:49 -04:00
twinaphex d6c5c7f208 Pre-MSVC 2013 did not support PRIu32, add workaround 2018-07-14 05:29:17 +02:00
twinaphex 5ba2a621c0 Silence warnings 2018-07-14 00:45:16 +02:00
Sven 83da70586e implement a way to set rewind_buffer_size via the UI 2018-07-13 16:12:09 -04:00
Stuart Carnie 167ad3b57d fix(Metal): Various Metal fixes
* OSD message background
* clear glui background
* add Metal to configuration
* added optional config to compile Metal build without OpenGL
* fixed fill_pathname_join_delim; if out_path and dir are same, don't
  strlcpy, as the results are undefined.
2018-07-12 21:33:18 -07:00
twinaphex 31e76458f7 Merge commit 'aa9ebf5f29e1a22a5050572353b122915db1451d' 2018-07-05 02:10:00 +02:00
twinaphex 0230c2f4d8 Merge commit 'a078d40b80103ba083ad04eab625084279e930b3' 2018-06-25 23:55:41 +02:00
twinaphex a078d40b80 Squashed 'libretro-common/' changes from edffe4d147..1548bee835
1548bee835 Update glsm
df7c8aebea Update glsm

git-subtree-dir: libretro-common
git-subtree-split: 1548bee835ab5fa2d120a4859ff653a5f128de1f
2018-06-25 23:55:40 +02:00
twinaphex 7566e09970 Squashed 'libretro-common/' changes from c3c0facc97..edffe4d147
edffe4d147 Buildfix for 3DS - implicit declaration of isspace et al.

git-subtree-dir: libretro-common
git-subtree-split: edffe4d1470ae6b846e420392d324c1b2b14281a
2018-06-22 17:43:11 +02:00
twinaphex e8b0d6974d Merge commit '48cb38619ff8bbc5ff3c0df93704b3297047a8fe' 2018-06-22 15:00:02 +02:00
twinaphex 863204b343 Merge commit 'c68f2796b95838412610023611398d7c9968a3f3' 2018-06-21 08:22:10 +02:00
twinaphex d14a3f0d1f Merge commit '5c25cc90765cbf6ad7f01c0b635c72595bc7f457' 2018-06-21 08:18:08 +02:00
twinaphex 697531dbdd Merge commit '944cac83520c99e1ddf3d8cd3bf25990c8746d14' 2018-06-21 08:07:19 +02:00
Twinaphex fd11b205da Silence bunch of warnings 2018-06-21 07:52:01 +02:00
Twinaphex 467aa30131 Cleanups 2018-06-21 07:26:05 +02:00
Zoran Vuckovic 8d99044fb4 Document MIDI interface 2018-06-18 21:26:10 +02:00
Twinaphex 49f3dacde5
Merge pull request #6892 from casdevel/midi
Add MIDI support
2018-06-17 23:07:26 +02:00
twinaphex 76db13fda4 Merge commit '950525a37032877e080ee0f4455c0c4cda550d45' 2018-06-17 20:11:37 +02:00
twinaphex fa1ec0780b Merge commit '3997b59cd652c7852f866aa11c25693fab6bbcda' 2018-06-17 20:04:50 +02:00
Zoran Vuckovic b487c3cace Add MIDI support 2018-06-16 21:17:32 +02:00
bparker06 ab9e00219d
Add null pointer check 2018-06-11 20:28:36 -04:00
twinaphex a3a047b8ec Fix Coverity warning 2018-05-29 22:01:05 +02:00
twinaphex 23b0444afe Update libretro-common 2018-05-28 17:30:56 +02:00
twinaphex 04a4578435 Merge commit '75aea8225637bb47e44543ed624f5861cb27c204' 2018-05-12 18:07:47 +02:00
twinaphex dd7ac99f27 Merge commit '6ff58826d8725e4e8788c22706de8b25cc89a4c2' 2018-05-12 18:05:31 +02:00
twinaphex 9d5472cecf Merge commit '37aad93a58efba6c340e13aa1d83ddf2df762b3d' 2018-05-12 18:03:49 +02:00
twinaphex 768ebbfdb5 Merge commit 'ce9ce1d35387ef8144e53bf071396fa075bfb6c5' as 'libretro-common' 2018-05-12 17:56:34 +02:00
twinaphex 0548349991 Remove libretro-common 2018-05-12 17:56:14 +02:00
twinaphex 46f7742afc Some early WinRT commits 2018-05-09 16:13:29 +02:00
twinaphex 3c73183a04 Cleanups - fix warnings 2018-05-07 15:05:59 +02:00
twinaphex fd76c3b8b1 Change back to previous behavior 2018-05-07 01:29:21 +02:00
twinaphex e18f81eb74 Update libretro-common 2018-05-06 17:11:18 +02:00
twinaphex dd8a2df253 Cleanup 2018-05-03 19:17:13 +02:00
Brad Parker 05404f9104 fix buffer overflow in url encoding (affecting msvc2010/2013) 2018-05-03 12:57:23 -04:00
twinaphex 7bc66ae710 Buildfixes for MSVC 2015 2018-05-03 15:20:06 +02:00
twinaphex 5aeab54ab7 (Audio mixer) Ability to individually set volume per stream 2018-04-30 17:51:01 +02:00
twinaphex 64f31f1ddd Update libretro-common 2018-04-28 13:52:54 +02:00
twinaphex faa99bd323 Start adding FLAC hooks 2018-04-27 23:45:06 +02:00
twinaphex 1f2ef858ab Update libretro-common 2018-04-27 23:12:24 +02:00
twinaphex 7b1ad55b20 Try to use snprintf instead of sprintf 2018-04-25 11:31:50 +02:00
twinaphex 2178f7b8ce Update libretro-common 2018-04-25 10:21:26 +02:00
twinaphex de111ea903 Should fix some zip archives potentially not working on Linux; the
stream member of zlib was being set to random memory, so it was
attempted
 to be freed on line 73 of trans_stream_zlib.c
2018-04-25 10:10:22 +02:00
Twinaphex b41c4ed624 Update 2018-04-23 10:22:54 +02:00
twinaphex 997c24ae0c Make FLAC, zlib and LZMA support in libchdr optional 2018-04-22 20:19:07 +02:00
twinaphex fc169cf4fe Split up libchdr_chd.c into several files 2018-04-22 19:50:14 +02:00
twinaphex 8e2dfa6184 Cleanups 2018-04-22 19:19:27 +02:00
twinaphex 8a1f2f5cf2 Update libretro-common 2018-04-22 18:36:30 +02:00
twinaphex 7bef8746a3 Add chd_precache code to libchdr 2018-04-22 18:04:45 +02:00
twinaphex 1fd2cf1ff5 Update libchdr chd 2018-04-22 17:43:57 +02:00
twinaphex db314ff82f Uniquely namespace libchdr source files 2018-04-22 12:10:15 +02:00
twinaphex 710570a408 (MSVC 2013) Buildfix 2018-04-17 11:37:00 +02:00
twinaphex 88d62c7766 Update 2018-04-21 06:31:07 +02:00
twinaphex e5d90eebd7 Updates to libretro-common 2018-04-21 06:29:56 +02:00
twinaphex d8fd499f3d Update count 2018-04-19 23:41:15 +02:00
twinaphex 4d64a94cb2 Updates 2018-04-19 22:28:17 +02:00
twinaphex 835e491c62 Use int64_t type for feeding to filestream_read 2018-04-19 22:26:40 +02:00
twinaphex 74d4bc80d9 (libretro-common) Updates 2018-04-19 09:43:21 +02:00
twinaphex 1c66905f0d Updates 2018-04-19 08:01:07 +02:00
twinaphex 4914c164fa Update file_stream_transforms 2018-04-19 07:56:57 +02:00
twinaphex be7eb4de1c Update libretro-common 2018-04-16 08:57:17 +02:00
twinaphex 7a4c468730 Update libretro-common 2018-04-16 08:34:34 +02:00
twinaphex bb05af0d92 (libchdr) Prevent memory leak 2018-04-15 18:39:42 +02:00
David Walters adf4ed960e Handle null and empty string calls to retro_opendir with a consistent null return. 2018-04-13 10:31:21 +01:00
twinaphex dc61e23a21 Update libretro-common 2018-04-13 01:10:10 +02:00
Twinaphex bd2b913bc6 Silence more warnings 2018-04-13 00:52:52 +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 e7bed050bc Fix memory leak 2018-04-12 20:54:06 +02:00
David Walters 801ecb019a patch retro_opendir to handle nullptr and empty-string input 2018-04-12 12:44:42 +01:00
Twinaphex ad671a153a
Merge pull request #6496 from i30817/fix-scan-dot-in-directories
fix scanner skipping directories with dots
2018-04-11 04:08:12 +02:00
Twinaphex 08a54e45f2 Get rid of a lot of implicit conversions 2018-04-09 15:56:45 +02:00
Twinaphex 91ba0765e6 (libchdr) Silnces xcode warning 2018-04-09 05:58:32 +02:00
twinaphex d0b735735c Update libretro-common 2018-04-08 23:23:01 +02:00
twinaphex a82bb0ec94 Create special type input_bits_t 2018-04-08 20:21:12 +02:00
radius 0ed9f05571 remap-redux part2:
- remapping analogs to buttons works 100%
- remapping analogs to other analogs still messed up for some reason
- need to reset input of the original axis in input_driver.c still
2018-04-08 12:13:49 -05:00
twinaphex 360bea85b9 (PS3) Silence more warnings 2018-04-08 01:09:31 +02:00
David Walters c8a9f5eded Compile fix for _vsnprintf_s, missing standard library header. 2018-04-03 18:33:48 +01:00
Dwedit 36d33deb30 Add message about load state expected to succeed. 2018-03-30 20:41:52 -05:00
Dwedit ec6d6e58d6 Fast Savestate and Hard Audio Disable flags 2018-03-30 20:35:52 -05:00
twinaphex cf4ab13281 Revert "Silence some Clang static analyzer warnings"
This reverts commit 2c882a01c1.
2018-03-30 19:28:37 +02:00
i30817 7e43db9cf1 fix scanner skipping directories with dots 2018-03-30 06:15:10 +01:00
Dwedit 77f2b7d326 Replace the file handling code from secondary_core.c with the file streams
Hide secondary instance menu item if dynamic libraries are not supported
Remove unlink_utf8 stuff
Fix a compiler warning
2018-03-29 09:37:35 -05:00
twinaphex ca7c374303 Fix OSX compilation 2018-03-29 15:41:02 +02:00
twinaphex 1b0420807b (Griffin/MSVC) buildfixes 2018-03-29 15:15:47 +02:00
Twinaphex eeb2a0a934
Merge pull request #6484 from Dwedit/runahead_submission
Runahead system
2018-03-29 14:46:04 +02:00
twinaphex 2c882a01c1 Silence some Clang static analyzer warnings 2018-03-29 14:11:52 +02:00
Dwedit f5e0346fc2 Runahead system 2018-03-28 14:22:07 -05:00
twinaphex e71f56d4a3 Update libretro-common 2018-03-28 16:45:05 +02:00
twinaphex 89e912087b Put RARCH_INTERNAL ifdef around this 2018-03-28 16:41:37 +02:00
twinaphex 167b977c4d Fix some build errors with MSVC 2003/2005 cores 2018-03-28 16:22:35 +02:00
aliaspider 3d96cacd71 add experimental D3D11 hwrender support. 2018-03-25 23:14:14 +01:00
twinaphex 70f598c619 Use boolean.h instead of stdbool.h 2018-03-24 11:41:17 +01:00
Twinaphex 473d978d78
Merge pull request #6444 from Dwedit/original_suggestion
Functions to suspend and resume audio and video, and environment function for core to query status of enabled/disabled audio and video
2018-03-24 09:54:47 +01:00
Dwedit fbd4900031 Add documentation for RETRO_ENVIRONMENT_GET_AUDIO_VIDEO_ENABLE to the header file 2018-03-23 16:33:51 -05:00
Dwedit 7deeb6d2fa Functions to enable and disable audio and video, and an environment function to query status of audio and video enables 2018-03-23 14:12:05 -05:00
twinaphex 85d3be1245 Update libretro-common 2018-03-23 11:17:56 +01:00
twinaphex f597fd7a11 Add HAVE_CHEEVOS support for MSVC 2010 2018-03-22 20:42:06 +01:00
twinaphex c318d05803 Fix buffer overlap - pointed out by @leo150, thanks 2018-03-22 15:22:17 +01:00