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

Method State

Tactility/Source/app/files/State.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static const auto LOGGER = Logger("Files");
18
19State::State() {
20 if (kernel::getPlatform() == kernel::PlatformSimulator) {
21 char cwd[PATH_MAX];
22 if (getcwd(cwd, sizeof(cwd)) != nullptr) {
23 setEntriesForPath(cwd);
24 } else {
25 LOGGER.error("Failed to get current work directory files");
26 setEntriesForPath("/");
27 }
28 } else {
29 setEntriesForPath("/");
30 }
31}
32
33std::string State::getSelectedChildPath() const {
34 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