summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/GameFile.cpp
AgeCommit message (Collapse)Author
2026-02-15Added Triforce supportcrediar
2026-01-25Remove unused importsMartino Fontana
Yellow squiggly lines begone! Done automatically on .cpp files through `run-clang-tidy`, with manual corrections to the mistakes. If an import is directly used, but is technically unnecessary since it's recursively imported by something else, it is *not* removed. The tool doesn't touch .h files, so I did some of them by hand while fixing errors due to old recursive imports. Not everything is removed, but the cleanup should be substantial enough. Because this done on Linux, code that isn't used on it is mostly untouched. (Hopefully no open PR is depending on these imports...)
2025-05-03Common and VideoCommon: Change texture data from std::vector to ↵Jordan Woyak
Common::UniqueBuffer.
2025-04-21Implement Triforce ID parsingZopolis4
2025-03-10GCC: Remedy NRVO Failsmitaclaw
Using the `-Wnrvo` flag introduced by GCC 14, I identified a few places where NRVO was clearly intended, but is fumbled.
2024-10-27Merge pull request #13096 from mitaclaw/ranges-modernization-7-rewriteJMC47
Ranges Algorithms Modernization - Rewrite
2024-10-19Simplify `std::copy` with `fmt::join`mitaclaw
2024-10-10Modernize `std::binary_search` with rangesmitaclaw
In VolumeVerifier.cpp, constructing a `std::string_view` of the volume's GameID is unnecessary, as `std::`(`ranges::`)`binary_search` supports heterogeneous lookup. The usage in GameFile.cpp is a perfect example.
2024-10-10Modernize `std::is_sorted` with rangesmitaclaw
In OGLConfig.cpp, `std::views::reverse` is used rather than sorting using `std::ranges::greater` in order to parallel other instances of reverse iteration in the function.
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.