aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/main.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.
* Add option to hide mouse on inactivity (#955)WaluigiWare642021-01-21
| | | Also allow user to specify how long to wait before hiding
* Add hotkey to swap screens (#953)gal202021-01-18
|
* implement swapping the position of both screensRSDuck2021-01-17
| | | | closes #855
* quit on sigint (#934)Ben Morris2021-01-10
| | | | | * quit on sigint * formatting
* 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
| * Fix mistake in merge commitWaluigiWare642021-01-03
| |
| * Merge branch 'master' into feature/zip-supportWaluigiWare642021-01-03
| |\
| * \ Merge branch 'master' into feature/zip-supportWaluigiWare642020-12-19
| |\ \
| * \ \ Merge branch 'master' into feature/zip-supportWaluigiWare642020-10-23
| |\ \ \
| * | | | Switch to libarchiveWaluigiWare642020-10-22
| | | | |
| * | | | Merge branch 'master' into feature/zip-supportWaluigiWare642020-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
| | | | |
* | | | | fix mac/clang buildRSDuck2021-01-02
| | | | |
* | | | | prevent bleeding in screen textureRSDuck2021-01-02
| | | | | | | | | | | | | | | | | | | | fixes #920
* | | | | 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>
* | | | | 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
| | | |
* | | | Fix GBA file drag-and-drop when the system is off (#817)Raphaël Zumer2020-11-15
| | | |
* | | | better framelimiter for reference: ↵RSDuck2020-11-02
| |_|/ |/| | | | | | | | https://github.com/citra-emu/citra/blob/master/src/core/perf_stats.cpp#L129
* | | Random minor fixes (#757)Valeri2020-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix incorrect/questionable assert() usage Originally reported by https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2159000700, but also includes a bunch of other fixes. * Fix some `printf` warnings Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2160310550 * Remove useless check It is never passed thanks to `if (num_in < 1) {...; return}` before Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2154840804 * Add missing header guard, rename other to avoid conflicts Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2163210746 * Make DSi_SDDevice destructor virtual Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2158670642 * Use thread-safe localtime_r, assign `time` result directly Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2154840805 * Fix MinGW build It needs _POSIX_THREAD_SAFE_FUNCTIONS to export `localtime_r`
* | | make OpenGL renderer a build optionRSDuck2020-10-01
| | | | | | | | | | | | mostly meant for the Switch port
* | | add functionality to import savefilesRSDuck2020-09-11
| | |
* | | Add support for fullscreen hotkey (#748)WaluigiWare642020-09-06
| | |
* | | support .dsi extension for dragdrop/cmdline launchingArisotura2020-08-24
| | |
* | | disable savestate menu items in DSi modeArisotura2020-08-24
| | |
* | | * fix build errorArisotura2020-08-24
| | | | | | | | | | | | | | | * make betterer polygon splitting an option * add GL_LEQUAL depth test for 'equal' mode, might help
* | | make MAC randomization optionalArisotura2020-08-24
| | |
* | | (finally) build the goddamn cheat interfaceArisotura2020-08-15
| | |
* | | lay base for the actual dialogArisotura2020-08-11
| |/ |/| | | | | also make EmuSettingsDialog properly modal
* | fix similar bug with emu settings dialogArisotura2020-07-31
| | | | | | | | also make the reset-warning dialog a bit betterer
* | fix some pause bugsArisotura2020-07-31
| |
* | 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
| * get this little experiment startedArisotura2020-06-04
| | | | | | | | for now all it does is crash
* | make linux work and fix a few bugsRSDuck2020-07-04
| |
* | reconcile DSi and JIT, fastmem for x64 and WindowsRSDuck2020-06-30
|/
* allow .dsi filesArisotura2020-06-02
|
* make it able to switch between DS and DSi modesArisotura2020-06-01
|