Commit Graph

152 Commits

Author SHA1 Message Date
9673659db4 fix toggle FPS hotkey 2020-12-07 17:00:53 +01:00
42e083960e always cap FPS to 1000 2020-12-04 00:00:35 +01:00
07423492c4 Use AF_LINK and net/if_dl.h on all non-Linux systems (#835) 2020-12-01 23:01:57 +01:00
6e8bac3909 Merge vram dirty tracking
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
2020-11-30 19:49:18 +01:00
7da4550eea Add support for macOS (#771)
* 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
2020-11-29 17:11:33 +01:00
f11d53c69c Add radio buttons to switch between Direct and Indirect Mode (#822) 2020-11-22 15:31:29 +01:00
a1cf1967ac Fix fullscreen toggle with joysticks (#821) 2020-11-22 13:00:18 +01:00
550241dbad Fix GBA file drag-and-drop when the system is off (#817) 2020-11-15 16:15:09 +01:00
2720df9650 make platform objects typesafer and add mutex 2020-11-09 21:52:35 +01:00
ad7791f726 better framelimiter for reference: https://github.com/citra-emu/citra/blob/master/src/core/perf_stats.cpp#L129 2020-11-02 20:13:22 +01:00
dc46da0e24 Input : Treat numpad keys as keypresses
Typically, modifiers are masked out of keypresses to distinguish
between hotkeys and keypresses. This patch prevents the numpad
modifier from getting masked out in KeyPress() and KeyRelease().

Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2020-10-13 11:02:58 +05:30
f8c4bf6db1 save microphone hotkeys (#781) 2020-10-07 01:33:11 +02:00
0d845c9e69 Random minor fixes (#757)
* 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`
2020-10-01 13:44:09 +02:00
6977302403 make OpenGL renderer a build option
mostly meant for the Switch port
2020-10-01 00:01:05 +02:00
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
94d12c68b3 heh 2020-09-04 13:41:51 +02:00
5431c469c3 actually add DLDI. bahahahhh 2020-09-03 20:28:07 +02:00
aed7a32243 Fix "Improved polygon splitting" option in GUI 2020-08-31 18:56:20 +03:00
4be68aafe0 make SD support actually be a thing 2020-08-25 00:34:57 +02:00
b36b3feb7f support .dsi extension for dragdrop/cmdline launching 2020-08-24 21:25:10 +02:00
31e83b2bf3 fix config file lookup. fixes #717 2020-08-24 21:14:46 +02:00
f4427a89d0 disable savestate menu items in DSi mode 2020-08-24 20:13:58 +02:00
3685edeef2 make GL display also not default 2020-08-24 20:03:24 +02:00
13521211d2 make software renderer the default 2020-08-24 19:32:44 +02:00
e7025abcdc * fix build error
* make betterer polygon splitting an option
* add GL_LEQUAL depth test for 'equal' mode, might help
2020-08-24 19:32:07 +02:00
abccc44eec make MAC randomization optional 2020-08-24 19:19:41 +02:00
f8d1d08e9c (finally) build the goddamn cheat interface 2020-08-15 00:14:05 +02:00
4cefff2528 add AR code file parser and shit 2020-08-13 00:20:34 +02:00
28b8f614ee heh 2020-08-11 18:03:44 +02:00
0bd53a34ef lay base for the actual dialog
also make EmuSettingsDialog properly modal
2020-08-11 17:38:29 +02:00
f23e782966 hey look. Arisotura the lazy derp finally made a dialog. 2020-08-11 15:58:41 +02:00
c5ecef7410 fix similar bug with emu settings dialog
also make the reset-warning dialog a bit betterer
2020-07-31 20:51:16 +02:00
d21cd20290 fix some pause bugs 2020-07-31 20:45:30 +02:00
a89741c628 fix unterminated string + remove some JIT logging 2020-07-29 01:31:57 +02:00
6a682a8ef0 Link iconv instead of ${Iconv_LIBRARIES} because idk Windows 2020-07-26 22:26:50 +02:00
a1f939e0cb use FindIconv and link it on all platforms when not built in 2020-07-26 22:16:53 +02:00
173e3b037c Link iconv for Windows static builds 2020-07-26 22:08:57 +02:00
b4ad35948d Merge remote-tracking branch 'upstream/slirp' into slirp-merge 2020-07-26 21:41:09 +02:00
ac8f44125b I'm a derp 2020-07-23 21:27:45 +02:00
778623a8b7 make linux work and fix a few bugs 2020-07-04 18:58:00 +02:00
c5381d2911 reconcile DSi and JIT, fastmem for x64 and Windows 2020-06-30 23:50:41 +02:00
d9e1bf737c blarg 2020-06-21 18:34:53 +02:00
c32da212f1 make it possible to static-link libslirp 2020-06-21 15:44:56 +02:00
b31e049b30 wifi fixes and shit. getting there, somewhat. 2020-06-21 01:43:32 +02:00
91ff63a194 fix slirp crash when exiting without having inited slirp
also fix misc bugs
2020-06-16 14:09:54 +02:00
d13d625f73 jit: make everything configurable 2020-06-16 11:53:21 +02:00
fc5eedc716 * take nwifi forward some
* shut up CP15 printf's for Fx0
* fix bugs
2020-06-15 13:39:33 +02:00
bbce434815 pointless fix 2020-06-05 20:22:55 +02:00
4b73f81ee0 clean it up 2020-06-05 20:20:03 +02:00