Skip to content

Commit

Permalink
configure: Show a more accurate welcome text if updates are disabled.…
Browse files Browse the repository at this point in the history
… [V]

The most important step for a truly useful offline-only mode, though,
would be to only include locally downloaded patches in a local repo.js,
just like in files.js. Right now, selecting an unavailable patch skips
dependency resolution and therefore results in a broken stack.

But who cares.
  • Loading branch information
nmlgc committed Dec 5, 2017
1 parent 490c2d8 commit 7b1eb89
Showing 1 changed file with 35 additions and 17 deletions.
52 changes: 35 additions & 17 deletions thcrap_configure/src/configure.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,25 +277,43 @@ int __cdecl wmain(int argc, wchar_t *wargv[])
"Touhou Community Reliant Automatic Patcher.\n"
"\n"
"\n"
"The configuration process has four steps:\n"
"\n"
"\t\t1. Selecting patches\n"
"\t\t2. Download game-independent data\n"
"\t\t3. Locating game installations\n"
"\t\t4. Download game-specific data\n"
"\n"
"\n"
"\n"
"Patch repository discovery will start at\n"
"\n"
"\t%s\n"
);
if(thcrap_update_module()) {
log_printf(
"The configuration process has four steps:\n"
"\n"
"\t\t1. Selecting patches\n"
"\t\t2. Downloading game-independent data\n"
"\t\t3. Locating game installations\n"
"\t\t4. Downloading game-specific data\n"
"\n"
"\n"
"\n"
"Patch repository discovery will start at\n"
"\n"
"\t%s\n"
"\n"
"You can specify a different URL as a command-line parameter.\n"
"Additionally, all patches from previously discovered repositories, stored in\n"
"subdirectories of the current directory, will be available for selection.\n",
start_repo
);
} else {
log_printf(
"The configuration process has two steps:\n"
"\n"
"\t\t1. Selecting patches\n"
"\t\t2. Locating game installations\n"
"\n"
"\n"
"\n"
"Updates are disabled. Therefore, patch selection is limited to the\n"
"repositories that are locally available.\n"
);
}
log_print(
"\n"
"You can specify a different URL as a command-line parameter.\n"
"Additionally, all patches from previously discovered repositories, stored in\n"
"subdirectories of the current directory, will be available for selection.\n"
"\n"
"\n",
start_repo
);
pause();

Expand Down

0 comments on commit 7b1eb89

Please sign in to comment.