| 970 | //========================================================================== |
| 971 | |
| 972 | static void InitTextures(TArray<GrpEntry>& usedgroups) |
| 973 | { |
| 974 | voxInit(); |
| 975 | |
| 976 | TexMan.usefullnames = true; |
| 977 | TexMan.Init(); |
| 978 | TexMan.AddTextures([]() {}, [](BuildInfo&) {}); |
| 979 | StartWindow->Progress(); |
| 980 | |
| 981 | TArray<FString> addArt; |
| 982 | for (auto& grp : usedgroups) |
| 983 | { |
| 984 | for (auto& art : grp.FileInfo.loadart) |
| 985 | { |
| 986 | addArt.Push(art); |
| 987 | } |
| 988 | } |
| 989 | if (userConfig.AddArt) for (auto& art : *userConfig.AddArt) |
| 990 | { |
| 991 | addArt.Push(art); |
| 992 | } |
| 993 | InitArtFiles(addArt); |
| 994 | |
| 995 | ConstructTileset(); |
| 996 | InitFont(); // InitFonts may only be called once all texture data has been initialized. |
| 997 | |
| 998 | lookups.postLoadTables(); |
| 999 | highTileSetup(); |
| 1000 | lookups.postLoadLookups(); |
| 1001 | SetupFontSubstitution(); |
| 1002 | V_LoadTranslations(); // loading the translations must be delayed until the palettes have been fully set up. |
| 1003 | UpdateUpscaleMask(); |
| 1004 | } |
| 1005 | |
| 1006 | //========================================================================== |
| 1007 | // |
no test coverage detected