dolphin/Source/Core/DiscIO
cristian64 789e516097 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-06-29 22:36:29 +01:00
..
Blob.cpp
Blob.h
CachedBlob.cpp
CachedBlob.h
CISOBlob.cpp
CISOBlob.h
CMakeLists.txt
CompressedBlob.cpp
CompressedBlob.h
DirectoryBlob.cpp
DirectoryBlob.h
DiscExtractor.cpp
DiscExtractor.h
DiscScrubber.cpp
DiscScrubber.h
DiscUtils.cpp
DiscUtils.h
Enums.cpp
Enums.h
FileBlob.cpp
FileBlob.h
Filesystem.cpp
Filesystem.h
FileSystemGCWii.cpp
FileSystemGCWii.h
GameModDescriptor.cpp
GameModDescriptor.h
LaggedFibonacciGenerator.cpp
LaggedFibonacciGenerator.h
MultithreadedCompressor.h
NANDImporter.cpp
NANDImporter.h
NFSBlob.cpp
NFSBlob.h
RiivolutionParser.cpp
RiivolutionParser.h
RiivolutionPatcher.cpp
RiivolutionPatcher.h
ScrubbedBlob.cpp
ScrubbedBlob.h
SplitFileBlob.cpp
SplitFileBlob.h
TGCBlob.cpp
TGCBlob.h
Volume.cpp
Volume.h Core: Add Volume::GetSimulatedMemorySize(). 2026-06-29 22:36:29 +01:00
VolumeDisc.cpp Core: Add Volume::GetSimulatedMemorySize(). 2026-06-29 22:36:29 +01:00
VolumeDisc.h Core: Add Volume::GetSimulatedMemorySize(). 2026-06-29 22:36:29 +01:00
VolumeFileBlobReader.cpp
VolumeFileBlobReader.h
VolumeGC.cpp
VolumeGC.h
VolumeVerifier.cpp
VolumeVerifier.h
VolumeWad.cpp
VolumeWad.h Core: Add Volume::GetSimulatedMemorySize(). 2026-06-29 22:36:29 +01:00
VolumeWii.cpp
VolumeWii.h
WbfsBlob.cpp
WbfsBlob.h
WIABlob.cpp
WIABlob.h
WIACompression.cpp
WIACompression.h
WiiEncryptionCache.cpp
WiiEncryptionCache.h
WiiSaveBanner.cpp
WiiSaveBanner.h