Commit Graph

241 Commits

Author SHA1 Message Date
profi200 b8b75d784c
Fixed RTC type conversion warning. 2022-04-26 03:02:31 +02:00
profi200 5714b5eb16
Merge branch 'master' of github.com:profi200/open_agb_firm 2022-04-25 21:03:11 +02:00
profi200 dc0320615b
A bit of unplanned SHA driver optimization. Saves about 1 ms per MiB. 2022-04-23 01:45:07 +02:00
profi200 3a31110673
Fixed MCU battery level/temperature code. 2022-04-23 01:40:05 +02:00
profi200 1c680e7d52
Partial MCU driver rewrite.
Miscellaneous changes/fixes.
2022-03-29 17:29:24 +02:00
profi200 4a6603d110
Added day of week calculation for the GBA RTC. 2022-01-25 00:18:13 +01:00
profi200 2222e54f0f
Fixed a bug that may cause the file browser not to display all 1000 files.
Made file sorting faster.
Miscellaneous fixes.
2022-01-16 20:46:38 +01:00
Midnoclose 782596facd Add firmtool support 2022-01-09 15:14:18 +01: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 35243abed0
Updated README for commit d7baad122a.
Added a README note on the crappy sound.
2021-12-19 00:02:53 +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
profi200 b09e3a0eee
Bump file browser entry limit to 1000 files and folders. Please note that the real limit is dynamic and depends on file name lengths. Fixes #37. 2021-12-16 18:33:49 +01:00
profi200 6129451b75
Code size reduction + slightly more readable code in setupSaveType(). 2021-12-13 02:12:53 +01:00
profi200 f59f596a2b
Make the ARM9 fast again. 2021-12-09 18:33:00 +01:00
profi200 434f714ef1
Fixed white screen issues with save type none games. Fixes #48. 2021-12-09 13:22:39 +01:00
profi200 82d54b341c
Force DWARF 4 debug symbols for now. 2021-12-09 00:34:52 +01:00
profi200 fa4ef131d9
Moved tests over to libn3ds. 2021-11-07 14:05:47 +01:00
profi200 2308e59c85 Begin separating oaf into lib and FIRM. Removed unnecessary config.ini file. 2021-11-07 13:55:59 +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 157a973006 Finally fixed builder script and gba_db.bin
The generated gba_db.bin now works with open_agb_firm!

With a ton of help from profi200, I finally figured out the issue. Turns out open_agb_firm uses a binary search algorithm to find the hash from the gba_db.bin file. After a ton of (probably unnecessary) trial and error, I fixed my script so that it sorts the entries in the way open_agb_firm expects, and boom, it works!
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 d2e1159113 Revert ZIP changes 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 2c8db472ab Fix save type detection bug
Fixed dumb mistake that caused the save type to always be returned as 15 OOPS

Also added/changed some comments
2021-11-07 13:55:59 +01:00
Harrison 76092e9093 gba_db_builder Improvements
Also fix gba_db.bin
2021-11-07 13:55:59 +01:00
Harrison 6538c56106 Add gba_db_builder 2021-11-07 13:55:59 +01:00
Harrison 167db2f20d Add more exception entries 2021-11-07 13:55:59 +01:00
Harrison 7f3c6762c7 Change brightness limit
Based on GodMode9's brightness limit, 107.

The previous limit was way too dark, especially in sunlight. Even though brightness control hasn't been added yet, I still think it's better to give users the option.
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
profi200 a9881d3a32 Added CODEC headset detection/selction reg and bit defines. 2021-11-07 13:55:59 +01:00
profi200 3fe3f2cbba Use performance monitor bit defines in start.s. 2021-11-07 13:55:59 +01:00
profi200 ed91a742f1 Unorganized commit collecting many changes from the last months incoming. Yeah, i should have split this. 2021-11-07 13:55:59 +01:00
Harrison 3ef62b0ac1 README improvements (#33) 2021-11-07 13:55:59 +01:00
profi200 a6756d6115 Converted most I/O reg defines to structs for better optimization. 2021-11-07 13:55:59 +01:00
profi200 db12bb5ab2 Updated cfg9.h and everything relying on it based on recent findings/3dbrew. 2021-11-07 13:55:59 +01:00
profi200 d5e3a08f99 Oops. 2021-11-07 13:55:59 +01:00
profi200 c3a1458541 Some cleanup and updates based on recent 3dbrew edits. 2021-11-07 13:55:59 +01:00
profi200 8e5562a9f7 Make scaling easier to configure at compile time. 2021-11-07 13:55:59 +01:00
profi200 f7785c67e8 Added 1:1 scaling support. 2021-11-07 13:55:59 +01:00