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

Function loadHeightmapOpen

src/OpenLoco/src/Game.cpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 [[nodiscard]] std::optional<std::string> loadHeightmapOpen()
66 {
67 fs::path basePath = Environment::getPath(Environment::PathId::heightmap);
68 Environment::autoCreateDirectory(basePath);
69 auto path = basePath.make_preferred().u8string();
70
71 // TODO: make named constant for filter?
72 return openBrowsePrompt(path, StringIds::title_load_png_heightmap_file, browse_type::load, "*.png");
73 }
74
75 // 0x00441843
76 [[nodiscard]] std::optional<std::string> saveSaveGameOpen()

Callers 1

onMouseUpFunction · 0.85

Calls 3

getPathFunction · 0.85
autoCreateDirectoryFunction · 0.85
openBrowsePromptFunction · 0.85

Tested by

no test coverage detected