Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenLoco/OpenLoco
/ setDirectory
Function
setDirectory
src/OpenLoco/src/Environment.cpp:203–206 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
201
202
template<typename T>
203
static void setDirectory(T& buffer, fs::path path)
204
{
205
Utility::strlcpy(buffer, path.make_preferred().u8string().c_str(), buffer.size());
206
}
207
208
void autoCreateDirectory(const fs::path& path)
209
{
Callers
nothing calls this directly
Calls
2
strlcpy
Function · 0.85
size
Method · 0.45
Tested by
no test coverage detected