Skip to content

Commit

Permalink
webMAN MOD 1.47.46h
Browse files Browse the repository at this point in the history
- Improved scan notification for Russian & other languages (issue #1098)
  • Loading branch information
aldostools committed Jul 31, 2024
1 parent 319ec08 commit 10dc303
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 11 deletions.
Binary file modified _Projects_/updater/pkgfiles/USRDIR/webftp_server_full.sprx
Binary file not shown.
Binary file modified _Projects_/updater/pkgfiles/USRDIR/webftp_server_lite.sprx
Binary file not shown.
Binary file modified _Projects_/updater/pkgfiles/USRDIR/webftp_server_noncobra.sprx
Binary file not shown.
Binary file not shown.
Binary file modified _Projects_/updater/update/dev_hdd0/plugins/webftp_server.sprx
Binary file not shown.
Binary file modified _Projects_/updater/update/dev_hdd0/plugins/webftp_server_lite.sprx
Binary file not shown.
Binary file not shown.
20 changes: 12 additions & 8 deletions include/scan/games_html.h
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,11 @@ static void set_scan_path(u8 li, u8 f0, u8 f1, u8 is_net, u8 uprofile, char *par
if(is_net)
{
char ll[4]; if(li) sprintf(ll, "/%c", '@'+li); else *ll = NULL;
sprintf(param, "/%s%s%s", paths[f1], SUFIX(uprofile), ll);

if(li == LANG_CUSTOM) sprintf(param, "/%s%s", paths[f1], AUTOPLAY_TAG);
if(li == LANG_CUSTOM)
sprintf(param, "/%s%s", paths[f1], AUTOPLAY_TAG);
else
sprintf(param, "/%s%s%s", paths[f1], SUFIX(uprofile), ll);
}
else
#endif
Expand All @@ -419,8 +421,10 @@ static void set_scan_path(u8 li, u8 f0, u8 f1, u8 is_net, u8 uprofile, char *par
sprintf(param, WMTMP);
else
{
sprintf(param, "%s/%s%s", drives[f0], paths[f1], SUFIX(uprofile));
if(li == LANG_CUSTOM) sprintf(param, "%s/%s%s", drives[f0], paths[f1], AUTOPLAY_TAG);
if(li == LANG_CUSTOM)
sprintf(param, "%s/%s%s", drives[f0], paths[f1], AUTOPLAY_TAG);
else
sprintf(param, "%s/%s%s", drives[f0], paths[f1], SUFIX(uprofile));
}
}

Expand Down Expand Up @@ -737,7 +741,7 @@ static bool game_listing(char *buffer, char *templn, char *param, char *tempstr,
#endif
if(is_net && (ns<0)) break;
//
bool ls; u8 li, subfolder; li=subfolder=0; ls=false; // single letter folder
bool ls; u8 li, subfolder; li = subfolder = 0; ls=false; // single letter folder

subfolder_letter_html:
subfolder = 0; if(all_profiles) uprofile = 1; else uprofile = profile;
Expand Down Expand Up @@ -1021,16 +1025,16 @@ static bool game_listing(char *buffer, char *templn, char *param, char *tempstr,
_concat(&sout, "slides = [");
else if(islike(param, "/sman.ps3") || webman_config->sman)
{
sprintf(templn, "<script>document.getElementById('ngames').innerHTML='%'i %s';</script>", idx, (strstr(param, "DI")!=NULL) ? STR_FILES : STR_GAMES); _concat(&sout, templn);
sprintf(templn, "<script>document.getElementById('ngames').innerHTML='%s: %'i';</script>", (strstr(param, "DI")!=NULL) ? STR_FILES : STR_GAMES, idx); _concat(&sout, templn);
}
else
{
sprintf(templn, // wait dialog div
"<div id=\"wmsg\"><H1>. . .</H1></div>"
// show games count + find icon
"<a href=\"javascript:_find();\"> &nbsp; %'i %s &#x1F50D;</a></font>"
"<a href=\"javascript:_find();\"> &nbsp; %s: %'i &#x1F50D;</a></font>"
// separator
"<HR><span style=\"white-space:normal;\">", idx, strstr(param, "DI") ? STR_FILES : STR_GAMES); _concat(&sout, templn);
"<HR><span style=\"white-space:normal;\">", strstr(param, "DI") ? STR_FILES : STR_GAMES, idx); _concat(&sout, templn);

#ifndef LITE_EDITION
sortable = file_exists(JQUERY_LIB_JS) && file_exists(JQUERY_UI_LIB_JS);
Expand Down
16 changes: 13 additions & 3 deletions include/scan/games_xml.h
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ static bool scan_mygames_xml(u64 conn_s_p)
if(is_net && (ns<0)) break;
#endif

bool ls; u8 li, subfolder; li=subfolder=0; ls=false; // single letter folder
bool ls; u8 li, subfolder; li = subfolder = 0; ls=false; // single letter folder

subfolder_letter_xml:
subfolder = 0; if(all_profiles) uprofile = 1; else uprofile = profile;
Expand Down Expand Up @@ -1626,12 +1626,22 @@ static void refresh_xml(char *msg)
pad_data = pad_read();
if(pad_data.button[CELL_PAD_BTN_OFFSET_DIGITAL1] == (CELL_PAD_CTRL_SELECT | CELL_PAD_CTRL_L3) || show_persistent_popup || show_scan_progress)
{
snprintf(msg, 200, "%s:\n %'i %s", STR_SCAN2, games_found, STR_GAMES);
#ifndef LITE_EDITION
if(webman_config->lang > 6)
snprintf(msg, 200, "%s:\n%s - %'i", STR_SCAN2, STR_GAMES, games_found);
else
#endif
snprintf(msg, 200, "%s:\n %'i %s", STR_SCAN2, games_found, STR_GAMES);
show_msg_with_icon(ICON_WAIT, msg);
}
}

sprintf(msg, "%s XML%s: OK\n%'i %s", STR_REFRESH, SUFIX2(profile), games_found, STR_GAMES);
#ifndef LITE_EDITION
if(webman_config->lang > 6)
sprintf(msg, "%s XML%s: OK\n%s - %'i ", STR_REFRESH, SUFIX2(profile), STR_GAMES, games_found);
else
#endif
sprintf(msg, "%s XML%s: OK\n%'i %s", STR_REFRESH, SUFIX2(profile), games_found, STR_GAMES);
show_msg_with_icon(ICON_GAME, msg);
if(!webman_config->nobeep)
play_sound_id(5);
Expand Down

0 comments on commit 10dc303

Please sign in to comment.