pcsx_rearmed.git
4 years agoMerge pull request #156 from pcercuei/fix-gte-divide
notaz [Sun, 16 Feb 2020 18:03:39 +0000 (20:03 +0200)]
Merge pull request #156 from pcercuei/fix-gte-divide

Replace existing gte_divider with MAME's version

4 years agoReplace existing gte_divider with MAME's version
Paul Cercueil [Wed, 12 Feb 2020 18:38:16 +0000 (15:38 -0300)]
Replace existing gte_divider with MAME's version

The original code did not have a license header, and as a result was
licensed under the GPLv2 which means that it was impossible to link it
with LGPL code.

The new code originates from MAME and is under a BSD-3-Clause license,
which is GPL-compatible, and also much cleaner.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
4 years agoSilence some unused variable warnings
twinaphex [Wed, 12 Feb 2020 12:10:32 +0000 (13:10 +0100)]
Silence some unused variable warnings

4 years agoTake out this override for OSX
twinaphex [Wed, 12 Feb 2020 11:58:21 +0000 (12:58 +0100)]
Take out this override for OSX

4 years agoBuildfix
twinaphex [Wed, 12 Feb 2020 11:56:04 +0000 (12:56 +0100)]
Buildfix

4 years agogte_neon: fix compile under clang's assembler
notaz [Tue, 11 Feb 2020 23:19:43 +0000 (01:19 +0200)]
gte_neon: fix compile under clang's assembler

4 years agoadd some missing license headers
notaz [Tue, 11 Feb 2020 23:46:45 +0000 (01:46 +0200)]
add some missing license headers

4 years agogte_neon: fix compile under clang's assembler
notaz [Tue, 11 Feb 2020 23:19:43 +0000 (01:19 +0200)]
gte_neon: fix compile under clang's assembler

4 years agoLicense these files as MIT
twinaphex [Sat, 8 Feb 2020 20:40:17 +0000 (21:40 +0100)]
License these files as MIT

4 years agoUpdate Android.mk
Twinaphex [Sun, 9 Feb 2020 16:32:26 +0000 (17:32 +0100)]
Update Android.mk

4 years ago(Android) Aarch64/x86/x64 now has lightrec support
twinaphex [Sun, 9 Feb 2020 13:12:16 +0000 (14:12 +0100)]
(Android) Aarch64/x86/x64 now has lightrec support

4 years agoBuildfix for LLVM
twinaphex [Sun, 9 Feb 2020 11:17:52 +0000 (12:17 +0100)]
Buildfix for LLVM

4 years agoOSX should use lightrec
Twinaphex [Sun, 9 Feb 2020 10:18:38 +0000 (11:18 +0100)]
OSX should use lightrec

4 years agoFix build
Twinaphex [Sun, 9 Feb 2020 10:16:48 +0000 (11:16 +0100)]
Fix build

4 years agoUpdate Makefile.libretro
Twinaphex [Sun, 9 Feb 2020 10:12:18 +0000 (11:12 +0100)]
Update Makefile.libretro

4 years agoUpdate psxmem.c
Twinaphex [Sun, 9 Feb 2020 07:58:45 +0000 (08:58 +0100)]
Update psxmem.c

4 years ago(NEON GPU) Don't hide this for non-ARM
twinaphex [Sat, 8 Feb 2020 22:22:01 +0000 (23:22 +0100)]
(NEON GPU) Don't hide this for non-ARM

4 years agoStart getting NEON GPU to work on non-Arm
twinaphex [Sat, 8 Feb 2020 21:19:13 +0000 (22:19 +0100)]
Start getting NEON GPU to work on non-Arm

4 years agoLicense this MIT - should be compatible with everything
twinaphex [Sat, 8 Feb 2020 20:39:07 +0000 (21:39 +0100)]
License this MIT - should be compatible with everything

4 years agoMerge pull request #381 from negativeExponent/travis_update
Twinaphex [Sat, 8 Feb 2020 20:33:17 +0000 (21:33 +0100)]
Merge pull request #381 from negativeExponent/travis_update

