Skip to content

Commit 1375552

Browse files
committed
Add initial support for Hou Plus UI
1 parent 70d2484 commit 1375552

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

assets/files-hou-plus/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This folder will eventually contain the Hou Plus Caret and Fonts
2+
For now leave empty so the Hou Plus UI File can be built, even if these files are missing (the UI file will use the default caret and font).

build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def findWorkingExecutablePath(executable_paths, flags):
4949
"minagoroshi": 7,
5050
"matsuribayashi": 8,
5151
"rei": 9,
52+
"hou-plus": 10,
5253
}
5354

5455
class BuildVariant:
@@ -156,6 +157,11 @@ def get_translation_sharedassets_name(self) -> str:
156157
BuildVariant("GOG-Steam-MG_old", "rei", "2019.4.3", "unix"),
157158
BuildVariant("MG", "rei", "2019.4.4", "unix"),
158159
],
160+
161+
'hou-plus': [
162+
BuildVariant("GOG-MG-Steam", "hou-plus", "2019.4.4", "win", translation_default=True),
163+
BuildVariant("GOG-MG-Steam", "hou-plus", "2019.4.4", "unix"),
164+
],
159165
}
160166

161167
def is_windows():

src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ fn main() -> ExitCode {
4545
chapters.insert("minagoroshi", 7);
4646
chapters.insert("matsuribayashi", 8);
4747
chapters.insert("rei", 9);
48+
chapters.insert("hou-plus", 10);
4849

4950
if !chapters.contains_key(&chapter[..]) {
5051
println!("Unknown chapter, should be one of {:?}", chapters.keys());
@@ -129,7 +130,8 @@ fn main() -> ExitCode {
129130
7 => "assets/files-5.6",
130131
8 => "assets/files-2017.2",
131132
9 => "assets/files-2019.4",
132-
_ => panic!("Couldn't folder for text carets with arc {}", arc_number)
133+
10 => "assets/files-hou-plus", // Both rei and hou-plus are 2019.4, but the rei caret/font doesn't work on hou-plus
134+
_ => panic!("Couldn't determine folder for text carets with arc {}", arc_number)
133135
};
134136
copy_files(&caretdir, &directory_assets);
135137
println!();
@@ -261,7 +263,7 @@ fn copy_images(from: &str, to: &str) {
261263
println!("Path {} not found", from);
262264
return
263265
}
264-
println!("Copying files from {}", from);
266+
println!("Copying images from {}", from);
265267
for entry in fs::read_dir(from).expect("Can't read directory") {
266268
let path = entry.unwrap().path();
267269
fs::copy(&path, format!("{}/{}_Texture2D.png", to, path.file_stem().unwrap().to_str().unwrap())).expect("Unable to copy");

0 commit comments

Comments
 (0)