MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / sanatiseObjectFilename

Function sanatiseObjectFilename

src/OpenLoco/src/Objects/ObjectManager.cpp:721–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719 }
720
721 static void sanatiseObjectFilename(std::string& filename)
722 {
723 // Trim string at first space (note this copies vanilla but maybe shouldn't)
724 auto space = filename.find_first_of(' ');
725 if (space != std::string::npos)
726 {
727 filename = filename.substr(0, space);
728 }
729 // Make filename uppercase
730 std::transform(std::begin(filename), std::end(filename), std::begin(filename), toupper);
731 }
732
733 // 0x0047285C
734 static bool installObject(const ObjectHeader& objectHeader)

Callers 1

installObjectFunction · 0.85

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected