static String getResourceFullPath(const ResourcePtr& res) { const String& path = res->getPath(); const String& fullPath = PathGetCurrentDir() + PathGetSeparator() + path; return fullPath; }
static bool isUnderVersionControl(const ResourcePtr& res) { #if 0 Stream* stream = StreamCreateFromFile( AllocatorGetHeap(), res->getPath() ); /*, StreamMode::Read );*/ const String& fullPath = PathGetCurrentDir() + PathGetSeparator() + PathGetBase( FileGetFullPath(&file) ) + PathGetSeparator() + ".svn"; FileClose(&file); return wxFileName::DirExists(fullPath); #endif return false; }