summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Enums.cpp
AgeCommit message (Collapse)Author
2026-02-15Enums: Unhandled switch statementJoshua Vandaële
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-04-22Merge pull request #13540 from tygyh/DiscIO-Remove-redundant-qualifiersJordan Woyak
DiscIO: Remove redundant qualifiers
2025-04-22DiscIO: Remove redundant qualifiersDr. Dystopia
2025-04-21Add Triforce platform and preliminary boot.id parsingZopolis4
2023-11-28Tool/Header: Add JSON output mode; game dataLexi Larkin
2022-10-22Show vWii System Menu version in Menu BarGaryOderNichts
2021-12-10Treewide: Adjust order of includesPokechu22
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-03-27Add utility functions for GameCube language codesJosJuice
2020-10-22DiscIO: Migrate logging over to fmtLioncash
Eliminates quite a bit of the PRI* macros used for handling 64-bit values.
2019-12-29GetSysMenuVersionString(): Use a char instead of std::string for the region ↵David Korth
letter. Append the region letter after determining the version number.
2019-11-08Merge pull request #8367 from JosJuice/missing-company-idsConnor McLaughlin
DiscIO: Add missing company IDs
2019-09-25DiscIO: Make company names match GameTDB's list betterJosJuice
2019-09-22DiscIO: Add missing company IDsJosJuice
2019-09-21Add Wii Mini system menu version detectionDexter Gerig
2019-08-09Also override the SYSCONF country settingJosJuice
Fixes https://bugs.dolphin-emu.org/issues/10066
2019-07-15Fix VolumeVerifier considering Wii Menu WADs to have wrong regionJosJuice
2019-06-19Common/MsgHandler: Namespace code within the Common namespaceLioncash
Closes another gap in the Common library where code isn't being namespaced under it.
2019-05-06Reformat repo to clang-format 7.0 rulesTechjar
2019-03-30DiscIO: Make Korean GC checks in Enums.cpp less fragileJosJuice
2018-10-19DiscIO: Restore the Korean case in CountryCodeToCountryJosJuice
I must've goofed or something last time I changed this.
2018-10-14Show 1.0U instead of 1.0 for Wii Menu 1.0JosJuice
As suggested by https://github.com/dolphin-emu/dolphin/pull/7487#issuecomment-429528407
2018-10-12Treat Wii Menu 1.0 as NTSC-UJosJuice
See the comments of https://github.com/dolphin-emu/dolphin/pull/7440.
2018-10-12DiscIO: Rename RegionSwitch/CountrySwitchJosJuice
Callers don't need to know that these functions are implemented with a switch statement.
2018-10-12DiscIO: Add more RegionSwitch/CountrySwitch commentsJosJuice
2018-10-12DiscIO: Fix CountrySwitch's 'M' comment (and clarify other VC comments)JosJuice
2018-10-08DiscIO: Fix the 'W', 'X', 'Y' and 'Z' country codesJosJuice
These country codes have the unfortunate property that they are used by Wii disc games in two different regions. We already correct for this in VolumeGC::GetCountry and VolumeWii::GetCountry, so this commit shouldn't really have any effect on how the game list behaves, but it will be useful if we in the future would want to call CountrySwitch directly without having extra code in the caller for handling region weirdness.
2018-10-08DiscIO: Add the missing 'V' country codeJosJuice
2018-10-08DiscIO: Move the Korean GC mess out of VolumeGCJosJuice
2018-10-05DiscIO: Merge RegionSwitchGC and RegionSwitchWiiJosJuice
2018-03-31DiscIO: Don't use all uppercase for enum valuesJosJuice
Also removing some prefixes that we don't need now that we're using enum classes instead of plain enums.
2018-03-09Unify ISOFile (wx) with GameFile (Qt) and put it in UICommonJosJuice
The original reason I wanted to do this was so that we can replace the Android-specific code with this in the future, but of course, just deduplicating between DolphinWX and DolphinQt2 is nice too. Fixes: - DolphinQt2 showing the wrong size for split WBFS disc images. - DolphinQt2 being case sensitive when checking if a file is a DOL/ELF. - DolphinQt2 not detecting when a Wii banner has become available after the game list cache was created. Removes: - DolphinWX's ability to load PNGs as custom banners. But it was already rather broken (see https://bugs.dolphin-emu.org/issues/10365 and https://bugs.dolphin-emu.org/issues/10366). The reason I removed this was because PNG decoding relied on wx code and we don't have any good non-wx/Qt code for loading PNG files right now (let's not use SOIL), but we should be able to use libpng directly to implement PNG loading in the future. - DolphinQt2's ability to ignore a cached game if the last modified time differs. We currently don't have a non-wx/Qt way to get the time.
2017-10-22Update maker information to match the wikiTony Drake
This updates the maker data to (mostly) mirror that of the Wiki: https://wiki.dolphin-emu.org/index.php?title=GameIDs Only maker ids from that page are now included in Dolphin. This means no homebrew/unofficial makers. Also, separate multiple maker names with a slash
2017-10-08Add some missing WiiWare makersFoxP
Some of my WiiWare games does not have a maker : - Blue's Journey : EAFPJ8 - Magician Lord : EACPJ8 - The King of Fighters '94 : EAGPJ8 - The Last Ninja : C9XPGX - World Games : C9ZPGX
2017-10-01Add some missing WiiWare makersTony Drake
I noticed the Strong Bad games, FAST - Racing League, and Tetris Party were lacking info in the game lists' maker column. This adds the information based on the games' MakerID.
2017-07-16Fix RegionSwitchGC for the value 'K'JosJuice
Korean GameCube releases have their region set to NTSC-J.
2017-06-28DiscIO: Add convenience methods IsDisc and IsWii for Platform enumJosJuice
2017-06-27Fix references to CACHE_REVISION in DiscIO commentsJosJuice
The ISOFile.cpp one has been moved, and the GameFile.cpp one isn't used for anything because DolphinQt2 doesn't support caching yet.
2017-03-24Clarify the log message for unknown Wii Menu regionsJosJuice
Saying just "title" made it seem like we are showing the title ID, but what we actually are showing is the title version.
2017-03-23DiscIO: add empty UNKNOWN_REGION case (fixes warning)Michael Maltese
Fixes warning: ``` dolphin/Source/Core/DiscIO/Enums.cpp:171:11: warning: enumeration value 'UNKNOWN_REGION' not handled in switch [-Wswitch] switch (GetSysMenuRegion(title_version)) ^ ```
2017-03-18Return a more meaningful type from GetSysMenuRegionJosJuice
2017-03-18Fix GetSysMenuRegion's handling of Wii Menu 1.0JosJuice
This was a regression in 58bd129.
2017-03-18Display nicer version strings for the Wii MenuJosJuice
The Tools > Load System Menu option displays the version of the installed Wii Menu. This commit changes the way we display that version, like so: "Load System Menu 514P" -> "Load System Menu 4.3E" The numbers are from http://wiibrew.org/wiki/System_Menu
2017-03-16Simplify GetSysMenuRegionJosJuice
2017-01-02SConfig: Replace bNTSC with m_regionJosJuice
This lets us get rid of VideoInterface::SetRegionReg, a huge hack in CEXIMemoryCard, and some minor things.
2017-01-02DiscIO: Add GetRegion function and Region enumJosJuice
Instead of needing different switch cases for converting countries to regions in multiple places, we now only need a single country-to-region switch case (in DiscIO/Enums.cpp), and we get a nice Region type.
2016-08-11Run clang-format on missed filesLéo Lam
`clang-format`s files that lint missed because of the bug. Fortunately, not much.
2016-07-13Move DiscIO enums to a new fileJosJuice
At first there weren't many enums in Volume.h, but the number has been growing, and I'm planning to add one more for regions. To not make Volume.h too large, and to avoid needing to include Volume.h in code that doesn't use volume objects, I'm moving the enums to a new file. I'm also turning them into enum classes while I'm at it.