File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,18 +113,23 @@ $ ./fgptool -m META "/home/lxlewis/Downloads/PORTAL/"
113113
114114BACKGROUND1.GRP
115115 File count: 2868
116+ Missing hashes: 87 (3.03347%)
116117 Loading screen path: materials/vgui/appchooser/background_portal.ps3.vtf
117118BACKGROUND2.GRP
118119 File count: 2757
120+ Missing hashes: 83 (3.01052%)
119121 Loading screen path: materials/vgui/appchooser/background_portal.ps3.vtf
120122ESCAPE_00.GRP
121123 File count: 3379
124+ Missing hashes: 91 (2.6931%)
122125 Loading screen path: materials/vgui/appchooser/background_portal.ps3.vtf
123126ESCAPE_01.GRP
124127 File count: 3844
128+ Missing hashes: 104 (2.70552%)
125129 Loading screen path: materials/vgui/appchooser/background_portal.ps3.vtf
126130ESCAPE_02.GRP
127131 File count: 4672
132+ Missing hashes: 113 (2.41866%)
128133 Loading screen path: materials/vgui/appchooser/background_portal.ps3.vtf
129134```
130135
Original file line number Diff line number Diff line change @@ -259,6 +259,14 @@ void meta(const std::string& inputPath) {
259259 }
260260 std::cout << fgp->getFilename () << std::endl;
261261 std::cout << " \t File count: " << fgp->getEntryCount () << std::endl;
262+
263+ const uint32_t total = fgp->getEntryCount ();
264+ uint32_t existed = 0 ;
265+ fgp->runForAllEntries ([&existed](const std::string& path, const Entry&) {
266+ existed += !path.starts_with (" __hashed__/" );
267+ });
268+ std::cout << " \t Missing hashes: " << (total - existed) << " (" << ((total - existed) / static_cast <double >(total) * 100 ) << " %)" << std::endl;
269+
262270 std::cout << " \t Loading screen path: " << dynamic_cast <FGP&>(*fgp).getLoadingScreenFilePath () << std::endl;
263271}
264272
You can’t perform that action at this time.
0 commit comments