Free McBoot 1.8 OSDSYS patches ported to modern PS2SDK with some useful additions.
- Copy
patcher.elf
andlauncher.elf
tomc?:/BOOT/
Copy DKWDRV tomc?:/BOOT/DKWDRV.ELF
(optional) - Edit
mc?:/SYS-CONF/OSDMENU.CNF
as you see fit - Configure PS2BBL to launch
mc?:/BOOT/patcher.elf
or launch it manually from LaunchELF
- All initialization code is removed in favor of using a separate bootloader to start the patcher (e.g. PS2BBL)
- USB support is dropped from the patcher, so only memory cards are checked for
OSDMENU.CNF
- No ESR support
- No support for launching ELFs by holding a gamepad button
- ELF paths are not checked by the patcher, so every named entry from FMCB config file is displayed in hacked OSDSYS menu
- A separate launcher is used to launch menu entries
- CD/DVD support was extended to support skipping PS2LOGO, mounting VMCs on MMCE devices, showing visual GameID for PixelFX devices and booting DKWDRV for PS1 discs
- "Unlimited" number of paths for each entry
- Support for 1080i and 480p (as line-doubled 240p) video modes
- Support for "protokernel" systems (SCPH-10000, SCPH-15000) ported from Free McBoot 1.9 by reverse-engineering
Due to memory limitations and the need to support more devices, the original FMCB launcher was split into two parts: patcher and launcher.
This is a slimmed-down and refactored version of OSDSYS patches from FMCB 1.8 for modern PS2SDK with some new patches sprinkled in.
It reads settings from mc?:/SYS-CONF/OSDMENU.CNF
and patches the rom0:OSDSYS
binary with the following patches:
- Custom OSDSYS menu with up to 255 entries
- Infinite scrolling
- Custom button prompts and menu header
- Automatic disc launch bypass
- Force GS video mode to PAL, NTSC, 1080i or line-doubled 480p (with half the vertical resolution).
Due to how to OSDSYS renders everything, "true" 480p can't be implemented easily - HDD update check bypass
- Override PS1 and PS2 disc launch functions with custom code that starts the launcher
- Additional system information in version submenu (Video mode, ROM version, EE, GS and MechaCon revision)
Patches not supported on protokernel systems:
- Automatic disc launch bypass
- Custom button prompts
- PAL video mode
See the list for supported OSDMENU.CNF
options here.
For every menu item and disc launch, it starts the launcher from mc?:/BOOT/launcher.elf
and passes the menu index to it.
A fully-featured main ELF launcher that handles launching ELFs and CD/DVD discs.
Supports passing arbitrary arguments to an ELF and can also be used standalone.
Supported paths are:
mmce?:
— MMCE devices. Can bemmce0
,mmce1
ormmce?
mc?:
— Memory Cards. Can bemc0
,mc1
ormc?
mass:
andusb:
— USB devices (supported via BDM)ata:
— internal exFAT-formatted HDD (supported via BDM)mx4sio:
— MX4SIO (supported via BDM)ilink:
— i.Link mass storage (supported via BDM)udpbd:
— UDPBD (supported via BDM)hdd0:
— internal APA-formatted HDDcdrom
— CD/DVD discsfmcb
— special path for the patcher
Device support can be enabled and disabled by changing build-time configuration options (see Makefile)
Reads PS2 IP address from mc?:/SYS-CONF/IPCONFIG.DAT
Waits for the disc to be detected and launches it. Supports the following arguments:
-nologo
— launches the game executable directly, bypassingrom0:PS2LOGO
-nogameid
— disables visual game ID-dkwdrv
— when PS1 disc is detected, launches DKWDRV frommc?:/BOOT/DKWDRV.ELF
instead ofrom0:PS1DRV
-dkwdrv=mc?:/<path to DKWDRV>
— same as-dkwdrv
, but with custom DKWDRV path.
For PS1 CDs with generic executable name (e.g. PSX.EXE
), attempts to guess the game ID using the volume creation date
stored in the Primary Volume Descriptor, based on the table from TonyHax International.
When the launcher receives fmcb0:<idx>
or fmcb1:<idx>
path, it reads OSDMENU.CNF
from the respective memory card,
searches for path?_OSDSYS_ITEM_<idx>
and arg_OSDSYS_ITEM_<idx>
entries and attempts to launch the ELF.
Respects cdrom_skip_ps2logo
, cdrom_disable_gameid
and cdrom_use_dkwdrv
for cdrom
paths.
When the launcher is started without any arguments, it tries to open <ELF file name>.CNF
file at the current working directory
and attempts to launch every path in order.
CNF syntax example:
path=mmce?:/apps/wle.elf
path=mmce?:/apps/wle2.elf
path=ata:/apps/wle.elf
path=mc?:/BOOT/BOOT.ELF
arg=-testarg
arg=-testarg2
Most of OSDMENU.CNF
settings are directly compatible with those from FMCB 1.8 FREEMCB.CNF
.
OSDMenu supports up to 255 custom menu entries, each up to 79 characters long.
Note that left and right cursors are limited to 19 characters and top and bottom delimiters are limited to 79 characters.
Launcher and DKWDRV paths are limited to 49 characters.
OSDSYS_video_mode
— force OSDSYS mode. Valid values areAUTO
,PAL
,NTSC
,480p
or1080i
hacked_OSDSYS
— enables or disables OSDSYS patchesOSDSYS_scroll_menu
— enables or disables infinite scrollingOSDSYS_menu_x
— menu X center coordinateOSDSYS_menu_y
— menu Y center coordinateOSDSYS_enter_x
—Enter
button X coordinate (at main OSDSYS menu)OSDSYS_enter_y
—Enter
button Y coordinate (at main OSDSYS menu)OSDSYS_version_x
—Version
button X coordinate (at main OSDSYS menu)OSDSYS_version_y
—Version
button Y coordinate (at main OSDSYS menu)OSDSYS_cursor_max_velocity
— max cursor speedOSDSYS_cursor_acceleration
— cursor speedOSDSYS_left_cursor
— left cursor textOSDSYS_right_cursor
— right cursor textOSDSYS_menu_top_delimiter
— top menu delimiter textOSDSYS_menu_bottom_delimiter
— bottom menu delimiter textOSDSYS_num_displayed_items
— the number of menu items displayedOSDSYS_Skip_Disc
— enables/disables automatic CD/DVD launchOSDSYS_Skip_Logo
— enables/disables SCE logoOSDSYS_Inner_Browser
— enables/disables going to the Browser after launching OSDSYSOSDSYS_selected_color
— color of selected menu entryOSDSYS_unselected_color
— color of unselected menu entryname_OSDSYS_ITEM_???
— menu entry namepath?_OSDSYS_ITEM_???
— path to ELF. Also supports the following special paths:cdrom
,OSDSYS
,POWEROFF
New to this launcher:
arg_OSDSYS_ITEM_???
— custom argument to be passed to the ELF. Each argument needs a separate entry.cdrom_skip_ps2logo
— enables or disables running discs viarom0:PS2LOGO
. Useful for MechaPwn-patched consoles.cdrom_disable_gameid
— disables or enables visual Game IDcdrom_use_dkwdrv
— enables or disables launching DKWDRV for PS1 discspath_LAUNCHER_ELF
— custom path to launcher.elf. The path MUST be on the memory cardpath_DKWDRV_ELF
— custom path to DKWDRV.ELF. The path MUST be on the memory card
- Everyone involved in developing the original Free MC Boot and OSDSYS patches, especially Neme and jimmikaelkael
- TonyHax International developers for PS1 game ID detection for generic executables.
- Maximus32 for creating the
smap_udpbd
module and Neutrino GSM - Matías Israelson for making PS2BBL
- CosmicScale for RetroGEM Disc Launcher