Update .travis.yml

4 years agoMerge pull request #380 from negativeExponent/fix_makefile
Twinaphex [Sat, 8 Feb 2020 20:33:08 +0000 (21:33 +0100)]
Merge pull request #380 from negativeExponent/fix_makefile

Update Makefile.libretro

4 years agomenu: fix a buffer overflow
notaz [Sat, 8 Feb 2020 19:29:08 +0000 (21:29 +0200)]
menu: fix a buffer overflow

Reported by @wwhheerree, closes #152.

4 years agoUpdate .travis.yml
negativeExponent [Sat, 8 Feb 2020 17:21:50 +0000 (01:21 +0800)]
Update .travis.yml

4 years agoUpdate Makefile.libretro
negativeExponent [Sat, 8 Feb 2020 16:25:27 +0000 (00:25 +0800)]
Update Makefile.libretro

4 years agoMerge pull request #378 from pcercuei/libretro
Twinaphex [Sat, 8 Feb 2020 16:25:34 +0000 (17:25 +0100)]
Merge pull request #378 from pcercuei/libretro

Fix Linux build

4 years agoFix Linux build
Paul Cercueil [Sat, 8 Feb 2020 16:00:30 +0000 (13:00 -0300)]
Fix Linux build

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
4 years agoMerge pull request #377 from pcercuei/libretro
Twinaphex [Sat, 8 Feb 2020 15:24:22 +0000 (16:24 +0100)]
Merge pull request #377 from pcercuei/libretro

Lightrec dynarec

4 years agocdrom: add missing BCD->int convert in cdrFreeze()
Daniel Silsby [Tue, 12 Nov 2019 23:48:44 +0000 (18:48 -0500)]
cdrom: add missing BCD->int convert in cdrFreeze()

For some Eboot .PBP game images, when loading a savestate, a zlib error
like 'uncompress failed with -5 for block 5383, sector 86132' would be
output to stdout/stderr. The savestate would still be playable, though.

Traced it down to cdrFreeze() failing to convert cdr.Prev from BCD->int
when calling ReadTrack(). Note that the odd 'cdr.Prev[0]++;' line seems
to be someone's hacky way of forcing ReadTrack() to avoid skipping what
it thinks is a duplicate sector read.

4 years agogpulib: fix out-of-bounds reads in do_cmd_buffer()
Daniel Silsby [Sat, 9 Nov 2019 01:30:04 +0000 (20:30 -0500)]
gpulib: fix out-of-bounds reads in do_cmd_buffer()

When gpu.cmd_buffer[] is filling up, and the last 1 or 2 words
in it are the beginning of a new vram read/write cmd, do_cmd_buffer()
would access out-of-bounds, reading garbage pos/size data.

