summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/GameFile.cpp
AgeCommit message (Collapse)Author
2024-04-14GameList: Show (Disc 1) for first disc of two-disc gamesDentomologist
Append disc label to the first disc of two-disc games too, rather than only labelling the second disc.
2023-12-11GameFile: Default GameBanner operator==Lioncash
Same behavior, but less code.
2023-06-13Common: Convert FromWhichRoot to enum classDentomologist
2023-05-10UICommon:DiscordPresence: Use GameTDB covers for RPCSketch
2022-08-04Merge pull request #10932 from JosJuice/nfsAdmiral H. Curtiss
DiscIO: Add support for the NFS format
2022-08-04DiscIO: Replace IsDataSizeAccurate with GetDataSizeTypeJosJuice
Previously, we had WBFS and CISO which both returned an upper bound of the size, and other formats which returned an accurate size. But now we also have NFS, which returns a lower bound of the size. To allow VolumeVerifier to make better informed decisions for NFS, let's use an enum instead of a bool for the type of data size a blob has.
2022-07-30Move to C++20 for non-MSVC compilersTillmann Karras
2022-07-26introduce wrapper for SHA1 functionalityShawn Hoffman
2022-05-24NetPlay: Make messages about non-matching games clearerPokechu22
2022-01-16GameList: Convert file extensions to lowercasePokechu22
This means that dol/elf files with upercase extensions (e.g. BOOT.DOL) are properly detected.
2022-01-16Use Common::ToLower and Common::ToUpperPokechu22
2022-01-09Treewide: Remove unused inclusions of <cinttypes>Pokechu22
Most of these became unneeded when fmt was introduced.
2022-01-02Core: Add a Maker field for GameModDescriptors.Admiral H. Curtiss
2021-12-12GameFile: Calculate a sensible sync hash for mod descriptors.Admiral H. Curtiss
2021-12-12GameList: Show game mod descriptor .json files in game list.Admiral H. Curtiss
2021-07-11GameFile: don't download covers for empty game IDsTillmann Karras
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-02-10Merge pull request #9461 from cbartondock/masterLéo Lam
Working Game IDs for Elf/Dol files
2021-01-30Working Game IDs for Elf/Dol filescbartondock
2021-01-27rename Common/File to Common/IOFileShawn Hoffman
2020-10-19Android: Allow disabling cover downloadingJosJuice
In case someone wants to be very careful with how much bandwidth they use or with what data GameTDB.com collects on you. This is already an option in DolphinQt (though in DolphinQt it will switch entirely from using covers to banners when turned off).
2020-10-19Add helper function for fmt::format(GetStringT(...JosJuice
2020-10-06Show NKitness in file format stringJosJuice
To make people more aware that they're not using a normal disc image.
2020-09-16Android: Only allow conversion when appropriateJosJuice
2020-08-02Allow translations and custom names in GameFile::GetNetPlayNameJosJuice
There is no longer any major reason for why this function would need to return the same result for all players.
2020-08-02Make netplay's "same game" check more robustJosJuice
Instead of comparing the game ID, revision, disc number and name, we can compare a hash of important parts of the disc including all the aforementioned data but also additional data such as the FST. The primary reason why I'm making this change is to let us catch more desyncs before they happen, but this should also fix https://bugs.dolphin-emu.org/issues/12115. As a bonus, the UI can now distinguish the case where a client doesn't have the game at all from the case where a client has the wrong version of the game.
2020-07-19DolphinQt: Show WAD as "WAD" instead of "" in file format columnJosJuice
https://bugs.dolphin-emu.org/issues/12190
2020-07-04DiscIO: Add Volume::IsDatelDiscJosJuice
2020-06-21Show file format details in game propertiesJosJuice
2020-04-24DolphinQt: Make scrubbing configurable in convert dialogJosJuice
2020-04-24DolphinQt: Turn the compress/decompress action into a dialogJosJuice
2020-03-16StringUtil: Add PathToFileName functionJosJuice
2019-11-23UICommon: Make use of fmt where applicableLioncash
Continues the migration to using fmt. Notably, this allows safely converting a map within USBUtils over to containing string view instances, rather than std::string instances, as fmt safely handles the formatting of string views.
2019-09-25GameFile: Use enums for custom/length parametersJosJuice
2019-09-25GameFile: Support HBC-style XML metadataJosJuice
This feature was originally exclusive to the previous iteration of DolphinQt (the one that was the reason for the current iteration being named DolphinQt2 initially). https://bugs.dolphin-emu.org/issues/8949
2019-08-21UICommon: Remove Android hacks from GameFileJosJuice
2019-08-09Replace "Override Language on NTSC Games" with "Allow Mismatched Region ↵JosJuice
Settings" This new setting is like Override Language on NTSC Games, except instead of only applying to the GameCube language setting, it also applies to the Wii language setting. Fixes https://bugs.dolphin-emu.org/issues/11299
2019-07-18DiscIO: Add functions CreateDisc and CreateWADJosJuice
...in addition to the existing function CreateVolume (renamed from CreateVolumeFromFilename). Lets code easily add constraints such as not letting the user select a WAD file when using the disc changing functionality.
2019-05-29Common/FileUtil: Make WriteStringToFile consistent with ReadFileToStringLioncash
Makes the parameter ordering consistent and less error-prone.
2019-05-28UICommon/GameFile: Make COVER_URL a plain C stringLioncash
Same behavior but doesn't take up 8 bytes in the executable to store a pointer. While we're at it, move it into an anonymous namespace within the UICommon namespace.
2019-05-28UICommon/GameFile: Remove unused includesLioncash
Nothing within the source file makes use of anything in those includes, so they can be removed.
2019-05-28UICommon/GameFile: Remove unnecessary value() calls in DownloadDefaultCover()Lioncash
We already check ahead of time if the optional contains a value within it before accessing it, so we don't need to use the throwing value() accessor. We can just directly use operator->
2019-05-28UICommon/GameFile: Deduplicate string paths where applicableLioncash
Rather than construct strings twice, we can just construct it once and reuse it. While we're at it, we can move variables closer to where they're actually used within DownloadDefaultCover()
2019-05-28UICommon/GameFile: std::move std::string argument in constructorLioncash
Allows for calling code to move the argument into the constructor, avoiding a copy.
2019-05-28UICommon/GameFile: Default no-arg constructor and destructor within the cpp fileLioncash
A GameFile instance contains quite a lot of non-trivial types, so default construction and destruction in the same translation unit.
2019-05-28UICommon/GameFile: Use in-class initializers where applicableLioncash
Allows deduplicating code within the constructor initializer list.
2019-05-01Merge pull request #8013 from JosJuice/titledatabase-japanese-gcLéo Lam
Show Japanese GC games in Japanese when using TitleDatabase
2019-04-27Make GameFile::GetUniqueIdentifier independent of language settingJosJuice
My bad. We need this in the situation where two users are using different languages and the game has a different name in each language.
2019-04-20Show Japanese GC games in Japanese when using TitleDatabaseJosJuice
Because the GC language setting cannot be set to Japanese, we need a special condition for Japanese GC games. I accidentally removed it in PR 7816, but here it is again in a new form. We could do the same thing with Korean GC games if we want to (which we couldn't do before PR 7816), but due to how spotty GameTDB is with having Korean names for Korean GC releases, things will be more consistent if we just use English for them.
2019-02-25TitleDatabase: Don't merge multiple languages into same mapJosJuice
Instead of selecting languages based on the user config at the time of TitleDatabase creation and merging the different languages into one map for GC and one map for Wii, have one map for each language, and have the caller supply the language they want. This makes us not need the IsGCTitle function, which is inaccurate for IDs that start with D.