summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/DiscScrubber.cpp
AgeCommit message (Collapse)Author
2015-12-14DiscIO: Improve DiscScrubber::ReadFromVolume error handlingJosJuice
2015-12-07DiscIO: Make factory methods return unique_ptrsLioncash
Rather than rely on the developer to do the right thing, just make the default behavior safely deallocate resources. If shared semantics are ever needed in the future, the constructor that takes a unique_ptr for shared_ptr can be used.
2015-11-17Merge pull request #3181 from JosJuice/scrub-directoriesScott Mansell
Don't reserve space for directories when scrubbing
2015-11-01DiscScrubber: Add another nullptr checkJosJuice
2015-10-18Remove length parameter from DiscScrubber::ReadFromVolumeJosJuice
The function only makes sense when the length is 4. All current callers use the length 4, so this change doesn't affect any behavior.
2015-10-17Remove DiscScrubber::GetDOLSize in favor of IFileSystem::GetBootDOLSizeJosJuice
IFileSystem::GetBootDOLSize acts the same. The only difference is that it reads the DOL offset on its own, but this change makes that optional.
2015-10-17Don't reserve space for directories when scrubbingJosJuice
The offset in a directory FileInfo is an FST offset, not a disc offset. Treating it as a disc offset doesn't make sense. Directories don't take up space outside of the FST, so they don't need to be marked as used. The old behavior may have prevented some scrubbable areas from being scrubbed.
2015-09-26Common: Remove other Common prefixed headers from Common.hLioncash
2015-09-11Partially revert "General: Toss out PRI macro usage"Lioncash
2015-09-05General: Toss out PRI macro usageLioncash
Now that VS supports more printf specifiers, these aren't necessary
2015-07-02DiscIO: Check if m_Disc is null in ParsePartitionData()Trace Bullet
2015-06-14Reinstate format string.yerejm
Avoid the consequences in the unlikely event the path includes a %.
2015-06-02Merge pull request #2338 from JosJuice/getfilelist-returncomex
Filesystem: Return file list reference instead of modifying argument
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-04-28Filesystem: Return file list reference instead of modifying argumentJosJuice
2014-12-28DiscIO: Replace "raw" functions with "decrypt" parametersJosJuice
This is intended to make decryption look less implicit in the code.
2014-11-27DiscIO: Avoid zeroing buffer when compressing gcz.Unknown W. Brackets
This saves 6% time.
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-08-31DiscIO: Move some raw pointers over to unique_ptrLioncash
2014-07-11mark all local variables as staticdegasus
2014-03-16Simplify file tree building for the filesystem view.Lioncash
Technically this also simplifies on disc filename building in general.
2014-03-14Kill off some usages of c_str.Lioncash
Also changes some function params, but this is ok. Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
2014-03-09clang-modernize -use-nullptrTillmann Karras
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
2014-02-22Make DiscIO/ mostly IWYU clean (and fix errors in rest of the project ↵Pierre Bourdon
detected by this change).
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-17Second and final pass of clearing out tabs.Lioncash
2014-02-13Turn loops into range-based formTillmann Karras
and some things suggested by cppcheck and compiler warnings.
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre