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

Method SetBasePath

src/openrct2/PlatformEnvironment.cpp:193–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 }
192
193 void SetBasePath(DirBase base, u8string_view path) override
194 {
195 _basePath[EnumValue(base)] = path;
196
197 if (base == DirBase::rct2)
198 {
199 // This value being empty can be valid on headless.
200 auto variant = Platform::classifyGamePath(path);
201 if (variant.has_value())
202 _rct2Variant = variant.value();
203 }
204 }
205
206 bool IsUsingClassic() const override
207 {

Callers 2

InitialiseMethod · 0.80

Calls 3

EnumValueFunction · 0.85
classifyGamePathFunction · 0.85
valueMethod · 0.80

Tested by

no test coverage detected