예제 #1
0
파일: WFSI.cpp 프로젝트: MerryMage/dolphin
s32 WFSI::CancelPatchImport(bool continue_install)
{
  m_arc_unpacker.Reset();

  if (!continue_install)
  {
    File::DeleteDirRecursively(WFS::NativePath(
        StringFromFormat("/vol/%s/title/%s/%s/_patch", m_device_name.c_str(),
                         m_current_group_id_str.c_str(), m_current_title_id_str.c_str())));

    if (m_patch_type == PatchType::PATCH_TYPE_2)
    {
      // Move back _default.dol to default.dol.
      const std::string content_dir =
          StringFromFormat("/vol/%s/title/%s/%s/content", m_device_name.c_str(),
                           m_current_group_id_str.c_str(), m_current_title_id_str.c_str());
      File::Rename(WFS::NativePath(content_dir + "/_default.dol"),
                   WFS::NativePath(content_dir + "/default.dol"));
    }
  }

  DeleteTemporaryFiles(m_device_name, m_current_title_id);

  return IPC_SUCCESS;
}
예제 #2
0
파일: WFSI.cpp 프로젝트: MerryMage/dolphin
s32 WFSI::CancelTitleImport(bool continue_install)
{
  m_arc_unpacker.Reset();

  if (!continue_install)
  {
    File::DeleteDirRecursively(
        WFS::NativePath(StringFromFormat("/vol/%s/_install", m_device_name.c_str())));
  }

  DeleteTemporaryFiles(m_device_name, m_import_title_id);

  return IPC_SUCCESS;
}
예제 #3
0
void* ClangCleanerThread::Entry()
{
    wxLogNull nl;
    size_t ticks (0);
    while ( !TestDestroy() ) {
        
        if ( ticks % 5 == 0 ) {
            // Clear all temporary files created for clang parsing
            DeleteStalePCHFiles();
            
            // Clear stale .pch files from %TMP%
            // libclang does not clear properly any stale files under %TMP% (this is at least under Windows)
            DeleteTemporaryFiles();
        }
        wxThread::This()->Sleep( 1000 );
        ++ticks;
    }
    return NULL;
}