Commit Graph

6420 Commits

Author SHA1 Message Date
Emmanuel Gil Peyrot aeaf404177 Posix: Fix a few warnings in ctrlssdl.cpp 2020-12-25 03:08:16 +01:00
Emmanuel Gil Peyrot ac507ebdc0 GTK: Move more of the graphics dialog into its .ui file 2020-12-19 04:07:07 +01:00
Emmanuel Gil Peyrot 0e5dec143f GTK: Move emulation settings to a .ui file 2020-12-19 04:04:02 +01:00
Emmanuel Gil Peyrot b4b2781826 GTK: Move the menu into its .ui file 2020-12-19 03:23:54 +01:00
Emmanuel Gil Peyrot 5e051a981d GTK: Move graphics settings into its own .ui file 2020-12-19 01:44:05 +01:00
Emmanuel Gil Peyrot 21276a5a07 GTK: Move the main window into an .ui file 2020-12-19 01:35:28 +01:00
Emmanuel Gil Peyrot b568fbc5dc GTK: Move .ui string into a GResource
This makes it easier to edit those files in Glade or such, while keeping
it inside the final binary.

As a bonus, XML data is getting minified at the packing step.
2020-12-19 01:11:07 +01:00
Emmanuel Gil Peyrot 02e49123da CLI frontend: Add missing name to gdb thread
This broke in 101fa1ef58.
2020-12-16 21:55:52 +01:00
Emmanuel Gil Peyrot d503376558 filters: Fix warnings on gcc 2020-12-16 21:21:11 +01:00
zeromus 50a24fbbd7 fixed y-sorting that was messed up by the more convoluted multi-purpose indirect clipping approach that was added in early 2019 (e.g. 4cd19ce522 and e06d11f6df )
fixes SF bug 1724 (7th dragon HP renderer) but this was probably affecting many other games.
2020-12-15 00:58:19 -05:00
zeromus b138666bf6 fix misuse of SetWindowLongPtr 2020-12-14 22:32:31 -05:00
zeromus e5a7fbe634 add a log note when creating a backup state 2020-12-09 23:09:32 -05:00
Emmanuel Gil Peyrot dc60f82ace slot2: Remove bogus const on integer return type 2020-11-27 20:29:19 +01:00
Emmanuel Gil Peyrot 4d86151839 MMU: Use correct size_t type for iterations 2020-11-27 20:20:35 +01:00
Emmanuel Gil Peyrot baccf00674 Remove bogus static function declaration in header 2020-11-27 20:18:10 +01:00
Emmanuel Gil Peyrot eab1fb9583 GTK: Add debug logging on OpenGL initialisation issues
Thanks @thesourcehim for the suggestion!
2020-11-26 19:48:17 +01:00
Emmanuel Gil Peyrot 6e35440436 GTK: Set GL attributes before creating the SDL window
This apparently helps on the proprietary Nvidia driver.

Thanks @thesourcehim for debugging that!

Fixes #399.

Fixes #400.
2020-11-26 19:48:13 +01:00
Emmanuel Gil Peyrot 91f6e4a9ef Revert "Posix: Remove X11 dependencies"
This reverts commit 48d0717f82.

It was causing crashes when running on Xorg…

Fixes #398.
2020-11-20 22:01:57 +01:00
Emmanuel Gil Peyrot 49fda66b3b CI: Install SDL2 instead of SDL 1.2 2020-11-19 02:10:01 +01:00
Emmanuel Gil Peyrot 48d0717f82 Posix: Remove X11 dependencies
There is no code specific to X11 anymore, we can stop linking to it.
2020-11-19 02:05:34 +01:00
Emmanuel Gil Peyrot d319d2c6fb GTK: Use SDL2 instead of GLX for OpenGL context creation
GLX is tied to X11, while SDL2 works on many other platforms (including
native Wayland).
2020-11-19 02:04:57 +01:00
Emmanuel Gil Peyrot 101fa1ef58 Posix: Replace SDL 1.2 with SDL2
This is required for DeSmuME to start without X11, for instance on a
pure Wayland system.
2020-11-19 01:25:47 +01:00
Emmanuel Gil Peyrot 72386f28de GTK: Remove the libglade interface
It was unmaintained anyway, and the other one is a better base to start
from.  And if someone ever needs one of these files, they are preserved
in the git history anyway.
2020-11-18 23:38:29 +01:00
Emmanuel Gil Peyrot a5f13edb7f saves: Remove unused variable 2020-11-18 23:13:03 +01:00
Emmanuel Gil Peyrot c3ea512a0b saves: Remove redundant break 2020-11-18 23:12:42 +01:00
Emmanuel Gil Peyrot 02c0553977 saves: Remove noop allocation/deallocation
Compilers (at least gcc 10) were already reaching that conclusion, so
this shouldn’t change code generation at all.

This piece of code got introduced in commit
3eb9de4614 when upgrading to save state
version 1 (we’re at version 12), and commit
64073a2558 added some OOP on top of it so
that cp15 was in charge of handling that memory.  The code never got
cleaned until now.
2020-11-18 23:08:04 +01:00
Emmanuel Gil Peyrot 87cb2f648f encrypt: Simplify initialization code
This avoids destructors being even needed.
2020-11-18 22:38:36 +01:00
Emmanuel Gil Peyrot 7de7d6c1c5 GTK: Use correct icon name
a8e581dcf3 renamed it, but it never got
updated in the UI.
2020-11-18 21:28:45 +01:00
Emmanuel Gil Peyrot 8708460666 GTK: Remove unused static variable 2020-11-18 21:28:18 +01:00
Emmanuel Gil Peyrot 19147a8457 Linux: Remove the autotools build system
Fixes #394.
2020-11-07 21:02:00 +01:00
Dan Church 7ec93bce63 GTK: Use standard meson to install man pages 2020-11-07 20:52:16 +01:00
Emmanuel Gil Peyrot 25d7194779 GTK: Install the icon at its correct location 2020-11-04 12:41:11 +01:00
Emmanuel Gil Peyrot a8e581dcf3 GTK: Also rename the icon like the desktop file 2020-11-04 11:42:38 +01:00
Emmanuel Gil Peyrot 907cbf8308 Improve ARM runtime feature detection on Linux
getauxval(AT_HWCAP) is the best way to check for features on ARM and
AArch64, as it doesn’t require parsing a file, instead it just returns a
value provided by the kernel in our address space.

This commit should be synchronised with
https://github.com/libretro/libretro-common/pull/176
2020-11-04 00:34:25 +00:00
Emmanuel Gil Peyrot 7a7c1fbfc3 GTK: Add a metainfo file for Flathub 2020-11-04 01:31:17 +01:00
zeromus 79515e978e change "freeze value" checkbox in windows internal cheats add dialog to say "Enabled" because that's what it really means 2020-11-03 12:50:33 -05:00
Emmanuel Gil Peyrot b400093e3c Linux: Make all frontends optional 2020-11-03 18:08:28 +01:00
Emmanuel Gil Peyrot 0479afb877 GTK: Remove unused GLU header 2020-11-03 17:34:37 +01:00
Emmanuel Gil Peyrot df91fe9e00 Try GitHub Actions for Linux CI 2020-11-02 17:56:52 +01:00
Emmanuel Gil Peyrot cabb0eb327 Lower meson version requirement to 0.45 2020-11-02 17:41:23 +01:00
prg318 cec553f4b9
gtk: add import/export memory menu items (#391)
GTK: Add import/export memory menu items
2020-10-29 21:59:07 +01:00
Emmanuel Gil Peyrot 64da66f37b GTK: Disable deprecated symbols altogether 2020-10-29 20:56:11 +01:00
zeromus 0d65ea6050 add code to make a backup savestate every time a slot savestate is loaded. I don't need to spell out for you which users this is for, and why they need it. 2020-10-15 16:46:16 -04:00
Emmanuel Gil Peyrot d854909b04 GTK: Fix opening a ROM from the command line
Only the first of the positional arguments is interpreted as the ROM’s
filename, because we don’t emulate multiple ROMs at once.

Fixes #382.
2020-10-03 12:37:43 +02:00
Emmanuel Gil Peyrot cb49416952 GTK: Fix gdb stub support
I never tried to build this codepath, this is now done.

Fixes #381.
2020-10-03 12:36:56 +02:00
zeromus e07e5e5db4
Merge pull request #380 from thesourcehim/master
GTK: fixed LCD layout switching
2020-09-27 14:23:35 -04:00
thesource 905de91c96 Fixed LCD layout switching 2020-09-27 11:10:14 +03:00
Emmanuel Gil Peyrot 8aaabb9b05 meson: Fix building with -Dwifi=true 2020-09-25 21:52:41 +02:00
Emmanuel Gil Peyrot 59c2b8a990 meson: Add back forgotten manpages
Thanks @dantob for noticing that on the AUR package.
2020-09-25 21:48:24 +02:00
Emmanuel Gil Peyrot 626d5b4d36 GTK: Replace the logo with a SVG version
This makes it render crisp on desktop environments which use an icon
size bigger than 32×32, such as GNOME.
2020-09-25 21:38:18 +02:00