FileSystem::status STDFileSystem::_deleteFile(const char* file) { char buff[512]; _getFullPath(file, buff); #if __S3E__ return (s3eFileDelete(buff) == S3E_RESULT_SUCCESS ? status_ok : status_error); #elif OXYGINE_EDITOR return status_error; #elif _WIN32 std::wstring wsPath = utf8tows(buff); return DeleteFileW(wsPath.c_str()) ? status_ok : status_error; #else return (::remove(buff) != -1 ? status_ok : status_error); #endif return status_error; }
bool CIwGamePlatformFileMarm::Delete(const char* filename) { return s3eFileDelete(filename) == S3E_RESULT_SUCCESS; }