From 47a71442ac614694a313156e0c90e7b321ace019 Mon Sep 17 00:00:00 2001 From: Matias Israelson <57065102+israpps@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:39:53 -0300 Subject: [PATCH] fix error on builtin script --- etc/boot.lua | 287 ++++++++++++++++++++++++++------------------------- 1 file changed, 144 insertions(+), 143 deletions(-) diff --git a/etc/boot.lua b/etc/boot.lua index fe3930f..f83d0b2 100644 --- a/etc/boot.lua +++ b/etc/boot.lua @@ -1,144 +1,145 @@ - LNG_CRDTS0 = "Coded by El_isra (aka: Matias Israelson)" - LNG_CRDTS1 = "Based on Enceladus. by Daniel Santos" - LNG_CRDTS2 = "SECRMAN and SECRSIF taken from Free McBoot 1.9 series installer. by sp193" - LNG_CRDTS3 = "GFX made by Berion" - LNG_CRDTS4 = "Get me free at https://github.com/israpps/KELFBinder" - LNG_DOCSLINK = "Documentation available at https://israpps.github.io/KELFBinder/" - LNG_CRDTS5 = "Thanks to:" - LNG_MM1 = "Welcome to KELFBinder" - LNG_MM2 = "Manage System Updates" - LNG_MM3 = "Manage DVDPlayer Updates" - LNG_MM4 = "System Information" - LNG_MM5 = "Exit" - LNG_MM6 = "Credits" - LNG_MM7 = "Manage HDD Updates" - LNG_CT0 = "Select" - LNG_CT1 = "Cancel" - LNG_CT2 = "Refresh" - LNG_CT3 = "Begin Installation" - LNG_CT4 = "Quit" - LNG_IMPP0 = "Perform an installation compatible with this console\nand similar units" - LNG_IMPP1 = "Free McBoot's classic installation modes" - LNG_IMPP2 = "Choose manually which updates will be installed" - LNG_IMPP3 = "Test if your card supports updates\nWithout writing data to the card" - LNG_IMPMP1 = "Normal Install" - LNG_IMPMP2 = "Advanced Install" - LNG_IMPMP3 = "Expert Install" - LNG_IMPMP4 = "MagicGate Test" - LNG_INSTPMPT = "BINDING KELF\n\n%s\n" - LNG_INSTPMPT1 = "Installation finished!" - LNG_MEMCARD0 = "Choose a Memory Card" - LNG_MEMCARD1 = "Memory Card %d" - LNG_MEMCARD2 = "Free space %d kb" - LNG_SUC0 = "Kernel Patch for early SCPH-10000\nneeds SCPH-18000 update to function" - LNG_SUC1 = "Kernel Patch for late SCPH-10000 and SCPH-15000\nneeds SCPH-18000 update to function" - LNG_SUC2 = "SCPH-18000" - LNG_SUC3 = "Any Japanese model without PCMCIA connector" - LNG_SUC4 = "American release model\nSCPH-30001 with B chassis" - LNG_SUC5 = "American release model\nSCPH-30001 with C chassis" - LNG_SUC6 = "Any American and Asian models\nexcluding American release models" - LNG_SUC7 = "PAL release model\nSCPH-3000(2/3/4/8) with C chassis" - LNG_SUC8 = "Any PAL model excluding release models" - LNG_SUC9 = "The rare Chinese models" - LNG_EXPERTINST_PROMPT = "Select the system update executables" - LNG_EXPERTINST_PROMPT1 = "This console uses:" - LNG_REGS0 = "Japan - SCPH-XXX00" - LNG_REGS1 = "USA and Asia" - LNG_REGS2 = "Europe / Oceania / Russia\nSCPH-XXX0[2/3/4/8]" - LNG_REGS3 = "China - SCPH-50009" - LNG_EIO = "I/O ERROR" - LNG_SECRMANERR = "KELF encryption Failed! - Possible 'MagicGate' error" - LNG_ENOMEM = "MEMORY ALLOCATION ERROR!" - LNG_SOURCE_KELF_GONE = "input KELF can't be opened" - LNG_EUNKNOWN = "Unknown error!" - LNG_INSTERR = "Installation failed! (%d)" - LNG_TESTTERR = "Test failed! (%d)" - LNG_TESTSUCC = "Test succeeded!" - LNG_INSTALLING = "Installing System Updates..." - LNG_INSTFINISH = "Installation finished!" - LNG_WANNAQUIT = "Exit application?" - LNG_YES = "Yes" - LNG_NO = "No" - LNG_PLS_WAIT = "Please Wait..." - LNG_RWLE = "Run wLaunchELF" - LNG_SYSTEMINFO = "SYSTEM INFORMATION" - LNG_SUPATH = "System Update Path = [%s]" - LNG_CONTINUE = "Continue" - LNG_COMPAT0 = "This console model does not support system updates." - LNG_COMPAT1 = "However, you can still use it to install updates." - LNG_PICK_DVDPLAYER_REG = "Choose the DVD Player's update region" - LNG_INSTALLING_DVDPL = "Installing DVDPlayer Update..." - LNG_JPN = "Japan" - LNG_USA = "USA" - LNG_ASI = "Asia" - LNG_USANASIA = "America / Asia" - LNG_EUR = "Europe / Oceania / Russia" - LNG_CHN = "China" - LNG_AI_CROSS_MODEL = "Cross Model" - LNG_AI_CROSS_REGION = "Cross Region" - LNG_CONSOLE_MODEL = "Console model = [%s]" - LNG_IS_COMPATIBLE = "Supports Updates = %s" - LNG_DESC_CROSS_MODEL = "Install system updates for every PS2 of this same region" - LNG_DESC_CROSS_REGION = "Install system updates for every PS2 of every region" - LNG_DESC_PSXDESR = "Install a system update for PSX-DESR systems" - LNG_DESC_MACHINE_IS_PSX = "Current console is PSX\nuse normal install instead" - LNG_WARNING = "Warning!" - LNG_WARN_CONFLICT0 = "The selected Memory Card seems to have a system update\nalready installed" - LNG_WARN_CONFLICT1 = "clean the target folders before proceeding?" - LNG_WARN_CONFLICT2 = "Note: If you don't clean the folders, the update will \nbe installed anyways, but on a dirty enviroment" - LNG_WARN_CONFLICT3 = "We recommend cleaning unless you want to keep the previously installed updates" - LNG_WARN_CONFLICT4 = "Only the conflictive folders will be cleaned" - LNG_FMCBINST_CRAP0 = "FreeMcBoot Multi Installation detected!" - LNG_FMCBINST_CRAP1 = "The Memory Card must be formatted before installing." - LNG_FMCBINST_CRAP2 = "There is risk of FileSystem corruption if the card is not formatted" - LNG_ERROR = "Error!" - LNG_MEMORY_CARD = "Memory card" - LNG_HDD = "Hard Drive" - LNG_PARTITION = "Partition" - LNG_NOT_ENOUGH_SPACE0 = "There is not enough space on %s" - LNG_NOT_ENOUGH_SPACE1 = "Needed space %.1f Kb - Available Space %.1f Kb" - LNG_INCOMPATIBLE_CARD = "incompatible device!" - LNG_INSTALLING_EXTRA = "Installing aditional files..." - LNG_UNFORMATTED_CARD = "unformatted" - LNG_EXTRA_INSTALL_ENABLE = "Extra files will be installed" - LNG_EXTRA_INSTALL_DISABLE = "Extra files will not be installed" - LNG_KELF_HEAD = "KELF Header:" - LNG_HDDPROMPT = "Installs a Bootloader into the Internal HDD" - LNG_HDDPROMPT1 = "Formats the internal HDD into APA" - LNG_HDDPROMPT2 = "Enables EEPROM Configuration to allow expansion bay models\nTo automatically boot the HDD MBR program" - LNG_HDD_INSTOPT1 = "Install BootLoader" - LNG_HDD_INSTOPT2 = "Format HDD" - LNG_HDD_INSTOPT3 = "Enable HDDBoot" - LNG_HDDBOOT_ALREADY_ENABLED = "HDD Booting configuration is already enabled" - LNG_HDDBOOT_ENABLED = "HDD Booting has been enabled" - LNG_HDDFORMAT_CONFIRM = "You are about to format the internal HDD" - LNG_HDDFORMAT_CONFIRM2 = "This will wipe all the data currently stored inside" - LNG_ROMPATCH_PATCH = "System Update Path (ROM specific) = [%s]" - LNG_CALCULATING = "Calculating required space..." - LNG_HDD_STAT = "HDD Status = " - LNG_HDD_CON_AND_FORM = "Connected and formatted" - LNG_HDD_UNF = "Not formatted" - LNG_HDD_UNUSABLE = "Not usable" - LNG_HDD_DISCON = "Not connected" - LNG_HDD_OTHER = "Unknown status! (%d)" - LNG_HDD_UPDATES_SUPPORT = "Supports HDD Updates:" - LNG_HDD_NEEDS_HDDLOAD = "Needs HDDLOAD" - LNG_UNSUPPORTED = "Unsupported" - LNG_HDD_SMART_STATUS_FAILS_WARNING = "The HDD S.M.A.R.T Status is failing, the HDD will die soon" - LNG_HDD_SECTOR_ERROR_WARNING = "Damaged sectors have been detected on the HDD" - LNG_HDD_CORRUPTED_PART_WARNING = "Corrupted partition(s) detected" - LNG_HDD_RECOMMEND_FORMAT_OR_FSCK = "It is recommended to run HDDChecker or format the HDD to fix the issue." - LNG_HDD_RECOMMEND_HDD_REPLACE = "It is recommended to replace the HDD." - LNG_DEX_MACHINE_WARNING = "Warning! this PS2 is a DEX Unit (TEST Model)" - LNG_DEX_MACHINE_WARNING_DESC = "The memory card updates installed using this console will only boot on\n TEST units (DTL-H)\nIt won't work on RETAIL units (SCPH/DESR) because they use\ndifferent magicgate keys" - LNG_MBR_KELF_SIZE_OUT_OF_BOUNDS = "The MBR bootloader exceeds acceptable size" - LNG_MBR_KELF_SIZE_OUT_OF_BOUNDS2 = "It cannot be larger than 883200 bytes" - LNG_WARN_DVDPLAYER_PROPIETARY_SOFTWARE = "DVDPlayer software is not bundled due to copyright. get it yourself" - LNG_SECRMAN_REPLACE_FAIL = "SECRMAN ERROR" - LNG_SECRMAN_REPLACE_FAIL2 = "error code %d" - LNG_SECRMAN_REPLACE_FAIL3 = "All memory card features are disabled" - LNG_SECRMAN_REPLACE_FAIL4 = "this issue is probably caused by the method you used to load KELFBinder" - _ = "" -- garbage placeholder + LNG_CRDTS0 = "Coded by El_isra (aka: Matias Israelson)" + LNG_CRDTS1 = "Based on Enceladus. by Daniel Santos" + LNG_CRDTS2 = "SECRMAN and SECRSIF taken from Free McBoot 1.9 series installer. by sp193" + LNG_CRDTS3 = "GFX made by Berion" + LNG_CRDTS4 = "Get me free at https://github.com/israpps/KELFBinder" + LNG_DOCSLINK = "Documentation available at https://israpps.github.io/KELFBinder/" + LNG_CRDTS5 = "Thanks to:" + LNG_MM1 = "Welcome to KELFBinder" + LNG_MM2 = "Manage System Updates" + LNG_MM3 = "Manage DVDPlayer Updates" + LNG_MM4 = "System Information" + LNG_MM5 = "Exit" + LNG_MM6 = "Credits" + LNG_MM7 = "Manage HDD Updates" + LNG_CT0 = "Select" + LNG_CT1 = "Cancel" + LNG_CT2 = "Refresh" + LNG_CT3 = "Begin Installation" + LNG_CT4 = "Quit" + LNG_IMPP0 = "Perform an installation compatible with this console\nand similar units" + LNG_IMPP1 = "Free McBoot's classic installation modes" + LNG_IMPP2 = "Choose manually which updates will be installed" + LNG_IMPP3 = "Test if your card supports updates\nWithout writing data to the card" + LNG_IMPMP1 = "Normal Install" + LNG_IMPMP2 = "Advanced Install" + LNG_IMPMP3 = "Expert Install" + LNG_IMPMP4 = "MagicGate Test" + LNG_INSTPMPT = "BINDING KELF\n\n%s\n" + LNG_INSTPMPT1 = "Installation finished!" + LNG_MEMCARD0 = "Choose a Memory Card" + LNG_MEMCARD1 = "Memory Card %d" + LNG_MEMCARD2 = "Free space %d kb" + LNG_SUC0 = "Kernel Patch for early SCPH-10000\nneeds SCPH-18000 update to function" + LNG_SUC1 = "Kernel Patch for late SCPH-10000 and SCPH-15000\nneeds SCPH-18000 update to function" + LNG_SUC2 = "SCPH-18000" + LNG_SUC3 = "Any Japanese model without PCMCIA connector" + LNG_SUC4 = "American release model\nSCPH-30001 with B chassis" + LNG_SUC5 = "American release model\nSCPH-30001 with C chassis" + LNG_SUC6 = "Any American and Asian models\nexcluding American release models" + LNG_SUC7 = "PAL release model\nSCPH-3000(2/3/4/8) with C chassis" + LNG_SUC8 = "Any PAL model excluding release models" + LNG_SUC9 = "The rare Chinese models" + LNG_EXPERTINST_PROMPT = "Select the system update executables" + LNG_EXPERTINST_PROMPT1 = "This console uses:" + LNG_REGS0 = "Japan - SCPH-XXX00" + LNG_REGS1 = "USA and Asia" + LNG_REGS2 = "Europe / Oceania / Russia\nSCPH-XXX0[2/3/4/8]" + LNG_REGS3 = "China - SCPH-50009" + LNG_EIO = "I/O ERROR" + LNG_SECRMANERR = "KELF encryption Failed! - Possible 'MagicGate' error" + LNG_ENOMEM = "MEMORY ALLOCATION ERROR!" + LNG_SOURCE_KELF_GONE = "input KELF can't be opened" + LNG_EUNKNOWN = "Unknown error!" + LNG_INSTERR = "Installation failed! (%d)" + LNG_TESTTERR = "Test failed! (%d)" + LNG_TESTSUCC = "Test succeeded!" + LNG_INSTALLING = "Installing System Updates..." + LNG_INSTFINISH = "Installation finished!" + LNG_WANNAQUIT = "Exit application?" + LNG_YES = "Yes" + LNG_NO = "No" + LNG_PLS_WAIT = "Please Wait..." + LNG_RWLE = "Run wLaunchELF" + LNG_SYSTEMINFO = "SYSTEM INFORMATION" + LNG_SUPATH = "System Update Path = [%s]" + LNG_CONTINUE = "Continue" + LNG_COMPAT0 = "This console model does not support system updates." + LNG_COMPAT1 = "However, you can still use it to install updates." + LNG_PICK_DVDPLAYER_REG = "Choose the DVD Player's update region" + LNG_INSTALLING_DVDPL = "Installing DVDPlayer Update..." + LNG_JPN = "Japan" + LNG_USA = "USA" + LNG_ASI = "Asia" + LNG_USANASIA = "America / Asia" + LNG_EUR = "Europe / Oceania / Russia" + LNG_CHN = "China" + LNG_AI_CROSS_MODEL = "Cross Model" + LNG_AI_CROSS_REGION = "Cross Region" + LNG_CONSOLE_MODEL = "Console model = [%s]" + LNG_IS_COMPATIBLE = "Supports Updates = %s" + LNG_DESC_CROSS_MODEL = "Install system updates for every PS2 of this same region" + LNG_DESC_CROSS_REGION = "Install system updates for every PS2 of every region" + LNG_DESC_PSXDESR = "Install a system update for PSX-DESR systems" + LNG_DESC_MACHINE_IS_PSX = "Current console is PSX\nuse normal install instead" + LNG_WARNING = "Warning!" + LNG_WARN_CONFLICT0 = "The selected Memory Card seems to have a system update\nalready installed" + LNG_WARN_CONFLICT1 = "clean the target folders before proceeding?" + LNG_WARN_CONFLICT2 = "Note: If you don't clean the folders, the update will \nbe installed anyways, but on a dirty enviroment" + LNG_WARN_CONFLICT3 = "We recommend cleaning unless you want to keep the previously installed updates" + LNG_WARN_CONFLICT4 = "Only the conflictive folders will be cleaned" + LNG_FMCBINST_CRAP0 = "FreeMcBoot Multi Installation detected!" + LNG_FMCBINST_CRAP1 = "The Memory Card must be formatted before installing." + LNG_FMCBINST_CRAP2 = "There is risk of FileSystem corruption if the card is not formatted" + LNG_ERROR = "Error!" + LNG_MEMORY_CARD = "Memory card" + LNG_HDD = "Hard Drive" + LNG_PARTITION = "Partition" + LNG_NOT_ENOUGH_SPACE0 = "There is not enough space on %s" + LNG_NOT_ENOUGH_SPACE1 = "Needed space %.1f Kb - Available Space %.1f Kb" + LNG_INCOMPATIBLE_CARD = "incompatible device!" + LNG_INSTALLING_EXTRA = "Installing aditional files..." + LNG_UNFORMATTED_CARD = "unformatted" + LNG_EXTRA_INSTALL_ENABLE = "Extra files will be installed" + LNG_EXTRA_INSTALL_DISABLE = "Extra files will not be installed" + LNG_KELF_HEAD = "KELF Header:" + LNG_HDDPROMPT = "Installs a Bootloader into the Internal HDD" + LNG_HDDPROMPT1 = "Formats the internal HDD into APA" + LNG_HDDPROMPT2 = "Enables EEPROM Configuration to allow expansion bay models\nTo automatically boot the HDD MBR program" + LNG_HDD_INSTOPT1 = "Install BootLoader" + LNG_HDD_INSTOPT2 = "Format HDD" + LNG_HDD_INSTOPT3 = "Enable HDDBoot" + LNG_HDDBOOT_ALREADY_ENABLED = "HDD Booting configuration is already enabled" + LNG_HDDBOOT_ENABLED = "HDD Booting has been enabled" + LNG_HDDFORMAT_CONFIRM = "You are about to format the internal HDD" + LNG_HDDFORMAT_CONFIRM2 = "This will wipe all the data currently stored inside" + LNG_ROMPATCH_PATCH = "System Update Path (ROM specific) = [%s]" + LNG_CALCULATING = "Calculating required space..." + LNG_HDD_STAT = "HDD Status = " + LNG_HDD_CON_AND_FORM = "Connected and formatted" + LNG_HDD_UNF = "Not formatted" + LNG_HDD_UNUSABLE = "Not usable" + LNG_HDD_DISCON = "Not connected" + LNG_HDD_OTHER = "Unknown status! (%d)" + LNG_HDD_UPDATES_SUPPORT = "Supports HDD Updates:" + LNG_HDD_NEEDS_HDDLOAD = "Needs HDDLOAD" + LNG_UNSUPPORTED = "Unsupported" + LNG_HDD_SMART_STATUS_FAILS_WARNING = "The HDD S.M.A.R.T Status is failing, the HDD will die soon" + LNG_HDD_SECTOR_ERROR_WARNING = "Damaged sectors have been detected on the HDD" + LNG_HDD_CORRUPTED_PART_WARNING = "Corrupted partition(s) detected" + LNG_HDD_RECOMMEND_FORMAT_OR_FSCK = "It is recommended to run HDDChecker or format the HDD to fix the issue." + LNG_HDD_RECOMMEND_HDD_REPLACE = "It is recommended to replace the HDD." + LNG_DEX_MACHINE_WARNING = "Warning! this PS2 is a DEX Unit (TEST Model)" + LNG_DEX_MACHINE_WARNING_DESC = "The memory card updates installed using this console will only boot on\n TEST units (DTL-H)\nIt won't work on RETAIL units (SCPH/DESR) because they use\ndifferent magicgate keys" + LNG_MBR_KELF_SIZE_OUT_OF_BOUNDS = "The MBR bootloader exceeds acceptable size" + LNG_MBR_KELF_SIZE_OUT_OF_BOUNDS2 = "It cannot be larger than 883200 bytes" + LNG_WARN_DVDPLAYER_PROPIETARY_SOFTWARE = "DVDPlayer software is not bundled due to copyright. get it yourself" + LNG_SECRMAN_REPLACE_FAIL = "SECRMAN ERROR" + LNG_SECRMAN_REPLACE_FAIL2 = "error code %d" + LNG_SECRMAN_REPLACE_FAIL3 = "All memory card features are disabled" + LNG_SECRMAN_REPLACE_FAIL4 = "this issue is probably caused by the method you used to load KELFBinder" +_ = "" -- garbage placeholder + function Drawbar(x, y, prog, col) Screen.clear() Graphics.drawRect(x-(prog*2), y, prog*4, 5, col) @@ -155,9 +156,8 @@ end ROMVER = string.sub(ROMVER, 0, 14) System.closeFile(temporaryVar) KELFBinder.init(ROMVER) - local REGION = KELFBinder.getsystemregion() local VMODE = NTSC - if REGION == 3 then VMODE = PAL end + if KELFBinder.getsystemregion() == 3 then VMODE = PAL end if doesFileExist("INSTALL/CORE/480p.opt") then VMODE = _480p elseif doesFileExist("INSTALL/CORE/720p.opt") then VMODE = _720p elseif doesFileExist("INSTALL/CORE/1080i.opt") then VMODE = _1080i @@ -173,3 +173,4 @@ System.sleep(5) Screen.clear(Color.new(0xff, 0xff, 0xff)) Screen.flip() while true do end +