2429 Commits

Author SHA1 Message Date
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 b201d669b5ea1470bb239036aa944342a0591a95, 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