MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / ReadTextureInfo

Method ReadTextureInfo

ogsr_engine/xrGame/MainMenu.cpp:69–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void CMainMenu::ReadTextureInfo()
70{
71 if (pSettings->section_exist("texture_desc"))
72 {
73 const LPCSTR itemsList = pSettings->r_string("texture_desc", "files");
74 if (itemsList)
75 {
76 const int itemsCount = _GetItemCount(itemsList);
77
78 string256 single_item;
79 for (int i = 0; i < itemsCount; i++)
80 {
81 _GetItem(itemsList, i, single_item);
82 strcat_s(single_item, ".xml");
83 CUITextureMaster::ParseShTexInfo(single_item);
84 }
85 }
86 }
87
88 // autoload
89 FS_FileSet fset;
90 FS.file_list(fset, "$game_config$", FS_ListFiles, "ui\\textures_descr\\*.xml");
91 FS_FileSetIt fit = fset.begin();
92 FS_FileSetIt fit_e = fset.end();
93
94 for (; fit != fit_e; ++fit)
95 {
96 string_path fn1, fn2, fn3;
97 _splitpath((*fit).name.c_str(), fn1, fn2, fn3, 0);
98
99 xr_strcpy(fn1, "textures_descr\\");
100 xr_strcat(fn1, fn3);
101 xr_strcat(fn1, ".xml");
102
103 //xr_string fn1 = (*fit).name;
104
105 CUITextureMaster::ParseShTexInfo(fn1);
106 }
107}
108
109extern ENGINE_API BOOL bShowPauseString;
110

Callers

nothing calls this directly

Calls 8

_GetItemCountFunction · 0.85
_GetItemFunction · 0.85
section_existMethod · 0.80
file_listMethod · 0.80
r_stringMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected