aboutsummaryrefslogtreecommitdiff
path: root/src/GBACart.cpp
Commit message (Collapse)AuthorAge
* GBACart: simulate open-bus decay roughly. fixes #1093Arisotura2021-05-04
|
* Fix some compiler warningsWaluigiWare642021-05-03
|
* Cart refactor (#1073)Arisotura2021-04-25
| | | complete cart-interface refactor, will make this code a lot easier to deal with
* Update copyright year and add missing GPL headers part 2WaluigiWare642021-03-21
| | | | | Looks like a lot of files were missed... Closes #1036
* Add FreeBSD support (#939)WaluigiWare642021-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | * Add FreeBSD support * Fix indentation * Fix Linux not finding OpenGL * Link POSIX Realtime Extensions library * Link POSIX Realtime Extensions when OpenGL is enabled too * Fail if shm_open memory exists and also check for errors * fix the last commit * (try to) Setup FreeBSD CI * Fix some issues with FreeBSD CI * Make with all cores * Remove FreeBSD CI It doesn't want to work for some reason
* Polish up archive support (#930)Madhav Kanbur2021-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix directory path when extracting from archive * Don't create new dir in execution dir of melonds * Create it beside the archive instead Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * ArchiveUtil : Use QT functions for I/O * Make it more platform independent, cleaner * Fixes permission related crash on linux Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * NDSCart : Abstract out common code in LoadROM() Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Extract nds roms to memory * Some stuff is still broken in the frontend Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * GBACart : Abstract out common code in LoadROM() Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Extract gba roms to memory Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Integrate archive support with recent files Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * onClickRecentFile : Pause emu thread conditionally * Don't pause at start of the function * If user opens an archive and hits cancel, it won't pause Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Handle Resets when loading from archives * Ask user to pick the rom(s) again (i.e. GBA & NDS) when there are multiple files in the archive(s) * Directly load if only 1 file Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Archive support for drag-n-drop * Also recent files support for drag-n-drop Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * main : Allocate rombuffer objects on stack * Less messy, decreases chances of memory leaks * Underlying implementation of qbytearray uses heap (hopefully?) Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * GetSavestateName : Archive support * Construct ssname from srampath (since rompath has archive name) NOTE: In general, archive name != rom file name !!!!!!!!!! Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Add srl and dsi as "direct-load" formats * Direct-load = anything not in an archive Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Don't use static functions Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Remove QT stuff from Util_ROM * Also, during reset, directly load file from archive (no rom picker) Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Remove QT includes from FrontendUtil.h Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Util_ROM/LoadROM() : Use SetupDSiNAND() Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Util_ROM/Reset() : Use strrchr() Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Util_ROM : Put Archive stuff behind ifdefs Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * main: Set parent widget for archive dialog boxes Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Revert "Util_ROM/Reset() : Use strrchr()" This reverts commit c8af6f066f6aa15e5557e478417edb125cad0809.
* Split GBA Reset and Eject logic into two setsRaphaël Zumer2019-12-22
| | | | | | | | | | | | This allows solving some crashes and provides more flexibility in how GBA cartridges change state between soft and hard resets. Since save states including GBA data do not carry over the original save file path, and the GBA cartridge is being reset along with the other parts of the system, this is needed to avoid losing the GBA state on reset following a state load, while preserving the behavior where cartridges are ejected when calling Stop().
* Only store the GBA ROM header in save statesRaphaël Zumer2019-12-22
| | | | | Also fix some potential crashes due to SRAM state not being cleared correctly on state load.
* Skip saving/loading GBA flash state if SRAM is nullRaphaël Zumer2019-12-22
|
* Implement DoSavestate() for GBACart classesRaphaël Zumer2019-12-19
| | | | Admittedly untested.
* Add DoSavestate() function to GBACart_SolarSensorRaphaël Zumer2019-12-18
| | | | Still empty, but should be implemented along with the rest.
* Properly pass through GBA GPIO writesRaphaël Zumer2019-12-10
|
* Hook up solar sensor control to the UIRaphaël Zumer2019-12-10
| | | | It uses hardcoded keypad left and right arrows.
* Implement solar sensor processingRaphaël Zumer2019-12-10
|
* Add basic GBA GPIO support, solar sensor detectionRaphaël Zumer2019-12-10
|
* Rename SRAMFlash to SRAMFlashStateRaphaël Zumer2019-12-10
|
* Clarify comments and credit DeSmuME for Flash I/ORaphaël Zumer2019-12-10
|
* Fix GBA Flash read/writes and clean upRaphaël Zumer2019-12-09
|
* Implement GBA cartridge Flash reading and writingRaphaël Zumer2019-12-09
|
* Eject GBA cartridges on stop from the UIRaphaël Zumer2019-12-09
|
* Add a framework to support non-SRAM GBA savesRaphaël Zumer2019-12-09
| | | | | The support is not yet there, but at least we should not read or write bogus data.
* Handle GBA cartridge SRAM writesRaphaël Zumer2019-12-08
|
* Reset GBA cartridge state when loading a new ROMRaphaël Zumer2019-12-08
|
* Add GBA cart model and allow reading from itRaphaël Zumer2019-12-08