[gnome-games/wip/exalm/dolphin-settings: 4/4] game-cube: Enable Hyrule Field Speed Hack for TLoZ: Twilight Princess




commit 4613db0da08d47a6bdd719efddd1957c5f677949
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Apr 12 00:06:47 2021 +0500

    game-cube: Enable Hyrule Field Speed Hack for TLoZ: Twilight Princess
    
    Add a GameSettings override to enable that cheat to avoid slowdowns.

 plugins/game-cube/src/game-cube.gresource.xml |  6 +++++
 plugins/game-cube/src/game-settings/GZ2.ini   | 35 +++++++++++++++++++++++++++
 plugins/game-cube/src/meson.build             |  8 +++++-
 3 files changed, 48 insertions(+), 1 deletion(-)
---
diff --git a/plugins/game-cube/src/game-cube.gresource.xml b/plugins/game-cube/src/game-cube.gresource.xml
new file mode 100644
index 00000000..307b2e15
--- /dev/null
+++ b/plugins/game-cube/src/game-cube.gresource.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+  <gresource prefix="/org/gnome/Games/plugins/game-cube">
+    <file>game-settings/GZ2.ini</file>
+  </gresource>
+</gresources>
diff --git a/plugins/game-cube/src/game-settings/GZ2.ini b/plugins/game-cube/src/game-settings/GZ2.ini
new file mode 100644
index 00000000..2e0f17f7
--- /dev/null
+++ b/plugins/game-cube/src/game-settings/GZ2.ini
@@ -0,0 +1,35 @@
+[OnFrame]
+$Hyrule Field Speed Hack
+0x8003D50C:dword:0x60000000
+0x8003D528:dword:0x60000000
+0x8003D540:dword:0x60000000
+0x8003D55C:dword:0x60000000
+0x8003D55C:dword:0x60000000
+0x8003D560:dword:0x60000000
+0x8003D564:dword:0x60000000
+0x8003D568:dword:0x60000000
+0x8003D56C:dword:0x60000000
+0x8003D570:dword:0x60000000
+0x8003D574:dword:0x60000000
+0x8003D578:dword:0x60000000
+0x8003D57C:dword:0x60000000
+0x8003D580:dword:0x60000000
+0x8003D584:dword:0x60000000
+0x8003D588:dword:0x60000000
+0x8003D58C:dword:0x60000000
+0x8003D590:dword:0x60000000
+0x8003D594:dword:0x60000000
+0x8003D598:dword:0x60000000
+0x8003D59C:dword:0x60000000
+0x8003D5A0:dword:0x60000000
+0x8003D5A4:dword:0x60000000
+0x8003D5A8:dword:0x60000000
+0x8003D5AC:dword:0x60000000
+0x8003D5B0:dword:0x60000000
+0x8003D5B8:dword:0x60000000
+0x8003D5D4:dword:0x60000000
+0x8003D5EC:dword:0x60000000
+0x8003D608:dword:0x60000000
+
+[OnFrame_Enabled]
+$Hyrule Field Speed Hack
diff --git a/plugins/game-cube/src/meson.build b/plugins/game-cube/src/meson.build
index 0d06f252..49ab86b0 100644
--- a/plugins/game-cube/src/meson.build
+++ b/plugins/game-cube/src/meson.build
@@ -8,9 +8,15 @@ c_args = [
   '-DG_LOG_DOMAIN="GamesGameCube"'
 ]
 
+game_cube_resources = gnome.compile_resources (
+  'game-cube',
+  'game-cube.gresource.xml',
+  c_name: 'resources'
+)
+
 shared_module (
   'games-' + plugin_name + '-plugin',
-  vala_sources,
+  vala_sources + game_cube_resources,
   dependencies: gnome_games_dep,
   c_args: c_args,
   install: true,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]