Skip to content

Instantly share code, notes, and snippets.

@nmlgc
Created January 26, 2014 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmlgc/8632089 to your computer and use it in GitHub Desktop.
Save nmlgc/8632089 to your computer and use it in GitHub Desktop.
./thcrap/src/inject.c:85: "Could not inject %s.\n" // %s = thcrap.dll
./thcrap/src/inject.c:87: "If you're running Windows Vista or 7, make sure that you have installed the KB2533623 update:\n"
./thcrap/src/init.c:206: log_printf("Applying %s detours to %s...\n", PROJECT_NAME_SHORT(), mod_name);
./thcrap_configure/src/select.c:198: "\t(Contact: %s)\n" // E-mail address
./readme.md:55:* The scripts in the `scripts` directory are written in [Python 3] (http://python.org/).
Repository update script (./scripts/repo_update.py):
# ...
"""Builds and updates a patch repository for the
Touhou Community Reliant Automatic Patcher."""
# ...
metavar='path'
help='Repository source path. Also receives copies of the files.js, '
'patch.js and repo.js files modified by this script.',
# ...
help='Destination directory. If different from the source directory, '
'all files of all patches are copied there.',
metavar='path'
# ...
for x in ['bytes', 'KB', 'MB', 'GB']:
# ...
return "%3.1f %s" % (num, 'TB')
# ...
enter_missing(
patch_js, 'title', 'Enter a nice title for "{}": '.format(patch_id)
)
# ...
'No repo.js found in the source directory. '
'Creating a new repository.'
enter_missing(repo_js, 'id', 'Enter a repository ID: ')
enter_missing(repo_js, 'title', 'Enter a nice repository title: ')
enter_missing(repo_js, 'contact', 'Enter a contact e-mail address: ')
# ...
'Enter the public URL of your repository '
'(the path that contains repo.js): '
# ...
print('Done.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment