aboutsummaryrefslogtreecommitdiff
path: root/src/NDSCart.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.
* 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
* don't calculate the CRC checksum of ROMs on loadRSDuck2020-12-30
| | | | the value isn't used anywhere anyway
* delay savefile flush to the end of the frameRSDuck2020-11-11
|
* flush to file after importing SRAMRSDuck2020-10-06
|
* add functionality to import savefilesRSDuck2020-09-11
|
* actually add DLDI. bahahahhhArisotura2020-09-03
|
* remove requirement for initmem7/9.bin (but this requires augmented BIOS ↵Arisotura2020-06-02
| | | | dumps, we'll get there)
* make it able to switch between DS and DSi modesArisotura2020-06-01
|
* Merge remote-tracking branch 'remotes/origin/master' into melonDSiArisotura2020-05-30
|\
| * embed romlist.binArisotura2020-05-30
| |
| * make it able to map the Tab keyArisotura2020-05-20
| |
| * minor fixArisotura2020-05-17
| |
* | fix shito.Arisotura2020-05-30
| |
* | Merge commit '4b57416552ec2fa95216e2b044559f215723bf70' into melonDSiArisotura2020-05-30
|\|
| * should probably be a strncmp() and not strncasecmp()Arisotura2020-03-30
| |
| * properly handle ROMs with encrypted secure areaArisotura2020-03-30
| |
| * Merge pull request #546 from nadiaholmquist/feature/unix-xdgArisotura2020-01-28
| |\ | | | | | | Make melonDS properly installable systemwide on UNIX systems
| | * Add a UNIX_PORTABLE build option, turning it off makes a build of melonDS ↵Nadia Holmquist Pedersen2019-12-04
| | | | | | | | | | | | suitable for systemwide installation.
| * | Fix "é" character encoding in NDS.cppRaphaël Zumer2019-12-09
| | |
| * | Remove unused Write function in NDSCartRaphaël Zumer2019-12-09
| |/
* | * 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!
* | * base for potentially re-encrypting modcrypt, doesn't seem to be required? ↵Arisotura2019-08-07
| | | | | | | | | | | | but can also serve to decrypt it * revise SD IRQ behavior (fixing potential hang when loading DS games)
* | support DSi-mode cartsArisotura2019-08-04
| | | | | | | | except they need to have the DSi-mode shit encrypted
* | * add SCFG_EXTArisotura2019-07-03
|/ | | | * quick hack to detect cartridges
* * move melon_fopen_local() to Platform.cppArisotura2019-03-27
| | | | | * make it require that the file already exist (hopefully fixing config saving bug) * finally axe melon_fopen.cpp
* move melon_fopen() to Platform.cppArisotura2019-03-27
| | | | melon_fopen_local() will need fixoring
* woopsArisotura2019-03-26
|
* NDSCart: KEY1-gap delays don't apply when the WR bit is set. fixes #377Arisotura2019-03-26
|
* also, update copyright nameArisotura2019-01-22
|
* redesign main emu loop to use timestamps instead of being a trainwreckStapleButter2019-01-05
| | | | | | | | * cleaner code * faster in some cases * more accurate (on-demand compensation for timers and GPU) * less prone to desyncs * overall betterer
* make nocashprint work from ARM code too.StapleButter2018-12-31
| | | | fixes #315
* oopsStapleButter2018-12-31
|
* add support for 128K EEPROM (Pokémon Mystery Dungeon - Explorers of Sky)StapleButter2018-12-31
| | | | | | fixes #344 also, fix save type for Puzzler World (plain old 8K EEPROM. not sure why the Wood entry was different)
* ROM list by game code rather than CRCStapleButter2018-12-31
|
* init savemem to 0xFF instead of 0x00.StapleButter2018-12-30
|
* start work on NAND shito.StapleButter2018-12-12
|
* can't hurt to fix that, either, I guessStapleButter2018-12-12
|
* use melon_fopen_local() for romlist.bin.StapleButter2018-12-11
| | | | bump version number up.
* (finally) axe trainwreck savetype-autodetect code.StapleButter2018-12-11
| | | | | pull that from ROM database. for now, assume EEPROM 64k if not found, or null for homebrew.
* add code that searches into romlist.binStapleButter2018-12-11
|
* blarg.StapleButter2018-12-11
| | | | also, calculate ROM CRC.
* separate SRAM setting coded, I guessStapleButter2018-10-24
|
* * code function for relocating the savefile.StapleButter2018-10-23
| | | | | * don't bitch at the user when trying to load a savestate file that doesn't exist. * grey out 'load state' items if there is no file.
* pass savefile name to NDS::LoadROM() instead of having the core generate it.StapleButter2018-10-23
|
* a bit moar of itStapleButter2018-10-18
| | | | | | brick by brick, file by file, we will destroy capitalism and make savestates work, maybe
* fixor copyright years.StapleButter2018-09-15
|
* quick attempt at supercard emulation. really uglyStapleButter2018-04-27
|
* start work on DLDI, with some (very haxy) patching so it can do interesting ↵StapleButter2018-04-27
| | | | things
* Pass correct number of arguments to printf.Anthony J. Bentley2017-12-06
|