dolphin/Source/Core/DiscIO
cristian64 24ad562871 Core: Add Volume::GetSimulatedMemorySize().
The data structure of the `bi2.bin` file in which the simulated memory
size is set:

> **13.2  Disk header Information**
>
> this is loaded to the Address in `0x800000f4` when a disc is initialized by the IPL
>
> |  offset  | end | size | Description           |
> | :------: | --- | :--: | --------------------- |
> | `0x0000` |     |   4  | Debug-monitor Size    |
> | `0x0004` |     |   4  | Simulated Memory Size |
> | `0x0008` |     |   4  | Argument offset       |
> | `0x000c` |     |   4  | Debug flag            |
> | `0x0010` |     |   4  | Track Location        |
> | `0x0014` |     |   4  | Track size            |
> | `0x0018` |     |   4  | Countrycode           |
> | `0x001c` |     |   4  | ?                     |

See https://hitmen.c02.at/files/yagcd/yagcd/chap13.html#sec13.2.

Most GameCube games set the value to `24 MiB`, which matches the
physical memory size. Most Wii games set the value to `0 MiB` (unset).
The debug build of _Mario Kart: Double Dash!!_ is one game that sets the
value to `48 MiB`.
2026-07-11 23:02:54 +01:00
..
Blob.cpp
Blob.h DiscIO: Add IsCached virtual function to BlobReader. 2026-02-15 20:14:15 -06:00
CachedBlob.cpp DiscIO: Add IsCached virtual function to BlobReader. 2026-02-15 20:14:15 -06:00
CachedBlob.h
CISOBlob.cpp
CISOBlob.h
CMakeLists.txt
CompressedBlob.cpp Improve usage of std::move and const references parameters 2026-04-17 12:39:46 +02:00
CompressedBlob.h Improve usage of std::move and const references parameters 2026-04-17 12:39:46 +02:00
DirectoryBlob.cpp Merge pull request #14599 from naari3/fix/directoryblob-gc-triforce-alignment 2026-06-28 11:03:03 +02:00
DirectoryBlob.h Merge pull request #14599 from naari3/fix/directoryblob-gc-triforce-alignment 2026-06-28 11:03:03 +02:00
DiscExtractor.cpp
DiscExtractor.h Remove unused imports 2026-01-25 16:12:15 +01:00
DiscScrubber.cpp Remove unused imports 2026-01-25 16:12:15 +01:00
DiscScrubber.h Remove unused imports 2026-01-25 16:12:15 +01:00
DiscUtils.cpp Use more std::span arguments 2026-03-23 23:55:09 +01:00
DiscUtils.h Use more std::span arguments 2026-03-23 23:55:09 +01:00
Enums.cpp Enums: Unhandled switch statement 2026-02-15 20:14:15 -06:00
Enums.h Added Triforce support 2026-02-15 20:14:14 -06:00
FileBlob.cpp
FileBlob.h
Filesystem.cpp
Filesystem.h Remove unused imports 2026-01-25 16:12:15 +01:00
FileSystemGCWii.cpp Remove unused imports 2026-01-25 16:12:15 +01:00
FileSystemGCWii.h Remove unused imports 2026-01-25 16:12:15 +01:00
GameModDescriptor.cpp
GameModDescriptor.h
LaggedFibonacciGenerator.cpp
LaggedFibonacciGenerator.h
MultithreadedCompressor.h
NANDImporter.cpp NANDImporter: Abort extraction if a NAND FST entry is visited more than once 2026-06-04 18:48:19 +02:00
NANDImporter.h NANDImporter: Abort extraction if a NAND FST entry is visited more than once 2026-06-04 18:48:19 +02:00
NFSBlob.cpp Use more std::span arguments 2026-03-23 23:55:09 +01:00
NFSBlob.h Use more std::span arguments 2026-03-23 23:55:09 +01:00
RiivolutionParser.cpp Use more std::span arguments 2026-03-23 23:55:09 +01:00
RiivolutionParser.h
RiivolutionPatcher.cpp Replace find(x) != npos with contains(x) - Core 2026-04-20 09:36:08 +02:00
RiivolutionPatcher.h
ScrubbedBlob.cpp
ScrubbedBlob.h
SplitFileBlob.cpp
SplitFileBlob.h
TGCBlob.cpp
TGCBlob.h
Volume.cpp Use more std::span arguments 2026-03-23 23:55:09 +01:00
Volume.h Core: Add Volume::GetSimulatedMemorySize(). 2026-07-11 23:02:54 +01:00
VolumeDisc.cpp Core: Add Volume::GetSimulatedMemorySize(). 2026-07-11 23:02:54 +01:00
VolumeDisc.h Core: Add Volume::GetSimulatedMemorySize(). 2026-07-11 23:02:54 +01:00
VolumeFileBlobReader.cpp
VolumeFileBlobReader.h
VolumeGC.cpp Triforce: Check only first byte in region flag. 2026-03-15 18:43:00 +00:00
VolumeGC.h Added Triforce support 2026-02-15 20:14:14 -06:00
VolumeVerifier.cpp VolumeVerifier: Remove SystemNotAvailable 2026-06-22 08:36:50 +02:00
VolumeVerifier.h VolumeVerifier: Remove SystemNotAvailable 2026-06-22 08:36:50 +02:00
VolumeWad.cpp DiscIO: Add extra IsValid checks for VolumeWAD::m_tmd 2026-04-20 20:18:36 +02:00
VolumeWad.h Core: Add Volume::GetSimulatedMemorySize(). 2026-07-11 23:02:54 +01:00
VolumeWii.cpp Remove unused imports 2026-01-25 16:12:15 +01:00
VolumeWii.h
WbfsBlob.cpp
WbfsBlob.h
WIABlob.cpp Use more std::span arguments 2026-03-23 23:55:09 +01:00
WIABlob.h Use more std::span arguments 2026-03-23 23:55:09 +01:00
WIACompression.cpp Remove unused imports 2026-01-25 16:12:15 +01:00
WIACompression.h
WiiEncryptionCache.cpp
WiiEncryptionCache.h Remove unused imports 2026-01-25 16:12:15 +01:00
WiiSaveBanner.cpp Remove unused imports 2026-01-25 16:12:15 +01:00
WiiSaveBanner.h