MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / TryClassifyFile

Function TryClassifyFile

src/openrct2/FileClassifier.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29static bool TryClassifyAsTD4_TD6(IStream* stream, ClassifiedFileInfo* result);
30
31bool TryClassifyFile(const std::string& path, ClassifiedFileInfo* result)
32{
33 try
34 {
35 auto fs = FileStream(path, FileMode::open);
36 return TryClassifyFile(&fs, result);
37 }
38 catch (const std::exception&)
39 {
40 return false;
41 }
42}
43
44bool TryClassifyFile(IStream* stream, ClassifiedFileInfo* result)
45{

Callers 4

LoadParkFromStreamMethod · 0.85
HandleObjectsInfoFunction · 0.85
LoadPreviewMethod · 0.85
LoadPreviewMethod · 0.85

Calls 5

FileStreamClass · 0.85
TryClassifyAsParkFunction · 0.85
TryClassifyAsS6Function · 0.85
TryClassifyAsS4Function · 0.85
TryClassifyAsTD4_TD6Function · 0.85

Tested by

no test coverage detected