19 #ifndef OPENXCOM_CROSSPLATFORM_H
20 #define OPENXCOM_CROSSPLATFORM_H
34 namespace CrossPlatform
45 std::string
getDataFile(
const std::string &filename);
51 std::string
endPath(
const std::string &path);
53 std::vector<std::string>
getFolderContents(
const std::string &path,
const std::string &ext =
"");
55 std::vector<std::string>
getDataContents(
const std::string &path,
const std::string &ext =
"");
63 std::string
baseFilename(
const std::string &path,
int(*transform)(
int) = 0);
67 std::string
noExt(
const std::string &file);
75 std::pair<std::wstring, std::wstring>
timeToString(time_t time);
79 bool moveFile(
const std::string &src,
const std::string &dest);
85 void setWindowIcon(
int winResource,
const std::string &unixPath);