Fixes corrupted gfx in this PS1 .exe test utility:
https://github.com/PeterLemon/PSX/tree/master/CPUTest/CPU/LOADSTORE/LW
(This and all similar tests on Peter's site).
Note that gfx access in this utility is done entirely through cmds given
through GPUwriteData(), i.e. direct CPU->GP0 stores, not DMA.

4 years agoAdd support for the Lightrec dynarec
Paul Cercueil [Tue, 7 Jan 2020 17:26:14 +0000 (14:26 -0300)]
Add support for the Lightrec dynarec

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
4 years agopcsxmem: mmap RAM/BIOS/scratchpad to better locations
Paul Cercueil [Thu, 30 Jan 2020 13:15:16 +0000 (15:15 +0200)]
pcsxmem: mmap RAM/BIOS/scratchpad to better locations

This permits the Lightrec dynarec to emit better code.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
4 years agogit subrepo clone (merge) https://github.com/witwall/mman-win32 deps/mman
Paul Cercueil [Thu, 30 Jan 2020 23:18:58 +0000 (20:18 -0300)]
git subrepo clone (merge) https://github.com/witwall/mman-win32 deps/mman

subrepo:
  subdir:   "deps/mman"
  merged:   "2d1c576e"
upstream:
  origin:   "https://github.com/witwall/mman-win32"
  branch:   "master"
  commit:   "2d1c576e"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "a04d8c2"

4 years agogit subrepo clone https://github.com/pcercuei/lightrec.git deps/lightrec
Paul Cercueil [Thu, 30 Jan 2020 15:34:17 +0000 (12:34 -0300)]
git subrepo clone https://github.com/pcercuei/lightrec.git deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "6c69e10"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "6c69e10"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "a04d8c2"

4 years agogit subrepo clone https://git.savannah.gnu.org/git/lightning.git deps/lightning
Paul Cercueil [Thu, 30 Jan 2020 15:33:44 +0000 (12:33 -0300)]
git subrepo clone https://git.savannah.gnu.org/git/lightning.git deps/lightning

subrepo:
  subdir:   "deps/lightning"
  merged:   "b0b8eb5"
upstream:
  origin:   "https://git.savannah.gnu.org/git/lightning.git"
  branch:   "master"
  commit:   "b0b8eb5"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "a04d8c2"

4 years agoMerge pull request #376 from stuken/joycon_axis_fix
Twinaphex [Sat, 1 Feb 2020 14:04:03 +0000 (15:04 +0100)]
Merge pull request #376 from stuken/joycon_axis_fix

Add input analog axis range modifier

4 years agoAdd input analog axis range modifier
Stuart Kenny [Sat, 1 Feb 2020 13:20:01 +0000 (13:20 +0000)]
Add input analog axis range modifier

Add core option to change axis saturation. Square bounds allow controllers that struggle to fully register diagonal deflections . Very helpful with switch joycons and some android controllers.

4 years agoMerge pull request #375 from jdgleaver/disk-control-v1
Twinaphex [Thu, 23 Jan 2020 15:09:53 +0000 (16:09 +0100)]
Merge pull request #375 from jdgleaver/disk-control-v1

Add disk control interface v1 support

4 years agoAdd disk control interface v1 support
jdgleaver [Thu, 23 Jan 2020 14:58:53 +0000 (14:58 +0000)]
Add disk control interface v1 support

4 years agoMerge pull request #370 from negativeExponent/switch
Twinaphex [Mon, 16 Dec 2019 17:59:27 +0000 (18:59 +0100)]
Merge pull request #370 from negativeExponent/switch

Update psxbios.c

4 years agoUpdate psxbios.c
negativeExponent [Mon, 16 Dec 2019 17:53:01 +0000 (01:53 +0800)]
Update psxbios.c

4 years agoMerge pull request #369 from negativeExponent/switch
Twinaphex [Mon, 16 Dec 2019 17:50:50 +0000 (18:50 +0100)]
Merge pull request #369 from negativeExponent/switch

Update

4 years agoUpdate
negativeExponent [Mon, 16 Dec 2019 17:10:56 +0000 (01:10 +0800)]
Update

4 years agoMerge pull request #368 from negativeExponent/memmap
Twinaphex [Sat, 14 Dec 2019 18:09:16 +0000 (19:09 +0100)]
Merge pull request #368 from negativeExponent/memmap

Access psx main memory using retro_memory_map

4 years agoMerge pull request #360 from negativeExponent/spu_irq
Twinaphex [Sat, 14 Dec 2019 18:09:04 +0000 (19:09 +0100)]
Merge pull request #360 from negativeExponent/spu_irq

Add "Spu Irq" core option

4 years agoAccess psx main memory using retro_memory_map
negativeExponent [Sat, 14 Dec 2019 17:54:30 +0000 (01:54 +0800)]
Access psx main memory using retro_memory_map

4 years agoMerge pull request #147 from senquack/cdrom_sstate_fix
notaz [Tue, 19 Nov 2019 22:24:11 +0000 (00:24 +0200)]
Merge pull request #147 from senquack/cdrom_sstate_fix

cdrom: add missing BCD->int convert in cdrFreeze()

4 years agocdrom: add missing BCD->int convert in cdrFreeze()
Daniel Silsby [Tue, 12 Nov 2019 23:48:44 +0000 (18:48 -0500)]
cdrom: add missing BCD->int convert in cdrFreeze()

For some Eboot .PBP game images, when loading a savestate, a zlib error
like 'uncompress failed with -5 for block 5383, sector 86132' would be
output to stdout/stderr. The savestate would still be playable, though.

Traced it down to cdrFreeze() failing to convert cdr.Prev from BCD->int
when calling ReadTrack(). Note that the odd 'cdr.Prev[0]++;' line seems
to be someone's hacky way of forcing ReadTrack() to avoid skipping what
it thinks is a duplicate sector read.

4 years agoMerge pull request #146 from senquack/gpulib_fix
notaz [Mon, 11 Nov 2019 18:50:44 +0000 (20:50 +0200)]
Merge pull request #146 from senquack/gpulib_fix

gpulib: fix out-of-bounds reads in do_cmd_buffer()

4 years agogpulib: fix out-of-bounds reads in do_cmd_buffer()
Daniel Silsby [Sat, 9 Nov 2019 01:30:04 +0000 (20:30 -0500)]
gpulib: fix out-of-bounds reads in do_cmd_buffer()

When gpu.cmd_buffer[] is filling up, and the last 1 or 2 words
in it are the beginning of a new vram read/write cmd, do_cmd_buffer()
would access out-of-bounds, reading garbage pos/size data.

Fixes corrupted gfx in this PS1 .exe test utility:
https://github.com/PeterLemon/PSX/tree/master/CPUTest/CPU/LOADSTORE/LW
(This and all similar tests on Peter's site).
Note that gfx access in this utility is done entirely through cmds given
through GPUwriteData(), i.e. direct CPU->GP0 stores, not DMA.

5 years agoAdd "Spu Irq" core option
negativeExponent [Sat, 26 Oct 2019 16:46:50 +0000 (00:46 +0800)]
Add "Spu Irq" core option

5 years agoMerge pull request #351 from SindenLightgun/master
Twinaphex [Thu, 24 Oct 2019 18:11:31 +0000 (20:11 +0200)]
Merge pull request #351 from SindenLightgun/master

Basic Guncon support

5 years agoMerge pull request #358 from Sakitoshi/master
Twinaphex [Thu, 24 Oct 2019 18:11:17 +0000 (20:11 +0200)]
Merge pull request #358 from Sakitoshi/master

sbi support for multidisc pbp

5 years agosbi support for multidisc pbp
Sakitoshi [Thu, 24 Oct 2019 04:14:07 +0000 (01:14 -0300)]
sbi support for multidisc pbp

same syntaxis as beetle-psx, name the sbi file after the pbp and append an underscore and the number of the disc at the end.

5 years agoMerge pull request #354 from justinweiss/move-to-thread-api
Twinaphex [Mon, 7 Oct 2019 16:09:17 +0000 (18:09 +0200)]
Merge pull request #354 from justinweiss/move-to-thread-api

3DS: Switch from svc* to the thread* API

5 years ago3DS: Switch from svc* to the thread* API
Justin Weiss [Sun, 6 Oct 2019 04:35:06 +0000 (21:35 -0700)]
3DS: Switch from svc* to the thread* API

svcCreateThread doesn't fully set up thread vars, which causes
svcBreaks / crashes when calling certain functions -- reentrant ones,
for example. threadCreate, etc. are higher-level functions that do all
the correct setup and cleanup.

Since we're treating the thread structure as opaque, calling it an
int_32t seems OK.

5 years agoMerge pull request #353 from justinweiss/default-thread-cpu-3ds
Twinaphex [Thu, 3 Oct 2019 01:49:41 +0000 (03:49 +0200)]
Merge pull request #353 from justinweiss/default-thread-cpu-3ds

3DS: Schedule threads on the default core

5 years ago3DS: Schedule threads on the default core
Justin Weiss [Thu, 3 Oct 2019 00:49:12 +0000 (17:49 -0700)]
3DS: Schedule threads on the default core

When creating a thread, pcsx was scheduling threads on core 1, which
is the system core. This is usually prevented by the system. Instead,
it should schedule threads on the default core, as suggested by
3dbrew: https://www.3dbrew.org/wiki/Multi-threading

> Games usually create threads using -2.

In the future, we may be able to schedule threads on core 2 on New 3DS
only, if we find it gives better performance.

This was preventing the CDDA thread from starting, which was
preventing CD Audio from playing.

5 years agoMerge pull request #349 from negativeExponent/unai_plugin_update
Twinaphex [Wed, 25 Sep 2019 16:17:57 +0000 (18:17 +0200)]
Merge pull request #349 from negativeExponent/unai_plugin_update

update gpu_unai plugin

5 years agoMerge branch 'gpu_unai_plugin_update'
negativeExponent [Wed, 25 Sep 2019 02:53:17 +0000 (10:53 +0800)]
Merge branch 'gpu_unai_plugin_update'

5 years agoMerge pull request #348 from justinweiss/remove-utime
Twinaphex [Mon, 23 Sep 2019 02:50:52 +0000 (04:50 +0200)]
Merge pull request #348 from justinweiss/remove-utime

Stop calling utime on 3ds

5 years agoStop calling utime on 3ds
Justin Weiss [Mon, 23 Sep 2019 02:14:07 +0000 (19:14 -0700)]
Stop calling utime on 3ds

The toolchain doesn't have utime defined, so these calls will fail.

5 years agoMerge pull request #347 from justinweiss/enable-chd-3ds
Twinaphex [Mon, 23 Sep 2019 00:17:59 +0000 (02:17 +0200)]
Merge pull request #347 from justinweiss/enable-chd-3ds

Enable CHD on 3DS builds

5 years agoEnable CHD on 3DS builds
Justin Weiss [Mon, 23 Sep 2019 00:12:20 +0000 (17:12 -0700)]
Enable CHD on 3DS builds

I don't know what build errors were happening before, but this built
cleanly for me.

5 years agoMerge pull request #345 from justinweiss/enable-unai-3ds
Twinaphex [Sun, 22 Sep 2019 00:35:24 +0000 (02:35 +0200)]
Merge pull request #345 from justinweiss/enable-unai-3ds

Re-enable unai on 3DS

5 years agoMerge pull request #346 from justinweiss/fix-sound-3ds
Twinaphex [Sun, 22 Sep 2019 00:08:23 +0000 (02:08 +0200)]
Merge pull request #346 from justinweiss/fix-sound-3ds

Fix sound over-buffering on 3ds

5 years agoFix sound over-buffering on 3ds
Justin Weiss [Sat, 21 Sep 2019 23:49:45 +0000 (16:49 -0700)]
Fix sound over-buffering on 3ds

With iTempo turned on, we generate a frame and a half of sound data
each frame, which causes dropped sound frames and noise.

It looks like GPH hacks are disabled for 3ds in other places, so
disabling it here too seemed like the correct fix.

5 years agoRe-enable unai on 3DS
Justin Weiss [Sat, 21 Sep 2019 23:44:31 +0000 (16:44 -0700)]
Re-enable unai on 3DS

It now builds properly, and is much much faster.

5 years agoAdding Guncon support for mouse based lightguns
SindenLightgun [Sat, 14 Sep 2019 23:11:53 +0000 (00:11 +0100)]
Adding Guncon support for mouse based lightguns

5 years agoAdding Guncon support for mouse based lightguns
SindenLightgun [Sat, 14 Sep 2019 23:06:20 +0000 (00:06 +0100)]
Adding Guncon support for mouse based lightguns

5 years agoUpdate psemu_plugin_defs.h
SindenLightgun [Sat, 14 Sep 2019 23:03:36 +0000 (00:03 +0100)]
Update psemu_plugin_defs.h

5 years agoAdding Guncon support for mouse based lightguns
SindenLightgun [Sat, 14 Sep 2019 23:02:42 +0000 (00:02 +0100)]
Adding Guncon support for mouse based lightguns

5 years agoAdding Guncon support for mouse based lightguns
SindenLightgun [Sat, 14 Sep 2019 23:01:43 +0000 (00:01 +0100)]
Adding Guncon support for mouse based lightguns

5 years agoAdding Guncon support for mouse based lightguns
SindenLightgun [Sat, 14 Sep 2019 22:59:29 +0000 (23:59 +0100)]
Adding Guncon support for mouse based lightguns

5 years agoAdding Guncon support for mouse based lightguns
SindenLightgun [Sat, 14 Sep 2019 22:57:30 +0000 (23:57 +0100)]
Adding Guncon support for mouse based lightguns

5 years agoAdding Guncon support for mouse based lightguns
SindenLightgun [Sat, 14 Sep 2019 22:54:40 +0000 (23:54 +0100)]
Adding Guncon support for mouse based lightguns

5 years agoMerge pull request #339 from dankcushions/patch-1
Twinaphex [Wed, 21 Aug 2019 23:24:21 +0000 (01:24 +0200)]
Merge pull request #339 from dankcushions/patch-1

Added support for PSXONPSP660.bin and psx* named BIOS files

5 years agoAdded support for PSXONPSP660.bin and psx* named BIOS files
dankcushions [Wed, 21 Aug 2019 22:47:11 +0000 (23:47 +0100)]
Added support for PSXONPSP660.bin and psx* named BIOS files

5 years agoBackport GPU Unai plugin from PCSX4ALL
negativeExponent [Sat, 17 Aug 2019 01:31:06 +0000 (09:31 +0800)]
Backport GPU Unai plugin from PCSX4ALL

- backports gpu unai plugin from PCSX4ALL
- sync necessary files with notaz/master to allow building standalone app

5 years agoMerge pull request #335 from yoshisuga/ios-arm64-buildbot-fix
Twinaphex [Wed, 14 Aug 2019 15:57:51 +0000 (17:57 +0200)]
Merge pull request #335 from yoshisuga/ios-arm64-buildbot-fix

iOS: support for building using buildbot recipe

5 years agoMerge pull request #334 from jdgleaver/options-update
Twinaphex [Wed, 14 Aug 2019 13:19:52 +0000 (15:19 +0200)]
Merge pull request #334 from jdgleaver/options-update

Update 'libretro_core_options.h' to v1.3 format

5 years agoUpdate 'libretro_core_options.h' to v1.3 format
jdgleaver [Wed, 14 Aug 2019 13:10:51 +0000 (14:10 +0100)]
Update 'libretro_core_options.h' to v1.3 format

5 years agoiOS: support for building using buildbot recipe
Yoshi Sugawara [Tue, 13 Aug 2019 20:40:25 +0000 (10:40 -1000)]
iOS: support for building using buildbot recipe

5 years agoMerge pull request #330 from retro-wertz/skip_plugins
Twinaphex [Wed, 7 Aug 2019 11:58:05 +0000 (13:58 +0200)]
Merge pull request #330 from retro-wertz/skip_plugins

Do not compile plugins when using the non-static build method

5 years agoDo not compile plugins when using the non-static build method
retro-wertz [Wed, 7 Aug 2019 10:49:38 +0000 (18:49 +0800)]
Do not compile plugins when using the non-static build method

- This is meant for platforms that still uses the non-static build method to compile the libretro core (aka versions of retropie)
- The output file is still libretro.so to preserve any compatibility with existing script
- Using the static makefile is still recommended.

5 years agoMerge pull request #328 from retro-wertz/sanitize_gpu_adv_options
Twinaphex [Mon, 5 Aug 2019 02:53:52 +0000 (04:53 +0200)]
Merge pull request #328 from retro-wertz/sanitize_gpu_adv_options

Sanitize gpu adv options and close plugins upon exiting core

5 years agoMerge pull request #327 from retro-wertz/patch-4
Twinaphex [Mon, 5 Aug 2019 01:52:56 +0000 (03:52 +0200)]
Merge pull request #327 from retro-wertz/patch-4

Fix main RAM size in retro_get_memory_size

5 years agoClose plugins when exiting core
retro-wertz [Mon, 5 Aug 2019 01:52:18 +0000 (09:52 +0800)]
Close plugins when exiting core

5 years agoUpdate advanced peops gpu core options
retro-wertz [Mon, 5 Aug 2019 01:46:37 +0000 (09:46 +0800)]
Update advanced peops gpu core options

5 years agoFix main RAM size in retro_get_memory_size
retro-wertz [Sun, 4 Aug 2019 23:39:22 +0000 (07:39 +0800)]
Fix main RAM size in retro_get_memory_size

PSX Main RAM should only by 2048KB

5 years agoMerge pull request #326 from retro-wertz/silence_warnings
hizzlekizzle [Sat, 3 Aug 2019 13:33:29 +0000 (08:33 -0500)]
Merge pull request #326 from retro-wertz/silence_warnings

silence warnings and a few core fixes

5 years agoMerge pull request #139 from retro-wertz/patch-3
notaz [Sat, 3 Aug 2019 13:22:14 +0000 (16:22 +0300)]
Merge pull request #139 from retro-wertz/patch-3

Fix corrupted memory card saves when using HLE

5 years agoFix corrupted memory card saves when using HLE
retro-wertz [Sat, 3 Aug 2019 13:04:35 +0000 (21:04 +0800)]
Fix corrupted memory card saves when using HLE

- This is fixed by adding the missing SaveMcd() to buwrite().

Tested on Wild Arms and Breath of Fire III

5 years agoSilence a few more warnings
retro-wertz [Sat, 3 Aug 2019 12:56:36 +0000 (20:56 +0800)]
Silence a few more warnings

- silence a few more truncated warnings
- change "disable" to "disabled" in core options

5 years agoHLE BIOS: Fix corrupted memory card saves
retro-wertz [Sat, 3 Aug 2019 12:27:27 +0000 (20:27 +0800)]
HLE BIOS: Fix corrupted memory card saves

- Save files for games that are suppose to work with HLE bios are now corrupted from the last HLE BIOS improvements PR.
- This only affects memcard 2 slot when enabled and used. Saves on memcard 1 are fine since those are directly handled through the Libretro API.
- This is fixed by adding the missing SaveMcd() to buwrite().

Tested on Wild Arms and Breath of Fire III

NOTE: HLE bios is still not compatible for most games. For example, memory card save functions are broken or does not work at all. Most of Konami games i have tested does not work with HLE BIOS for memory card saves.

5 years agopsxbios.c: Cleanup buopen()
retro-wertz [Sat, 3 Aug 2019 09:53:45 +0000 (17:53 +0800)]
psxbios.c: Cleanup buopen()

- This just silences some [-Wpointer-sign] warning from last PR

5 years agoFix region detection for Wild Arms
retro-wertz [Sat, 3 Aug 2019 04:02:35 +0000 (12:02 +0800)]
Fix region detection for Wild Arms

- Wild Arms EU and US version has non-standard string (probably for region protection) causing auto-region detection to fail and wrong CDROM info in log.
- This fix sanitizes the string name to remove unneeded characters ("EXE\" in this case that comes before the serial-number). This would sanitize the CD-ROM info in log as well.

5 years agoSilence warning -Wstringop-truncation
retro-wertz [Sat, 3 Aug 2019 03:13:47 +0000 (11:13 +0800)]
Silence warning -Wstringop-truncation

-strncpy replaced with strcpy and memcpy where appropriate

5 years agoSilence warning -Wformat-overflow
retro-wertz [Sat, 3 Aug 2019 00:35:12 +0000 (08:35 +0800)]
Silence warning -Wformat-overflow

- Increasing the maximum size of destination char array to x2 to silence this warning.

5 years agoMerge pull request #325 from retro-wertz/SysPrintf_to_retro_log
hizzlekizzle [Fri, 2 Aug 2019 13:38:48 +0000 (08:38 -0500)]
Merge pull request #325 from retro-wertz/SysPrintf_to_retro_log

SysPrintf to retro_log and silence some warnings

5 years agoSanitize Loaded CD image string in log
retro-wertz [Fri, 2 Aug 2019 12:55:20 +0000 (20:55 +0800)]
Sanitize Loaded CD image string in log