Refactor platform calls to File

This commit is contained in:
Ted John committed 2016-12-16 01:25:04 +00:00
1 parent 921c7596df
commit 2c0786eb24
3 files changed
+22 -9

No files matched your search

+15
View File
@@ -21,8 +21,23 @@
#include "FileStream.hpp"
#include "String.hpp"
extern "C"
{
#include "../platform/platform.h"
}
namespace File
{
bool Copy(const utf8 * srcPath, const utf8 * dstPath, bool overwrite)
{
return platform_file_copy(srcPath, dstPath, overwrite);
}
bool Delete(const utf8 * path)
{
return platform_file_delete(path);
}
void * ReadAllBytes(const utf8 * path, size_t * length)
{
void * result = nullptr;