From 3574ed17ee91aaabf3169d0dedd2a3e1ec0df515 Mon Sep 17 00:00:00 2001
From: Auu-Auu <151302752+Auu-Auu@users.noreply.github.com>
Date: Fri, 12 Jan 2024 00:18:07 -0800
Subject: [PATCH] Update Installer for Hou Plus [unfinished URLs left as TODOs]

---
 httpGUI/index.html              |  6 +++---
 httpGUI/python-patcher-index.js |  4 ++++
 httpGUI/python-patcher-lib.js   |  3 ++-
 installData.json                | 31 +++++++++++++++++++++++++++++++
 versionData.json                | 22 +++++++++++++++++++---
 5 files changed, 59 insertions(+), 7 deletions(-)

diff --git a/httpGUI/index.html b/httpGUI/index.html
index f8b2469b..84ae08d4 100644
--- a/httpGUI/index.html
+++ b/httpGUI/index.html
@@ -63,9 +63,9 @@ <h3>Error while checking if installer is latest</h3>
 					<div class="container">
 						<div class="row">
 							<div class="col-md-6">
-								<h2 class="uppercase mb8">Higurashi Rei</h2>
-								<p class="lead mb0">New chapter: Higurashi Rei<br></p>
-								<a class="btn btn-lg" onclick="setModNameAndNavigate('Rei')">INSTALL</a>
+								<h2 class="uppercase mb8">Higurashi Hou Plus</h2>
+								<p class="lead mb0">New chapter: Higurashi Hou Plus<br></p>
+								<a class="btn btn-lg" onclick="setModNameAndNavigate('Hou Plus')">INSTALL</a>
 							</div>
 						</div>
 						
diff --git a/httpGUI/python-patcher-index.js b/httpGUI/python-patcher-index.js
index d55ca281..70e4d260 100644
--- a/httpGUI/python-patcher-index.js
+++ b/httpGUI/python-patcher-index.js
@@ -85,6 +85,10 @@ window.onload = function onWindowLoaded() {
           img: 'img/games/header9.png',
           dataFilter: 'Bonus Content',
         },
+        'Hou Plus': {
+          img: 'img/games/header10.png',
+          dataFilter: 'Bonus Content',
+        }
       },
       // Data filters are defined manually so you can set the order
       dataFilters: ['Question Arcs', 'Answer Arcs', 'Console Arcs', 'Bonus Content'],
