Ender's Games
f40826614a
libpng: address a non-compliant define
2018-08-07 23:36:20 -04:00
Ender's Games
38edff3dae
libpng: expose NEON w/out enabling
2018-08-07 23:18:05 -04:00
TwistedUmbrella
1f688173b8
libpng: restore original configuration
2018-08-07 23:02:56 -04:00
TwistedUmbrella
ce71108efa
libpng: update zlib references
2018-08-07 23:02:56 -04:00
TwistedUmbrella
ae8c41077f
libpng 1.6.34 [September 29, 2017]
2018-08-07 23:02:56 -04:00
TwistedUmbrella
66c3cb8a33
libpng 1.6.32 [August 24, 2017]
...
Courtesy of @mrfixit3000 ( https://github.com/reicast/reicast-emulator/issues/1121#issuecomment-383257219 )
2018-08-07 23:02:56 -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
Flyinghead
65a759b3fe
Merge branch 'fh/mymaster' of https://github.com/reicast/reicast-emulator into fh/mymaster
2018-08-07 09:45:10 +02:00
Flyinghead
c0c06ed8ff
Renderer: select shader at runtime based on the GL context version
...
The GL renderer now detects the version of the current GL context and
compiles the shaders accordingly. Supports GLES2, GLES3 and desktop GL.
Android: use 8,8,8 framebuffer instead of 5,6,5. Requests a 8-bit
stencil buffer (modifier volumes)
2018-08-07 09:44:52 +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
7ff93f9256
OSX: disable OpenMP as it's not available. Time to deprecate Apple...
2018-08-04 19:10:53 +02:00
Flyinghead
2cc55dfce4
rec-cpp: optimize small block checks
2018-08-03 15:49:20 +02:00
Flyinghead
2489a72588
rec-cpp block checks naive implementation
2018-08-03 14:45:25 +02:00
Flyinghead
fddf56c5a2
Fix TA overrun detection. Bump up verts to 2 MB, idx to 120K and TR
...
polys to 8K
2018-08-03 09:55:53 +02:00
Flyinghead
feaca43b25
Build fixes
2018-08-02 18:44:51 +02:00
Flyinghead
1e661a4d45
AICA DMA: raise end of transfer interrupt immediately for small
...
transfers.
Fixes Bangai-O startup freeze
2018-08-02 18:25:02 +02:00
Abandoned Cart
9beb87ef64
Merge pull request #1236 from reicast/clean-exit-light
...
Exit cleanly in desktop platforms
2018-08-02 12:20:03 -04:00
Flyinghead
85781e96ec
Use OpenMP instead of ctpl for multithreading
2018-08-02 17:31:38 +02:00
Flyinghead
3a7a08f3fb
Do not clear the framebuffer before rendering. Fix scissoring coords.
...
The framebuffer is cleared by the background plane using global clipping
coordinates. This allows multiple rendering to different locations on
the framebuffer.
Fixes flashing menus in Vanishing Point, loading screens in Test Drive
Le Mans and Vigilante 8.
Better rear view mirror in Metropolis Street Racer.
2018-08-02 17:20:18 +02:00
Flyinghead
ec2ac75839
Merge master
2018-08-01 20:23:16 +02:00
Flyinghead
73ef45bffd
MSVC build fix
2018-08-01 19:55:29 +02:00
Flyinghead
31d8c1f091
Backport texture upscaling with xBRZ
2018-08-01 19:43:01 +02:00
Flyinghead
46c0d545ec
OSX: Fix previous merge
2018-08-01 18:31:20 +02:00
Flyinghead
9942bfc86e
Merge branch clean-exit-light
2018-08-01 18:02:50 +02:00
Flyinghead
a11dd3f159
Get rid of EGHack
2018-08-01 17:20:41 +02:00
Flyinghead
1e67f9be0b
Schedule Aica DMA interrupt instead of raising it immediately.
...
Fixes Street Fighters Alpha 3 freeze.
2018-08-01 16:55:50 +02:00
Flyinghead
1ac497ba30
Update AEG params when FNS or OCT registers are updated
...
Fixes Bomberman Online FMV intro freeze, Jet Grind Radio and Psyvariar 2 intro music fade out and probably more.
2018-08-01 16:30:43 +02:00
Flyinghead
298bf08fc0
Add dsp interpreter to Mac build. Core audio buffering.
2018-08-01 15:02:45 +02:00
Stefanos Kornilios Mitsis Poiitidis
7da4f09c01
TA: Alloc 8mb for fifo storage, workaround for doa2le
2018-07-31 00:56:26 +02:00
Flyinghead
1533091151
Clipping: do pixel scaling only when not rendering to a texture
2018-07-30 18:57:32 +02:00
Flyinghead
02bbdb3ebe
Fix build on win x64
2018-07-29 21:57:57 +02:00
Flyinghead
8c3247d1b2
Generic interpreted DSP
2018-07-29 21:47:30 +02:00
Flyinghead
63a70e0f62
isinf not available in GLES 2
2018-07-29 19:24:14 +02:00
Flyinghead
92c06a7249
Update AEG params when FNS or OCT are updated.
...
Fixes Bomberman Online FMV intro freeze, Jet Grind Radio and Psyvariar 2 intro music fade out.
2018-07-29 18:23:53 +02:00
Flyinghead
0e881254ef
Fix clipping when pixel_double is on.
...
Fixes 4 Wheel Thunder split screen issue.
2018-07-29 17:31:14 +02:00
Flyinghead
5960450e76
Linux x86 fix. Wait for renderer thread to end.
2018-07-24 17:24:56 +02:00
Flyinghead
b1686a8f6a
Do not allow inf z value in the vertex shader. Clamp w to a very small value.
...
Fixes ground triangles clipping in Soulcalibur intro sequence.
2018-07-24 16:55:48 +02:00
Flyinghead
20de593a88
Clean exit on OS X. Minor changes.
2018-07-24 14:27:58 +02:00
Flyinghead
b28e1505c5
Fix dynarec on OSX/x64. Clean exit when window closed.
2018-07-24 13:26:31 +02:00
Flyinghead
07a36ee256
avoid named struct initializers
2018-07-24 11:22:56 +02:00
Flyinghead
2e08d7a6c9
round() not available in GLES2. Using floor() instead
2018-07-23 20:55:53 +02:00
Flyinghead
45d4abb64d
"for" should be a "while"
2018-07-23 20:44:35 +02:00
Flyinghead
8dab514b2a
yet another tentative asm fix
2018-07-23 20:38:31 +02:00
Flyinghead
3d2de4a0dc
tentative fix for rec x86/win
2018-07-23 20:26:12 +02:00
Flyinghead
960904c401
Exit cleanly in desktop platforms
...
Lighter and cleaner version of the previous PR
2018-07-23 19:52:50 +02:00
Flyinghead
86235bb4a3
Float math in alpha calculation causes some punch-through textures to have alpha noise.
2018-07-23 15:15:05 +02:00
Flyinghead
4b5e863aa7
Use log2 depth scaling in fragment shader when available.
...
Currently a compile time option (!GLES). Fixes many depth issues (Dynamite Cop, Cannon Spike, etc.)
2018-07-23 10:25:55 +02:00
Flyinghead
ba49228fc0
Unterminated string constant
2018-07-22 23:13:32 +02:00
Stefanos Kornilios Mitsis Poiitidis
95ce251639
Merge pull request #1079 from myfreeweb/master
...
Build on FreeBSD
2018-07-22 00:37:34 +02:00
Flyinghead
71d7f90858
Merge upstream
2018-07-19 12:19:51 +02:00
Flyinghead
09eab8cb03
Saturate alpha channel for YUV textures
2018-07-18 22:35:55 +02:00
Stefanos Kornilios Mitsis Poiitidis
a5cf5406cb
Merge pull request #1181 from baka0815/X11
...
X11: Refactored and fixed buttons
2018-07-18 20:59:02 +02:00
Flyinghead
ff08d93019
npos undefined. Use -1 instead
2018-07-18 19:32:51 +02:00
Christoph "baka0815" Schwerdtfeger
2a167e343b
X11: use x11_keymap[] for the shoulder trigger
...
Use DC_AXIS_LT and DC_AXIS_RT for the sliders. They are not real axes on a keyboard, but it fits.
Also hide the printf() behind a define.
2018-07-18 19:31:35 +02:00
Flyinghead
e637dcf8f9
reinstate line deleted by previous commit
2018-07-18 16:07:17 +02:00
Flyinghead
cc8569fcf8
Fix 8888 high-quality textures on GLES/arm
...
GLES doesn't support uint 8888 so bytes must be swapped on little endian
architecture.
2018-07-18 16:01:40 +02:00
Flyinghead
4fced53e25
Dangling pointer in evdev code (electric fence)
2018-07-18 11:19:53 +02:00
Flyinghead
673841d1df
Dump frame when F10 pressed
2018-07-16 17:31:52 +02:00
Flyinghead
a17a0bae3b
Utility to display a single frame
2018-07-16 17:19:45 +02:00
Flyinghead
dc835dd64d
Dump shaders source if compile fails
2018-07-16 16:52:11 +02:00
Flyinghead
0284d635d2
Upscale rendered-to textures
...
Increase the size of RTT textures by a given integer factor. Defaults to
1.
This gives much better quality textures, particularly visible when used
fullscreen for transition or pause screens.
2018-07-16 16:28:48 +02:00
topu
90304f0c67
Fix controller support when building with GCC8
2018-07-15 13:59:37 +02:00
Stefanos Kornilios Mitsis Poiitidis
1ada311513
Continuous delivery to play store beta from travis
...
Merge pull request #1210 from reicast/skmp/reicast-beta-cd
Should build and deploy from master only
*crosses fingers*
2018-07-14 19:42:31 +02:00
Flyinghead
bb2d860902
Use red channel for fog table in GL but continue using alpha channel in
...
GLES. Alpha channel is supported only in GL compat mode, not core.
2018-07-14 10:48:16 +02:00
Flyinghead
2d3fd59e04
Revert f13b366e8d57c15a6a97cc0721d68ddb5268385f: the fixNaN function is
...
completely bogus and the correct one doesn't have any effect.
2018-07-14 09:13:56 +02:00
Flyinghead
4fd233aca0
Disable div32 matching for Star Wars I - Racer. Fixes the invisible
...
suns.
2018-07-13 23:24:47 +02:00
Flyinghead
f13b366e8d
Set the value for NaN according to the SH4 specs
...
The SH4 sets the signaling bit to 0 for qNaN: 7fbfffff instead of the
usual 7fffffff. Same games seem to rely on this.
Fixes Fur Fighters freeze and missing geometry in game.
2018-07-13 18:57:51 +02:00
Flyinghead
ea35eeb728
Fix FTRC op in both interpreter and dynarec with respect to Inf and NaN
...
The -ffast-math gcc option implies the -ffinite-math-only option, which
produces wrong results with Inf and NaN. Use integer math to detect the
sign of float numbers in FTRC to avoid these issues.
Also the upper cut off value for conversion was apparently wrong.
Also fixed the x86 dynarec but not tested.
Fixes wrong car color in Tokyo Xtreme Racer car selection screen.
2018-07-13 12:02:32 +02:00
Flyinghead
df35e95e57
Eldorado Gate Vol.1 needs EGHack
2018-07-12 19:48:39 +02:00
Flyinghead
8a9313270f
Demolition Racer needs DisableDivMatching
2018-07-12 19:41:02 +02: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
Flyinghead
87f8c5194f
Better fix for texture cache key needing StrideSel
...
StrideSel and ScanOrder are no longer part of the texture cache key
since that breaks RTT texture matching. But they are updated at lookup
time so they will be used if the tex is updated later.
Fixes RTT-based xfade screens in Skies of Arcadia.
2018-07-11 22:08:10 +02:00
Flyinghead
d5d711cf32
Clipping scissor fix: x offset must only be added once
2018-07-11 20:06:43 +02:00
barbudreadmon
8e7b6b72e1
(Naomi) Fix for "The Rumble Fish 2"
...
As confirmed by MettalliC, the correct value is 32KB
2018-07-11 18:14:12 +02:00
Flyinghead
527628d366
weird character again
2018-07-10 18:08:27 +02:00
Flyinghead
648988e622
don't log div32 matching and some GDRom ops
2018-07-10 14:36:28 +02:00
Flyinghead
92e16d436e
PVR DMA: VRAM->System RAM transfer was handled the other way around
2018-07-10 12:07:35 +02:00
Flyinghead
1be4203ffe
Far plane is at depth 0 in classic renderer.
2018-07-09 23:25:18 +02:00
Flyinghead
c035635341
Clipping scissor Y coordinates must be inverted when rendering to screen
...
Fixes top of screen missing in San Francisco Rush 2049
2018-07-09 23:22:13 +02:00
Flyinghead
889f722e73
Fix PAL4 textures
2018-07-09 19:20:33 +02:00
Flyinghead
6df46b1d83
Enable Naomi eeprom reading and writing
2018-07-09 16:24:37 +02:00
Flyinghead
18b2d8273f
Improve paletted and YUV texture quality.
...
Paletted textures using a 32-bit palette and YUV textures are now
converted to 8888 format, which results in a lossless conversion.
Fixes background texture quality in Alone in the Dark.
2018-07-09 14:59:53 +02:00
Stefanos Kornilios Mitsis Poiitidis
5525d5dde2
core: Android studio fixes
...
- Clang edge cases for shifts
- Avoid generating relocs by not using global symbols in ngen_arm.S (fixes #1109 )
2018-07-09 09:31:45 +02:00
Greg V
5d69e19ed1
Build on FreeBSD (and potentially other BSD)
2018-07-08 15:43:10 +03:00
Stefanos Kornilios Mitsis Poiitidis
03170fc0ef
Merge pull request #1163 from reicast/lk/android-studio
...
Android Studio Conversion
2018-07-08 11:12:16 +02:00
Stefanos Kornilios Mitsis Poiitidis
ae2b5e33b5
core.mk: Revert `-O0 -g` to `-O3`
2018-07-08 02:22:32 +02:00
Flyinghead
a89ff1e432
Ignore depth func for autosort TR polys.
...
This was a remain of the previous Always depth hack.
2018-07-07 08:46:29 +02:00
Flyinghead
3cac9134ce
Don't use the window title for debug info as it delays frames
2018-07-06 22:38:48 +02:00
Flyinghead
e067534f26
When sorting translucent triangle, keep the third vertex in place.
...
In flat shading mode, the third vertex of a triangle defines its color
so we must maintain its index.
Fixes the remaining color polygons seen in Evolution - The World of
Sacred Device.
2018-07-06 20:02:43 +02:00
Flyinghead
0df91770d2
Increase dynarec code cache size to 10 MB
...
Fixes frequent code cache invalidation due to lack of space, which kills
performance (Extreme Sports)
2018-07-06 17:19:37 +02:00
Flyinghead
315205caa9
Add setting to disable div32 matching (Pro Pinball Trilogy)
...
div32 matching doesn't handle division by zero and edge cases, which
causes crashes with some games.
Setting enabled by default for Pro Pinball Trilogy.
2018-07-06 09:49:39 +02:00
Flyinghead
517c225c39
Better hack for TA data sent before ListInit.
...
Instead of ignoring TA data if ListInit hasn't been called, call
ListInit then accept the data. The data will still be probably ignored
but end of list interrupts are sent so game won't hang.
Fixes hang in King of Fighters New Wave (Naomi).
2018-07-05 19:57:30 +02:00
Flyinghead
a1997637bb
Trilinear filtering limited implementation.
...
Fixes lighter field areas in NFL 2K2
2018-07-03 20:36:13 +02:00
Flyinghead
3c4913a35a
Merge remote-tracking branch 'upstream/master'
2018-07-03 15:46:25 +02:00
Flyinghead
cbaaaaf970
Do not crash if data is sent to TA before calling ListInit, just ignore
...
it.
Fixes Conflict Zone - Modern War Strategy.
2018-07-03 15:24:48 +02:00
TwistedUmbrella
64656a6eb3
rec_x64: Avoid recipe for target failed error
2018-07-03 09:09:30 -04:00
TwistedUmbrella
295570a9f3
Android: resolve posix_memalign NDK inconsistency
2018-07-03 08:45:39 -04:00
Flyinghead
e7d1688ae5
Round TA_ISP_BASE to 1 MB.
...
Some games do not align TA_ISP_BASE on 1 MB boundary so the rendering
context is not found at render time. Fixes black screen in NFL 2K2, NBA
2K2, Oooga Booga, Floigan Bros. and probably more Visual Concepts games.
Sadly Ooga Booga still crashes.
2018-07-03 14:22:44 +02:00
Flyinghead
69263eddc0
Bump mapping support
2018-07-02 15:23:47 +02:00
Flyinghead
99af84d7fb
Background plane should be fogged as well. Fixes purple sky in Dragon's
...
Blood/Draconus.
2018-07-02 10:22:26 +02:00
Flyinghead
295395c680
Flat shading support
2018-07-01 20:25:06 +02:00
Stefanos Kornilios Mitsis Poiitidis
f45f888d0b
Use platform specific first argument register
2018-07-01 12:15:59 +02:00
Flyinghead
18c59c1166
Fix read_frame/dump_frame for now missing autosort param
2018-06-30 13:51:03 +02:00
Flyinghead
3ddcc272bf
Fix autosort/presort mode selection. Per render pass sort mode.
...
The previous algorithm to determine the sort mode for TR polys was
faulty. And the sort mode can vary between passes for multipass
rendering. This also removes the need for the hack to support Always
depth mode with autosorted TR polys. Should fix the Resident Evil 3 menu
problem.
2018-06-30 12:33:11 +02:00
Flyinghead
7ecd384612
StrideSel is now part of the texture cache and must be set by RTT
2018-06-29 19:03:43 +02:00
Flyinghead
d980f505ad
Fully revert f571d6c594
...
Fixes NAOMI bios flickering
2018-06-29 17:16:39 +02:00
Flyinghead
a52654e2de
Added some game ids to per-game settings
2018-06-29 17:10:35 +02:00
Flyinghead
17a34c079c
Backported EG hack. Courtesy of libretro.
...
See 13dacb0021
2018-06-29 17:04:07 +02:00
Stefanos Kornilios Mitsis Poiitidis
ad05c35a7e
Implement CheckBlock for x64
2018-06-29 15:19:49 +02:00
Stefanos Kornilios Mitsis Poiitidis
c52165adbd
Update XBYAK to 71b75f653f3858403eb33d48f6346eef34b837fe
2018-06-29 15:18:57 +02:00
Flyinghead
f18aa63a67
Add stride and scan order to texture cache key as they are used to update the texture
...
Fixes glitchy FMV title screen in Bomberman Online
2018-06-29 11:59:48 +02:00
Flyinghead
a94f01ee78
Force autosort TR triangles using depth func Always to be drawn on top of others
...
When autosorting triangles, ignore the depth of triangles using the depth func Always and force
them to be on top. Seems to help Psyvariar 2.
2018-06-28 13:21:40 +02:00
Flyinghead
6871061ca0
Modifier Volumes: summing up with triangles is faster than using a quad.
2018-06-26 15:38:55 +02:00
Flyinghead
7c93727b5e
Improve modifier volume parsing and drawing logic.
...
Parse modifier volumes similarily to other polys (first, count, params).
Draw all triangles in one shot and use quad to sum up instead of
redrawing entire strip. Use OR operation for open volumes/quads
(Soulcalibur).
2018-06-26 14:45:58 +02:00
TwistedUmbrella
bf62cb8bd1
Prevent overriding Android setting w/ config.ini
2018-06-25 12:04:26 -04:00
TwistedUmbrella
571b68d468
Fix building Windows alongside Android Studio
...
Windows: resolve missing reference to _SC_OPEN_MAX
https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00023.html
https://libwebsockets.org/lws-api-doc-master/html/libwebsockets_8h_source.html
Windows: comment duplicate x86_ptr_imm definition
Replaced by more explicit type definitions. Fixes x64 compile
Restore secondary x86_ptr_imm for non-Windows
This appears to be a necessary duplicate for other platforms.
2018-06-25 12:04:14 -04:00
Stefanos Kornilios Mitsis Poiitidis
563052a2e8
Really force -fPIC everywhere
2018-06-25 12:04:14 -04:00
Stefanos Kornilios Mitsis Poiitidis
86593d82e7
Add fpic option, remove ndk build stuff
2018-06-25 12:04:13 -04:00
Stefanos Kornilios Mitsis Poiitidis
1933aff8a2
First steps for android studio builds
2018-06-25 12:04:07 -04:00
Flyinghead
846d02d9d2
Optimize RTT to VRAM. Add US version of THPS2 to per-game settings.
2018-06-25 16:55:22 +02:00
TwistedUmbrella
e6afd22f98
Merge pull request #1191 from baka0815/gdi_skipws
...
GDI: Reset skipws-flag
2018-06-25 10:33:34 -04:00
Flyinghead
3256e02813
Workaround for Virtua Tennis ball color problem.
...
There's a texture corruption of the tennis ball and other textures,
notably the players' bags in the first intro sequence. The corruption is
due to render to texture squashing existing textures. Not sure what's
going on but this avoids the texture corruption. The original problem
remains.
2018-06-25 15:53:28 +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
barbudreadmon
2e8a87cbdf
Allow loading of lst files (Naomi support #1188 )
2018-06-21 19:24:05 +02:00
TwistedUmbrella
75189f0a78
Merge pull request #1180 from baka0815/unused_code
...
Removed unused code in core/linux-dist/main.cpp
2018-06-14 15:52:23 -04:00
Christoph "baka0815" Schwerdtfeger
3d43505504
Allow for custom <device>.cfg files in the /mappings/ directory.
...
Check if a configuration file named exactly like the device exists in the /mappings/ directory.
If it does, use this instead of the generic one.
Expose file_exists() from stdclass.
2018-06-13 19:33:51 +02:00
Christoph "baka0815" Schwerdtfeger
2e4cf087bd
Refactored and fixed X11 buttons.
...
Replaced magic number with X11 constants.
Added keys for left and right shoulder buttons.
Added key for (missing) Y button.
Moved the debug printf() where it belongs.
2018-06-13 19:24:48 +02:00
Christoph "baka0815" Schwerdtfeger
8309eb7d6a
Added most important X11-keys as constants.
2018-06-13 19:23:20 +02:00
Christoph "baka0815" Schwerdtfeger
e6854ef87d
Removed unused code in core/linux-dist/main.cpp
...
This is a leftover from #964
2018-06-13 19:17:20 +02:00
Flyinghead
08b8d30589
Implement clipping. Enabled by default.
2018-06-09 18:11:47 +02:00
Stefanos Kornilios Mitsis Poiitidis
d0cd5a5f64
Merge pull request #1152 from flyinghead/fh/modvols
...
Enable modifier volumes. Fix for exclusion volumes.
2018-06-09 17:52:51 +02:00
Flyinghead
7640a35720
Draw modifier volumes only if enabled in settings (defaults to true)
2018-06-09 17:22:01 +02:00
Flyinghead
1f95eb243c
Fix video choppiness
2018-06-07 19:06:16 +02:00
Flyinghead
2fdcf0d821
Use float constants in GLSL
2018-06-07 18:26:02 +02:00
Flyinghead
e1a86b4e0a
Fix SW1-JPB random texture corruption problem and video choppiness.
2018-06-07 17:19:49 +02:00
Flyinghead
b9fe9332cf
GLES 2 fix for fog table: use float only for vars and consts
2018-06-05 13:36:49 +02:00
Flyinghead
49e172b169
Push more silence on audio underrun to catch up
2018-06-05 12:18:42 +02:00
Flyinghead
828990b926
Texture based fog table
2018-06-05 12:18:09 +02:00
Flyinghead
a345fcc4c7
Draw modifier volumes after punch-through so they can be shadowed as
...
well.
2018-05-23 14:31:11 +02:00
Flyinghead
2f9dcfabd8
Use FPU_SHAD_SCALE.scale_factor for shadow intensity instead of
...
hardcoded value.
2018-05-23 12:26:24 +02:00
Flyinghead
488b9ab831
Add TA_GLOB_TILE_CLIP struct. Fix typo.
2018-05-23 12:05:58 +02:00
Flyinghead
bccfb5b70c
Faster implementation for translucent polys depth pass. Disabled by
...
default. Auto-enabled for Cosmic Smash.
2018-05-22 15:47:02 +02:00
Flyinghead
23a2af0a28
Add setting for THPS2. Move RenderToTextureBuffer option to rend
...
section.
2018-05-22 15:34:33 +02:00
Flyinghead
0f6249fdcf
Backport libretro per-game-settings logic
2018-05-22 15:20:37 +02:00
Flyinghead
c8034807bb
dump_frame/read_frame: save/load pvr registers
2018-05-22 13:23:07 +02:00
Flyinghead
4c7ffeb520
Per-pixel fog shading. Shaders cleanup.
2018-05-22 13:04:21 +02:00
Flyinghead
8d01bbe145
Increase Z scaling factor to 100k (fixes background menu in VR2). Set
...
depth mask before clearing buffers.
2018-05-21 16:44:18 +02:00
Flyinghead
9098fd5a22
Autosort poly: Write to the depth buffer in a second pass, and only if
...
multipass rendering.
2018-05-20 21:41:31 +02:00
Flyinghead
2d904372a9
Multipass issues: depth mask must be enabled for autosorted tr poly.
...
Depth buffer must NOT be cleared b/w passes, same for stencil I guess.
2018-05-20 14:16:43 +02:00
Flyinghead
9e994fecaa
Avoid array overflow if more than 10 render passes
2018-05-19 18:57:16 +02:00
Flyinghead
c35aa4262c
Fix OpenGL errors with modvols and multipass
2018-05-19 18:51:30 +02:00
Flyinghead
c427997269
Enable modifier volumes. Fix for exclusion volumes. Prevent overflow of modifier triangles (JGR).
2018-05-19 10:13:00 +02:00
Flyinghead
6e64fe90fc
Reverting c3a90a63a1
as well as the
...
autosort hack, which was certainly a consequence. Fixes texture
corruptions.
2018-05-18 21:35:51 +02:00
Flyinghead
d596f988c8
Revert 99bc20220e
2018-05-17 11:17:51 +02:00
Flyinghead
99bc20220e
Simplify clipping
2018-05-17 10:32:52 +02:00
Flyinghead
80c193b3de
Cache texture parameters. Fixed exclusion volume modifiers.
2018-05-16 19:34:45 +02:00
Flyinghead
e73d11d0ab
glHint nicest->fastest, and just once
2018-05-15 22:37:40 +02:00
Flyinghead
b469f05b9d
Fix wrong fog calculation issue
2018-05-15 21:19:58 +02:00
Flyinghead
d8165376be
GL cache fix
2018-05-15 16:09:50 +02:00
Flyinghead
de046c4620
Use OpenGL state cache. Allocate texture ids in bulk. Avoid modifier
...
volumes entirely when not needed.
2018-05-15 15:22:26 +02:00
Flyinghead
2d834c7396
Revert glChecks
2018-05-15 11:54:14 +02:00
Flyinghead
833a616122
Merge OSX fixes
2018-05-15 11:41:44 +02:00
Flyinghead
46b40ad043
OSX: enable exceptions for vmem
2018-05-15 11:14:48 +02:00
Flyinghead
0a8348b6df
Use CSYM() in assembler code
2018-05-15 11:13:42 +02:00
Flyinghead
34eae365f7
bad character?
2018-05-14 23:16:11 +02:00
Flyinghead
c36e2731d7
read_frame fix
2018-05-14 22:38:22 +02:00
Flyinghead
4aee2eb5fe
Increase gdrom dma buffer size to 8192 sectors
2018-05-14 19:37:33 +02:00
Flyinghead
2564c57cd2
Merge branch 'master' of https://github.com/flyinghead/reicast-emulator
2018-05-14 16:14:35 +02:00
Flyinghead
b30f715796
Fix paletted textures mismatch in texture cache
2018-05-14 16:14:15 +02:00
Flyinghead
699c2986a5
WIP
2018-05-14 12:48:22 +02:00
Flyinghead
ae49c19cea
osx: cpu x86. glViewport now doing in RenderFrame
2018-05-14 09:31:03 +02:00
Flyinghead
46f28cfb27
Fog fix
2018-05-13 23:07:35 +02:00
Flyinghead
95120690ef
Use log2 depth scaling when opengl 3 is available
2018-05-13 20:19:36 +02:00
Flyinghead
688ba5c37d
Fix autosort translucent poly bug (rayman). probably still not right...
2018-05-13 16:48:09 +02:00
Flyinghead
b68f0a16a8
Increase FPS font size
2018-05-13 16:45:20 +02:00
Flyinghead
c30548eb6a
Added on-screen FPS counter. Fix clear screen issue when widescreen
...
enabled but not currently on.
2018-05-13 16:01:08 +02:00
Flyinghead
50a2e7e842
Revert dd9f77b4ab0b4c66fe7a2a717ed4b8cc1835e343: no gl_FragDepth in GLES 2 :(
2018-05-12 14:39:06 +02:00
Flyinghead
dd9f77b4ab
Changed z normalization to log scale
2018-05-12 13:26:50 +02:00
Flyinghead
717ee0b3ce
Make rendering to texture buffer optional
2018-05-11 19:33:17 +02:00
Flyinghead
b02eccd5c7
Fix performance problem with RTT waiting
2018-05-11 19:08:54 +02:00
Flyinghead
43c125c208
Better texture cache: avoid duplicate. Attempt to put the RTT texture in
...
the cache to avoid copy to/from vram.
2018-05-11 15:29:24 +02:00
Flyinghead
683cbbba3e
Multipass rendering
2018-05-10 21:28:20 +02:00
Flyinghead
0f92189585
Fix translucent triangles not being autosorted(?)
2018-05-10 13:02:57 +02:00
Flyinghead
b77843b927
Handle RTT texture stride (VT)
2018-05-09 15:08:13 +02:00
Flyinghead
136c3d6825
When rendering to texture, wait until after the frame is rendered to
...
unlock.
2018-05-09 14:46:06 +02:00
Flyinghead
c13a42611b
Implemented other RTT format conversions.
2018-05-09 13:04:48 +02:00
Flyinghead
5710aa08ed
Remove all vram locks before reading back RTT buffer. Use RGBA/ubyte
...
format when RGB/565 is not available.
2018-05-09 12:28:38 +02:00
Flyinghead
2e4ec3a1ed
Added RTT support
2018-05-08 18:47:00 +02:00
Flyinghead
9f13ded502
Enable Modifier Volumes. Fix modtrig buffer overflow and stencil reset.
2018-05-04 18:18:04 +02:00
Flyinghead
cc88561d4a
Implemented clipping (Daytona USA menus)
2018-05-02 15:41:42 +02:00
Flyinghead
db0534d5dd
Fix PunchThrough texturing on JGR with nvidia
2018-05-02 12:29:47 +02:00
Flyinghead
fe71519d1b
Write some silence on audio underruns
2018-05-01 17:25:42 +00:00
Flyinghead
5320c3adee
Fixed previous screw up
2018-05-01 11:20:25 +02:00
Flyinghead
a953a0baa7
Use ring buffer for samples and detect buffer underruns
2018-04-29 17:56:01 +02:00
Flyinghead
39e0f378cb
OSX: add x64 target. Use JIT compiler. Clean exit. Use semaphore in core audio driver. Use layout-independent key codes to support int'l keyboards. Fixed GL window scaling.
2018-04-29 16:07:54 +02:00
Flyinghead
64a8ac1dd5
Add clean exit patch for x11 and 64-bit architecture
2018-04-27 16:54:15 +02:00
Flyinghead
35d3bd98d4
Disable fog table logging. Small optimization
2018-04-27 10:58:10 +00:00
Flyinghead
b8f3d37df2
Disabled some logging (Mr.Driller)
2018-04-27 10:50:21 +00:00
Flyinghead
94aa7c9e83
Fix alsa backend clicking noise on underrun. Set the buffer size to match the [omx] audio_latency setting
2018-04-27 10:49:23 +00:00
Flyinghead
10bdf7f449
Clean exit when exit key is pressed
2018-04-27 10:37:56 +00:00
rrrh
bcdf38da0a
Merge pull request #1130 from reicast/rrrh/osx-high-sierra
...
Rrrh/osx high sierra
2018-04-21 19:26:27 +02:00
Hugo Hackenstein
d653d4e009
Remove unneeded stdlib include
2018-04-21 19:01:24 +02:00
Hugo Hackenstein
4fcb95a0d1
Mac compile on OSX - Remove deprecated malloc.h include and switch to stdlib.h instead
2018-04-21 19:00:36 +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
gizmo98
4a7d0b9e7e
rpi: add option to use mesa or new vendor gl libs
2018-04-11 21:42:57 +02:00
gizmo98
b09356f3f7
Fix GCC6 "Bool" issue
2018-04-11 21:37:31 +02:00
Stefan
8c967b0591
Merge pull request #1 from OrN/rpi2-stuff
...
omx audio backend, and dispmanx window
2018-04-11 21:33:45 +02:00
Stefanos Kornilios Mitsis Poiitidis
4300951b51
gdi: Cleanup path code, use C++ strings
2018-04-11 11:40:15 +02:00
Stefanos Kornilios Mitsis Poiitidis
fe30e58504
tactx: Actually use aligned alloc functions
2018-04-11 11:06:46 +02:00
Stefanos Kornilios Mitsis Poiitidis
894e9f1414
Cleanup changes for merge with master
2018-04-09 21:11:06 +02:00
hissingshark
d1bac19a0a
Fixed blunder and changed OS test.
2018-04-05 16:58:23 +01:00
hissingshark
dec5c7bdd2
Added helper functions for aligned memory (de)allocation
2018-04-05 12:13:49 +01:00
hissingshark
3ab9c22516
Fix issue from PR #1023
2018-04-03 17:38:30 +01: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
Stefanos Kornilios Mitsis Poiitidis
c832df6d62
Merge pull request #1078 from nadenislamarre/nae_get_entry
...
cfg/get_entry: Validate that virtual section has virtual key before using it
2018-03-27 23:01:26 +02: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
TwistedUmbrella
045ab285ca
Merge pull request #1068 from promi/fix-evdev_mapping
...
Fix #1051
2018-03-09 12:35:06 -05:00
Nicolas HOUDELOT
5c343a219c
fix typo
2018-03-05 01:57:00 +01:00
Nicolas Adenis-Lamarre
8ba58a3d9d
configuration parsing: get_entry must not look into virtual sections only
...
in emu.cfg, when i set rend.WideScreen = 1, its not read.
has_entry and get_entry doesn't use the same check,
thus while has_entry can return true, get_entry can not return the entry.
Signed-off-by: Nicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
2018-02-13 23:20:23 +01:00
Promi
5615694ea0
Fix #1051
2017-12-09 15:51:57 +01:00
TwistedUmbrella
c80dbb1629
Create Xcode external build system for zlib
2017-06-17 09:18:27 -04:00
TwistedUmbrella
158eef7883
Remove fp.h leftovers after limping update
2017-06-04 13:38:56 -04:00
Stefanos Kornilios Mitsis Poiitidis
6ae93b31d1
ta: use 256-bit struct
2017-05-16 13:33:37 +02:00
Stefanos Kornilios Mitsis Poiitidis
8e3b9b434c
Cleanup/optimize ta_thd_data32_i
...
- Use 128-byte copies
- read pcw from memory
2017-05-16 12:38:00 +02:00
verybadsoldier
7d49b2212d
alsa-backend: initialize variable "sub unit dir". This variable is passed into alsa as a pointer. Alsa will write to it but also read (!) from it. So the read will give undesired behavior when variable is not initialized. Depending on current alsa-config/hardware it leads to an error "Invalid argument" when submitting the parameters by invoking "snd_pcm_hw_params" a few lines later.
...
Initializing the variable to -1 fixes it and means "set to exact value or less" (http://alsa.opensrc.org/HowTo_Asynchronous_Playback )
2016-10-18 22:31:31 +02:00
Jan Holthuis
b7fa676546
linux-dist/evdev: Use std::Map.find() instead of operator[]
...
Since EvdevControllerMapping does not have a default constructor,
we can't use the operator[];
data_type& operator[](const key_type& k) - Returns a reference to
the object that is associated with a particular key. If the map
does not already contain such an object, operator[] inserts the
default object data_type().
Instead, we use the std::map.find() function.
This should resolve #971 .
2016-09-23 12:54:27 +02:00
Preston Smith
6f1fa1ab08
omx audio backend, and dispmanx window
2016-09-21 17:21:13 -05:00
Stefanos Kornilios Mitsis Poiitidis
e5d8851316
Merge pull request #964 from Holzhaus/linux-rumble-support
...
Linux rumble support
2016-09-20 13:49:13 +02:00
Stefanos Kornilios Mitsis Poiitidis
42e6a62fac
Merge pull request #877 from KrossX/purupuru
...
X360 controller support for Windows + Rumble
2016-09-17 22:26:46 +02:00
Jan Holthuis
fdc3de7870
Port right motor adjustment to linux version
...
This adapts KrossX' commit c37c5c42e4
so
that we can use it in the linux version, too.
2016-09-13 14:54:29 +02:00
Stefanos Kornilios Mitsis Poiitidis
88c6bb6293
Merge pull request #905 from reicast/holzhaus/buffer-overflows
...
Fix some buffer overflows
2016-09-12 22:23:24 +02:00
Stefanos Kornilios Mitsis Poiitidis
3ed70a26fb
Merge pull request #914 from ghost/issue-883
...
Update softrend.cpp
2016-09-12 22:19:39 +02:00
Twinaphex
a5b7011c57
Merge pull request #929 from Hyell/master
...
Multiplayers with configuration file
2016-05-15 14:48:40 +02:00
Twinaphex
3cb39268a9
Merge pull request #926 from reicast/ftrc-fix
...
ftrc fix - revert back to nulldc defaults
2016-05-14 04:44:24 +02:00
Stefanos Kornilios Mitsis Poiitidis
7c5e49a6d2
dyna: Fix f2i canonical + x86 to saturate
2016-05-14 04:15:16 +03:00
twinaphex
b606593774
ftrc fix - revert back to nulldc defaults
2016-05-13 14:44:53 +02:00
twinaphex
ccfb6b635a
Delete spurious code - fixes sprite palette issue with games like
...
Street Fighter III 3rd Strike/Capcom Vs SNk 2, possibly others
2016-05-13 14:37:47 +02:00
Hyell
469dda0e57
Update maple_cfg.cpp
...
Add players.nb option in emu.cfg. You can add 1-4 SegaController.
2016-04-26 17:06:45 +02:00
Hyell
6c49f0a852
Update maple_cfg.cpp
2016-04-25 12:10:12 +02:00
pvezien
e093f679a8
Update softrend.cpp
2016-04-13 09:20:33 +12:00
Jan Holthuis
52afec6f7d
Merge pull request #832 from reicast/holzhaus/sdl-opengl
...
Move to SDL2 for OpenGL 3.1 and GLES support
2016-03-04 15:13:25 +01:00
Jan Holthuis
ef1994549b
webui/server.cpp: Fix buffer overflow in callback_http()
2016-02-22 18:55:34 +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
Jan Holthuis
1a809fc60e
hw/naomi/naomi_cart.cpp: Fix 3 buffer overflows in naomi_cart_LoadRom()
2016-02-22 18:55:33 +01:00
Jan Holthuis
9e937957f7
hw/flashrom/flashrom.h: Fix buffer overflow in MemChip::Load()
2016-02-22 18:55:33 +01:00
Jan Holthuis
5638b872ac
cfg/ini.cpp: Fix buffer overflow in ConfigFile::parse()
2016-02-22 18:55:33 +01:00
Jan Holthuis
2866c879ac
cfg/cfg.cpp: Mark possible buffer overflow
2016-02-22 18:31:36 +01:00
Phil Eichinger
dde4647e55
Fix the check for the enviroment variable
...
I tried running reicast and it immediately died with:
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct null not valid
Aborted
I was missing the environment variable XDG_CONFIG_DIRS
Turns out find_system_config_dirs() checked for the existence of
XDG_DATA_DIRS but then tried to use XDG_CONFIG_DIRS (non-existent in my
case).
fixes #847
2016-01-30 10:29:36 +01:00
KrossX
d4d782c71c
Remove unused lines.
2016-01-22 15:08:29 -03:00
Jan Holthuis
6b1a02e971
Merge remote-tracking branch 'krossx/purupuru' into linux-rumble-support
2016-01-22 14:39:18 +01:00
KrossX
c37c5c42e4
Right motor adjustment
2015-12-17 22:10:55 -03:00
Stefanos Kornilios Mitsis Poiitidis
ad7e23d849
Merge pull request #846 from reicast/feat/ta-hash-logs
...
rend/if: Logging/verification of MD5(ta command list data)
2015-12-14 04:15:37 +01:00
Stefanos Kornilios Mitsis Poiitidis
f868fc0655
Merge pull request #841 from reicast/wip/osx-ios-sound
...
apple: Add primitive core audio support
2015-12-14 04:06:01 +01:00
Stefanos Kornilios Mitsis Poiitidis
6c3c726019
softrend: Fix windows build
2015-12-14 03:11:40 +01:00
Stefanos Kornilios Mitsis Poiitidis
af01baae75
linux/softrend: Optional via makefile, sse4.1 detection
2015-12-14 02:40:23 +01:00
Jan Holthuis
cc5719e845
Linux/evdev: Add Force Feedback/Rumble support
2015-12-14 01:09:03 +01:00
Stefanos Kornilios Mitsis Poiitidis
f3e4416bb4
linux/softrend: Cleanup accidental file changes
2015-12-13 14:08:16 +01:00
Stefanos Kornilios Mitsis Poiitidis
62018cf203
linux/softrend: Fix porting bugs, hackplement X11 drawing
...
- Fix RECT fields oder (initialized via {} on the code)
- Initialize shuffle_alpha (duh ...)
- X11 Image drawing (hacky, depends on internal X11 details)
- Untwidle code w/ optional flipping (X11 doesn't use inverted bitmaps)
- rgba shuffling (not needed yet, but left for documentation)
2015-12-13 14:00:25 +01:00
Stefanos Kornilios Mitsis Poiitidis
5e377399d3
linux/softrend: builds & runs, doesn't push to screen yet
2015-12-13 14:00:25 +01:00
KrossX
c42986e63f
Unplug PuruPuru Pack
...
Ooops.
2015-12-07 21:30:07 -03:00
KrossX
832eeeb419
Might help compilation in other platforms
...
I cannot verify it though.
2015-12-07 21:27:19 -03:00
KrossX
b59ca13cfe
Implemented PuruPuru device
...
Includes a simple XInput implementation for Windows.
2015-12-07 21:21:03 -03:00
KrossX
b566092d28
Basic XInput support for Windows
...
Adds simple X360 controller support for Windows.
2015-12-07 20:09:15 -03:00
Jan Holthuis
20d43fb04e
SDL: Remove some unused variables
2015-10-11 18:41:23 +02:00
Jan Holthuis
098e208a57
SDL: Drop SDL1.2 support and use SDL2 for GLES, too
2015-10-11 18:41:23 +02:00
Jan Holthuis
b38813ca34
SDL: Add OpenGL3/SDL2 support
2015-10-11 18:41:23 +02:00
Stefanos Kornilios Mitsis Poiitidis
7d951b7697
rend/if: Logging/verification of MD5(ta command list data)
...
This allows for some very primitive auto-automated testing, by comparing known good frames.
As this happens on the TA level, it doesn't actually require rendering (and thus it's server friendly)
Two new config entries under the new [testing] namespace control behavior
- ta.HashLogFile, file where data should be logged, empty if not logging
- ta.HashCheckFile, past log to check against, empty if not checking
The emu will crash via verify if the logs don't match, and exit(1) if they do
2015-10-05 23:49:12 +02:00
Stefanos Kornilios Mitsis Poiitidis
d85e4d8dff
sh4/mmu: Don't use exceptions when disabled
2015-09-29 03:17:26 +02:00
Stefanos Kornilios Mitsis Poiitidis
d99c803a0c
sh4/mmu: Typo fixes, less log spam
2015-09-29 03:11:28 +02:00
Stefanos Kornilios Mitsis Poiitidis
4a060b5635
sh4/mmu: C++ exception based sh4 exception support. Won't run wince yet.
...
- Rewrite mem ops to only modify regs after exception path
- Throw & catch logic for interpreter that raises the exception
- Re-enabled some commented mmu code
2015-09-29 03:11:28 +02:00
Stefanos Kornilios Mitsis Poiitidis
4282395528
apple: Add primitive core audio support
...
Also made the project xcode 7 friendly
2015-09-29 03:10:19 +02:00
Stefanos Kornilios Mitsis Poiitidis
543e355259
Merge pull request #826 from reicast/holzhaus/merge-sdl-into-linux-dist
...
SDL: Merge sdl/ code into linux-dist/ code
2015-09-23 11:42:46 +02:00
Stefanos Kornilios Mitsis Poiitidis
1dbc0d73df
nixprof: Fix printf, PRI & friends don't exist on android
2015-09-17 01:06:47 +02:00
Jan Holthuis
76dfeae55c
SDL: Remove redundant sdl/ code
2015-09-12 16:31:32 +02:00
Stefanos Kornilios Mitsis Poiitidis
56f8ffac0e
Merge pull request #807 from randomstuff/nixprof
...
Nixprof: some enchancements
2015-09-04 19:55:19 +02:00
Gabriel Corona
2a469b1def
nixprof: fix notation for Hz
2015-09-03 21:08:39 +02:00
Gabriel Corona
8fc2d5d069
nixprof: only save STT_FUNC
2015-09-03 21:08:35 +02:00
Gabriel Corona
ceca8c72bf
nixprof: make it work with ELF64
2015-09-03 21:08:29 +02:00
Gabriel Corona
c87307162d
nixprof: Use sh_type insteaf of sh_name for section identification and use SHT_SYMTAB
2015-09-03 21:08:24 +02:00
Gabriel Corona
a34a4d6f38
libelf: get section link for ELF64
2015-09-03 21:08:20 +02:00
Gabriel Corona
ad068dcff2
Bind profiling in X11 to F10
2015-09-03 21:08:13 +02:00
Jan Holthuis
e9beb86069
Merge pull request #798 from reicast/holzhaus/linux-use-xdg-config-home
...
Introduce separate config/data dirs (user & system wide)
2015-09-02 16:14:50 +02:00
Jan Holthuis
4267d51f90
stdclass: Make path getter function names more verbose
2015-09-02 15:49:00 +02:00
Jan Holthuis
4bd5154c9f
stdclass: Use access to check if file is readable
2015-09-02 15:49:00 +02:00
Jan Holthuis
5f6480e983
linux-dist: Also add /etc/reicast as system config dir
2015-09-02 15:48:59 +02:00
Jan Holthuis
b6d0cddcaa
stdclass: Add support for separate config/data dirs and system wide dirs
...
This adds support for separate config and data dirs.
On Linux, these will be compliant XDG Basedir Specification, i.e.
XDG_CONFIG_HOME and XDG_CONFIG_DIRS (or XDG_DATA_HOME and XDG_DATA_DIRS
respectively). On all other platforms, there currently just set to the
homedir path (so no previous behaviour has been changed).
If reicast wants to read and write a data file, it just calls
get_data_path("/samplefile.txt"). If it does not need to write to
that file, it just uses get_data_path("/samplefile.txt", false). That
way, we can also use system-wide dirs (like /usr/share/reicast on
linux), that the user usually doesn't have write access to.
The same applies for config file, where you use get_config_path(args)
respectively.
2015-09-02 15:48:53 +02:00
Stefanos Kornilios Mitsis Poiitidis
3e76175c7a
Merge pull request #818 from reicast/feat/import-nulldc-mmu
...
sh4/mmu: Import the old mmu implementation from nullDC.
2015-09-02 04:46:31 +02:00
Jan Holthuis
c24a5faf5b
Linux: Use $XDG_CONFIG_HOME if possible
...
This coommit makes reicast use $XDG_CONFIG_HOME from XDG Base Directory
Specification[1] if possible.
For backwards-compatability with older installations, it checks if the
old-style config directory at $HOME/.reicast exists. If so, it'll use
that instead.
All new installation should use $XDG_CONFIG_HOME/reicast (or if
that environment variable is not set: $HOME/.config/reicast).
[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
2015-08-29 01:05:39 +02:00
Gabriel Corona
4ad6db345b
nixprof: make private stuff static
2015-08-28 18:26:41 +02:00
Stefanos Kornilios Mitsis Poiitidis
dcd77326cc
sh4/mmu: Import the old mmu implementation from nullDC.
...
Reicast doesn't support exceptions yet, so this isn't of much use now,
and is intended mostly as documentation. nullDC used some call stack
hooking magic to handle exceptions, which was never generic and clean
enough to be worth the effort to port to Reicast.
2015-08-27 17:05:06 +02:00
Stefanos Kornilios Mitsis Poiitidis
78f4890535
Merge pull request #791 from sergiobenrocha2/libpng16
...
Update libpng to 1.6.18.
2015-08-28 13:50:58 +02:00
Jan Holthuis
def93ca4be
linux/x11: Map X11 ESC key to exit emulator
2015-08-28 04:06:36 +02:00
Jan Holthuis
62029a40b1
linux-dist/joystick: Disable legacy joystick API by default
2015-08-26 01:34:49 +02:00
Jan Holthuis
25b8bb5f29
linux-dist/evdev: Move *_inverted in mappings to compat section
2015-08-26 01:11:16 +02:00
Jan Holthuis
7eab958472
linux-dist/evdev: Print error msg if unable to open mapping file
2015-08-25 21:45:39 +02:00
Jan Holthuis
c97727984d
linux-dist/evdev: Add absolute mapping file path support
2015-08-25 21:45:39 +02:00