134 Commits

Author SHA1 Message Date
gameblabla
75d9cc96f7
Update Makefiles accordingly. 2019-03-15 20:58:34 +01:00
gameblabla
9fad280dca
Update the sound output code. Minor fixes, mostly to allow the
sound volume to be toggeable from the menu. (via the config structure)

Also changing NON blocking option to another define.
2019-03-15 20:55:01 +01:00
gameblabla
3d5d2db30c
Update the ports specific code.
This includes :
- Improved FBDEV code.
- Allow saving of config file.
- Minor fixes.
- Change text drawing routines to smaller ones on the RS-97, SDL and FBDEV ports.
- Allow setting the sound volume. (some ports for now only)
2019-03-15 20:53:18 +01:00
gameblabla
cf3e55eb2d
Fix minor issues in vdp code. 2019-03-15 20:52:49 +01:00
gameblabla
c37584f728
Fixes save states issues for good. 2019-03-15 20:52:29 +01:00
gameblabla
b0de1e24d3
Minor fixes to headers. 2019-03-15 20:48:40 +01:00
gameblabla
4414acd4fe
Set brightness to its highest level for Master System.
Also minor fixes.
2019-03-15 20:47:55 +01:00
gameblabla
0e773b6f30
Fix more clang warnings in files. 2019-03-15 20:46:57 +01:00
gameblabla
0e0373185f
Fix clang warnings in text/fb 2019-03-15 20:46:23 +01:00
gameblabla
ebbde23f34
Slight modifications to miniz to avoid warnings and errors.
Also makes clang slightly happier.
2019-03-15 20:45:33 +01:00
gameblabla
a726922722
Whitespacing that shit in loadrom.c 2019-03-15 20:03:10 +01:00
gameblabla
18cdc00e0d
Fix missing .col extension for package file. This should allow Colecovision
roms to be selected from the menu.
2019-03-15 20:01:15 +01:00
gameblabla
0fdb3e3424
*facepalm* Made a mistake in fread. That was the cause of our headaches
in save states.
2019-03-14 22:11:17 +01:00
gameblabla
71168d94e5
Remove SDL headers from scale2x. (it is platform agnostic) 2019-03-14 03:24:37 +01:00
gameblabla
11ee7bcf20
Add soundlevel to config.h and removing useless variables from it. 2019-03-14 03:24:01 +01:00
gameblabla
35fef879c0
Add Text code taken from n2DLib for FBDev.
Also moving the SDL specific code to its own subfolder.
2019-03-14 03:23:19 +01:00
gameblabla
36895b5b88
Move Generic scaler code to scalers/ folder. 2019-03-14 03:22:57 +01:00
gameblabla
fbdabaa895
Removing "Generic" folder, we will be moving them to another location.
This was done because the FBdev code required different code paths
for text drawing.
2019-03-14 03:22:08 +01:00
gameblabla
14b3e6f24b
Updates the other ports to account for an upcoming commit
related to soundlevel.
2019-03-14 03:14:48 +01:00
gameblabla
cca26bd419
Avoid using fputc and prefer just using fwrite instead.
Should make our source code more consistent.
2019-03-14 03:07:34 +01:00
gameblabla
5fad968049
No more Clang bitching in VDP.c.
We should be sticking with uint8_t here.
2019-03-14 03:06:48 +01:00
gameblabla
e3156e37ce
Add FBDev/evdev port for Embedded linux platforms.
This was mostly done to allow us to decrease the size of the binary
when using static linking as well as avoid the overhead of libSDL.

The input code reads directly from /dev/input/event0 (which is the keyboard).
It does seem to suffer from ghosting (?) when the program slows down a lot.
This does not happen on libSDL so i'm not sure what to do,
it seems that they might be using threads to solve this issue ?

The FBDev code does not currently support double buffering :
This would require us doubling the vertical size of the allocated
resolution.
The Pandora wiki explains how this is implemented with fbdev :
https://pandorawiki.org/Kernel_interface
2019-03-14 03:00:19 +01:00
gameblabla
2ba43256b4
Allow NoZIP builds to be built. Saves around ~20Kb. 2019-03-14 02:47:05 +01:00
gameblabla
2f2892b0f3
Using Miniz instead of Zlib for zip archives.
This helps save some space on fully static build.
2019-03-14 02:46:23 +01:00
gameblabla
c624e175f1
This should fix the other PAL specific issues with Fantastic Dizzy.
To be fair i'm not even sure 267 is correct but there's no glitches with Dizzy
with that value.

I probably should have not removed overscan emulation from SMS Plus GX.
2019-03-14 02:43:24 +01:00
gameblabla
1daf0d8dd9
Update the RS-97 & Arcade Mini ports.
Fix an issue with fullscreen variable along with other minor issues.
2019-03-13 04:15:21 +01:00
gameblabla
f1d1e42a47
Fix invalid state.c file.
Oddly enough, the compiler would not error out.
2019-03-13 04:14:46 +01:00
gameblabla
56145dbfce
Also update the other makefiles.
We don't do profile-use by default because it can sometimes
expect profile data to be there.
2019-03-13 04:13:53 +01:00
gameblabla
880c0b7971
Add Makefile for the Ritmix RZX-50.
It works fine, if a bit sluggish of course given the SoC inside.
(A JZ4755 clocked at 400 Mhz)
2019-03-13 04:12:18 +01:00
gameblabla
bd31da5145
Update the ports, delete bittboy specific code.
The bittboy code should be shared with the RS-97's one now.
Hopefully this shouldn't cause any issues due to framebuffer bugs.

A bug with SRAM not saving properly has also been addressed
accross all ports. This should fix saving in games like Penguin Land etc...

Everything also got tightened and i tried to address the clang errors
so we should be good now.
2019-03-13 02:46:39 +01:00
gameblabla
818c4ed965
Update Makefiles, they should look similar now except for
specific changes according to the arch & platform of course.
2019-03-13 02:45:25 +01:00
gameblabla
66746c951b
Add Scale2x files.
They are slightly modified for our own use (especially 16-bits output)
but otherwise it should be the same.
2019-03-13 02:11:38 +01:00
gameblabla
8f5b90b1b9
Uuuuugggh, i swear this is driving me insane. 2019-03-13 02:11:04 +01:00
gameblabla
6f84b7fa5c
Partially reverting old commit "Removing CrabEmuZ80"
We broke save states along the way when we improperly switched variable
types.

The end result is also a lot of needless conversions between types.

This commit should hopefully address that, and we fixed broken save
states.
2019-03-13 01:48:28 +01:00
gameblabla
5431940365
Fixed PAL specific regressions with overscan.
Also forcing Fantastic Dizzy to run in PAL mode instead
in order to fix graphical issues in the HUD.

This fixes the issues in Fantastic Dizzy.
2019-03-11 23:53:32 +01:00
gameblabla
4b30b6fd32
Fixes for Gauntley display issues.
There were two issues with that game :
1) It tries to display a sprite being overbound.
The simple fix for this is to use an unsigned 8-bits variable rather
than using a signed 32-bits value and checking if it goes overbound.
This simplification fixes the sprite issue in the upper right of the screen
when ingame.

2) It would not scroll the HUD properly.
Not quite sure what's the issue exactly but it seems that
it shouldn't use v_line but line instead when stopping the vscroll.

This fixes the vertical scrolling in Gauntlet.

All of these issues were introduced by ekeeke when he revamped the code
in SMS Plus GX.
2019-03-11 14:53:43 +01:00
gameblabla
ff1201902b
Set VDP Register 1 to 0xE0 after multiple testing.
Sonic's Edusoft relies on this behaviour and it also works properly when that bit is
set to 0xE0.
(All of the known BIOSes set that bit to 0xE0 before booting a cartridge)

Removing said game hack since it is no longer required.
2019-03-09 10:30:22 +01:00
gameblabla
02a6e57e4e
Removing extra externs for CrabEmu's PSG core.
It's already defined so removing those.
2019-03-09 05:19:36 +01:00
gameblabla
7a7c833972
Uncommenting stuff for CrabEmu's PSG emulator.
I hate myself for doing shit like that...
2019-03-09 05:18:15 +01:00
gameblabla
cf55589e88
Nope, it should definitetly be like that. 2019-03-09 03:48:12 +01:00
gameblabla
bcccf6abb9
Add support for unmodified Sonic's Edusoft rom dump without requiring a copy
of the SMS BIOS. It's kind of a hack right now until the proper behaviour
is figured out.
No known SMS emulator (not even MEKA-git nor Genesis Plus GX as of now) implements this corner-case as far as i know.
2019-03-09 03:27:59 +01:00
gameblabla
7be0fe6fce
Update Documentations, TODO and README 2019-03-08 12:32:52 +01:00
gameblabla
2474ca1cec
Sample size for Portaudio should not be set to 0... 2019-03-08 01:34:28 +01:00
gameblabla
9e994187ad
Update RS-97's Makefile for addressing performance issues (including hack)
We should be good now.
2019-03-08 01:31:22 +01:00
gameblabla
e5130e5e9a
Minor fixes for sound output code. 2019-03-08 01:30:09 +01:00
gameblabla
9d0b849937
Use defines for pop/push/wm16/rm16/add16/adc_hl/sbc_hl due to problematic
issues with PAIRs.

Looks like it fixes the weird issues i had in Sonic ?
But they could be unrelated. Doesn't hurt it seems i guess.
2019-03-08 01:28:23 +01:00
gameblabla
4446c28c8f
Update SDL port. Should be good now, hopefully. 2019-03-08 01:27:34 +01:00
gameblabla
e743d58453
Update RS-97 code. Triple buffering does not set VSYNC it seems so
disabling define. Also fix some minor issues.
2019-03-08 01:27:00 +01:00
gameblabla
301b10e2a6
Fixes Colecovision issues, also add support for keypad. (partial support for Consoles) 2019-03-07 20:37:49 +01:00
gameblabla
a4e59726a0
Fixes an oversight in ALSA's code. 2019-03-07 20:30:48 +01:00