Commit Graph

48 Commits

Author SHA1 Message Date
64c6654d94 use syncs instead of glFinish 2021-02-16 15:00:23 +01:00
d63f7977f8 Remove code duplication in onChangeScreenSize (#968) 2021-02-09 23:42:31 +01:00
40aae154cf prevent race condition around framebuffers 2021-02-02 15:33:45 +01:00
54b1a752d4 Add hybrid layout (#772) 2021-01-25 19:47:54 +01:00
b9a56bc4e4 more screen modes
- add support for different aspect ratios
- add support for displaying only one screen at once
2021-01-24 22:32:13 +01:00
faf7cf752d Add option to pause emulation when focus is lost
Fixes #875
2021-01-22 17:35:13 +00:00
1e4c0c9d72 Polish up archive support (#930)
* 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 c8af6f066f.
2021-01-22 11:22:32 +01:00
bf0ea26596 Add option to hide mouse on inactivity (#955)
Also allow user to specify how long to wait before hiding
2021-01-21 19:48:25 +01:00
cd6859ef6f Add hotkey to swap screens (#953) 2021-01-18 22:51:39 +01:00
d529b650c0 implement swapping the position of both screens
closes #855
2021-01-17 22:16:32 +01:00
e485ce3e13 Add Open ROM inside Archive function
instead of using file extensions
2021-01-07 17:26:55 +00:00
6adf1731c1 Add option to open recent files
* Remember last 10 roms in config
* Clear button for clearing list

Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2020-12-30 18:57:43 +05:30
f2fa52f26c add functionality to import savefiles 2020-09-11 03:08:06 +02:00
ea640398f9 Add support for fullscreen hotkey (#748) 2020-09-06 22:59:35 +02:00
0bd53a34ef lay base for the actual dialog
also make EmuSettingsDialog properly modal
2020-08-11 17:38:29 +02:00
d21cd20290 fix some pause bugs 2020-07-31 20:45:30 +02:00
c5381d2911 reconcile DSi and JIT, fastmem for x64 and Windows 2020-06-30 23:50:41 +02:00
a38b20484d finish the wifi dialog
also guess who the idiot is who forgot to add their files
2020-05-28 23:12:21 +02:00
0804ab3c78 * rework GPU's settings interface, make it config-agnostic
* make video settings dialog functional, sorta
* fix dialogs that were resizable
2020-05-28 15:53:32 +02:00
e8849db78a we don't need a GLShim.
blarg.

I don't understand this anymore.
2020-05-27 21:40:02 +02:00
ef2802ae31 * use GL shim window instead of offscreen surface
* disable vsync by default (we'll take care of it later)
2020-05-27 21:29:47 +02:00
36f4cdbbbf get the OpenGL renderer going.
sorta.

(also make the blackmagic_II branch obsolete in the process)
2020-05-25 18:25:50 +02:00
10f9eda58a get the whole OpenGL shit going 2020-05-25 14:59:26 +02:00
4e34359a80 get the GL shit going 2020-05-25 03:12:09 +02:00
16252a85e7 separate screen handling shit to a specialized class 2020-05-24 23:16:56 +02:00
f69f3fcb7a * safer window update
* only do auto screen sizing if needed
2020-05-22 13:54:29 +02:00
8f9369beeb add screen layout system 2020-05-21 18:43:07 +02:00
108647e033 * add audio settings dialog
* attempt at betterer mic noise that doesn't work worth a damn
2020-05-21 01:39:41 +02:00
2ebb21ce3b hook up pause and reset, w/ relevant hotkeys 2020-05-20 22:22:22 +02:00
7be662b2dd finish fleshing out the menus 2020-05-20 20:57:12 +02:00
5ed87a634a add drag-drop support 2020-05-20 02:36:48 +02:00
68a7865096 basic touchscreen support 2020-05-19 22:57:15 +02:00
b262313816 actually hook up input to the core
also unbotch CMakeLists.txt
2020-05-19 22:22:21 +02:00
34506ff2bb actually complete the input config dialog 2020-05-19 20:48:52 +02:00
23cc8c71a2 distinguish left/right Ctrl and Shift 2020-05-19 14:15:11 +02:00
7026bb15f6 input dialog progress. 2020-05-19 12:06:25 +02:00
19566178ba begin adding input dialog 2020-05-17 18:33:03 +02:00
c5c9434ac9 verify BIOS and firmware before booting games/firmware 2020-05-17 05:42:09 +02:00
2afa70b817 miserable little attempt at adding a dialog 2020-05-17 02:37:23 +02:00
978212e3e0 accept mouse events 2020-05-16 17:43:35 +02:00
7f3e67c12a some more UI work 2020-04-30 01:02:17 +02:00
5fbad464c2 hook up savestate shito 2020-04-29 00:50:23 +02:00
63efc2e02a add menu items for running the firmware and for quitting. 2020-04-28 22:45:11 +02:00
0913576ef5 FPS counter is back 2020-04-27 23:58:29 +02:00
a8aa834c16 now with display! 2020-04-27 22:42:07 +02:00
690f9f3874 get some of the shit going, I guess
atleast the emuthread is going and we have its control system down

and other fun shit, too
2020-04-27 12:06:44 +02:00
439ca1b2b5 get a Qt window showing up. 'tis a start, I guess. 2020-04-25 20:43:09 +02:00
231f0fc2e5 welp 2020-04-14 23:38:48 +02:00