Commit Graph

1691 Commits

Author SHA1 Message Date
c8af6f066f Util_ROM/Reset() : Use strrchr()
Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-22 11:47:21 +05:30
0258677af2 Util_ROM/LoadROM() : Use SetupDSiNAND()
Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-18 09:43:45 +05:30
29c290f45a Merge branch 'master' into archive-polishing 2021-01-18 09:34:10 +05:30
d529b650c0 implement swapping the position of both screens
closes #855
2021-01-17 22:16:32 +01:00
1d6cc3c6ef keep only one handle of the NAND file around 2021-01-17 19:56:02 +01:00
53d5def919 pad ShaderConfig to a multiple of 16 2021-01-17 17:15:03 +01:00
6b012bb7fc Remove QT includes from FrontendUtil.h
Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-15 19:54:37 +05:30
f502c4292e 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>
2021-01-15 17:55:44 +05:30
18ada67152 Don't use static functions
Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-15 10:12:58 +05:30
316996b1d1 Add srl and dsi as "direct-load" formats
* Direct-load = anything not in an archive

Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-14 20:44:51 +05:30
42611d05bb 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>
2021-01-14 20:28:26 +05:30
63c58eba9a 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>
2021-01-14 18:55:34 +05:30
114fb0cba2 Archive support for drag-n-drop
* Also recent files support for drag-n-drop

Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-14 18:21:45 +05:30
cb0111fd90 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>
2021-01-14 16:35:45 +05:30
8829b0511c Change all mentions of qt5 to qt@5 on macOS (#937)
* Change all mentions of qt5 to qt@5 on macOS

* Use temporary workaround to get macOS brew updating

https://github.com/actions/virtual-environments/issues/2322#issuecomment-749211076

* Don't install CMake, it is already installed in the macOS runner
2021-01-13 14:56:06 +01:00
0892d25f4c 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>
2021-01-12 20:11:46 +05:30
65b7793cc6 Integrate archive support with recent files
Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-12 15:23:55 +05:30
c109235d01 Also include Homebrew on ARM64 Mac location in CMake (#938) 2021-01-11 23:01:23 +01:00
c98b981813 Extract gba roms to memory
Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-11 21:45:24 +05:30
d5df5fd6ed GBACart : Abstract out common code in LoadROM()
Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-11 20:34:56 +05:30
89ff8fefd3 Extract nds roms to memory
* Some stuff is still broken in the frontend

Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-11 14:31:04 +05:30
509a8aac3d NDSCart : Abstract out common code in LoadROM()
Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2021-01-10 14:34:16 +05:30
bbd5656952 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>
2021-01-10 12:46:47 +05:30
d673445d81 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>
2021-01-10 12:46:47 +05:30
b402cb19b2 quit on sigint (#934)
* quit on sigint

* formatting
2021-01-10 03:48:40 +01:00
30a0569c87 Update melonDS version in melonDS.plist (used on macOS) (#932) 2021-01-09 23:35:40 +01:00
bf97387f26 Improved SRAM performance (#925)
* 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
2021-01-09 22:18:57 +01:00
6b306e18a5 handle edge cases properly 2021-01-09 22:06:15 +01:00
c475372372 mask off upper bits when incrementing RX addr
fixes #931
2021-01-09 18:31:12 +01:00
7081c2de65 readd vram invalidation through display capture
also remove stray printf
2021-01-07 22:39:36 +01:00
e311eea1c5 fix out of bounds read 2021-01-07 18:36:49 +01:00
1d8e302c13 Merge pull request #926 from WaluigiWare64/fix/freebsd-include-aflink
Fix FreeBSD undefined identifier issues in Lan_PCap.cpp
2021-01-07 18:32:02 +01:00
641ddf8137 Merge pull request #678 from WaluigiWare64/feature/zip-support
Add support for loading ROMs from a variety of compressed files
2021-01-07 18:30:12 +01:00
e485ce3e13 Add Open ROM inside Archive function
instead of using file extensions
2021-01-07 17:26:55 +00:00
5865b4438e fix JIT block hash after a merged thumb BL
fixes #928
2021-01-05 22:38:29 +01:00
8a1f3d8ce2 Properly fix macOS finding libarchive
(i hope)
2021-01-05 16:22:07 +00:00
00e9a5e0c7 Allow melonDS to write the file
The directory wasn't created, so the file was not being written
2021-01-05 15:34:28 +00:00
ef75e3cdd1 JIT A64: fixes
also update Switch code for latest libnx
2021-01-05 14:36:50 +01:00
dbb12b48ec Fix FreeBSD undefined identifier issues in Lan_PCap.cpp
FreeBSD requires net/if.h to be included as well.
2021-01-05 12:06:17 +00:00
25455cb7aa Set menubar height to 0 in fullscreen (#924)
* 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>
2021-01-05 11:37:27 +01:00
6e3207f9dc GX: fix vector test
after I broke it in d2c04c5c51
fixes Mario & Luigi Partners in Time
2021-01-04 16:36:51 +01:00
6c91157495 Fix libarchive being found on macOS
properly this time
2021-01-04 10:31:57 +00:00
9e15488e95 Fix mistake in merge commit 2021-01-03 16:00:50 +00:00
83648f2d31 Merge branch 'master' into feature/zip-support 2021-01-03 15:53:23 +00:00
f070eafce4 Fix return value of Archive::ExtractFileFromArchive 2021-01-03 15:29:03 +00:00
cb58a422ac fix mac/clang build again 2021-01-02 19:58:49 +01:00
7d448d911d use C++ style structs everywhere 2021-01-02 11:38:06 +01:00
e2c61b28e0 fix mac/clang build 2021-01-02 11:28:46 +01:00
18fe5c6759 prevent bleeding in screen texture
fixes #920
2021-01-02 08:55:48 +01:00
fa4363ede6 make FIFO size static whene possible 2020-12-30 23:37:46 +01:00