Skip to content

Instantly share code, notes, and snippets.

@xyzz
Created December 3, 2018 22:22
Show Gist options
  • Save xyzz/2a95043601630a3eabcb9d65ae85ecf1 to your computer and use it in GitHub Desktop.
Save xyzz/2a95043601630a3eabcb9d65ae85ecf1 to your computer and use it in GitHub Desktop.
#ifndef _TITLE_H
#define _TITLE_H
#define INCLUDE_TITLE_NUMBER 20
enum TITLE_NAME {
ARC_THE_LAD_JP,
ARC_THE_LAD_2_JP,
ARMORED_CORE_JP,
ARMORED_CORE_MASTER_OF_ARENA,
CHOCOBOS_JP,
COLIN_MCRAE_RALLY_EU,
COOL_BOARDERS_2_EU,
CRASH_BANDICOOT_EU,
CRASH_BANDICOOT_US,
CRASH_BANDICOOT_2_EU,
CRASH_BANDICOOT_2_JP,
CRASH_BANDICOOT_2_US,
DESTRUCTION_DERBY_EU,
DESTRUCTION_DERBY_US,
DISNEY_TOY_STORY_2_EU,
DRIVER_EU,
DRIVER_US,
EHRGEIZ_JP,
FIGHTING_FORCE_US,
FINAL_FANTANSY_VII_DICS_1_EU,
FINAL_FANTANSY_VII_DICS_1_JP,
FINAL_FANTANSY_VII_DICS_1_US,
FINAL_FANTANSY_VII_DICS_2_EU,
FINAL_FANTANSY_VII_DICS_2_JP,
FINAL_FANTANSY_VII_DICS_2_US,
FINAL_FANTANSY_VII_DICS_3_EU,
FINAL_FANTANSY_VII_DICS_3_JP,
FINAL_FANTANSY_VII_DICS_3_US,
FINAL_FANTANSY_VII_DICS_4_JP,
G_DARIUS_JP,
GRADIUS_GAIDEN_JP,
GRAN_TURISMO_EU,
GRAN_TURISMO_JP,
GRAN_TURISMO_US,
GRAND_THEFT_AUTO_2_EU,
GRAND_THEFT_AUTO_2_US,
GRAND_THEFT_AUTO_EU,
GRAND_THEFT_AUTO_US,
HARRY_POTTER_AND_THE_PHILOSOPHERS_STONE_EU,
IQ_INTELLIGENT_QUBE_JP,
IQ_INTELLIGENT_QUBE_US,
JUMPING_FLASH_EU,
JUMPING_FLASH_JP,
JUMPING_FLASH_US,
KAGERO_JP,
KLONOA_DOOR_TO_PHANTAMILE_JP,
KLONOA_DOOR_TO_PHANTAMILE_US,
KULA_WORLD_EU,
LEGACY_OF_KAIN_SOUL_REAVER_EU,
LEGACY_OF_KAIN_SOUL_REAVER_US,
MEDAL_OF_HONOR_EU,
MEDAL_OF_HONOR_US,
MEDIEVIL_EU,
MEDIEVIL_US,
MEGA_MAM_LEGENDS_EU,
MEGA_MAM_LEGENDS_JP,
MEGA_MAM_LEGENDS_US,
METAL_GEAR_SOLID_DISC_1_EU,
METAL_GEAR_SOLID_DISC_1_JP,
METAL_GEAR_SOLID_DISC_1_US,
METAL_GEAR_SOLID_DISC_2_EU,
METAL_GEAR_SOLID_DISC_2_JP,
METAL_GEAR_SOLID_DISC_2_US,
MR_DRILLER_EU,
MR_DRILLER_G_JP,
MR_DRILLER_JP,
MR_DRILLER_US,
ODDWORLD_ABES_ODDYSEE_EU,
ODDWORLD_ABES_ODDYSEE_US,
PACAPACA_PASSION_JP,
PARAPPA_THE_RAPPER_US,
PARASITE_EVE_DISC_1_JP,
PARASITE_EVE_DISC_1_US,
PARASITE_EVE_DISC_2_JP,
PARASITE_EVE_DISC_2_US,
PERSONA_JP,
PERSONA_US,
RAY_STORM_JP,
RAYMAN_US,
RESIDENT_EVIL_EU,
RESIDENT_EVIL_JP,
RESIDENT_EVIL_US,
RIDGE_RACER_EU,
RIDGE_RACER_JP,
RIDGE_RACER_US,
RIDGE_RACER_TYPE_4_EU,
RIDGE_RACER_TYPE_4_JP,
RIDGE_RACER_TYPE_4_US,
SAGAFRONTIER_JP,
SILENT_HILL_EU,
SILENT_HILL_JP,
SILENT_HILL_US,
SPEC_OPS_STEALTH_PATROL_US,
STREET_FIGHTER_ALPHA_3_US,
STREET_FIGHTER_EX_PLUS_EU,
STREET_FIGHTER_EX_PLUS_JP,
STREET_FIGHTER_EX_PLUS_US,
SUIKODEN_EU,
SUIKODEN_JP,
SUIKODEN_US,
SUPER_PUZZLE_FIGHTER_2_TURBO_US,
SUPER_PUZZLE_FIGHTER_2_X_JP,
SYPHON_FILTER_US,
TEKKEN3_EU,
TEKKEN3_JP,
TOM_CLANCYS_RAINBOW_SIX_EU,
TOMB_RAIDER_2_EU,
TOMB_RAIDER_2_JP,
TOMB_RAIDER_2_US,
TOMB_RAIDER_EU,
TOMB_RAIDER_JP,
TOMB_RAIDER_US,
TOMBA_JP,
TOMBA_US,
TONY_HAWK_SKATE_BOARDING_EU,
TONY_HAWKS_PRO_SKATER_2_EU,
TONY_HAWKS_PRO_SKATER_2_US,
TOSHINDEN_EU,
TOSHINDEN_JP,
TOSHINDEN_US,
TWISTED_METAL_US,
VAGRANT_STORY_EU,
VAGRANT_STORY_US,
WILD_ARMS_2_DISC_1_JP,
WILD_ARMS_2_DISC_2_JP,
WILD_ARMS_JP,
WILD_ARMS_US,
XEVIOUS_3D_G_JP,
XEVIOUS_3D_G_US,
XI_EU,
XI_JP,
TITLE_NAME_NONE
};
struct INCLUDE_TITLE {
char *m_cpCdromId;
enum TITLE_NAME m_eTitleName;
} INCLUDE_TITLE;
static struct INCLUDE_TITLE stTitleList[] = {
{"SCPS10008" , ARC_THE_LAD_JP},
{"SCPS10026" , ARC_THE_LAD_2_JP},
{"SLPS00900" , ARMORED_CORE_JP},
{"SLPS91444" , ARMORED_CORE_MASTER_OF_ARENA},
{"SLPS01234" , CHOCOBOS_JP},
{"SLES00477" , COLIN_MCRAE_RALLY_EU},
{"SCES00992" , COOL_BOARDERS_2_EU},
{"SCES00344" , CRASH_BANDICOOT_EU},
{"SCUS94900" , CRASH_BANDICOOT_US},
{"SCES00967" , CRASH_BANDICOOT_2_EU},
{"SCPS10047" , CRASH_BANDICOOT_2_JP},
{"SCUS94154" , CRASH_BANDICOOT_2_US},
{"SCES00008" , DESTRUCTION_DERBY_EU},
{"SCUS94302" , DESTRUCTION_DERBY_US},
{"SLES02067" , DISNEY_TOY_STORY_2_EU},
{"SLES01816" , DRIVER_EU},
{"SLUS00842" , DRIVER_US},
{"SLPS01750" , EHRGEIZ_JP},
{"SLUS00433" , FIGHTING_FORCE_US},
{"SCES00867" , FINAL_FANTANSY_VII_DICS_1_EU},
{"SLPS01057" , FINAL_FANTANSY_VII_DICS_1_JP},
{"SCUS94163" , FINAL_FANTANSY_VII_DICS_1_US},
{"SCES10867" , FINAL_FANTANSY_VII_DICS_2_EU},
{"SLPS01058" , FINAL_FANTANSY_VII_DICS_2_JP},
{"SCUS94164" , FINAL_FANTANSY_VII_DICS_2_US},
{"SCES20867" , FINAL_FANTANSY_VII_DICS_3_EU},
{"SLPS01059" , FINAL_FANTANSY_VII_DICS_3_JP},
{"SCUS94165" , FINAL_FANTANSY_VII_DICS_3_US},
{"SLPS01060" , FINAL_FANTANSY_VII_DICS_4_JP},
{"SLPS01348" , G_DARIUS_JP},
{"SLPM86042" , GRADIUS_GAIDEN_JP},
{"SCES00984" , GRAN_TURISMO_EU},
{"SCPS10045" , GRAN_TURISMO_JP},
{"SCUS94194" , GRAN_TURISMO_US},
{"SLES01404" , GRAND_THEFT_AUTO_2_EU},
{"SLUS00789" , GRAND_THEFT_AUTO_2_US},
{"SLES00032" , GRAND_THEFT_AUTO_EU},
{"SLUS00106" , GRAND_THEFT_AUTO_US},
{"SLES03662" , HARRY_POTTER_AND_THE_PHILOSOPHERS_STONE_EU},
{"SCPS10029" , IQ_INTELLIGENT_QUBE_JP},
{"SCUS94181" , IQ_INTELLIGENT_QUBE_US},
{"SCES00003" , JUMPING_FLASH_EU},
{"SCPS10007" , JUMPING_FLASH_JP},
{"SCUS94103" , JUMPING_FLASH_US},
{"SLPS01421" , KAGERO_JP},
{"SLPS01010" , KLONOA_DOOR_TO_PHANTAMILE_JP},
{"SLUS00585" , KLONOA_DOOR_TO_PHANTAMILE_US},
{"SCES01000" , KULA_WORLD_EU},
{"SLES01301" , LEGACY_OF_KAIN_SOUL_REAVER_EU},
{"SLUS00708" , LEGACY_OF_KAIN_SOUL_REAVER_US},
{"SLES02470" , MEDAL_OF_HONOR_EU},
{"SLUS00974" , MEDAL_OF_HONOR_US},
{"SCES00311" , MEDIEVIL_EU},
{"SCUS94227" , MEDIEVIL_US},
{"SLES01485" , MEGA_MAM_LEGENDS_EU},
{"SLPS01141" , MEGA_MAM_LEGENDS_JP},
{"SLUS00603" , MEGA_MAM_LEGENDS_US},
{"SLES01370" , METAL_GEAR_SOLID_DISC_1_EU},
{"SLPM86114" , METAL_GEAR_SOLID_DISC_1_JP},
{"SLUS00594" , METAL_GEAR_SOLID_DISC_1_US},
{"SLES11370" , METAL_GEAR_SOLID_DISC_2_EU},
{"SLPM86115" , METAL_GEAR_SOLID_DISC_2_JP},
{"SLUS00776" , METAL_GEAR_SOLID_DISC_2_US},
{"SCES02771" , MR_DRILLER_EU},
{"SLPS03336" , MR_DRILLER_G_JP},
{"SLPS02600" , MR_DRILLER_JP},
{"SLUS01111" , MR_DRILLER_US},
{"SLES00664" , ODDWORLD_ABES_ODDYSEE_EU},
{"SLUS00190" , ODDWORLD_ABES_ODDYSEE_US},
{"SLPS02122" , PACAPACA_PASSION_JP},
{"SCUS94183" , PARAPPA_THE_RAPPER_US},
{"SLPS01230" , PARASITE_EVE_DISC_1_JP},
{"SLUS00662" , PARASITE_EVE_DISC_1_US},
{"SLPS01231" , PARASITE_EVE_DISC_2_JP},
{"SLUS00668" , PARASITE_EVE_DISC_2_US},
{"SLPS00500" , PERSONA_JP},
{"SLUS00339" , PERSONA_US},
{"SLPS00678" , RAY_STORM_JP},
{"SLUS00005" , RAYMAN_US},
{"SLES00969" , RESIDENT_EVIL_EU},
{"SLPS00998" , RESIDENT_EVIL_JP},
{"SLUS00747" , RESIDENT_EVIL_US},
{"SCES00001" , RIDGE_RACER_EU},
{"SLPS00001" , RIDGE_RACER_JP},
{"SCUS94300" , RIDGE_RACER_US},
{"SCES01706" , RIDGE_RACER_TYPE_4_EU},
{"SLPS01800" , RIDGE_RACER_TYPE_4_JP},
{"SLUS00797" , RIDGE_RACER_TYPE_4_US},
{"SLPS00898" , SAGAFRONTIER_JP},
{"SLES01514" , SILENT_HILL_EU},
{"SLPM86192" , SILENT_HILL_JP},
{"SLUS00707" , SILENT_HILL_US},
{"SLUS01131" , SPEC_OPS_STEALTH_PATROL_US},
{"SLUS00821" , STREET_FIGHTER_ALPHA_3_US},
{"SLES00939" , STREET_FIGHTER_EX_PLUS_EU},
{"SLPM86041" , STREET_FIGHTER_EX_PLUS_JP},
{"SLUS00548" , STREET_FIGHTER_EX_PLUS_US},
{"SLES00527" , SUIKODEN_EU},
{"SLPS00097" , SUIKODEN_JP},
{"SLUS00292" , SUIKODEN_US},
{"SLUS00418" , SUPER_PUZZLE_FIGHTER_2_TURBO_US},
{"SLPS00611" , SUPER_PUZZLE_FIGHTER_2_X_JP},
{"SCUS94240" , SYPHON_FILTER_US},
{"SCES01237" , TEKKEN3_EU},
{"SLPS01300" , TEKKEN3_JP},
{"SLES01136" , TOM_CLANCYS_RAINBOW_SIX_EU},
{"SLES00718" , TOMB_RAIDER_2_EU},
{"SLPS01200" , TOMB_RAIDER_2_JP},
{"SLUS00437" , TOMB_RAIDER_2_US},
{"SLES00024" , TOMB_RAIDER_EU},
{"SLPS00617" , TOMB_RAIDER_JP},
{"SLUS00152" , TOMB_RAIDER_US},
{"SLPS01144" , TOMBA_JP},
{"SCUS94236" , TOMBA_US},
{"SLES02055" , TONY_HAWK_SKATE_BOARDING_EU},
{"SLES02908" , TONY_HAWKS_PRO_SKATER_2_EU},
{"SLUS01066" , TONY_HAWKS_PRO_SKATER_2_US},
{"SCES00002" , TOSHINDEN_EU},
{"SLPS00025" , TOSHINDEN_JP},
{"SCUS94200" , TOSHINDEN_US},
{"SCUS94304" , TWISTED_METAL_US},
{"SLES02754" , VAGRANT_STORY_EU},
{"SLUS01040" , VAGRANT_STORY_US},
{"SCPS10089" , WILD_ARMS_2_DISC_1_JP},
{"SCPS10090" , WILD_ARMS_2_DISC_2_JP},
{"SCPS10028" , WILD_ARMS_JP},
{"SCUS94608" , WILD_ARMS_US},
{"SLPS00750" , XEVIOUS_3D_G_JP},
{"SLUS00461" , XEVIOUS_3D_G_US},
{"SCES01312" , XI_EU},
{"SCPS10051" , XI_JP},
{"\0" , TITLE_NAME_NONE}
};
static enum TITLE_NAME g_eTitleName = TITLE_NAME_NONE;
#define GPU_PATCH_SCREEN_ADJUST (0x00000001)
#define GPU_PATCH_IS_FF7 (0x00000002)
#define GPU_PATCH_IS_MR_DRILLER (0x00000004)
#define GPU_PATCH_ADD_VRAM2 (0x00000008)
#define GPU_PATCH_IS_MR_DRILLER_JP (0x00000010)
#define GPU_PATCH_ADD_BO (0x00000020)
#define GPU_PATCH_ARC_THE_LAD (0x00000080)
#define TOSHINDEN_DEFAULT_VOLUME 0x4890
#define TOSHINDEN_JP_DEFAULT_VOLUME 0x3870
#define IQ_JP_MAX_VOLUME 0x7fff
#define IQ_US_MAX_VOLUME 0x7ffe
#define ARMORED_CORE_JP_MAX_VOLUME 0x3f7e
#define TOM_CLANCYS_RAINBOW_SIX_EU_MAX_VOLUME 0x3fff
#define PARASITE_EVE_JP_ENABLE_VOLUME 0x600
#define PARASITE_EVE_JP_DISABLE_VOLUME 0xffff8000
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment