Commit Graph

2533 Commits

Author SHA1 Message Date
Zachary Cook
4b83d86881 Adjust for changes in lightrec api
Enable lightrec OPT_REPLACE_MEMSET
2021-05-21 20:49:02 -04:00
Zachary Cook
a388aacc8f git subrepo pull --force deps/lightrec
subrepo:
  subdir:   "deps/lightrec"
  merged:   "aa2f992e"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "aa2f992e"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-05-21 20:49:02 -04:00
Zachary Cook
8ac3ca82f0 Fix Android 10+ shared memory failing
if open /dev/ashmem fails with EACCESS, due to change in what is allowed
in Android 10+ then use dlsym ASharedMemory_create to get shared memory
2021-05-21 20:49:02 -04:00
Zachary Cook
1f620d0194 Fix crash in BIOS while dynarec+runahead are active
Fixes #636

This is a hack to run lightrec's interpreter for a few dozen frames
whenever a load state occurs while in the bios, as this bios code
doesn't seem to work when both dynarec and runahead are enabled
2021-05-21 20:49:02 -04:00
Zachary Cook
0673ca68e9 Update lightning.h to match changes in deps/lightning/include/lightning.h.in 2021-05-21 20:49:02 -04:00
Zachary Cook
d47b2ed882 git subrepo pull (merge) deps/lightning
subrepo:
  subdir:   "deps/lightning"
  merged:   "b1be3ed1"
upstream:
  origin:   "https://git.savannah.gnu.org/git/lightning.git"
  branch:   "master"
  commit:   "876c1043"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-05-21 20:48:01 -04:00
Zachary Cook
bd765e2bf9 Move lightning.h and lightrec config.h to fix subrepos
This allows deps/light(rec/ning) to be free of any local changes
which allows more automated merging of any updates, and centralizes
the location of locally created files, these should be regenerated
whenever changes occur in thier subrepo files:

config.h <- deps/lightrec/config.h.cmakein

lightning.h <- deps/lightning/include/lightning.h.in

Also add the defines to keep lightrec optimizations enabled by default
2021-04-28 15:58:51 -04:00
Zachary Cook
d8479c7ab2 Reduce compile time up to 57%, reduce binary size up to 32%
Move pgxp and MaskEval_TA bools from templates to functions
to greatly reduce the number of generated functions
for the CTEntry commands

Reduced default binary size from 4789 KB to 3192 KB

'time make -j12' on Ryzen 2600 after make clean:

Before:

real	1m13.344s
user	2m23.634s
sys	0m5.178s

After:

real	0m31.265s
user	1m42.773s
sys	0m3.801s
2021-04-22 07:10:58 -04:00
Zachary Cook
a6fa9ddb2d Fix snprintf warning, improve error messages when path too long 2021-04-22 07:10:58 -04:00
Zachary Cook
df4797567f Fix debug vulkan compile, fix widescreen_hack_aspect_ratio_setting
reload widescreen_hack_aspect_ratio_setting where widescreen_hack
is reloaded, make 16:9 the default setting when not set, and actually
check when widescreen_hack or widescreen_hack_aspect_ratio_setting has
changed
2021-04-22 07:09:46 -04:00
Zachary Cook
a093ffec37 git subrepo commit (merge) deps/lightrec
subrepo:
  subdir:   "deps/lightrec"
  merged:   "a7bd81d3"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "16a375e4"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-04-22 06:10:56 -04:00
