Flyinghead
36acae9a00
gdi: treat slash as path separator on windows
2019-03-29 14:19:41 +01:00
Flyinghead
c809c6c56f
Merge branch 'fh/mymaster' into fh/master-merge
2019-03-25 16:47:47 +01:00
Flyinghead
c3b93cfd8d
gdi: set correct CTRL value in TOC
2019-03-20 14:33:55 +01:00
Flyinghead
34f46fb482
gdi: set correct CTRL value in TOC
2019-03-16 12:06:29 +01:00
Flyinghead
5e65d2a19d
Per-game configuration: create/delete from gui
...
Removed unused settings
Per-game setting can override any setting
Built-in per-game settings can be overriden
2019-02-16 14:25:54 +01:00
Flyinghead
19bddc942a
android: add cue files to string res
2019-02-03 14:04:54 +01:00
Flyinghead
d567ae67f7
redump.org cuesheet support
2019-02-03 13:48:55 +01:00
Flyinghead
63c4a16459
preliminary support for CUE files
2019-01-30 18:28:49 +01:00
David Miller
6936bc2ec5
Merge pull request #1477 from reicast/baka/cdi_leak
...
CDI: coreio file handle leak in cdi image reader
2019-01-03 06:33:16 -10:00
Flyinghead
f20e4d8f7f
coreio file handle leak in cdi image reader
2019-01-02 18:29:13 +01:00
Flyinghead
0eccf5775b
Check CDI version to avoid loading any crap as a CDI image and crashing
...
Less console spam, better error reporting
2019-01-02 18:06:06 +01:00
Flyinghead
bed7a83b77
Check CDI version to avoid loading any crap as a CDI image and crashing
...
Less console spam, better error reporting
2019-01-02 16:43:36 +01:00
Flyinghead
bcc8fd57e2
gdrom: Notify the game that the lid is closed when swapping disc
2018-12-21 15:31:04 +01:00
Christoph "baka0815" Schwerdtfeger
001a767ab7
CHD: swap bytes of CHDv5+ audio tracks
...
Thanks @flyinghead
See https://github.com/libretro/reicast-emulator/pull/370
2018-11-03 19:29:55 +01:00
Christoph "baka0815" Schwerdtfeger
161e84598d
Respect the offset of the padding
...
The StartHunk logic was flawed and while working with CHD files before v5 didn't work for v5 (and above).
The extraframes logic did work in some cases (read 3 track CHDv5) but didn't work in all cases and was merely a hack in retrospective.
Thanks to the comment of @flyinghead (see also b6c2508922 (diff-cb507bb17d74342aa45b6e4d10d607af)
) the logic is now correct and works for v4 and v5 files.
2018-11-03 19:24:53 +01:00
Flyinghead
2003fc88d7
CHD v5 support
2018-11-02 10:14:25 +01:00
Christoph "baka0815" Schwerdtfeger
6f358ebf8f
CHD: Only pad when version >= 5
2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger
98c1e7253c
CHD: Use the hunk caching
...
We didn't remember the last hunk and always read again.
2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger
4bb9507695
CHD: Reworked the extra frame handling
...
This way Sonic 2, F355, Crazy Taxi, Rayman 2 and Daytona USA work.
2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger
4691418689
CHD: Check for extra frames
...
If the frame count is not dividable by 4, there are extra frames added to keep a padding.
This is true for F355 (450 frames -> 2 extra frames) and others.
Also move CD_TRACK_PADDING to chd.cpp to work around problems with including from C and C++.
2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger
d24b68f592
CHD: read additional track types
...
Also don't print "Unable to find metadata" as it's mostly not true (we reach this part after the last track)
2018-10-30 21:27:25 +01:00
Flyinghead
bffccac5a6
coreio file handle leak in cdi image reader
2018-10-29 16:45:49 +01:00
null void
5496b52cdf
removed nullptr, after the previous rollback was remerged (partially?) it seems to be causing trouble for builds with old compilers, where c++ std isn't set to at least 11, etc.
2018-10-24 11:37:31 -04:00
Flyinghead
282534d7bc
cdi, chd: better error messages
2018-10-22 17:39:02 +02:00
flyinghead
21f47c03ec
Fix dynarec x64 crash with mingw64.
...
Get rid of CDI warning pop up dialog
2018-09-25 12:27:37 +02:00
Flyinghead
7ce4fccb37
Merge remote-tracking branch 'origin/master' into fh/mymaster
2018-09-20 17:28:41 +02:00
Abandoned Cart
4ed65fca3d
Revert "Fix to windows OpenFile dialog #1238"
2018-08-28 13:38:11 -04:00
Abandoned Cart
a1996f0fe9
Merge pull request #1352 from reicast/pold500/fix-openfile-dialog
...
Fix to windows OpenFile dialog #1238
2018-08-28 08:12:42 -04:00
Abandoned Cart
95c06b942b
Fix formatting to force restart wercker
2018-08-28 07:50:30 -04:00
Pavel Dmytriiev (Github)
88c104580c
Revert C++11 changes
2018-08-27 23:22:07 -04:00
Pavel Dmytriiev (Github)
3677e23e1d
Fixed magic digits sense codes with some meaningful values
2018-08-27 23:22:07 -04:00
Pavel Dmytriiev (Github)
a4e6dbadb5
Fix to windows OpenFile dialog
...
Now it actually says something about what exactly it tries to open, also on "cancel" it exits gracefully.
Proposal: instead of checking one thousand return codes, which are easily ignored, I suggest using an exceptions (this part of emulator doesn't require execution speed, so exceptions here would be just fine).
2018-08-27 23:20:39 -04:00
Christoph "baka0815" Schwerdtfeger
81faa0935c
CDI: Only warn if CDI image was really loaded
...
If no image was loaded (or using ioctl) the CDI warning was always printed.
2018-08-27 10:40:08 +02:00
Ender's Games
75215ec0d1
Core: Address some obvious lgtm issues
2018-08-21 02:52:03 -04:00
Ender's Games
8f82e926b8
Android: Improve msgbox, printf cdi workaround
...
This partially reverts commit 405909bf91304db275dde4d163befa8fc654874f.
2018-08-20 23:50:47 -04:00
David Miller
1a4f597bd8
ngen_mainloop for x86 updated to use PC value from context, CDI warning
...
and removed redundant header causing build failure on libwebsockets (VS)
2018-08-20 23:49:15 -04:00
Ender's Games
8d9d40dffc
Core: Changes provided by Android NDK compiler
2018-08-19 01:54:15 -04:00
Stefanos Kornilios Mitsis Poiitidis
b121fd1ba2
Revert "ngen_mainloop for x86 updated to use PC value from context, CDI warning"
...
This reverts commit 38539a9c2f
.
Reason: Breakage reported by beta testers
See #1260
2018-08-07 14:30:42 +02:00
David Miller
38539a9c2f
ngen_mainloop for x86 updated to use PC value from context, CDI warning
...
and removed redundant header causing build failure on libwebsockets (VS)
2018-08-06 15:01:15 -04:00
Flyinghead
e18eaf666d
Support for 2448-byte sectors
...
Pier Solar and the Great Architects CDI uses an unknown type 4 sector of
2448 bytes. This hack allows the CDI to be read. Not sure about the
correctness.
2018-07-12 11:10:11 +02:00
git@baka0815.de
852d644a5f
GDI: Explicitly set skipws-flag
...
It's not neccesarry to set it every iteration, so just set it before and reset it afterwards.
2018-06-25 09:14:51 +02:00
Christoph "baka0815" Schwerdtfeger
41ee5707a8
GDI: Reset skipws-flag
2018-06-24 14:30:46 +02:00
Stefanos Kornilios Mitsis Poiitidis
34b495baa7
Merge pull request #1098 from reicast/pr/1092
...
fix gdi track parsing in unix #1092
2018-04-19 20:51:13 +02:00
Stefanos Kornilios Mitsis Poiitidis
90e901f4a3
gdi: Normalize paths, add test gdi files
2018-04-18 22:28:05 +02:00
Stefanos Kornilios Mitsis Poiitidis
4300951b51
gdi: Cleanup path code, use C++ strings
2018-04-11 11:40:15 +02:00
TwistedUmbrella
fb418d568c
Don't skip whitespace when reading filename
...
https://stackoverflow.com/a/6774866
2018-04-02 03:51:38 -04:00
TwistedUmbrella
052c5c1cb3
Fix for Windows missing definition of ssize_t
2018-04-02 02:54:30 -04:00
i30817
3fdd7f50ea
fix gdi track parsing in unixx
...
Same problem as https://github.com/libretro/reicast-emulator/pull/24
in unix that iteration would not work if the path of the original .gdi file (where we are finding the 'parent directory') was:
1. not existent, ie a gdi on the same directory as the current. It was iterating until the index 3 and stop there. Disaster strikes later ofc, if the first characters weren't C:\ or other thing like that.
2. in a relative subdirectory that is 'small enough' ie: a/crazy-taxi.gdi. In this case the last '/' wouldn't be found, the derived string would be 'crazy-taxi.gdi' and the file not found ofc.
Anyway, this can be solved simply by searching the whole string and using a signed integer. It will go up to -1, stop iteration and increase to 0 on the len++.
Dunno if using relative subdirectories for the tracks on *other* platforms works because of the path separator being different from what's inside the gdi but with this code fixed it works on linux with / at least.
2018-03-25 18:53:18 +01:00
Jan Holthuis
1868f1e91f
imgread/gdi.cpp: Fix buffer overflow in load_gdi()
2016-02-22 18:55:34 +01:00
Jan Holthuis
b106efde5f
imgread/common.cpp: Add buffer size checks in case buffer size are changed later
2016-02-22 18:55:33 +01:00