Tutoriel Textures HD (FR/EN), launcher : prévenir quand Upscayl manque

- docs/TEXTURES.md et TEXTURES.en.md : installer Upscayl (emplacements cherchés,
  UPSCAYL_BIN), pack automatique, export des décors d'origine, Upscayl à la main
  (renommage des fichiers), autres outils, retouche dans GIMP/Krita/Photoshop,
  rangement en mod, vérification en jeu, combinaison de packs, règles,
  dépannage, partage ; image de comparaison des méthodes
- launcher : encadré « Upscayl n'est pas installé » avec lien de téléchargement
  et lien vers le tutoriel ; lien « (tutoriel) » dans « Faire son propre pack HD » ;
  \0 écrit en séquence d'échappement dans la détection de --charger
- guide, README et wiki : liens vers le tutoriel, Upscayl signalé comme à installer à part

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
linkatplugandClaude Opus 5.5 committed 2026-12-05 07:11:10 +01:00
1 parent 28358982ff
commit 13cbe4b829
10 files changed
+757 -14

No files matched your search

+32 -6
View File
@@ -278,7 +278,7 @@ fn run_checks(root: &Path, cfg: &Config) -> Checks {
/// le moteur lit l'option « --charger » : la chaîne figure alors dans l'exécutable (suivie d'un 0)
fn engine_can_load(exe: &Path) -> bool {
std::fs::read(exe).is_ok_and(|b| b.windows(10).any(|w| w == b"--charger"))
std::fs::read(exe).is_ok_and(|b| b.windows(10).any(|w| w == b"--charger\0"))
}
// ------------------------------------------------------------------ tâches de fond
@@ -621,6 +621,15 @@ struct App {
ctx: egui::Context,
}
/// tutoriel des textures HD (wiki du dépôt)
fn textures_guide(en: bool) -> &'static str {
if en {
"https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp/wiki/HD-Textures"
} else {
"https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp/wiki/Textures-HD"
}
}
fn find_root() -> Option<PathBuf> {
let is_root = |d: &Path| d.join("build.bat").is_file() && d.join("tools").join("recomp.py").is_file();
let mut starts = Vec::new();
@@ -889,13 +898,30 @@ impl App {
mods::pack_id(&self.upscayl_model)
)).weak().small());
} else {
ui.horizontal_wrapped(|ui| {
ui.label(RichText::new(tr("Pour créer un pack HD, installez", "To create an HD pack, install")).weak());
ui.hyperlink_to("Upscayl", "https://upscayl.org");
});
// Upscayl absent : prévenir clairement, avec quoi faire
egui::Frame::new()
.fill(Color32::from_rgba_unmultiplied(0xFF, 0xD2, 0x00, 24))
.stroke(Stroke::new(1.0, ACCENT))
.corner_radius(CornerRadius::same(6))
.inner_margin(egui::Margin::same(8))
.show(ui, |ui| {
ui.label(RichText::new(tr("Upscayl n'est pas installé", "Upscayl is not installed")).strong().color(ACCENT));
ui.label(RichText::new(tr(
"Ce logiciel gratuit crée le pack HD des décors en un clic (il faut une carte graphique compatible Vulkan). Installez-le, puis cliquez sur Actualiser.",
"This free program creates the HD background pack in one click (it needs a Vulkan-capable graphics card). Install it, then click Refresh.",
)));
ui.horizontal_wrapped(|ui| {
ui.hyperlink_to(tr("Télécharger Upscayl", "Download Upscayl"), "https://upscayl.org");
ui.label(RichText::new("·").weak());
ui.hyperlink_to(tr("Guide des textures HD", "HD textures guide"), textures_guide(en));
});
});
}
ui.separator();
ui.label(RichText::new(tr("Faire son propre pack HD", "Make your own HD pack")).strong());
ui.horizontal(|ui| {
ui.label(RichText::new(tr("Faire son propre pack HD", "Make your own HD pack")).strong());
ui.hyperlink_to(tr("(tutoriel)", "(tutorial)"), textures_guide(en));
});
if ui
.add_enabled(can_create, egui::Button::new(tr("Exporter les décors d'origine", "Export original backgrounds")))
.clicked()