diff --git a/httpGUI/python-patcher-lib.js b/httpGUI/python-patcher-lib.js
index dbd7e5a2..b192df7f 100644
--- a/httpGUI/python-patcher-lib.js
+++ b/httpGUI/python-patcher-lib.js
@@ -478,7 +478,8 @@ Continue install anyway?`)) {
       'Tsumihoroboshi Ch.6': 'https://github.com/07th-mod/tsumihoroboshi/releases',
       'Minagoroshi Ch.7': 'https://github.com/07th-mod/minagoroshi/releases',
       'Matsuribayashi Ch.8': 'https://github.com/07th-mod/matsuribayashi/releases',
-      'Rei': 'https://github.com/07th-mod/higurashi-rei/releases'
+      'Rei': 'https://github.com/07th-mod/higurashi-rei/releases',
+      'Hou Plus': 'https://github.com/07th-mod/hou-plus/releases'
     }, app.selectedMod, null);
 
     app.metaInfo = responseData.metaInfo;
diff --git a/installData.json b/installData.json
index b12dc116..704f0d4a 100644
--- a/installData.json
+++ b/installData.json
@@ -721,6 +721,37 @@
 				}
 			]
 		},
+		{
+			"family": "higurashi",
+			"name": "Hou Plus",
+			"target": "Hou Plus",
+			"CFBundleName": "Higurashi When They Cry Hou+",
+			"dataname": "HigurashiEp10_Data",
+			"identifiers" : ["Higurashi When They Cry Hou Plus_Data", "HigurashiEp10_Data", "HigurashiEp10.x86_64", "HigurashiEp10.exe"],
+			"submods": [
+				{
+					"name": "full",
+					"descriptionID": "higurashiFull",
+					"files": [
+						{"name": "graphics",    "url": "https://07th-mod.com/rikachama/graphics/Hou-Plus-Graphics.7z", "priority": 0},
+						{"name": "movie",       "url": "https://07th-mod.com/rikachama/video/Hou-Plus-Movie.7z", "priority": 0},
+						{"name": "voices",      "url": "https://07th-mod.com/rikachama/voice/Hou-Plus-Voices.7z", "priority": 0},
+						{"name": "bgm-se",      "url": "https://07th-mod.com/rikachama/audio/Hou-Plus-BGM-SE.7z", "priority": 0},
+						{"name": "ui",          "url": null, "priority": 0, "installOnRepair":  true},
+						{"name": "og-dll-asset-update", "url":"https://07th-mod.com/rikachama/og-dll-asset-update/hou-plus-og-dll-asset-update.7z",   "priority": 0},
+						{"name": "script",      "url": "https://github.com/07th-mod/hou-plus/releases/latest/download/Hou.Voice.and.Graphics.Patch.zip", "priority": 5, "installOnRepair":  true}
+					],
+					"fileOverrides": [
+						{"name": "movie", "id": "movie-unix",   "os": ["mac", "linux"], "url":"https://07th-mod.com/rikachama/video/Hou-Plus-Movie_UNIX.7z", "wine": true},
+						{"name": "ui",    "id": "ui-windows",   "os": ["windows"],      "unity": "2019.4.3", "url":"TODO"},
+						{"name": "ui",    "id": "ui-windows-mg","os": ["windows"],      "unity": "2019.4.4", "url":"TODO"},
+						{"name": "ui",    "id": "ui-unix",      "os": ["mac", "linux"], "unity": "2019.4.3", "url":"TODO"},
+						{"name": "ui",    "id": "ui-unix-mg",   "os": ["mac", "linux"], "unity": "2019.4.4", "url":"TODO"}
+					]
+				}
+			],
+			"modOptionGroups": []
+		},
 		{
 			"family": "higurashi",
 			"name": "Console Arcs",
diff --git a/versionData.json b/versionData.json
index e4d58fa1..e20a72a3 100644
--- a/versionData.json
+++ b/versionData.json
@@ -189,6 +189,13 @@
 			{"id": "og-bgm-se",           "version": "1.0.6"}
 		]
 	},
+	{
+		"id": "Matsuribayashi Ch.8/voice-only",
+		"files": [
+			{"id": "voices",              "version": "0.0.1"},
+			{"id": "script",              "version": "0.0.1"}
+		]
+	},
 	{
 		"id": "Rei/full",
 		"files": [
@@ -206,10 +213,19 @@
 		]
 	},
 	{
-		"id": "Matsuribayashi Ch.8/voice-only",
+		"id": "Hou Plus/full",
 		"files": [
-			{"id": "voices",              "version": "0.0.1"},
-			{"id": "script",              "version": "0.0.1"}
+			{"id": "graphics",            "version": "1.0.0"},
+			{"id": "movie",               "version": "1.0.0"},
+			{"id": "voices",              "version": "1.0.0"},
+			{"id": "bgm-se",              "version": "1.0.0"},
+			{"id": "script",              "version": "1.0.0"},
+			{"id": "movie-unix",          "version": "1.0.0"},
+			{"id": "ui-windows",          "version": "1.0.0"},
+			{"id": "ui-windows-mg",       "version": "1.0.0"},
+			{"id": "ui-unix",             "version": "1.0.0"},
+			{"id": "ui-unix-mg",          "version": "1.0.0"},
+			{"id": "og-dll-asset-update", "version": "1.0.0"}
 		]
 	},
 	{