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

Function IsPathChildOf

src/openrct2/interface/Screenshot.cpp:583–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583static bool IsPathChildOf(fs::path x, const fs::path& parent)
584{
585 auto xp = x.parent_path();
586 while (xp != x)
587 {
588 if (xp == parent)
589 {
590 return true;
591 }
592 x = xp;
593 xp = x.parent_path();
594 }
595 return false;
596}
597
598static std::string ResolveFilenameForCapture(const fs::path& filename)
599{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected