MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / State

Method State

Tactility/Source/app/fileselection/State.cpp:18–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16static const auto LOGGER = Logger("FileSelection");
17
18State::State() {
19 if (kernel::getPlatform() == kernel::PlatformSimulator) {
20 char cwd[PATH_MAX];
21 if (getcwd(cwd, sizeof(cwd)) != nullptr) {
22 setEntriesForPath(cwd);
23 } else {
24 LOGGER.error("Failed to get current work directory files");
25 setEntriesForPath("/");
26 }
27 } else {
28 setEntriesForPath("/");
29 }
30}
31
32std::string State::getSelectedChildPath() const {
33 return file::getChildPath(current_path, selected_child_entry);

Callers

nothing calls this directly

Calls 2

getPlatformFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected