LifePlay-Revival/Docs/Migration/etat/OPT/REFAC/REFAC-TRANSFO-T1.md

29 lines
1.9 KiB
Markdown
Raw Normal View History

# REFAC-TRANSFO-T1 : retirer les gardes de version 5.5 / 5.8
Niveau de preuve : établi (relevé par Grep le 2026-10-15). Candidat : décision utilisateur requise.
## Avant
Commande : `grep -rn "UE_VERSION_\|ENGINE_M[AI][JN]OR_VERSION"` sur `Source`, `Plugins\StreetMap\Source`, `Plugins\LPAnimCore\Source` et l'addon `LPSandbox\Source`. Résultat : **10 sites**. (REFAC-API-58 en annonce 9 ; le relevé direct en donne 10, dont `LPCoupleSimCore.cpp:129`.)
| Site | Garde |
|---|---|
| Source/LifePlay/LPWidgetStyleLibrary.cpp:22 | `#if !UE_VERSION_OLDER_THAN(5, 8, 0)` |
| Source/LifePlayEditorTools/LPDumpAssetsCommandlet.cpp:111 | `#if UE_VERSION_OLDER_THAN(5, 8, 0)` (surcharge booléenne de GetObjectsWithPackage) |
| Source/LifePlayEditorTools/LPDumpFunctionCommandlet.cpp:105 | `#if ENGINE_MAJOR_VERSION >= 5` (branche UE4 morte) |
| Plugins/StreetMap/Source/StreetMapImporting/StreetMapComponentDetails.cpp:26, 53, 73, 325 | `#if UE_VERSION_OLDER_THAN(5, 8, 0)` (4 sites, dont CounterFont) |
| Plugins/StreetMap/Source/StreetMapRuntime/StreetMapSceneProxy.cpp:22 | `#if UE_VERSION_OLDER_THAN(5, 8, 0)` |
| Plugins/LPAnimCore/Source/LPAnimCore/LPCoupleSimCore.cpp:129 | `#if UE_VERSION_OLDER_THAN(5, 8, 0)` |
| LifePlay-Sandbox-5.8/Plugins/LPSandbox/Source/LPModTools/LPHairFromStaticMeshCommandlet.cpp:431 | `#if UE_VERSION_OLDER_THAN(5, 8, 0)` |
## Après
Garder la seule branche 5.8 dans chaque site et retirer `#include "Misc/EngineVersionComparison.h"` s'il devient inutile.
## Risque, preuve, ordre
- Risque : nul au build si la copie 5.5 n'est plus compilée ; la mémoire du 2026-10-12 indique qu'aucun développement 5.5 n'est prévu, mais `lp-ue-compat` § 1 garde ces gardes tant que la copie 5.5 vit. **Décision de l'utilisateur** avant tout.
- Preuve exigée : build `LifePlayEditor` Win64 Development et cible jeu Shipping, code 0, 0 C4996 (lot BUILD, BUILD-GO).
- Ordre : après T2, T3 ; un commit par dépôt (jeu, addon).
- Appelants Blueprint : sans objet.