mkxp-z/src/filesystem/filesystemImpl.cpp

40 lines
767 B
C++
Raw Normal View History

2020-11-21 22:37:46 -05:00
//
// filesystemImpl.cpp
// Player
//
// Created by ゾロアーク on 11/21/20.
//
#include "filesystemImpl.h"
#include <filesystem>
2020-11-22 03:48:03 -05:00
#include <unistd.h>
// TODO
bool filesystemImpl::fileExists(const char *path) {
assert(!"Not implemented");
return false;
}
// TODO
std::string filesystemImpl::contentsOfFileAsString(const char *path) {
assert(!"Not implemented");
return std::string("");
}
// TODO
bool filesystemImpl::setCurrentDirectory(const char *path) {
return chdir(path);
}
// TODO
std::string filesystemImpl::getCurrentDirectory() {
return std::string(getcwd(0,0));
}
std::string filesystemImpl::normalizePath(const char *path, bool preferred, bool absolute) {
assert(!"Not implemented");
return std::string("");
}