Skip to content

Commit

Permalink
forbid PSX HDD Format if game area is < 40gb sized
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Dec 1, 2023
1 parent 945d787 commit c8e1e63
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions Lang/ENG.LNG
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,4 @@ lang(328, change_timestamp_of, "change timestamp of:")
lang(329, title_cfg, "create title.cfg")
lang(329, Build_Info, "BuildInfo")
lang(330, Loading_Flash_Modules, "Loading Flash Modules...")
lang(331, Psx_fmt_Forbid, Cant format PSX HDD if PS2 area is not extended to 40gb)
2 changes: 1 addition & 1 deletion Lang/SPA.LNG
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ lang(322, Mount, "Montar")
lang(323, About_uLE, "Acerca de uLaunchELF")
lang(324, OSDSYS, "OSDSYS (FreeMcBoot)")
lang(325, Unload_HDL_Game_Info, "descargar Info juego HDL")

lang(326, HDD_Information_Read_Overflow, "Informacion leida (truncado)")
lang(327, time_manip, "Fecha Fortuna")
lang(328, change_timestamp_of, "cambiar fecha de:")
lang(329, title_cfg, "crear title.cfg")
lang(329, Build_Info, "BuildInfo")
lang(330, Loading_Flash_Modules, "Cargando modulos flash...")
lang(331, Psx_fmt_Forbid, imposible formatear HDD de PSX si el area PS2 no esta extendida a 40gb)
19 changes: 10 additions & 9 deletions src/hdd.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,16 +712,17 @@ int ExpandParty(PARTYINFO Info, int size)
//--------------------------------------------------------------
int FormatHdd(void)
{
int ret = 0;

drawMsg(LNG(Formating_HDD));

ret = hddFormat();

if (ret == 0) {
drawMsg(LNG(HDD_Formated));
int ret = 1;
if (console_is_PSX && hddFormated == 1 && hddSize < 40960) {// if console is PSX, HDD is formatted, and recognized size is less than 40gb...
drawMsg(LNG(Psx_fmt_Forbid));
} else {
drawMsg(LNG(HDD_Format_Failed));
drawMsg(LNG(Formating_HDD));
ret = hddFormat();
if (ret == 0) {
drawMsg(LNG(HDD_Formated));
} else {
drawMsg(LNG(HDD_Format_Failed));
}
}

WaitTime = Timer();
Expand Down

0 comments on commit c8e1e63

Please sign in to comment.