aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
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.
* Add option to hide mouse on inactivity (#955)WaluigiWare642021-01-21
| | | Also allow user to specify how long to wait before hiding
* Define melonDS version in CMakeWaluigiWare642021-01-19
| | | | Prevents having to update multiple files (melon.rc, melon.plist, version.h) when a new version is released.
* Add hotkey to swap screens (#953)gal202021-01-18
|
* implement swapping the position of both screensRSDuck2021-01-17
| | | | closes #855
* keep only one handle of the NAND file aroundRSDuck2021-01-17
|
* quit on sigint (#934)Ben Morris2021-01-10
| | | | | * quit on sigint * formatting
* 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
* Merge pull request #926 from WaluigiWare64/fix/freebsd-include-aflinkArisotura2021-01-07
|\ | | | | Fix FreeBSD undefined identifier issues in Lan_PCap.cpp
| * Fix FreeBSD undefined identifier issues in Lan_PCap.cppWaluigiWare642021-01-05
| | | | | | | | FreeBSD requires net/if.h to be included as well.
* | Merge pull request #678 from WaluigiWare64/feature/zip-supportArisotura2021-01-07
|\ \ | |/ |/| Add support for loading ROMs from a variety of compressed files
| * Add Open ROM inside Archive functionWaluigiWare642021-01-07
| | | | | | | | instead of using file extensions
| * Properly fix macOS finding libarchiveWaluigiWare642021-01-05
| | | | | | (i hope)
| * Allow melonDS to write the fileWaluigiWare642021-01-05
| | | | | | | | The directory wasn't created, so the file was not being written
| * Fix libarchive being found on macOSWaluigiWare642021-01-04
| | | | | | properly this time
| * Fix mistake in merge commitWaluigiWare642021-01-03
| |
| * Merge branch 'master' into feature/zip-supportWaluigiWare642021-01-03
| |\
| * | Fix return value of Archive::ExtractFileFromArchiveWaluigiWare642021-01-03
| | |
| * | Allow pkg-config to find libarchive on macOSWaluigiWare642020-12-19
| | | | | | | | | | | | macOS already provides the libarchive libraries, so Homebrew doesn't link it. However, macOS does not provide the headers.
| * | fix for the last commitWaluigiWare642020-12-19
| | |
| * | Merge branch 'master' into feature/zip-supportWaluigiWare642020-12-19
| |\ \
| * | | Extract ROM to new folder next to archiveWaluigiWare642020-12-19
| | | | | | | | | | | | | | | | | | | | | | | | For example if DS_ROMS.zip had game.nds, the directory structure would be: ├── DS_ROMS │   └── game.nds └── DS_ROMS.zip
| * | | Merge branch 'master' into feature/zip-supportWaluigiWare642020-10-23
| |\ \ \
| * | | | Switch to libarchiveWaluigiWare642020-10-22
| | | | |
| * | | | Update CMakeLists.txtWaluigiWare642020-08-06
| | | | |
| * | | | Merge branch 'master' into feature/zip-supportWaluigiWare642020-08-05
| |\ \ \ \
| * | | | | Statically link libzipU-RAYYAN-PC\Rayyan2020-08-05
| | | | | |
| * | | | | part 2 of fix Linux invalid encodingWaluigiWare642020-07-24
| | | | | |
| * | | | | Fix Linux "invalid encoding" filenameWaluigiWare642020-07-24
| | | | | |
| * | | | | Change binary stream to u8 and cast to char*WaluigiWare642020-07-22
| | | | | |
| * | | | | fixWaluigiWare642020-07-22
| | | | | |
| * | | | | Fix indentation + delete contentsWaluigiWare642020-07-22
| | | | | |
| * | | | | Link it up to onOpenFile()U-RAYYAN-PC\Rayyan2020-07-22
| | | | | |
| * | | | | Add the extractROM functionU-RAYYAN-PC\Rayyan2020-07-22
| | | | | |
* | | | | | Set menubar height to 0 in fullscreen (#924)Madhav Kanbur2021-01-05
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Set menubar height to 0 in fullscreen * Avoid using hide() on the mainwindow's menubar as it breaks menubar actions. * Fixes save/load state shortcuts not working in fullscreen (#922) Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com> * Don't modify menubar width when exiting fullscreen * Fixes weird looking menubar on Windows Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
* | | | | fix mac/clang build againRSDuck2021-01-02
| | | | |
* | | | | use C++ style structs everywhereRSDuck2021-01-02
| | | | |
* | | | | fix mac/clang buildRSDuck2021-01-02
| | | | |
* | | | | prevent bleeding in screen textureRSDuck2021-01-02
| | | | | | | | | | | | | | | | | | | | fixes #920
* | | | | make FIFO size static whene possibleRSDuck2020-12-30
| | | | |
* | | | | Add option to open recent filesMadhav Kanbur2020-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remember last 10 roms in config * Clear button for clearing list Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
* | | | | welpArisotura2020-12-25
| | | | |
* | | | | remove the hardcoded F11 debug key before I forget about it againArisotura2020-12-24
| |_|_|/ |/| | |
* | | | remove some debug crapArisotura2020-12-10
| | | |
* | | | fix toggle FPS hotkeyRSDuck2020-12-07
| | | |
* | | | always cap FPS to 1000RSDuck2020-12-04
| | | |
* | | | Use AF_LINK and net/if_dl.h on all non-Linux systems (#835)WaluigiWare642020-12-01
| | | |
* | | | Merge vram dirty trackingRSDuck2020-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit b463a05d4b909372f0cd1ad91caa0c77a25e5901 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 30 01:55:35 2020 +0100 minor fix commit ce73cebbdf5da243d7ebade82d8799ded9cd6b28 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 30 00:43:08 2020 +0100 fix dirty flags of BG/OBJ mappings not being reset commit fc5d73a6178e3adc444398bdd23de8314b5ca8f8 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 30 00:11:13 2020 +0100 use flat vram for gpu2d everywhere commit 34ee9fe2bf04fcfa2a5a1c8d78d70007e606f1a2 Author: RSDuck <rsduck@users.noreply.github.com> Date: Sat Nov 28 19:10:34 2020 +0100 mark VRAM dirty for display capture commit e8778fa2f429c6df0eece19d6a5ee83ae23a0cf4 Author: RSDuck <rsduck@users.noreply.github.com> Date: Sat Nov 28 18:59:31 2020 +0100 use flat VRAM for textures and texpals also skip rendering if nothing changed and a bunch of fixes commit 53f2041e2e1a28b35702a2ed51de885c36689f71 Author: RSDuck <rsduck@users.noreply.github.com> Date: Fri Nov 27 18:29:56 2020 +0100 use vram dirty tracking for extpals also preparations to take this further commit 4cdfa329e95aed26d3b21319c8fd86a04abf20f7 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 16 23:32:22 2020 +0100 VRAM dirty tracking
* | | | Add support for macOS (#771)WaluigiWare642020-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use shm_open() instead of memfd_create() on macOS malloc.h isn't a header on macOS * Change OpenGL headers + create ifdef for DO_PROCLIST macOS seems to already have the OpenGL functions defined, without the ifdef, it gives "ambiguous references" errors. * macOS doesn't have ->gregs in uc_mcontext and it doesn't have REG_RIP either https://github.com/gperftools/gperftools/blob/master/m4/pc_from_ucontext.m4 * use getpid() to make memory file name unique * #ifndef __APPLE__ for AF_PACKET and linux/if_packet.h * Add include and link directories for macOS and link the OpenGL framework * Add macOS CI * Use newly added libslirp package from Homebrew https://github.com/Homebrew/homebrew-core/pull/63412 * Use Apple's Clang instead of GNU GCC on macOS * Add macOS build instructions to README * Try to fix macOS undefined symbol * snprintf doesn't take null terminator into account * Map new memory on macOS for JIT * Only use gcc-ar if using GNU Compiler * re-add fastmem code - whoops! * Fix style issue - use camelCase not snake_case * Set Minimum macOS version * Switch Minimum OS X version to 10.9 * Add macOS libpcap library name * fix memory leak * Fix binding keys in macOS * Allow getting MAC address on macOS melonDS on Linux uses AF_PACKET, which doesn't exist on macOS. Instead, this commit uses AF_LINK on macOS to get the MAC address. * Remove unneeded macOS CI dependencies * Build melonDS app bundle on macOS Now it is no longer required to install the libraries on macOS, they come with the app bundle. * fix macOS CI not being able to find macdeployqt * copy melonDS.app with recursive because it's a folder * Disable fastmem checkbox on macOS * Disable fastmem by default in config * forgot a semicolon * Don't bundle libraries, causes issues on macOS <10.15 * Update README + allow finding version in Finder on macOS * Make sure fastmem checkbox stays uncheckable
* | | | Add radio buttons to switch between Direct and Indirect Mode (#822)WaluigiWare642020-11-22
| | | |