EmuCoreX
EmuCoreX emulates Sony PlayStation 2. It reads 13 files, 1 of them required: without a required file it does not start games.
About this profile
Technical notes
PlayStation 2 emulator for Android, package com.sbro.emucorex, arm64-v8a only,
minSdk 29. A Kotlin and Compose front end drives a PCSX2 tree vendored under
app/src/main/cpp/pcsx2 and pinned to v2.8.0, reached through the ARM_ANDROID
adapter that owns the JNI entry points. Frontends start the exported activity
com.sbro.emucorex.MainActivity, and ES-DE passes the disc as the intent data URI.
ref: app/build.gradle.kts:66-70, app/build.gradle.kts:97,
app/,
app/,
app/
The whole upstream core is linked, with three files swapped out of the target:
Achievements.cpp, Host/SDLAudioStream.cpp and Input/SDLInputSource.cpp are
removed and replaced by the adapter's own achievements, AAudio and OpenSL, and
input sources. OpenGL and Vulkan are on, pcsx2-qt is never added, and the
DX11 and DX12 renderers sit in the Windows branch of the core CMakeLists.
ref: app/,
app/,
app/,
app/
Storage. The data root is the app files directory. The app creates cache,
resources, inis, sstates and memcards under it, then copies the whole resources
asset tree out of the package into resources. The core is handed AppRoot,
DataRoot, Resources, Settings and Cache from that root, and the launcher sets
Folders for Bios, Savestates, MemoryCards, Textures, Cheats, Patches and Logs
per run.
ref: app/,
app/,
app/,
app/,
app/,
app/
A BIOS image is required and boot stops without one: LoadBIOS returning false makes VMManager report that a PlayStation 2 BIOS is needed. Only a GS dump replay skips the load. Detection is by content: the folder scan keeps files between 2 and 8 MB and accepts an image whose romdir carries a RESET entry followed by a readable ROMVER, the fifth ROMVER character giving the zone among Japan, USA, Europe, Asia, China, T10K, COH-H, Test and Free, with EXTINFO supplying the serial. An image named in the configuration is opened at its own path without the size filter. No hash is matched, and a console image is matched under no name.
MIN_BIOS_SIZE was halved to 2 MB to admit the Namco System 246/256 chip dumps,
which are 2 MB where a console image is 4. Three other changes came with it:
a COH-H board is region 11 rather than 8, its description is built from the
EXTINFO serial because Sony left the version and date fields identical across
those BIOSes, and the ROM window is zero-filled before the read so the unused
upper half cannot retain the previous image.
ref: app/,
app/,
app/ (COH-H region),
app/ (serial description),
app/,
app/,
app/ (ROM window cleared),
app/
An arcade launch starts from a manifest carrying an NM game id and a board
generation. It selects the board BIOS by name from the BIOS folder,
r27v1602f.8g for System 256 and Super 256 and r27v1602f.7d for System 246, and
keeps the configured BIOS with a warning when that file is absent. The dongle,
memory card, boot ELF, SRAM and media the manifest names are per-title content
resolved beside it.
ref: app/,
app/
The app runs its own gate before launching. A candidate is a .bin, .rom, .7d
or .8g between 512 KB and 8 MB. It passes when the core's IsBIOS accepts it,
reached through isBiosPath on the path or isBiosFd on /proc/self/fd, or when
its name carries scph, ps2, bios, rom or r27v1602f. The two extra extensions
are the board positions the Namco dumps carry instead of a conventional one.
ref: app/,
app/,
app/,
app/
A BIOS folder picked through the storage access framework is copied flat into
imported-bios under the external files directory, and Folders/Bios points there.
The import filter takes any .bin, .rom, .7d or .8g, plus .mec, .nvm and .elf
whose name carries one of the hints. Neither rom1 nor rom2 is an accepted
extension, and LoadExtraRom looks for exactly {bios}.rom1 or {biosbase}.rom1,
so the two ROM modules only reach the core when Folders/Bios is a plain
filesystem path used as-is. A re-import preserves the .nvm and .mec sitting
beside the image.
ref: app/,
app/,
app/src/main/java/com/sbro/emucorex/core/DocumentPathResolver.kt:430-452,
app/src/main/java/com/sbro/emucorex/core/DocumentPathResolver.kt:497-502,
app/src/main/java/com/sbro/emucorex/core/DocumentPathResolver.kt:556-563
Much of the bundled resource tree is compiled out on this platform and never
read. ImGuiManager::Initialize returns false before creating the ImGui context,
so LoadFontData and the three fonts it reads are unreachable, and SetFonts and
ReloadFonts both guard on that context. InitializeFullscreenUI returns false
unconditionally, so FullscreenUI::Initialize never runs and nothing under
fullscreenui or icons is loaded. The adapter reads two fonts of its own instead
and hands them over through SetFonts.
ref: app/src/main/cpp/pcsx2/pcsx2/ImGui/ImGuiManager.cpp:131-146,
app/src/main/cpp/pcsx2/pcsx2/ImGui/ImGuiManager.cpp:148-152,
app/src/main/cpp/pcsx2/pcsx2/ImGui/ImGuiManager.cpp:163,
app/src/main/cpp/pcsx2/pcsx2/ImGui/ImGuiManager.cpp:224-229,
app/src/main/cpp/pcsx2/pcsx2/ImGui/ImGuiManager.cpp:296-316,
app/src/main/cpp/pcsx2/pcsx2/ImGui/ImGuiManager.cpp:483-536,
app/src/main/cpp/ARM_ANDROID/src/runtime/upstream_vm_bridge.cpp:405-433,
app/src/main/cpp/ARM_ANDROID/src/runtime/upstream_vm_bridge.cpp:474
The three achievement sounds are the one resource the code reads that the tree
does not carry. Their directory holds only the README naming their origin,
while upstream v2.8.0 ships message.wav at 15696 bytes, lbsubmit.wav at 82096
and unlock.wav at 202702. The released APK carries all three at those sizes
under assets/resources/sounds/achievements, so the installed app has them.
All four sound settings default on, so a signed-in session asks for them at
every notification.
ref: app/src/main/cpp/pcsx2/bin/resources/sounds/achievements/README.txt:1-3,
app/src/main/cpp/ARM_ANDROID/src/integration/pcsx2_achievements_android.cpp:81-83,
app/src/main/cpp/pcsx2/pcsx2/Config.h:1381-1384,
app/src/main/cpp/pcsx2/pcsx2/Pcsx2Config.cpp:1983-1986
13 files: 1 required, 12 optional. 4 have an HLE fallback. 30 more files come with the app.
By kind: 36 BIOS and 7 game data.
In this collection: 8 in repo, 1 missing and 4 unsourceable.
Required
Section titled “Required”| File | Status |
|---|---|
ps2-0230a-20080220.binPS2 BIOS image
Validation and source
|
in repo |
Optional
Section titled “Optional”| File | Status | Hash |
|---|---|---|
r27v1602f.7dNamco System 246 COH-H BIOS chip dump
Hashes and source
|
in repo | MD5 52cca0058626 |
r27v1602f.8gNamco System 256 COH-H BIOS chip dump
Hashes and source
|
in repo | MD5 a58676c6bd79 |
ps2-0230a-20080220.rom1DVD player ROM
Source
|
in repo | - |
ps2-0230a-20080220.rom2Chinese ROM extension
Source
|
in repo | - |
ps2-0230a-20080220.nvmConsole NVRAM
Source
|
in repo HLE fallback | - |
ps2-0230a-20080220.mecMechacon version
Source
|
in repo HLE fallback | - |
eeprom.datDEV9 EEPROM
Source
|
in repo HLE fallback | - |
flash.datDEV9 SmartMedia flash image
Source
|
missing HLE fallback | - |
<module>.irxIOP module injected at boot
Source and config key
|
unsourceable | - |
<driver>.zipreplacement Vulkan driver package
Source
|
unsourceable | - |
Game data
Section titled “Game data”| File | Status |
|---|---|
<SERIAL>_<CRC>.pnachper-title cheat file
Source
|
optional unsourceable game data |
<hash>.pngreplacement texture
Source
|
optional unsourceable game data |
Comes with the app
Section titled “Comes with the app”| File | Status | Hash |
|---|---|---|
GameIndex.yamlper-title compatibility and fix database
Hashes and source
|
game data | SHA1 2d9878fdd709 |
emucorex_overrides.yamlper-title fix overlay for the game database
Hashes and source
|
game data | SHA1 5fbbd96df996 |
RedumpDatabase.yamldisc hash database
Hashes and source
|
game data | SHA1 dceb4536fba7 |
patches.zipbuilt-in game patch archive
Hashes and source
|
game data | SHA1 a3d939af27fe |
Roboto-Regular.ttfcore text font
Source
|
- | - |
Twemoji.Mozilla.ttfcore emoji font
Source
|
- | - |
tfx.glslVulkan texture and framebuffer shader
Hashes and source
|
- | SHA1 d740ae6e3e3d |
convert.glslVulkan format conversion shader
Hashes and source
|
- | SHA1 df6810fe9798 |
present.glslVulkan presentation shader
Hashes and source
|
- | SHA1 a848aad1840c |
interlace.glslVulkan deinterlacing shader
Hashes and source
|
- | SHA1 268f43cd946e |
merge.glslVulkan field merge shader
Hashes and source
|
- | SHA1 808b7b46bfb0 |
shadeboost.glslVulkan brightness and contrast shader
Hashes and source
|
- | SHA1 9b2704655a89 |
cas.glslVulkan contrast adaptive sharpening shader
Source
|
- | - |
imgui.glslVulkan overlay shader
Hashes and source
|
- | SHA1 276d984150c2 |
tfx_vgs.glslOpenGL texture and framebuffer vertex shader
Hashes and source
|
- | SHA1 cb02fa650318 |
tfx_fs.glslOpenGL texture and framebuffer fragment shader
Hashes and source
|
- | SHA1 f1c97200cb5b |
convert.glslOpenGL format conversion shader
Hashes and source
|
- | SHA1 63daf461f408 |
present.glslOpenGL presentation shader
Hashes and source
|
- | SHA1 4abe45e59dc9 |
interlace.glslOpenGL deinterlacing shader
Hashes and source
|
- | SHA1 be39a049af0b |
merge.glslOpenGL field merge shader
Hashes and source
|
- | SHA1 c8eb9c1926ba |
shadeboost.glslOpenGL brightness and contrast shader
Hashes and source
|
- | SHA1 03c8b0d3ebeb |
cas.glslOpenGL contrast adaptive sharpening shader
Hashes and source
|
- | SHA1 cb0d4276f994 |
imgui.glslOpenGL overlay shader
Hashes and source
|
- | SHA1 ca149058af89 |
fxaa.fxantialiasing shader shared by both renderers
Hashes and source
|
- | SHA1 81c56a54bde6 |
ffx_a.hCAS support header
Source
|
- | - |
ffx_cas.hCAS kernel header
Source
|
- | - |
message.wavachievement notification sound
Hashes and source
|
- | SHA1 c54f04b63ac6 |
unlock.wavachievement unlock sound
Hashes and source
|
- | SHA1 da328a0a3074 |
lbsubmit.wavleaderboard submission sound
Hashes and source
|
- | SHA1 5ad1e110dcf0 |
games.dbbundled catalog of PS2 titles
Hashes and source
|
game data | SHA1 0e2ee74d1f9e |
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start