Commit Graph

6548 Commits

Author SHA1 Message Date
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
Emmanuel Gil Peyrot 0896b99b49 README.LIN: Direct to release builds by default
Fixes #376.
2020-09-22 12:04:24 +02:00
zeromus e38e98714e
Merge pull request #378 from thesourcehim/master
Add missing libsoundtouch define for meson
2020-09-21 14:44:48 -04:00
thesource 50abbbafa7 Add missing libsoundtouch define for meson 2020-09-21 21:13:15 +03:00
Emmanuel Gil Peyrot 5552ef11c0 GTK: Add missing guards for HUD actions
Fixes #377.
2020-09-21 14:55:44 +02:00
Emmanuel Gil Peyrot 35c44285a8 README.LIN: Update from autotools to meson 2020-09-20 22:49:40 +00:00
davg-qqq ba92804d9f GTK: Update autotools config to use gtk3
This will depend on 3.24 as this is the only version I have available.
If someone else confirms it works on an older version we can lower it.
2020-09-20 22:42:48 +00:00
Emmanuel Gil Peyrot 0abe38ce76 GTK: Fix build with AGG
This was prevending HUD from building.  Note that this doesn’t make it
work fully yet, as the pixel format seems wrong, as if AGG was assuming
RGB888 while the buffer is actually RGBx8888 or something like that.

Fixes #375.
2020-09-20 22:39:25 +00:00
Emmanuel Gil Peyrot 383e315b21 meson: Downgrade minimum version to 0.53
I tested it on Ubuntu 20.04 and it works properly.
2020-09-20 21:01:31 +00:00
Emmanuel Gil Peyrot 46c7e34439 meson: Add missing dependency on threads
Thanks @davg-qqq for noticing, I could reproduce on Ubuntu 20.04, but
not on ArchLinux, where I originally wrote this code.
2020-09-20 21:01:17 +00:00
zeromus 2ac787a855
Merge pull request #370 from linkmauve/fixup
Fix two issues in the recent GTK+ move
2020-09-09 18:05:53 -04:00
Emmanuel Gil Peyrot bfeff3fe66 GTK: Restore content scaling
It had been broken in eabfcb71be when
moving from GtkVBox to GtkBox removed homogeneous=false.
2020-09-09 23:54:06 +02:00
Emmanuel Gil Peyrot 3ecbb29863 GTK: Fix a build issue in a lambda
It wasn’t correctly capturing its outer variable.
2020-09-09 23:53:20 +02:00
zeromus 5dd62b214b
Merge pull request #368 from linkmauve/gtk3
Port DeSmuME to GTK+ 3.24
2020-09-09 17:20:13 -04:00
Emmanuel Gil Peyrot a1ea27d7f9 GTK: Restore the open recent submenu
This now only uses GtkRecentManager to populate the menu.
2020-09-09 23:17:43 +02:00
Emmanuel Gil Peyrot 7435ffaefd GTK: Restore savestate menu
This is now using an action parameter to send the slot to save to/load
from.

There was a previous comment about Shift-Fn being broken and a
workaround using Key_Press(), but it doesn’t seem to be broken anymore
so we can use the accelerators instead and remove a static variable.
2020-09-09 22:46:39 +02:00
Emmanuel Gil Peyrot 5629855183 GTK: Properly guard HUD function when AGG isn’t found 2020-09-04 14:40:51 +02:00
Emmanuel Gil Peyrot 74cd070e61 GTK: Reimplement the toolbar using GtkBuilder 2020-09-04 14:40:50 +02:00
Emmanuel Gil Peyrot ef0e3b3adf GTK: Migrate from GtkAction to GAction 2020-09-04 14:40:32 +02:00
Emmanuel Gil Peyrot 0c9a8a5282 GTK: Replace deprecated gdk_window_get_pointer() with gdk_window_get_device_position() 2020-09-01 20:47:44 +02:00
Emmanuel Gil Peyrot 3c32aeb0f5 GTK: Replace deprecated GtkHButtonBox with horizontal GtkButtonBox 2020-09-01 20:47:44 +02:00
Emmanuel Gil Peyrot ad9e7e8be1 GTK: Replace deprecated GtkHRange with horizontal GtkRange 2020-09-01 20:47:44 +02:00
Emmanuel Gil Peyrot 2423a9bb5e GTK: Replace stock texts with their actual string 2020-09-01 20:47:44 +02:00