Zachary Cook
32ee32f708 Add HAS_DEFAULT_ELM flag for lightrec changes, requires gcc to enable 2021-04-21 00:09:46 -04:00
Autechre
cd79168f58
Merge pull request #783 from bslenul/master
Hide "track/dump/replace textures" core options for Software and OpenGL renderers.
2021-04-12 14:59:58 +02:00
bslenul
a317e6132c Hide "track/dump/replace textures" core options for Software and OpenGL renderers 2021-04-12 11:14:56 +02:00
twinaphex
b22b24a67d Don't need libzma Sort.c 2021-04-12 01:17:20 +02:00
twinaphex
cc84ae0cc7 Get rid of unnneeded files in dependencies 2021-04-09 18:28:10 +02:00
twinaphex
f319cf5f8e Get rid of error_on_eos 2021-04-08 20:30:54 +02:00
twinaphex
190544ec36 Make ReadM3U code use libretro-common file_stream 2021-04-05 18:23:02 +02:00
twinaphex
cac1189a83 Cleanups 2021-04-05 18:07:13 +02:00
twinaphex
51b0833876 Some backports from Mednafen 1.27.0 unstable 2021-04-05 17:51:46 +02:00
twinaphex
419737f18a Cleanups 2021-04-05 17:26:43 +02:00
twinaphex
c2f658b7d0 Get rid of throws - ErrnoHolder 2021-04-05 17:08:32 +02:00
twinaphex
75bd1553cc Get rid of puts/printf calls 2021-03-24 15:55:50 +01:00
twinaphex
0b95207324 Put this behind DEBUG ifdef 2021-03-24 15:16:32 +01:00
twinaphex
19e0250e4e Silence some LGTM warnings 2021-03-24 14:00:10 +01:00
Autechre
63bca35369
Merge pull request #782 from jdgleaver/libchdr-update
Update libchdr
2021-03-22 13:30:06 +01:00
jdgleaver
0c0f833e5e Update libchdr 2021-03-22 11:33:49 +00:00
twinaphex
76750ab9ee Backport
ca5a290de1
-
PSX: Fixed various inaccuracies in the SPU reverb emulation code.
PSX: Fixed quasi-benign dereferencing of a null pointer in the GPU code when playing a PSF.
2021-03-21 18:42:00 +01:00
twinaphex
1649fbd0dc * Fix memory leak in FileStream
* Change old_cacheimage to cacheimage
2021-03-17 18:22:14 +01:00
twinaphex
c69e197078 Backport c68ef30639 2021-03-16 06:37:29 +01:00
Autechre
573de0a46a
Merge pull request #777 from housello/master
Shared memory card support with libtetro method
2021-03-11 08:45:27 +01:00
twinaphex
fd4c3a4fb1 Add ios-arm64/tvos-arm64 2021-03-11 07:33:36 +01:00
twinaphex
49e73a241e Update 2021-02-28 11:12:06 +01:00
twinaphex
4d97452eab Add LINK_STATIC_CPLUSPLUS for Linux cores 2021-02-28 11:04:27 +01:00
Housello
385a6d7969 Modified shared memory card option description. 2021-01-31 19:29:19 +01:00
Housello
7dfff323a8 Removed check for shared memory cards 2021-01-31 19:05:56 +01:00
twinaphex
3ec155d89f (macOS) Set up CROSS_COMPILE for ARM 64bit 2021-01-28 06:20:54 +01:00
twinaphex
252df32671 Add arm64/x64 mac targets 2021-01-27 04:38:00 +01:00
Autechre
e1836bde1b
Update .gitlab-ci.yml 2021-01-09 17:14:59 +01:00
Autechre
0e85c15fed
Update .gitlab-ci.yml 2021-01-09 16:50:13 +01:00
Autechre
3f91ddbc4a
Update .gitlab-ci.yml 2021-01-07 20:38:16 +01:00
Autechre
3b299e552b
Update .gitlab-ci.yml 2021-01-07 20:32:55 +01:00
Autechre
4b661690e1
Update .gitlab-ci.yml 2021-01-02 11:32:40 +01:00
Autechre
43340147ab
Update .gitlab-ci.yml 2021-01-02 11:31:04 +01:00
twinaphex
6a3a3c8968 Comment out OSX for now 2020-12-25 17:49:34 +01:00
twinaphex
c66178d6dc Update 2020-12-25 17:33:57 +01:00
Autechre
825e0b7919
Merge pull request #770 from jdgleaver/gitlab-cleanup
(.gitlab-ci.yml) Remove redundant android core defintion
2020-12-19 11:24:53 +01:00
jdgleaver
4107ddc93c (.gitlab-ci.yml) Remove redundant android core defintion 2020-12-18 17:45:59 +00:00
Autechre
e72640e59b
Merge pull request #769 from jdgleaver/gitlab-multi-core
(.gitlab-ci.yml) Enable building of both 'mednafen_psx' and 'mednafen_psx_hw'
2020-12-18 17:15:07 +01:00
jdgleaver
646c0a77cc (.gitlab-ci.yml) Enable building of both 'mednafen_psx' and 'mednafen_psx_hw' 2020-12-17 17:54:37 +00:00