aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
Commit message (Collapse)AuthorAge
* 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.
* Implement "lag frame" flag and counter (#949)SuuperW2021-01-21
| | | | | * Implement "lag frame" flag and counter, and expose flag and both frame counters. BizHawk wants these. * Track frame count and lag frames while the system isn't running.
* Improved SRAM performance (#925)Kimmy Andersson2021-01-09
| | | | | | | | | * Offload NDS SRAM writing to separate thread, debounce writes to two seconds after last flush or DeInit. * Fixed printf messages. * Fixes after CR. * Fixed potential portability issue with time_t
* make FIFO size static whene possibleRSDuck2020-12-30
|
* add palette and OAM dirty flagRSDuck2020-12-23
| | | | currently not used anywhere
* don't axe error bits when writing to IPCFIFOCNT. fixes #801Arisotura2020-12-11
|
* remove some debug crapArisotura2020-12-10
|
* Merge remote-tracking branch 'remotes/origin/master' into dsi_cameraArisotura2020-12-04
|\
| * fix DSi mode with interpreterRSDuck2020-11-26
| | | | | | | | I'm so stupid
| * harmless DMA micro optimisationRSDuck2020-11-16
| |
| * prevent use after freeRSDuck2020-11-16
| |
| * make audio output thread safe(r?)RSDuck2020-11-15
| |
| * delay savefile flush to the end of the frameRSDuck2020-11-11
| |
| * Added 8/16-bit IPCFIFOSEND writesHypnotron2020-10-29
| |
* | fix to timers (ZXDS no longer runs slow as shit)Arisotura2020-10-27
| |
* | Merge branch 'master' into dsi_cameraArisotura2020-10-26
|\| | | | | | | | | # Conflicts: # src/DSi_I2C.cpp
| * add a few missing 32bit I/O accesses (IPC, SPI)Arisotura2020-10-25
| |
| * add functionality to import savefilesRSDuck2020-09-11
| |
| * remove some UBRSDuck2020-09-04
| | | | | | | | | | | | | | - savestates used to read a four bytes from a single byte value - a few unassigned variables - some other things - also make the ROR macro an inline function
* | messin' aroundArisotura2020-09-08
|/
* actually add DLDI. bahahahhhArisotura2020-09-03
|
* Fix a typoqeeg2020-08-31
|
* DSi: make ARM9-clock-selector actually workArisotura2020-08-17
|
* check DSi interrupts for halted processor wakeupRSDuck2020-07-27
|
* Merge remote-tracking branch 'upstream/slirp' into slirp-mergeNadia Holmquist Pedersen2020-07-26
|\
| * * take nwifi forward someArisotura2020-06-15
| | | | | | | | | | * shut up CP15 printf's for Fx0 * fix bugs
* | fix build with JIT disabledRSDuck2020-07-25
| | | | | | | | fixes #675 and #674
* | SPU: delay channel start until whenever it can actually start. fixes maxmod ↵Arisotura2020-07-23
| | | | | | | | interpolated mode.
* | make linux work and fix a few bugsRSDuck2020-07-04
| |
* | reconcile DSi and JIT, fastmem for x64 and WindowsRSDuck2020-06-30
| |
* | first steps in bringing over the JIT refactor/fastmemRSDuck2020-06-16
| |
* | Merge branch 'generic_jit' of https://github.com/Arisotura/melonDS into ↵RSDuck2020-06-16
|\ \ | | | | | | | | | generic_jit
| * | rewrite JIT memory emulationRSDuck2020-06-16
| | |
| * | integrate changes from ARM64 backend and moreRSDuck2020-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | - better handle LDM/STM in reg alloc - unify Halted and IRQ in anticipation for branch inlining - literal optimisations can be disabled in gui - jit blocks follow simple returns - fix idle loop detection - break jit blocks on IRQ (fixes saving in Pokemon White)
| * | new block cache and much more...RSDuck2020-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | - more reliable code invalidation detection - blocks aren't stopped at any branch, but are being followed if possible to get larger blocks - idle loop recognition - optimised literal loads, load/store cycle counting and loads/stores from constant addresses
| * | fix uninitialised memory mappingRSDuck2020-06-16
| | |
| * | jit: decrease blockcache AddrMapping size for ARM9RSDuck2020-06-16
| | |
| * | jit: add compile optionRSDuck2020-06-16
| | |
| * | jit: make everything configurableRSDuck2020-06-16
| | |
| * | JIT: most mem instructions workingRSDuck2020-06-16
| | | | | | | | | | | | + branching
| * | JIT: baseRSDuck2020-06-16
| |/ | | | | | | all instructions are interpreted
| * make it able to switch between DS and DSi modesArisotura2020-06-01
| |
| * reset SD controllers during a soft-resetArisotura2020-06-01
| |
| * Merge remote-tracking branch 'remotes/origin/master' into melonDSiArisotura2020-05-30
| |\
| | * add back some hotkeys.Arisotura2020-05-19
| | | | | | | | | | | | remove some legacy cruft from NDS.cpp.
| | * verify BIOS and firmware before booting games/firmwareArisotura2020-05-17
| | |
| | * actually hook this upArisotura2020-05-17
| | |
| * | Merge commit '4b57416552ec2fa95216e2b044559f215723bf70' into melonDSiArisotura2020-05-30
| |\|
| * | begin renovating melonDSiArisotura2020-05-30
| |\ \
| * | | * some fixes to SD controller support, make it clear that there is no SD ↵Arisotura2019-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inserted, makes Flipnote work somewhat better * immediately clear AES busy flag when the block count is zero (occurs when loading DSi cart games) * implement NDMA start modes that have an old-DMA equivalent (except for GXFIFO mode) now it boots DSi carts!