summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO
AgeCommit message (Collapse)Author
2015-09-23Merge pull request #2829 from JosJuice/fix-wii-fst-size-2Lioncash
Fix reading Wii FST size (for real this time)
2015-09-07Reinstate format string.yerejm
Avoid the consequences in the unlikely event the path includes a %.
2015-08-18DiscScrubber: Add another nullptr checkJosJuice
2015-07-20DiscIO: Check if m_Disc is null in ParsePartitionData()Trace Bullet
2015-07-06WbfsBlob: Don't enter an infinite loop when reading beyond end of discJosJuice
read_size remained 0 when the "Read beyond end of disc" error occurs, which made the while (nbytes) loop never end. As a fix, SeekToCluster now explicitly sets available to 0 when the error occurs, and Read checks for it.
2015-06-08Volume: Add prefer_long parameter to GetNamesJosJuice
GC games with long names store two variations of the name in opening.bnr. This makes the shorter of those names available. For volumes other than GC discs, prefer_long is ignored.
2015-06-07Merge pull request #2512 from JosJuice/bnr-size-matchRyan Houdek
VolumeGC: Check that opening.bnr size matches type
2015-06-04Volume: Return volume type as an enumJosJuice
ISOFile and GameFile were using IsWiiDisc() and IsWadFile() to set an enum value. The volume might as well return an enum directly. I increased the Qt CACHE_REVISION because m_platform now is saved as u32 instead of int, but increasing the wx CACHE_REVISION is not necessary.
2015-06-04Use PanicAlertT instead of PanicAlert when appropriateJosJuice
I tried to change messages that contained instructions for users, while avoiding messages that are so technical that most users wouldn't understand them even if they were in the right language.
2015-06-03VolumeGC: Check that opening.bnr size matches typeJosJuice
The old code would accept files with BNR1 length and BNR2 type, which can be a problem when GetNames tries to read the extra BNR2 strings.
2015-06-02Merge pull request #2484 from JosJuice/volume-return-typescomex
Volume: Use more appropriate types for some returned values
2015-06-02Merge pull request #2338 from JosJuice/getfilelist-returncomex
Filesystem: Return file list reference instead of modifying argument
2015-06-02Merge pull request #1556 from comex/project-morationcomex
Rudimentary version of Wii IPC determinism. Ported from my old udpnet branch.
2015-05-29Volume: Use more appropriate types for some returned valuesJosJuice
Disc number is changed from bool to u8, and revision is changed from int to u16 (WADs can use all 16 bits, but discs can only use 8 bits).
2015-05-29Volume: Mark ReadWiiNames parameter as constJosJuice
I forgot it when I added the method.
2015-05-28Pass strings by const reference where possibleLioncash
2015-05-28Add a mode to use a dummy Wii NAND.comex
Eventually, netplay will be able to use the host's NAND, but this could still be useful in some cases; for TAS it definitely makes sense to have a way to avoid using any preexisting NAND. In terms of implementation: remove D_WIIUSER_IDX, which was just WIIROOT + "/", as well as some other indices which are pointless to have as separate variables rather than just using the actual path (fixed, since they're actual Wii NAND paths) at the call site. Then split off D_SESSION_WIIROOT_IDX, which can point to the dummy NAND directory, from D_WIIROOT_IDX, which always points to the "real" one the user configured.
2015-05-28Rewrite FileSearch and improve ScanDirectoryTree.comex
- FileSearch is now just one function, and it converts the original glob into a regex on all platforms rather than relying on native Windows pattern matching on there and a complete hack elsewhere. It now supports recursion out of the box rather than manually expanding into a full list of directories in multiple call sites. - This adds a GCC >= 4.9 dependency due to older versions having outright broken <regex>. MSVC is fine with it. - ScanDirectoryTree returns the parent entry rather than filling parts of it in via reference. The count is now stored in the entry like it was for subdirectories. - .glsl file search is now done with DoFileSearch. - IOCTLV_READ_DIR now uses ScanDirectoryTree directly and sorts the results after replacements for better determinism.
2015-05-25Merge pull request #2361 from JosJuice/filesystem-read32Ryan Houdek
Remove CFileSystemGCWii::Read32
2015-05-25Merge pull request #2439 from JosJuice/company-from-idRyan Houdek
Use an ID-to-name map when volume has no company string
2015-05-25Merge pull request #2339 from JosJuice/fix-wii-fst-sizeRyan Houdek
Fix reading Wii FST size
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-05-24Use an ID-to-name map when volume has no company stringJosJuice
This is written so that the result of GetCompanyFromID never is cached (except on Android?). Caching is unnecessary because the string can be obtained quickly at runtime, and not caching it means that the cache doesn't have to be invalidated when GetCompanyFromID is edited.
2015-05-22WiiWad: Use correct form of delete for arraysLioncash
2015-05-11Volume: Rename GetName to GetInternalNameJosJuice
This is intended to better separate it from GetNames and to clarify that this name originally wasn't meant to be shown to users. The ISOProperties GUI is also updated, mainly because labeling the long banner name "short name" was confusing.
2015-05-03Read opening.bnr to get names from Wii discsJosJuice
This makes Dolphin display the same names as the Disc Channel.
2015-05-03FileSystemGCWii: Allow reading files partiallyJosJuice
2015-05-03Remove CFileSystemGCWii::Read32JosJuice
A function that does the same thing was added to IVolume in 4cd00e3.
2015-04-28Get rid of banner loaders and move their functionality to volumesJosJuice
Having some data available in banner loaders and some other data data available in volumes gets messy, especially with GetNames(), which is available in both but returns different results depending on which one is used. This change drops support for reading names and descriptions from Wii save data.
2015-04-28Fix reading Wii FST sizeJosJuice
2015-04-28Filesystem: Return file list reference instead of modifying argumentJosJuice
2015-04-23Return GetNames languages, to avoid hardcoded language lists in callersJosJuice
This makes the code cleaner and also leads to some user-visible changes: The wx game properties will no longer let the user select WAD languages that don't have any names. The Qt game list will now display names using the languages set in the configuration instead of always using English for PAL GC games and Japanese for WADs. If a WAD doesn't have a name in the user's preferred language, English is now selected as a fallback before Japanese.
2015-04-20DiscIO: Add a missing header to Volume.hLioncash
2015-04-21Merge pull request #2225 from JosJuice/remove-volumehandlerMatthew Parlane
Get rid of VolumeHandler
2015-04-08Move down Country_WorldStevoisiak
The countries are sorted alphabetically. This should have been changed when the variable was renamed from Country_International to Country_World
2015-04-05Get rid of VolumeHandlerJosJuice
VolumeHandler is basically just a wrapper around a single IVolume object. This change moves that object to DVDInterface, moves the Read32 function to IVolume, and gets rid of the rest of VolumeHandler.
2015-03-17Improve error handling in DiscIO::CompressFileToBlob and DecompressBlobToFileMichael Ehrenreich
2015-03-09Don't construct NANDContentLoader classes before Main.cpp runsJosJuice
The cUIDsys constructor writes to <Wii user path>/sys/uid.sys. This must not be done before Main.cpp sets the correct user paths.
2015-03-05Merge pull request #2113 from Stevoisiak/VolumeCleanupLioncash
Basic volume code cleanup
2015-03-03FileMonitor: Check log level in addition to FileMonitor checkboxJosJuice
This is good for performance when FileMontior is selected but the log level only is set to notice or warning. The ability to do this wasn't available until recently: 1ed41672f50c9cfe7aa4ab5aa3b73f7e41029124
2015-02-28DiscIO: Get rid of unsafe castStevoisiak
2015-02-28VolumeWad: change titlever to title_versionStevoisiak
2015-02-28General FormattingStevoisiak
2015-02-26VolumeWiiCrypted: Implement IsDiscTwo()Stevoisiak
Allows us to check if a Wii game is marked as Disc 2.
2015-02-26Rearranged Volume header filesStevoisiak
2015-02-26De-capitalized CountryCodeStevoisiak
2015-02-26VolumeWad: Move country identification to GetCountry()Stevoisiak
Brings the code more in line with the rest of the game volume code
2015-02-26VolumeWad: Private variables for offset valuesStevoisiak
2015-02-23Merge pull request #1942 from Buddybenj/No-Introskidau
Replace Country Names With No-Intro Names