DiscScrubber.h 807 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2008 Dolphin Emulator Project
  2. // Licensed under GPLv2+
  3. // Refer to the license.txt file included.
  4. // DiscScrubber removes the garbage data from discs (currently Wii only) which
  5. // is on the disc due to encryption
  6. // It could be adapted to GameCube discs, but the gain is most likely negligible,
  7. // and having 1:1 backups of discs is always nice when they are reasonably sized
  8. // Note: the technique is inspired by Wiiscrubber, but much simpler - intentionally :)
  9. #pragma once
  10. #include <string>
  11. #include "Common/CommonTypes.h"
  12. namespace File { class IOFile; }
  13. namespace DiscIO
  14. {
  15. namespace DiscScrubber
  16. {
  17. bool SetupScrub(const std::string& filename, int block_size);
  18. size_t GetNextBlock(File::IOFile& in, u8* buffer);
  19. void Cleanup();
  20. } // namespace DiscScrubber
  21. } // namespace DiscIO