Commit Graph

56 Commits

Author SHA1 Message Date
Elouan Martinet 877f7c61d0 Add an option to use current rom directory for config and saves 2024-10-28 09:30:36 +01:00
profi200 67ce019b36
Forgot to check the ROM size before adding the padding. 2024-07-26 21:22:40 +02:00
profi200 41db8760a6
Made ROM padding code ~42% faster. 2024-07-26 20:37:49 +02:00
profi200 b1c66e24a2 Added experimental support for true color correction to mimic the look of the crappy GBA LCD. Thanks to hunterk and Pokefan531 for their work on the libretro shaders this is based on. 2024-07-25 17:19:41 +02:00
profi200 073daac2bb Separated video functions into own .c file. 2024-07-25 17:19:41 +02:00
profi200 bd5b207106 Updated bitmap.h with comments. 2024-07-25 17:19:41 +02:00
profi200 7c8c3d6fe8 Load GBA scaler matrix from SD if found. 2024-07-25 17:19:41 +02:00
profi200 d7f701f02a Fixed compatibility with latest libn3ds. 2024-07-25 17:19:41 +02:00
profi200 e14704181c
Round the gamma table entries instead of discarding the fraction part. 2024-01-29 17:43:58 +01:00
profi200 63e4422db1
Cleaned up the old gamma table adjustment code a little. 2023-10-06 16:11:20 +02:00
profi200 dc5ac1749f
Fixed ROM mirrors for 1 MiB ROMs. Thanks to @endrift for discovering this. 2023-09-20 00:15:31 +02:00
profi200 e77b04f089
Split open_agb_firm.c into more .c files. A long overdue change. 2023-09-19 20:48:07 +02:00
profi200 ddba28b226
Fixed a double free oopsie. 2023-08-25 13:17:56 +02:00
profi200 8db77d523e
Oops, this happens when not checking wtf the written code actually does. 2023-08-23 02:33:22 +02:00
profi200 4377d28d14
Use macro for GPU render buffer address. 2023-08-23 02:26:09 +02:00
profi200 1ca27c22f6
Disable borders for scaled modes. There are so few pixels left they don't make sense. 2023-08-23 02:21:50 +02:00
profi200 6766b224dc
Set scale matrix outside libn3ds. 2023-08-23 02:09:29 +02:00
Harrison 92c591da22
GBA database updates (#128) 2023-08-23 01:30:01 +02:00
profi200 cf7d1915e0
Added software audio volume control. 2023-08-12 18:17:13 +02:00
profi200 8ecc7ce458
Added border support for 1:1 scaling mode. 2023-08-10 22:29:16 +02:00
profi200 014c341e67
Added button remapping. Closes #25. 2023-08-07 01:57:15 +02:00
profi200 726a4f3355
Implemented proper headphone detection.
Added a config option to override the audio output.
2023-08-05 02:07:13 +02:00
profi200 93d5cdf045
Moved open_agb_firm specific error codes and error printing out of libn3ds. 2022-07-24 01:52:03 +02:00
spitzeqc 834c0ffbbf
Added IPS and UPS patch support (#75) 2022-07-14 02:46:37 +02:00
profi200 1fe529f4c5
Overhauled brightness control. 2022-06-29 15:58:09 +02:00
spitzeqc ee21e3edb0 Changed backlight power to use GFX_powerOffBacklights() and moved brightness control to 'main' function 2022-06-28 00:41:14 +02:00
spitzeqc 6b5abf383d Added ability to turn screen on and off 2022-06-28 00:41:14 +02:00
spitzeqc 56bf27a026 Added brightness adjustment in-game 2022-06-28 00:41:14 +02:00
profi200 9bd9497315
Fixed glitches when taking screenshots. This should also fix freezes.
Screenshots now have the date and time in the file name.
2022-06-20 20:03:46 +02:00
profi200 25b1f794c2
Fixed/improved documentation.
Made triggering the screenshot feature easier. Exact timing is no longer required when pressing SELECT + Y. However the screenshot feature may cause graphic glitches. This will be fixed later.
2022-06-20 18:10:25 +02:00
profi200 b128dd4575
Do not power off if an error occurs while powering off. 2022-05-22 21:12:34 +02:00
profi200 78fd101c66
Allow ROMs bigger than 32 MiB to be loaded with a warning.
Note: If any game/ROM hack tries to access data out of bounds it will crash sooner or later. Don't open issues for such ROMs.
2022-05-01 20:33:13 +02:00
profi200 a9fcf853bb
Forgot a newline while changing the default config in previous commit. Fixes #53. 2022-01-05 16:19:46 +01:00
profi200 9756e2eafc
Added configurable scaling. Very hacky implementation because no citro3d and DMA-330 JIT. 2022-01-05 00:01:03 +01:00
profi200 15cf1bffd5
Added per-game config support. Place "romName.ini" in "/3ds/open_agb_firm/saves" to change per-game settings. Currently only saveSlot is configurable.
Updated README.md.
2021-12-21 19:40:16 +01:00
profi200 247cb19cb5
Actually screw the useSaveFolder config. "/3ds/open_agb_firm/saves" is the new location for savegames and future per-game configs.
Added code for savegame slots. Currently not configurable.
2021-12-19 19:27:52 +01:00
profi200 37f3df4a52
Added autoboot. Place "autoboot.txt" in "/3ds/open_agb_firm".
Note: The autoboot path must be a single line starting with "sdmc:/".
2021-12-18 23:45:51 +01:00
profi200 d7baad122a
Renamed a few config options and added a savegame path one (currently non-functional).
Moved config parsing and backlight setup to an earlier location.
Misc changes.
2021-12-18 03:04:25 +01:00
HTV04 67f42f764c Re-implement checkSaveOverride
Based on #40
2021-11-07 13:55:59 +01:00
HTV04 1375224a6e Post-review changes 2021-11-07 13:55:59 +01:00
Harrison 83fe7a9961 More finishing touches 2021-11-07 13:55:59 +01:00
Harrison 6899a7a892 Finishing touches 2021-11-07 13:55:59 +01:00
Harrison eee47c5de1 Full gba_db.bin integration and other changes 2021-11-07 13:55:59 +01:00
Harrison 1ad3dcc0ef Changed backlightRange to maxBacklight
See updated README for more details.
2021-11-07 13:55:59 +01:00
Harrison f5b40f1156 Added backlightRange option and changed how backlight limit works
Small commit, but a few big changes:
* Added an "Advanced" section to the config that contains options for advanced users, including a new option, "backlightRange."
  * The backlightRange option changes the backlight limits, and has three different modes (0-2): Recommended, Old 3DS, and New 3DS. The latter two are based on the min and max backlight limits for the normal 3DS mode. See the updated README for more information.
* Revamped how the backlight limit works, not only to work with the new backlightRange option, but also to improve how it works.
  * GFX_setBrightness no longer sets the limit for the backlight setting, completely removing its restrictions. The limit is now handled by open_agb_firm.c, and has a new "minimum" to prevent too low values. A fail-safe for the backlight option has also been implemented to prevent unintended side effects, such as the backlight being set to 0 when it's set to a value above the maximum limit.
* Updated README to reflect changes, among other changes.

Other changes:
* Replace 7Z files in gitignore with ZIP files.
2021-11-07 13:55:59 +01:00
Harrison 675db2942f A ton of changes
* Updated gba_db.bin Builder to v2.1, adding some important fail-safes and fixing some nasty bugs.
* Updated Makefile to create releases as ZIPs instead of 7Zs and include the gba_db.bin file in releases.
* Updated gitignore to allow necessary files for gba_db.bin Builder to be added to the repo, among other changes.
* Moved script and necessary files to a new "tools" folder. The resources folder is now used for files that facilitate releases, such as "safe" versions of gba_db.bin.
* Made a few changes to open_agb_firm.c to prepare for full gba_db.bin integration.
* Updated README to reflect the new changes, among other changes.
2021-11-07 13:55:59 +01:00
Harrison c4f6f3dabe open_agb_firm gba_db.bin Builder v2.0 and other changes
open_agb_firm gba_db.bin Builder:
* Updated to v2.0
* No-Intro DAT support
* Additional entry support
* Entries added/skipped are now output
* Other optimizations

Other changes:
* Remove most overrides in `open_agb_firm.c` to prepare for gba_db.bin
* Add `resources/gba.dat` entry to gitignore
2021-11-07 13:55:59 +01:00
Harrison 167db2f20d Add more exception entries 2021-11-07 13:55:59 +01:00
Harrison b972f75adf Add more save type exception entries
Also remove "Confirmed" status from EEPROM types because they all vary between 4k/8k and 64k.
2021-11-07 13:55:59 +01:00
gecko caca936a66 Add homebrew save type overrides (#40) 2021-11-07 13:55:59 +01:00