MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getInfoFilePath

Function getInfoFilePath

plugins/vcs/Algorithm.h:132–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132inline std::string getInfoFilePath(const std::string& mapPath)
133{
134 auto format = GlobalMapFormatManager().getMapFormatForFilename(mapPath);
135
136 if (format && format->allowInfoFileCreation())
137 {
138 return os::replaceExtension(mapPath, game::current::getInfoFileExtension());
139 }
140
141 return std::string();
142}
143
144inline void resolveMapFileConflictUsingOurs(const std::shared_ptr<Repository>& repository)
145{

Callers 1

Calls 4

replaceExtensionFunction · 0.85
getInfoFileExtensionFunction · 0.85
allowInfoFileCreationMethod · 0.45

Tested by

no test coverage detected