205 Commits

Author SHA1 Message Date
Konrad Beckmann
35684857ee Clean up fault handlers 2021-11-20 02:24:25 +01:00
Adam Minchinton
8c6c451c52 Updated system header images in red & green themes 2021-11-16 22:16:58 +01:00
Adam Minchinton
b80e0712a0 Add Zelda variant to header bitmaps 2021-11-16 22:16:58 +01:00
Adam Minchinton
7f0dd97118 Update drawn UI to use new C_GW_MAIN_COLOR 2021-11-16 22:16:58 +01:00
Brian Pugh
55394c70e3 Add naive zelda START and SELECT button support. Currently they just perform the same actions as GAME and TIME, respectively 2021-11-16 18:34:47 +01:00
Konrad Beckmann
c3b282a67f Mute audio while saving screenshot 2021-11-02 22:52:11 +01:00
Konrad Beckmann
0d2a7da11a Use correct number of entries for app settings
Fixes garbage text and crashes in settings for
PCE and GW.
2021-11-02 22:10:37 +01:00
Konrad Beckmann
086f50e8d2 Use a global enum definition for appids 2021-11-02 22:09:00 +01:00
Konrad Beckmann
ee3cb5e9b5 Add screenshot support
Closes #163
2021-10-31 02:30:13 +02:00
wzhy90
a9d68f3cf8 gb: Add original resolution
Added:
- Off + any -> 160x144 resolution
2021-10-30 00:27:04 +02:00
Konrad Beckmann
748d994ad0 gw_flash: Assert on JEDEC ID 00 00 00 as well 2021-10-25 23:32:36 +02:00
Konrad Beckmann
017e2c7183 gb: Add more scaling options
Added:
- Fit + Soft -> bilinear scaling
- Full + Off -> NN scaling
2021-10-23 23:34:00 +02:00
Konrad Beckmann
b51f0f99d5 nes/gb: Add support for scale and filter algorithms
Partial solution for #95
2021-10-17 19:58:52 +02:00
Konrad Beckmann
9c48cc2b4a Fix indentation 2021-10-10 23:30:55 +02:00
Konrad Beckmann
11b1dd2dd7 Don't load state when resuming from sleep if STATE_SAVING is 0 2021-10-10 23:30:26 +02:00
Konrad Beckmann
290a9402c4 Add option to disable save state support (STATE_SAVING=0) 2021-10-10 15:28:18 +02:00
Konrad Beckmann
4867b664b8 Bump settings version
When important changes happen in the
settings struct or handling, the version
field should be increased.

Doing so will cause the settings to reset
to the default (a lazy migration, but better
than nothing).

After we added more backlight levels, it was
possible to end up with a very dark screen when
having an old config from a previous build.
2021-09-18 17:27:44 +02:00
Brian Pugh
3e9ec78a11 LZMA ROM compression (#148)
* lzma initial commit

* Save 13 bytes per lzma compression

* initial lzma support

* update readme

* Update submodule

* linux: Fix gb makefile

Co-authored-by: Konrad Beckmann <konrad.beckmann@gmail.com>
2021-09-18 17:09:28 +02:00
Brian Pugh
bfd9f79fff change startup gui override macro to just the TIME button 2021-09-06 17:52:25 +02:00
Christian Unhold
e4011d8bf9 flashapp: 64-bit percent calculation
This avoids an overflow with big progress values.
Previously, the Flash erase percentage was jumping back to 0%
after 41 MiB erased.
2021-09-03 22:47:00 +02:00
Konrad Beckmann
28130acd8f Add NULL-checks for load and save state functions
Fixes a bug where it would crash if the power button is pressed
while an overlay is active in the ROM selection menu.
2021-09-01 15:33:46 +02:00
unhold
54275de64e flashapp: 64-bit progress calculation (#145)
This avoids an overflow with big progress values.
Previously, the Flash erase status bar was jumping back to start
after every 16 MiB erased.
2021-08-31 22:36:07 +02:00
unhold
67312e82bf gw_flash: Add MX25U51245G-54 (#144) 2021-08-27 09:52:59 +02:00
Konrad Beckmann
f8ae6ee682 Remove accidentally added submodule 2021-08-25 17:44:11 +02:00
Brian Pugh
c1cddb4769 Increase number of brightness levels to 10 (#141) 2021-08-25 17:42:06 +02:00
bzhxx
f80ef35fc4 Fix G&W keys abstraction issue #130 (#138)
Closes #130
2021-08-22 23:03:03 +02:00
Brian Pugh
278616969e fix savestates from saving/loading from the wrong location when __EXFLASH_OFFSET__ is specified (#136) 2021-08-17 20:13:39 +02:00
Brian Pugh
dbc2253023 Working Bank2 Flashapp (#131)
* set intflash address when programming

* Allow flashapp to work when flashing bank 2

* update readme

* Add tim bootloader SRAM magic-byte

* move boot stuff around to more appropriate locations
2021-08-15 21:42:57 +02:00
Konrad Beckmann
8a641f844a Add EXTFLASH_FORCE_SPI to force legacy SPI mode for the flash driver 2021-08-15 02:22:25 +02:00
Konrad Beckmann
f604478126 Add more debug features
- Show the IDCODE of the device
- Adds ability to enable/disable the debug clocks
2021-08-13 00:49:34 +02:00
Konrad Beckmann
a0497229fd Set default display brightness to level3 2021-08-12 20:00:51 +02:00
northskysl
d9542eb709 STM32 RTC Hardware Support & User Interface for Watch and Calendar (#128)
* Update rg_main.c

Added a menu to view and configure RTC parameters. It is activated by pressing 'TIME' button in retro-go main menu.

* Update main.c

Enable LSE oscillator and enable it as RTC clock source. Additionally enable CRS Sync LSE.

* Added time display to RTC menu

Added time display to RTC menu and also modified RTC initialization code so that it does not set the RTC date and time. Assuming that a fresh RTC has sensible values.

* Add date display to time menu

Added date display to time menu

* Fix predivs for LSE

Fixed predivs for LSE clock

* move RTC stuff to rg_rtc

Consolidate all RTC functions to rg_rtc. So far getters have been implemented only.

* Time setup UI + setters for Time

Setters for Time have been implemented and Time setup has been added into the UI to use them.

* Date setup added

Date setup with callbacks added

* Add real time datetime display

Modified the time menu to display and update in real time.

* Add a function to return Unix time

Unix time is returned as a 64-bit time_t. Casting to uint32_t will yield time in seconds since 1st Jan 1970.

* Fix setters' return type

Fixing warnings about wrong setter return type.

* Update rg_rtc.h

Missed the .h while updating return types of setters.

* Update rg_rtc.c

Add a nicer year display

* Reactivate LSI

This should fix an issue with DACs that causes Brightness control not to work.
2021-08-12 14:34:00 +02:00
Brian Pugh
5b8a944791 fix game and watch speed issues (#129) 2021-08-12 07:47:36 +02:00
Brian Pugh
314fc9863d Add features to make compatible with tim's patched firmware (#124) 2021-08-11 22:18:07 +02:00
Konrad Beckmann
283a0619df Add lz4 support for PCE engine
Limited to roms smaller than 300k
2021-08-11 21:51:19 +02:00
zx81
6d269a8219 Zx81 (#126)
* - Fix sound in PCE emu
* - New fixes for PCE audio
2021-08-10 14:07:08 +02:00
Konrad Beckmann
550a9eaca7 gw: Integrate on screen display etc 2021-08-09 20:21:17 +02:00
ludo
3514fb8613 Add GW support 2021-08-09 20:20:17 +02:00
Brian Pugh
f96b4bcb43 In-game macro overlay (#122)
* draw_darken_rounded_rectangle initial commit

* image drawing routines

* mostly working static overlay

* use 24x24 instead of 32x32 images, slightly tweak some layout

* complete volume and brightness overlays

* save/load overlay

* png icons and tool to convert them to bit arrays

* add speedup overlay icons

* install common_ingame_overlay hook to all emulators

* explicitly invoke ingame overlay when saving so that the icon shows up before the pause

* make transparency look a little better on dark backgrounds

* tweak bars offset

* have pce use lcd_get_active_framebuffer

* shift sun 1 pixel to the right; even though it's just as off-centered, it looks better
2021-08-08 16:11:50 +02:00
Brian Pugh
eeffce05c6 Fix slightly incorrect buffer swapping in nes osd_blitscreen 2021-08-07 18:29:09 +02:00
Konrad Beckmann
67685edea6 main: Increase max extflash size to 256 MB 2021-08-05 08:49:31 +02:00
Brian Pugh
fbb791b0a6 Fix sms from emulating 5% too fast introduced in b6bbe8e2. Slightly increase target frame period accuracy for all emulators 2021-08-04 19:58:00 +02:00
Konrad Beckmann
9f39efa2ef gw_flash: Assert that JEDEC ID is not FF FF FF 2021-08-04 16:17:32 +02:00
Konrad Beckmann
57601aa086 BSOD: Turn on the backlight
Useful if hitting an assert very early
2021-08-04 16:16:30 +02:00
Konrad Beckmann
6b7e6eeeb6 gw_flash: Add MX66U1G45G and MX66U2G45G 2021-08-04 11:58:46 +02:00
Brian Pugh
a3af61f484 continue drawing frames and don't skip until CPU usage hits 100 percent 2021-08-03 23:58:49 +02:00
Konrad Beckmann
2817336939 gw_flash: Add a default status poll timeout of 1s
Erase operations will be allowed to run forever.
2021-08-03 20:19:34 +02:00
Konrad Beckmann
ade7cb6fc5 New flash driver and integrated loader 2021-08-03 17:06:54 +02:00
Brian Pugh
1541393509 Long hold pause/set to toggle speedup (#114)
* nes long hold pause/set to toggle speedup

* refactor nes common emu loop; need to fix busyTime

* move odroid_system_tick into common loop, fix cpumon

* nes common_emu_loop

* pce common_emu_loop

* sms common_emu_loop

* fix some warnings

* setup pause/set macros; remove speedup based on long-pressing pause/set

* Update readme. Initial Controls section commit

* linting

* mute while macro save-stating
2021-07-29 20:20:55 +02:00
Brian Pugh
0403b679cb change pce pause_pressed and power_pressed to correct dtypes 2021-07-25 09:17:38 +02:00