aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-18psxbios : Add checks to memset.gameblabla
This now can be a tricky pony and an improper memset implementation means that you can't play Tomb Raider 4 properly. (Trying to put in the eye of horus will just result in Lara sidestepping) This should hopefully be fixed (and follows nocash doc).
2019-07-18psxbios: Add checks to memcpy.gameblabla
Always returns dst
2019-07-18psxbios: Add checks for bzero.gameblabla
Only return 0 if size is invalid. (0 or 0x7FFFFFFF), return dst if not.
2019-07-18psxbios: Add checks for bcopygameblabla
Nocash documentation say that function refuses to copy any data if dst is NULL or len greater than 0x7FFFFFFF. (In any cases, return value is always dst)
2019-07-18psxbios : Add checks to index and rindex callsgameblabla
Return 0 for index/rindex if src is 0x00.
2019-07-18psxbios: Merge upstream fix for Deliverevent in firstfilegameblabla
Looks like it is only executed for memory cards, that makes sense i guess.
2019-07-18psxbios: Should fix input issues in some games.gameblabla
Someone reported that this fixed Negcon controls in Ridge Racer Revolution and Grand Tour Racing. I doubt this will suffer from regressions ?
2019-07-18psxbios: Fix out-of-bounds issue.gameblabla
Make sure to return 0xff is no TCBs are available. Thanks senquack for the proper fix.
2019-07-18Only PCSX4ALL uses ResetIoCycle. Remove it for now.gameblabla
2019-07-18Fixup buread & buwrite being undefined.gameblabla
2019-07-18psxbios: Improve WaitEvent behaviour according to documentationgameblabla
Nocash says it should return 0 if Event is unused, which it already does so it might be safe to remove the warning about it. (see why below) Then, it says that it should return 1 if event is ready (EvStALREADY). When that happens, it should also set it to ready (EvStACTIVE), unless event mode is EvMdINTR. (aka Callback Events) If it is a callback event, then documentation says it should be stuck in a loop forever. It also says that it can sometime return 0 (a BUG according to nocash), especially if it switched from EvStALREADY to EvStACTIVE. Said return value was previously set to 1, for some reasons. Now that we are covering all the corner cases, we should be returning 0 instead by default to cover the BUG. This should cover how most games expects it to behave now and should make it more robust.
2019-07-18psxbios: Better realloc implementationgameblabla
This should be closer to the real behaviour as described by nocash. It doesn't do any bcopy though but it shouldn't be too much different other than that.
2019-07-18psxbios : Add checks for strncatgameblabla
Returns 0 if src or dst is 0x00.
2019-07-18psxbios: Add todigit implementationgameblabla
Based on CTRX's code : https://github.com/machinamentum/CTRX/blob/master/bios/source/libc.c#L152 I'm not aware of any games using it but it doesn't hurt to have it and it should work fine.
2019-07-18psxbios: Adds putc and getc implementationgameblabla
getc will need to be fixed later but this should do as it is. No issues with putc. Both are similar to psxBios_read and psxBios_write, except size is 1.
2019-07-18psxbios: Return 0x1f801814 for gpu_abort_dmagameblabla
Nocash documentation says that it returns the I/O address. I doubt any games use it so but it doesn't hurt to have it.
2019-07-18psxbios: Better EnterCiritcal implementationgameblabla
Nocash documentation says it should return 0 if one or none of the bits were changed and return 1 of both bits were set. This fixes Medievil 2, which would freeze upon starting up a game and this properly fixes Digimon World crashing (with fixed strcat implementation). It also possibly fix other games.
2019-07-18psxbios: Add checks for card_write, card_readgameblabla
This also implements a bug which allows writes to 0x400 (Is supposed to only accept sector number between 0..3FFh). Function should return 0 if sector is invalid.
2019-07-18psxbios: Merging improved card_info function from upstreamgameblabla
It should be closer to the real thing, and this commit and the previous one definitely fixes the save issues in Digimon World.
2019-07-18psxbios: Merging fixes from upstream.gameblabla
DeliverEvent functions are executed right after writing/reading instead of after setting v0. This fixes saving in games like LEGO Racers.
2019-07-18psxbios: Add checks to PAD_initgameblabla
Nocash documentation says that function fails if type is not 0x20000000 or 0x20000001. In case of failure, it should return 0. If not, then it should return 2. This fixes input in Digimon World.
2019-07-18psxbios: Add checks to strcatgameblabla
Nocash documentation says that function fails if src or dst is 0. If so, then it must return 0. This fix is required for fixing crash on bootup in Digimon World.
2019-07-14Merge pull request #312 from retro-wertz/main_ram_mapTwinaphex
Allow access to main ram using retro_get_memory_data/size
2019-07-14Allow access to main ram using retro_get_memory_data/sizeretro-wertz
2019-07-08Merge pull request #309 from jdgleaver/negcon-fixTwinaphex
Fix neGcon input
2019-07-08Fix neGcon inputjdgleaver
2019-07-04Merge pull request #308 from ematysek/rpi4-platformTwinaphex
Add support for rpi4 platform with cortex-a72 cpu
2019-07-03Add support for rpi4 platform with cortex-a72 cpuEric Matysek
2019-06-30Merge pull request #307 from kamicane/masterhizzlekizzle
Report correct geometry and update geometry when needed
2019-06-30add check to avoid calling RETRO_ENVIRONMENT_SET_GEOMETRY unnecessarilyValerio Proietti
2019-06-30report correct geometry and update geometry when needed.Valerio Proietti
2019-06-27Update libretro.cTwinaphex
2019-06-24Add bitmask input codetwinaphex
2019-06-10Merge pull request #296 from retro-wertz/dynarec_speedhackshizzlekizzle
Allow dynarec speedhacks to be applied on-the-fly
2019-06-11Allow dynarec speedhacks to be applied on-the-flyretro-wertz
2019-06-10Merge pull request #295 from retro-wertz/dynarec_speedhackshizzlekizzle
Add core options for some advance settings and dynarec speed hacks
2019-06-11Add core options for some advance settings and dynarec speed hacksretro-wertz
- advance options > Disable XA Decoding, Disable CD Audio - dynarec speedhacks > Disable SMC checks, Assume GTE regs unneeded, Disable GTE Flags
2019-05-21Update Android.mkTwinaphex
2019-05-21(Android) Add HAVE_CHDtwinaphex
2019-05-19Merge pull request #286 from retro-wertz/patch-2hizzlekizzle
Fix CHD build for windows
2019-05-19Merge pull request #290 from retro-wertz/chdhizzlekizzle
Allow building without CHD, disable CHD for 3DS
2019-05-19Allow building without CHD, disable CHD for 3DSretro-wertz
- all platforms compiles with CHD support. - compile with HAVE_CHD=0 for no chd support. - CHD fails building for 3DS, not sure its even fast enough for the device. I tried asking in discord channel but haven't got reply. Disabling it till someone familiar with 3ds can fix it. http://p.0bl.net/123458
2019-05-16Fix CHD build for windowsretro-wertz
cc -DGIT_VERSION=\"" 4b7520c"\" -D__WIN32__ -DNO_DYLIB -D_FILE_OFFSET_BITS=64 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/zlib -Ideps/libchdr -Ideps/crypto -Ideps/flac-1.3.2/include -Ideps/flac-1.3.2/src/libFLAC/include -Ideps/flac-1.3.2/src/libFLAC/include -Ideps/lzma-16.04/C -D'PACKAGE_VERSION="1.3.2"' -DFLAC__HAS_OGG=0 -DFLAC__NO_DLL -DHAVE_LROUND -DHAVE_STDINT_H -DHAVE_STDLIB_H -DFLAC__NO_DLL -D_7ZIP_ST -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o deps/flac-1.3.2/src/libFLAC/bitmath.o deps/flac-1.3.2/src/libFLAC/bitmath.c In file included from deps/flac-1.3.2/src/libFLAC/include/private/bitmath.h:39, from deps/flac-1.3.2/src/libFLAC/bitmath.c:37: deps/flac-1.3.2/include/share/compat.h:57:16: error: conflicting types for 'fseeko64' #define fseeko fseeko64 ^~~~~~~~ In file included from deps/flac-1.3.2/include/share/win_utf8_io.h:37, from deps/flac-1.3.2/include/share/compat.h:150, from deps/flac-1.3.2/src/libFLAC/include/private/bitmath.h:39, from deps/flac-1.3.2/src/libFLAC/bitmath.c:37: D:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:628:7: note: previous declaration of 'fseeko64' was here int fseeko64(FILE* stream, _off64_t offset, int whence); ^~~~~~~~ D:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:632:12: error: conflicting types for 'ftello64' _off64_t ftello64(FILE * stream); ^~~~~~~~ In file included from deps/flac-1.3.2/src/libFLAC/include/private/bitmath.h:39, from deps/flac-1.3.2/src/libFLAC/bitmath.c:37: deps/flac-1.3.2/include/share/compat.h:58:16: note: previous declaration of 'ftello64' was here #define ftello ftello64 ^~~~~~~~ make: *** [Makefile:332: deps/flac-1.3.2/src/libFLAC/bitmath.o] Error 1
2019-05-15Merge pull request #284 from retro-wertz/buildfix_androidhizzlekizzle
Add CHD support for Android
2019-05-16Add CHD support for Androidretro-wertz
- and buildfix
2019-05-15Merge pull request #283 from aliaspider/masterTwinaphex
fix track information when loading CHDs.
2019-05-15fix track information when loading CHDs.aliaspider
2019-05-14Fixed cflags for PSC build (#281)Wes Smith
* Committer: Wes Smith <wraith@smithmedia.wraithbox.com> On branch master Your branch is up to date with 'origin/master'. Changes to be committed: modified: Makefile.libretro Added v8a35 to Makefile * modified makefile with libretro changes * New makefile format from libretro * Updated with PSClassic Make again * Updated PSC config * Fix compile flags Re-add optimizations, -mtune
2019-05-14Merge pull request #280 from aliaspider/masterTwinaphex
add CHD support.
2019-05-14add CHD support.aliaspider