diff --git a/src/menu-fn/defs.h b/src/menu-fn/defs.h index e9dc122e..5d89f091 100644 --- a/src/menu-fn/defs.h +++ b/src/menu-fn/defs.h @@ -55,6 +55,7 @@ typedef struct string url_info; string url_dl; string version; + string readme; int size; int svonly; int cldll; diff --git a/src/menu-fn/m_customgame.cpp b/src/menu-fn/m_customgame.cpp index 7d68246b..79bc232d 100644 --- a/src/menu-fn/m_customgame.cpp +++ b/src/menu-fn/m_customgame.cpp @@ -158,6 +158,7 @@ games_init(void) games[id].svonly = 0; games[id].installed = 1; games[id].chatroom = gamedirname; + games[id].readme = "readme.txt"; games[id].pkgid = -1; for (int i = 0; i < county; i++) { @@ -237,6 +238,9 @@ games_init(void) case "gameinfo_chatroom": games[id].chatroom = argv(i+1); break; + case "gameinfo_readme": + games[id].readme = argv(i+1); + break; default: break; } @@ -332,8 +336,10 @@ customgame_installframe(void) /* display download percentage we calculated */ perc = perc / c; - WField_Static(162, 220, sprintf("%d", perc), 320, 260, - col_prompt_text, 1.0f, 2, font_label_p); + WField_Static(162, 220, sprintf("%d%%", perc), 320, 260, + [1,1,1], 1.0f, 2, font_label_p); + WField_Static(162, 220, "Service provided by frag-net.com through archive.org", 320, 260, + [1,1,1], 1.0f, 2, font_label); /* not everything has been downloaded */ if (loading == TRUE) diff --git a/src/menu-fn/m_viewreadme.cpp b/src/menu-fn/m_viewreadme.cpp index a6e42e93..3b79237b 100644 --- a/src/menu-fn/m_viewreadme.cpp +++ b/src/menu-fn/m_viewreadme.cpp @@ -71,7 +71,7 @@ menu_viewreadme_init(void) filestream rdme; string lstline; - rdme = fopen("readme.txt", FILE_READ); + rdme = fopen(games[gameinfo_current].readme, FILE_READ); if (rdme >= 0) { while((lstline = fgets(rdme))) { vr_lbReadme.AddWrapped(lstline);