Flyinghead
cdb5cf662b
Initialize PVR function pointer to non-null
2018-10-28 11:33:35 -04:00
Flyinghead
0cfd8f5494
Sprites face culling is reversed.
...
Fixes South Park Rally and Wacky Races invisible menus.
2018-10-28 09:43:48 -04:00
David Miller
45bf5e51b1
Merge pull request #1443 from janisozaur/patch-1
...
Fix mismatched new/delete operators
2018-10-28 09:17:01 -04:00
Michał Janiszewski
a69bd937c3
Add missing include guards
2018-10-28 13:45:46 +01:00
Michał Janiszewski
2cae875fa2
Fix mismatched new/delete operators
2018-10-28 13:18:25 +01:00
Cameron Cawley
7a5a3301ae
Fix compilation on systems without evdev
2018-10-24 20:27:12 +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
Stefanos Kornilios Mitsis Poiitidis
4ceac65b0d
Merge pull request #1412 from reicast/fh/aica-int-timing
...
AICA/DMA: Make the transfers take some time, add fallback option. Fixes sfa3 and bomberman online
2018-10-05 14:29:00 +02:00
Stefanos Kornilios Mitsis Poiitidis
09f8a50bf2
AICA: Make async dma an option, default on
2018-10-05 14:24:56 +02:00
Ender's Games
8d52045265
Stop reading values that are "malformed" on Android
2018-10-03 00:12:57 -04:00
Stefanos Kornilios Mitsis Poiitidis
84bf6ab913
Merge pull request #1428 from reicast/fh/ftrc-op-fix
...
sh4: Fix FTRC (ipr, canonical, x86) by using correct positive cutoff value
2018-10-02 23:12:28 +02:00
Abandoned Cart
9bc22e7ecc
Merge pull request #1427 from reicast/fh/implied-listinit
...
Some games send TA data without calling ListInit first. Don't crash in that case
2018-10-02 09:59:11 -04:00
Flyinghead
f419786584
Fix sh4 FTRC op to use correct positive cutoff value.
...
Fix for interpreter, common dynarec and x86 rec.
Fixes wrong car color in Tokyo Xtreme Racer car selection screen.
2018-10-02 12:38:49 +02:00
Flyinghead
41899230fb
Some games send TA data without calling ListInit first. Don't crash in that case.
...
Fixes crashes in Looney Tunes Space Race, Test Drive Le Mans and others.
2018-10-02 10:25:15 +02:00
Flyinghead
19b37b9957
Do not crash on unaligned VRAM read access. Just return 0.
...
Fixes House of the Dead 2
2018-10-02 10:07:11 +02:00
Flyinghead
5ba9916b22
Add cable/region/broadcast to per-game configuration.
...
Do not save per-game settings if the game name or id is unknown (NAOMI).
2018-09-30 10:54:09 +02:00
Ender's Games
24504bc22e
Fix a typo. Always check your copy/paste twice.
2018-09-29 22:08:35 -04:00
Flyinghead
10c7650690
Schedule the interrupt signaling the end of an Aica DMA transfer instead
...
of raising it immediately.
Fixes Street Fighter Alpha 3 and Bomberman Online
2018-09-26 22:01:48 +02:00
Ender's Games
ee3a474ee4
Revert "Interrupt Hack setting w/ less stigma"
...
This reverts commits e5c0f0e
, eebf3fc
, 14fc7d9
2018-09-26 09:06:07 -04:00
Flyinghead
e3bb0a09ab
Detect TA overruns and cancel the rendering. Increase vertices, indices
...
and translucent polygons max count.
Fixes crashes in D2 and Triggerheart Exelica.
2018-09-26 09:42:43 +02:00
Ender's Games
0adc6b2bce
Compatibility getch() for VS 2008/2013
2018-09-20 17:49:04 -04:00
David Miller
1722a9abe4
getchar for non win32, so curses isn't req to be setup
2018-09-20 17:48:27 -04:00
David Miller
2e23ee4628
use enum for cli arg exit and android build ndef
2018-09-20 17:48:27 -04:00
David Miller
3dc16faa73
Android build fix
2018-09-20 17:48:27 -04:00
David Miller
b58e866b6b
Desktop command args support fixes and auto git versioning for VS and make
2018-09-20 17:48:27 -04:00
Christoph "baka0815" Schwerdtfeger
5b8749fbaa
evdev: If there was an error initializing a controller, don't proceed
...
If the controller was not correctly initialized, the fd and/or the mapping might not be set, which could then result in access violations or other errors.
2018-09-20 17:43:24 +02:00
Christoph
00ecf2f1ce
Merge pull request #1370 from reicast/baka/sdl
...
SDL: Fix keyboard usage
2018-09-04 22:25:03 +02:00
Christoph
b402a56885
Merge pull request #1365 from reicast/baka/evdev_rework
...
Remove evdev specific code from main.cpp
2018-09-04 22:24:43 +02:00
Christoph "baka0815" Schwerdtfeger
d3de815a0a
Softrend: clean up if/else
2018-09-04 21:01:03 +02:00
Christoph "baka0815" Schwerdtfeger
f96e0f1e5d
Softrend: Error if no softrenderer backend found
2018-09-04 20:41:25 +02:00
Christoph "baka0815" Schwerdtfeger
981eb1b5ef
Softrend: works only with X11
...
If X11 support is not there, reicast doesn't compile because the softrenderer needs it.
Use #ifdef to do X11 only if SUPPORT_X11 is set.
2018-09-04 19:08:39 +02:00
Christoph
1c880fc37c
Merge pull request #1369 from reicast/fh/ta-context-1mb
...
Round TA context to 1MB at ListInit time so it is found when rendering
2018-09-04 18:23:20 +02:00
Christoph "baka0815" Schwerdtfeger
69c4f163b8
SDL: Fix keyboard usage
...
Use kcode[port] directly (see evdev.cpp), because unsetting the keys didn't unset kcode and pressing the key another time didn't work.
2018-09-03 19:23:22 +02:00
Flyinghead
ea9bc5ff1c
Round TA context to 1MB at ListInit time so it can be found at render time
...
Fixes black screen in NFL 2K2, NBA 2K2, Oooga Booga, Floigan Bros. and probably more Visual Concepts games.
2018-09-03 14:32:00 +02:00
Flyinghead
614ec7e9b1
Fix 32-bit vram bank mapping
...
Fixes texture corruption and other problems in many games
2018-09-03 12:39:52 +02:00
Christoph "baka0815" Schwerdtfeger
555e140216
evdev: Remove unnecessary exports in header
...
``input_evdev_init(EvdevController* controller, const char* device, const char* mapping_fname)`` and ``input_evdev_button_duplicate_button(EvdevControllerMapping* mapping1, EvdevControllerMapping* mapping2)`` are no longer used outside evdev.cpp
Needed to move ``input_evdev_init()`` around a bit.
2018-08-31 16:59:37 +02:00
Christoph "baka0815" Schwerdtfeger
8cbc342b06
Maple specific header no longer necessary
2018-08-31 16:52:08 +02:00
Christoph "baka0815" Schwerdtfeger
a9a67fdaa5
Move the evdev specific code out of main.cpp
2018-08-31 16:47:55 +02:00
Ender's Games
62c76475eb
Android: Implement trial disk swapping code
2018-08-28 14:08:36 -04: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
Abandoned Cart
7bd871490c
Merge pull request #1341 from reicast/baka/cdi_warning
...
CDI: Only warn if CDI image was really loaded
2018-08-27 22:52:38 -04:00
Christoph "baka0815" Schwerdtfeger
bc873cb228
Maple: Corrected creation of empty VMU
...
The VMU which was written to disk was never initialized and therefore consisted only of zeroes.
After saving for the first time the VMU was corrupted.
Changes:
* Not only initialize the VMU in memory but also write the correct contents to disk
* If an existing VMU consists only of zeroes overwrite it with the initial empty VMU
2018-08-27 13:50:59 +02:00
Ender's Games
25919cce78
PGC: Settings that should be per-game exclusive
2018-08-27 06:10:35 -04:00
Ender's Games
cbe7238986
PGC: Avoid an issue with extended IDs
...
Pro Pinball Trilogy is 9 characters, including spaces, which should not be truncated for accuracy.
2018-08-27 05:42:35 -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
Christoph
14e1e4ded4
Merge pull request #1339 from reicast/baka/evdev_symlink
...
evdev: Search for libevdev.so.2 first
2018-08-27 10:25:40 +02:00
Christoph "baka0815" Schwerdtfeger
0f228690ad
evdev: Fix off by one error
...
The port for player1 is 0, not 1 (we're zero based here).
2018-08-27 10:01:08 +02:00
Christoph "baka0815" Schwerdtfeger
1d66d1e2da
evdev: Search for libevdev.so.2 first
...
Many Linux distributions provide livevdev.so.2 only so check that first.
2018-08-27 09:53:54 +02:00
Ender's Games
5bdc362da3
Remove QueueRender option (non-functional)
...
Reverts:
2c517896b2
e81f43ff20
9ed9f460e9
2018-08-27 00:42:21 -04:00
Ender's Games
bd6b0c003d
Core: Fix formatting of configuration options
...
Fix formatting using web editor to ensure accuracy
2018-08-27 00:12:16 -04:00
Ender's Games
14fc7d910a
Convert Interrupt Hack to name w/ less stigma
2018-08-26 23:13:25 -04:00
Ender's Games
2c66bf3b3a
Core / Android: Add dynarec to per-game config
2018-08-26 07:56:36 -04:00
Ender's Games
31fb575165
Core: Support retrieving disk info before full init
2018-08-26 07:56:28 -04:00
Stefanos Kornilios Mitsis Poiitidis
ba8b9014a2
Merge pull request #1326 from reicast/EvdevControllerMapping_string2
...
evdev: Mapping name as string
2018-08-25 21:25:32 +03:00
Stefanos Kornilios Mitsis Poiitidis
d4f12fae64
Merge pull request #1327 from gameblabla/voidlinuxmusl
...
WIP: Fixes for Musl
2018-08-25 21:25:02 +03:00
Stefanos Kornilios Mitsis Poiitidis
11f76f5fbe
Merge pull request #1321 from gameblabla/libaosound
...
Add support for libao
2018-08-25 21:24:29 +03:00
gameblabla
a40d8bc74b
add libao support
2018-08-25 21:24:30 +02:00
Ender's Games
14b1e66ed4
Mac: Reference / implement preprocessor directives
2018-08-25 13:03:29 -04:00
Christoph "baka0815" Schwerdtfeger
8593c209d9
Fixed type of formatting argument
2018-08-25 10:55:52 +02:00
Christoph "baka0815" Schwerdtfeger
80af04421a
evdev: Mapping name as string
...
That way we don't need to reserve memory and the output (on the command line) is correct.
2018-08-25 10:17:10 +02:00
gameblabla
55645a6fb7
Fixes for Musl
2018-08-24 23:34:03 +02:00
gameblabla
5f964de1fe
Fixes compiling if evdev is disabled
2018-08-24 23:13:41 +02:00
Abandoned Cart
d98f674ac5
Merge pull request #1315 from reicast/lk/abandoned
...
Porting libretro features back to mainstream reicast
2018-08-22 22:44:16 -04:00
Ender's Games
9ed9f460e9
Invert QueueRender to allow better explanation
...
Have the setting porform the action rather than having a value that, when disabled, did what the name implies it enables.
2018-08-22 21:14:49 -04:00
Ender's Games
d8226c7b5d
Fix: "Functions should be declared at file scope"
2018-08-22 21:14:42 -04:00
Ender's Games
2c517896b2
PVR: Add a QueueRender flag to force usage
...
Originally implemented with libretro-reicast commit:
38186045d9aebc8ff2b6118de70f4c2596914914
Modified for use w/ reicast per-game configuration
2018-08-22 21:14:19 -04:00
Ender's Games
f76df2da62
GDROM: Increase dma buffer cache sectors
...
4e956d9ef8
2018-08-22 21:14:11 -04:00
Ender's Games
e5c0f0ee71
https://code.google.com/p/nulldc/source/detail?r=108
...
Originally ported from nullDC to libretro in commits:
2fa562db1b46c52b663b3dd4bb33a64907357458
f8eb58ac16a9e5adf662b99be5d00729264808e0
Modified for use w/ reicast per-game configuration
2018-08-22 21:14:02 -04:00
Abandoned Cart
97c5b9e490
Merge pull request #1282 from reicast/baka/evdev_warnnotconfigured
...
evdev: Print a warning if a key is not configured
2018-08-22 18:14:18 -04:00
Abandoned Cart
d7b5533210
Merge pull request #1304 from gameblabla/glesfix
...
Fixes compiling with GLES and X11
2018-08-21 14:02:06 -04:00
Abandoned Cart
3905d6e9fb
Merge pull request #1310 from reicast/lk/lgtm
...
Core: Address some obvious lgtm issues
2018-08-21 10:08:32 -04:00
Ender's Games
eb11d19687
Include header guards to prevent multiple inclusions
2018-08-21 09:28:54 -04:00
Ender's Games
75215ec0d1
Core: Address some obvious lgtm issues
2018-08-21 02:52:03 -04:00
Christoph "baka0815" Schwerdtfeger
ad20b55d2c
Fix lgtm-warning
2018-08-21 00:33:18 -04:00
Christoph "baka0815" Schwerdtfeger
c8baaac632
evdev/MapleType: Controller in port 1 defaults to VMU for Maple device, all other to None
...
Also allow 0 for "None"
2018-08-21 00:33:18 -04:00
Christoph "baka0815" Schwerdtfeger
11b01633d0
Fix Windows
2018-08-21 00:33:18 -04:00
Christoph "baka0815" Schwerdtfeger
638a97d1ae
Maple: Reworked the way controllers are created
...
A new function was introduced to abstract the setup of input devices for each os: os_SetupInput().
I hope I implemented this everywhere correctly and the behaviour is identical to before.
The new function mcfg_CreateNAOMIJamma() creates the NAOMI Jamma interface and is hidden behind a compile flag (same as before).
The previous function mcfg_CreateDevices() was renamed to mcfg_CreateDevicesFromConfig() because it creates the devices based on the configuration (``nb`` setting).
2018-08-21 00:33:18 -04:00
Christoph "baka0815" Schwerdtfeger
8212be4850
MapleDeviceType: Add MDT_None
2018-08-21 00:32:05 -04:00
Christoph "baka0815" Schwerdtfeger
7ef105822a
evdev: Move creation of controllers
...
Don't expose mcfg_Create() directly, but use a proxy method mcfg_CreateController() to create the complete controller.
Using evdev the ``nb``-setting in the ``emu.cfg`` is no longer necessary (see #970 ) as the devices get created while initializing the controllers.
Moved the ``switch`` to it's own function.
2018-08-21 00:32:05 -04:00
Christoph "baka0815" Schwerdtfeger
f75ba32fa9
evdev/maple: Set devices via config
2018-08-21 00:32:05 -04:00
Christoph "baka0815" Schwerdtfeger
17d9159b82
evdev: Add maple devices 1 and 2 to mapping & cfg
2018-08-21 00:32:05 -04:00
Abandoned Cart
62837f4db0
Merge pull request #1235 from reicast/fh/alpha-pt-rounding-fix
...
Float math in alpha calculation causes some punch-through textures to…
2018-08-21 00:09:06 -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
ef6242d2f7
Android: Create a per-game configuration view
...
Android: Pass game configuration options to emu
TODO: Fix inability to reload fragment w/ new settings
Android: Limit preference scope, Avoid static crutch
Android: Obligatory button to commit PGC settings
Android pressures the use of async preferences, but does not properly block threads. This causes the settings from one view to bleed into the next when swapping back and forth. This can be overcome by explicitely writing to the specific pref object.
Android: Add PGC documentation to window
2018-08-20 22:02:59 -04:00
Ender's Games
9e57068192
Config: Only load modified game settings, don't save
...
There is no reason to build a configuration file of duplicate settings. The user can acquire the defaults from the config section and only inject the changes into the game section.
2018-08-20 14:29:13 -04:00
Ender's Games
2311253aa5
Config: log a software name to the configuration file
...
This value is printed to the config file alongside individual settings and cannot be modified. It will be replaced each time the configuration is read, preventing any risk of user error.
2018-08-20 13:23:50 -04:00
Ender's Games
78977387ac
Reios: perform initial configuration, as needed
2018-08-20 12:28:58 -04:00
gameblabla
8a53efec62
Fixes compiling with GLES and X11
2018-08-20 13:17:01 +02:00
Ender's Games
4424d84960
Port libretro reios params with less intrusive query
2018-08-19 05:41:00 -04:00
Ender's Games
f2b9b2fcf7
Unimplemented method for per-game configuration
...
This is a general outline of how per-game configuration would be read to replace the existing "default" values without restricting the settings to defined values. Each game could support it's own proprietary configuration that could be changed and updated, as needed. This separates per-game config from the emulator version.
2018-08-19 05:41:00 -04:00
Ender's Games
e64367a0ad
Android: A very simple method to set 4:3 resolution
2018-08-19 02:03:10 -04:00
Ender's Games
8d9d40dffc
Core: Changes provided by Android NDK compiler
2018-08-19 01:54:15 -04:00
Ender's Games
a3f585ea1c
Port the dynarec safe flag from nullDC (See #84 )
2018-08-16 20:00:10 -04:00
Abandoned Cart
b2e07d0c96
Merge pull request #1289 from reicast/baka/evdev_checkdup2
...
evdev/dupcheck: Don't check unassigned buttons
2018-08-13 18:59:52 -04:00