Touhou Patch Center:Download/Changelog

Note that this a "user-friendly" changelog that only includes visible changes, new features or bugfixes. For the full list of changes, refer to the Git commit history.

thcrap_tsa

 * th06: end: Prevent another crash

thcrap

 * let codecaves refer to each other
 * Fix allocation size bug in codecaves
 * codecaves: allow specifying the memory protection of the codecaves

thcrap-tsa

 * th06: end: detect @ in a correct way
 * th06: end: don't rely on @z

2020-04-03
A few smallish features - base support for replay files renaming, a retry button on JSON parsing error (so that you can fix your JSON file without closing / reopening the whole game), a few fixes for potential memory issues... And one big feature - support for th06-th09 endings.

thcrap

 * Allow absolute path for patch location
 * Allow changing hardcoded strings for FindFirstFileA calls
 * Allow changing hardcoded stings for CreateFileA calls
 * Retry button for JSON errors

thcrap_configure

 * Change advert to UTL
 * Add hint to avoid static English patches

thcrap_update

 * In the "disable updates?" popup, tell that we didn't create the bat file yet.

thcrap_tsa

 * th06-th09 end patching

2019-12-29
Hopefully, this will fix a few more problems with the restructuring update.

thcrap_loader

 * Fix 2 buffer overruns.

2019-12-27
Hopefully this will help a bit with the crashs people are experiencing since the last big update

thcrap_loader

 * Fix a few memory errors around the run_cfg fn

2019-12-18
This release should fix the last problems for Wine users.

thcrap

 * Log: stack trace now prints \n when mod is null
 * Null checks in json_object_foreach

thcrap_update

 * Disabling updates via GUI works again

thcrap

 * Add codecaves
 * Fix plugin loading for older Windows versions

thcrap_tasofro

 * Fix bmpfont plugins path

2019-12-14
Okay, so... You may have noticed the version 2019-07-18 doesn't update automatically to the last release (2019-10-05). That's... because the update code in 2019-07-18 was broken. Actually it have always been broken, it have never been able to create directories, because of a tiny error. But we noticed it only now because that's the 1st time we try to create a directory. Anyway, because of that, we disabled updates, and spent some time trying to mitigate this issue as much as we could. We can now reenable them. The update should work if you used 2019-07-18.

BUT

If you updated manually to the last version (2019-10-05), the auto-update will NOT work. You need to update manually by unzipping this release over your current thcrap, or to redo a clean thcrap install.

Update

 * unzip: don't fail when creating a new directory.
 * Implemented incremental update
 * Look for the latest version in thcrap_update.js
 * Run the self update before updating core patches.
 * postupdate: Fix the restructuring -> version-resolve -> last release scenario.
 * Run the update code even if repos already exists.
 * Add a dummy version-resolve-installed.dat to detect when we went through the version-resolve version

2019-12-13
This version isn't a true version, but an intermediate version used in the process of mitigating the update issues. See the 2019-12-14 patch notes for more details.

2019-10-05
Clean up the thcrap directory.

We used to dump everything at the root of the thcrap directory. DLLs, repository... This have always bothered me. Now, the root directory contains only thcrap_configure, thcrap_loader, your shortcuts to run the games, and 4 directories containing all the stuff that used to be in the root directory.

Also, if you're updating from an older version, all the files are moved to match the new architecture.

See https://github.com/thpatch/thcrap/issues/100 for more discussion, and https://github.com/thpatch/thcrap/compare/775351d2c462273dbe0ab95378b13b3ef8ea1145...8411392415d40ec30cb496eb16d54921449cc0a4 for all the commits.

thcrap_tsa

 * Steam integration for DS and GFW

thcrap_tsa

 * Steam integration for TD and DDC

thcrap_configure

 * Add advert to UTL

thcrap_update UI

 * Use bytes instead of octets.

thcrap

 * Workaround for multi-stage patching crashes

thcrap_configure

 * HTTPSify things

thcrap_tsa

 * Steam integration for WBaWC

thcrap_configure

 * Start repository discovery on thpatch.net instead of nmlgc.net.

thcrap_tsa

 * ANM: Restore the correct sprite ordering after a 1-sprite entry -.-
 * Steam integration for ISC and LoLK

thcrap_i18n

 * Add a lib for translating thcrap itself
 * Mark some strings in configure.cpp as translatable

2019-03-22
Translation notes

and a small bug fix.

Translation notes

 * TSA: Layout: Integrate TL notes.
 * Implement optional pre-rendering and an ID system.
 * Implement texture rendering and display.
 * Draw a black outline around the text.
 * TSA: Remove TL notes on ANM/STD loads, spell cards, and new text boxes.
 * Add a fade-in effect.
 * Auto-scroll long TL notes using a configurable reading speed.
 * Support configurable vertical alignment.

thcrap_tsa

 * ANM: Always patch the whole texture for 1-sprite entries after all.

thcrap_tasofro

 * Fix a bug that caused bmpfont to not work on some computers.

thcrap_tsa

 * Layout: Calculate ruby offsets at twice the precision.
 * Layout: Undo the weird shifting of the ruby sprite in ≥TH15.
 * Perform a bunch of intricate ASCII string alignment hacks for TH06.
 * ASCII: Auto-align the translatable bits in TH16.5's replay strings.
 * ASCII: Always center TH16.5's replay save menu inside the playfield.

thcrap_configure

 * Restore the option to continue configuration after a write error.

thcrap_tasofro

 * Use the git version of the bmpfont generator, with support for vertical text.

BGM modding

 * Fix a potential crash.
 * Remember the actual track position when pausing in ≥TH11.

2018-12-03
BGM modding for TSA games is here! And some ANM patching fixes.

thcrap_tsa

 * ANM: Correctly wrap internal sprites that start outside the texture.
 * ANM: Get sprite wrapping absolutely right.
 * BGM modding

thcrap_update

 * HTTP: Append the CRC to the URL to facilitate cache-busting.
 * Don't update files.js for files that couldn't be written to disk.
 * Don't try to download files that couldn't be written to disk.

thcrap_tsa

 * ANM: Always dump sprite boundaries if we have data, to support TH06.
 * ANM: Support patching via JSON.
 * Layout: Support underlined text markup via .

thcrap_tsa

 * Text images: *Actually* support TH07 correctly.
 * Cache fonts for TH06-TH09 rather than re-creating them for every line.

thcrap_configure

 * Warn on close

thcrap_tsa

 * Add the Steam AppID for th165.
 * Add support for putting custom images in place of text sprites. (TH06)
 * Text images: Add support for TH07.

thcrap_tasofro

 * Csv: allocate a bigger buffer for th105.

2018-08-11
Touhou 16.5 full support!

thcrap_tsa

 * TH06: Never skip PNG splitting based on the original PNG's pixel format.
 * Add a breakpoint to calculate the widest string in a list of strings.

thcrap_tasofro

 * Add support for patching subtitles in th155 (win quotes only)

thcrap_tsa

 * Added initial support for mission descriptions
 * Added furigana support in th095 and th125

thcrap_update

 * Redownload checksum-less invalid JSON files from different servers.
 * update: Work around patch updates not working with games started through wrapper patches.

2018-05-21
Map POV/D-pad inputs to the X/Y axes. Funded by an anonymous person.

thcrap_tsa

 * Map POV/D-pad inputs to the X/Y axes. (Non-DirectInput mode)
 * Map POV/D-pad inputs to the X/Y axes. (DirectInput mode)
 * Ensure that POV→axis mapping works with Steam's overlay.

thcrap

 * Restore the "old game build" popup accidentally removed in efbc4b9.

thcrap_tasofro

 * th155: add a few map files hooks.
 * pl: add an option to split lines before parsing the cells.
 * pl: add th155 v1.10 support.

thcrap_tasofro

 * Cache the bitmap fonts on disk.

thcrap_update UI

 * Add unicode support to the log window.
 * Remove the text limit for the logs.
 * Add PBS_MARQUEE to progress bars when we don't have any progress to show.
 * Add a "Update other games and patches" checkbox.

thcrap_tasofro

 * TFCS: add ruby support.
 * pl: fix a few th155 dialogs (Mamizou ending for example).
 * TFCS: fix a few non-translated win quotes.
 * bmp_font: add support for global replacement fonts.

thcrap_tasofro

 * Add more space for TFCS files (should fix a crash with th155 lang_ru and some other languages).
 * th155: generate the bitmap fonts on the fly.

thcrap_update

 * Remove updates from the game process.
 * Run the game even if we don't know it (fixes vpatch not working).

2018-03-29
We finally have a blocking updater! Just run any game to see it.

thcrap

 * log: use a window from the current processus for the message boxes.

thcrap_loader UI

 * Add a window to display update progress. For now, this window has a static content.
 * Update the UI when the download progresses.
 * Add some UI elements, add the update code and make it work in the thcrap_loader context.
 * Allow update callbacks to cancel the update, and add code behind the "Run the game" button.
 * Add code behind the "Keep running in background" checkbox and the "check updates every N minutes" edit.
 * If background updates are enabled, after updating the current stack for the current game, update all the known stacks for all the known games. Repeat every N minutes.
 * Load/save the settings from/to a config file.
 * At launch, close existing instances of the loader UI.
 * Run the game even if thcrap_update have been removed.
 * Add a button to manually check for updates.
 * Update the thcrap engine.
 * Add a log box, and display a clean state when the update is finished.
 * Implement the "hide logs" button.
 * Add some styles to the main window.
 * Display the progress texts over the progress bars, remove the background color of static controls, increase the buttons size, add and implement a button to completely disable updates, add a checkbox to delay updates until the game is closed (not implemented yet), put the "keep the updater in background" and "time between updates" settings under "settings and logs", change "display/hide logs" to "settings and logs", and... I think that's all.
 * Implement the "Update when the game exits" checkbox.
 * Add a scrollbar to the logs window.

thcrap_configure

 * Fix left margin of editbox/progress
 * Make PrettyPrintPatch not pretty
 * Use absolute paths for shortcuts

2018-03-03
`﻿thcrap_configure` finally has a GUI!!! 🎉 Also, we fixed what was probably the last long-standing bug that kept ZUN games untranslated despite an otherwise correct configuration. If you know anyone who never could get thcrap to work: Now might be the time to try again.

thcrap

 * Plugins: Load DLL dependencies from the DLL's own directory first.

thcrap_configure

 * Initial version of configure gui
 * Make everything async and clickable
 * C O M F O R T
 * Use IFileDialog on Vista+
 * Improve keyboard usability
 * Change subsystem to Windows
 * Clickable selection between multiple versions
 * Progressbar marquee when searching games
 * Allow to skip the shortcut creation
 * Change "Create shortcuts?" message to be more verbose

scripts

 * repo_update: Support .gitignore-style thcrap_ignore.txt files.

thcrap

 * Fix CJK game paths not being recognized properly on DBCS locales.

thcrap

 * Load plugins only after having scanned the entire directory.

thcrap_tsa

 * Fix the ZUN bug of TH09.5+ crashing with no installed sound devices.
 * Fix TH12.8 still crashing with no installed sound devices.

thcrap_tasofro

 * th135: add spell comments support.

thcrap_tasofro

 * bmpfont_fix_parameters: ensure our buffer is big enough.

thcrap_tasofro

 * th155: allow replacement of bitmap fonts
 * Add support for nhtex files

2018-01-25
BGM loop patching, funded by Splashman.

thcrap_tsa

 * Support BGM loop patching for TH07 and later.
 * Support BGM loop patching for TH06.
 * Loopmod: Decide on a single loops.js file for every game.

thcrap_tasofro

 * Add support for th155 win messages.

thcrap_update

 * Make sure that wininet uses UTF-8 internally on DBCS locales.

thcrap_tasofro

 * Load map file for th155 staffroll themes.

thcrap_tasofro

 * Add spellcards hooks for th155

thcrap_tasofro

 * pl: don't decrease the remaining file size when it's 0.

thcrap_tasofro

 * Add the Steam AppID for th155.

2018-01-05
Time traevlling from 2018-01-04 because I forgot to commit something. And I tested the build this time! (but I forgot to proofread my commit message...)

Act/Nut lib

 * Add a nice syntax to edit a whole instruction.

thcrap

 * Log: Show an error message if thcrap_log.txt can't be written to.

thcrap_configure

 * Turn the two game location questions into a single clearer one.

thcrap_tasofro

 * pl: bugfix: put a parenthesis at the right place

win32_utf8

 * Fix URL construction with non-ASCII characters.

thcrap_update

 * Move wininet initialization and cleanup out of DllMain.
 * Fixes rare hangs when starting thcrap_configure.

thcrap_tasofro

 * Add the patchhook for th155 ending files.
 * pl: fix th155 support.

thcrap_tasofro

 * Add th155 and fix th155 BGM indexes.
 * nsml: keep the lock for the whole game patching.
 * Update the PL parser for th155 support.

2017-12-24
No visible changes (only a bugfix), but is an internal change needed to make th105 load way faster.

thcrap_tasofro

 * VFS: while creating the patch object for a map, use a new object instead of updating a copy of the map in place.

thcrap_tasofro

 * png: display the correct file name in the logs (part 2).
 * th123: load spells.js from th105 as well

2017-12-20
Mostly bugfixes and small changes. Fixes instant_ending for th105.

thcrap

 * zip: Don't mix up access and modification time.
 * Fragmented file reading: use the correct input file size when patching a replaced file.
 * BP_file_header: the rep_buffer will be used as the game buffer, so it needs to be big enough to contain the patch.

thcrap_update

 * update: Ignore servers without an URI scheme.
 * update: Print a specific error message for unknown protocols.

thcrap_tasofro

 * cv0: use \n line endings instead of \r\n (takes less bytes).

thcrap

 * vfs: clear the replacement string if we can't replace it with its value.

thcrap_tasofro

 * th105: load map files for spellcards

thcrap_tasofro

 * cv0: add ruby support.
 * th105: add a breakpoint to change the offset of the text from the top of the textbox, and the line spacing.
 * cv0: fix various bugs with text patching.
 * cv0: set the textboxes size to 4 lines for endings, and 3 lines for everything else.

thcrap_configure

 * Draw separating lines between available and selected patches.

thcrap_tasofro

 * th105: fallback to another font if the selected font doesn't support a character.
 * cv0: do not end a box with a \ if the patch file ends with a @.

win32_utf8

 * Support Unicode strings from .ini files in Unicode paths.

thcrap_tasofro

 * Set x and y to 0 in th105 dat files.

thcrap_configure

 * Show a more accurate welcome text if updates are disabled.

thcrap_tasofro

 * png: display the correct file name in the logs.
 * th105: add cv0 support.
 * cv1: ignore commas in quotes.
 * cv0: add a way to escape commas.

thcrap

 * Log: Always display message boxes on top of the foreground window.

thcrap_tasofro

 * BP_nsml_read_file: make a deep copy of the bp_info instead of a swallow copy.

thcrap_tasofro

 * Decrypt cv0 and cv1 files.
 * th105: add csv support.
 * th105: add music room support.
 * Use a theme_id <=> theme_line map for th123.

thcrap_tasofro

 * th123: provide a list of files to *not* inherit from th105.
 * th105: adjust the width/height in dat files to fit the related PNGs.

thcrap/thcrap_tasofro

 * bp_file and nsml: add a few critical sections, so that parallel file reading stops breaking th105 and th123.

thcrap_tasofro

 * Add th123 support.

thcrap_tasofro

 * BMP/CV2: compute the size needed for the replacement file, allowing replacement with bigger files.

thcrap

 * Support custom base addresses for the hackpoints of init stages.

thcrap_tasofro

 * th105: ignore case when patching files.

2017-11-19
A feature needed for th16 Steam support

thcrap

 * Support multiple stages of binary hacks and breakpoints.

thcrap_tasofro

 * Add th105 support

2017-11-16
Another bugfix

thcrap_tasofro

 * nsml_file_header: add a fn_size parameter

2017-11-15
2 bugfixes

thcrap

 * Fontrules: initialize lfQuality in the replacement rules.

thcrap_tsa

 * MSG: Correctly align TH13's Parallel Ending explanation.

thcrap

 * Add Steam integration for games without.

thcrap_tsa

 * Add the Steam AppIDs for the TH16 full and trial versions.

thcrap_tasofro

 * Add megamari support
 * Add png->bmp conversion

2017-11-02
Small bugfix for a bug introduced in

thcrap

 * Patchhooks and vfs: force forward slashes

thcrap

 * Allow patches to display a customizable message on startup.

thcrap_tasofro

 * Read the fileslist in json format
 * Include a dump of the files list if dat_dump != false.

2017-10-28
Bugfix for nsml

thcrap

 * Fragmented file reading: do not clear the file_rep if we need to run the hook later.

2017-10-27
Here comes the 1st fangame supported by thcrap!

thcrap

 * Add DumpDatFile for fragmented file loading.

thcrap_tasofro

 * Add nsml support.
 * nsml: add cv2 support.

2017-10-23
Mostly internal changes. As always, check the commits history on Github for full details.

thcrap

 * Add support for expressions in breakpoint parameters

thcrap_update

 * Show a clearer message if an old game version is definitely not supported.

thcrap_configure

 * Display file download progress.

thcrap_update

 * self: Try to use a non-random name for the backup directory first.

thcrap_tsa

 * devicelost: fix using more generic approach
 * devicelost: fixed device not reseting when no reset is required
 * TH10: Work around the Game Over theme being No. 8 in trial versions.

thcrap_tasofro

 * Add music room support

thcrap_tasofro

 * Fix some pl-related bugs.

2017-09-13
Bugfixes in thcrap_tsa and thcrap_tasofro, and adding the OS version in the user-agent (collected anonymously of course, it will be used for statistics, to decide if we should drop XP support).

thcrap_configure

 * Only accept ENTER to finish patch selection.

thcrap_update

 * Send the operating system version in the User-Agent.

thcrap_tsa

 * MSG: Change the speech bubble side *after* terminating the previous box.
 * MSG: Improve log readability of speech bubble shifts and cutoffs.

thcrap_tasofro

 * TFCS: write all balloons in their own columns for win quotes

thcrap_update

 * Go back to storing the required thcrap build as a per-patch setting.

thcrap_tasofro

 * Don't crash when running on unknown games (or vpatch).

thcrap

 * Print exceptions into the logs

thcrap_tsa

 * ANM: Don't try to initialize sprites for entries without textures.

thcrap_tasofro

 * Add spellcards support for th135.
 * Tweak a few things to support HM story mode.

thcrap_tsa

 * MSG: Support TH14's new speech bubble shape/direction command.

thcrap_tasofro

 * Add support for th135.

thcrap

 * textdisp: Add font quality as a fifth parameter to font rules.

thcrap_tsa

 * Shift speech bubbles to make room for longer lines, if necessary.

thcrap_tasofro

 * Plaintext: quote patched lines, and escape the quotes inside them.

2017-08-12
The last pieces of code to reach ULiL full support.

thcrap_update

 * Tell people to report CRC32 mismatches.

thcrap_tasofro

 * Add plaintext files support.

Act-Nut lib

 * Add support for patching nut instructions

thcrap_tasofro

 * Fix a crash when replacing files around the end of the archive.
 * Add win quotes support.

thcrap_tasofro

 * Act/Nut: support flex arrays as input

thcrap_tasofro

 * Add Act/Nut support.

2017-07-04
A fix for a ZUN bug with th11+ crashing when you lock your computer, and a fix for ULiL v1.41.

thcrap_tsa

 * Attempt to fix devicelost crash

thcrap_tasofro

 * Allocate more space for char_select spellcards, and print warnings to the log when the buffers are too small.

thcrap_tasofro

 * tasofro: add binhacks support

2017-06-27
Fixes a crash with th09 and th095 on Windows 10, and prepares things for th143 title messages and th145 v1.41

thcrap

 * inject: Correctly reference-count DLLs by not reference-counting at all.

2017-06-22
Two bugfixes

thcrap

 * Spell out the UTF-8 bytes of the → printed during game identification.

thcrap_configure

 * Fix folder selection.

thcrap_configure

 * Initialize the folder browse dialog at the current directory.

thcrap_tsa

 * Generic text: Allow multiple target strings in the same breakpoint.

thcrap_update

 * Remove a file from the local files.js if it doesn't exist locally.
 * Delete files that shouldn't exist according to the local files.js.

thcrap

 * Strings: Actually reallocate correctly.

thcrap

 * Add support for creating virtual files in memory.
 * Support UTF-16LE JSON files.

thcrap_configure

 * There are four steps, not two

thcrap_update

 * Unload if it has been renamed.

thcrap_tasofro

 * Don't show the sandbox reconfiguration message for empty patch stacks.
 * Add spellcards support
 * Spellcards: use name(id) instead of id(name) and use 0-based IDs for player spellcards.
 * Story spellcards: fill the spellcards for higher difficulties with translations of lower difficulties.

2017-05-13
Some internal changes needed for AoFC patching.

2017-05-07
A small internal change needed to patch strings in TH16.

2017-05-06
Restored custom.exe translation, and improved both performance and stability of patch downloads.

thcrap_tasofro

 * Tell people to reconfigure if th145 is run with the sandbox.
 * Patch support for is now stable.

thcrap

 * Fix a bug that disabled translation of the custom.exe programs in the last build.
 * Make sure that loaded plugins actually have a .dll extension.
 * Turns out that the feature of renaming thcrap_update.dll actually comes up quite regularly in discussions about thcrap. Better make sure that renaming it to something like .dll_ actually works, which it didn't before due to backwards compatibility to 16-bit Windows.

thcrap_update

 * Select the download server based on ping, not total download time.
 * With patches typically consisting of lots of small files, ping becomes the most crucial metric.


 * Pick servers based on the average of the last 5 ping measurements.
 * At least in my test case, this (very arbitrary) value provided enough of a buffer against the ping time spikes that happen from time to time.

2017-04-04
Fixes a bug in the last release where the user has to manually extract the new version.

thcrap

 * Add a thcrap_update wrapper, providing offline versions when thcrap_update.dll have been removed.
 * zip: Iterate over extra fields correctly.

thcrap

 * Fix the immediate game crash when using the "ignore" functionality.
 * Add a mechanism for plugins to disable themselves for unsupported games.

thcrap_tasofro

 * Add support for some plaintext CSV files.

2017-02-24
A small release to fix the ULiL ending bugs (and another bug while I'm at it).

thcrap_tasofro

 * Change the way quotes are parsed in pl files.
 * Add new balloons supports in endings.
 * Apply the balloon expanding after retrieving the user-defined balloon.

2017-02-17
Another small update with a few bug fixes.

win32_utf8

 * CharNextA: Try to handle the given string as utf-8 before handling it as being in fallback_codepage.

thcrap_tasofro

 * pl: automatically use a bigger balloon if we try to display too many lines in it.

2017-02-15
Bug fixes, and addition of new features that should have been there before in the tasofro pl parser.

thcrap_tasofro

 * pl: don't skip lines of text when they follow another line of text
 * pl: add support for the last text block of ending files
 * pl: add quotes escaping
 * pl: add ruby support

2017-02-05

 * Update our dependent libraries. Including an important change to Jansson that (finally) preserves the insertion order of JSON object items.

thcrap

 * Implement log file rotation.
 * Include Discord links.

thcrap_tsa

 * Added BP_spell_owner.
 * ANM: Clamp width and height of sprites to the actual texture.

thcrap_tasofro

 * Fully redo replace_file to fix crashes when the game reads 2 files concurrently.
 * Add hooks support
 * Add story mode support
 * Add support for TFCS files.
 * Add endings support.

2016-08-10

 * Update our dependent libraries.

thcrap

 * Apply detours to all import descriptors of a DLL, not just the first one.
 * Support custom fallback codepages as an optional 4th element in version arrays.
 * Tell people to post unknown executables on Gitter or IRC.

thcrap_configure

 * Write run configuration files and games.js in text mode.

thcrap_loader

 * Show an error message if the run configuration was not found.

thcrap_tsa

 * MSG: Correctly insert new >251/255 byte lines that need to be cut off.

thcrap_tasofro

 * 1st step of tasofro games support: adding file replacement support in ULiL.

2016-07-03

 * Update our dependent libraries.

thcrap_tsa

 * Actually patch 8-bit grayscale images.
 * th06: add support for in-games music titles.

thcrap_tsa

 * th06: stop using paletted images.

2016-03-27
Fix: the previous build should have been built with VS2013 instead of VS2015.

thcrap

 * inject: Only apply detours for newly loaded DLLs a single time.

thcrap_update

 * Show a notification window during self-updates.

thcrap_tsa

 * th06: add support for patching of 24-bits RGB files.

2016-02-17

 * Update our dependent libraries.

thcrap

 * inject: Don't pass an invalid current directory to CreateProcess.
 * PE: Fix the import directory presence check.

thcrap_tsa

 * Add support for th06 PNG files.

thcrap

 * Restore the exports of the LoadLibrary injection detours.
 * Add function level promotion detours for the CreateFont family.
 * textdisp: Split the CreateFont detour to make use of detour promotion.
 * textdisp: Introduce a consistent string representation for LOGFONT structures.
 * textdisp: Add a rule-based font replacement system.
 * Standardize the handling of the "cave_exec" breakpoint parameter.
 * Add json_flex_array_get_string_safe.
 * Introduce a module hook to be called on thread detach events.
 * plugin: Optimize module hooks by caching the functions called for each.

thcrap_update

 * Only download necessary patch data during configuration and updates.
 * Self-updater: Delete local files whose updated versions would be 0-byte files.

thcrap_tsa

 * Layout: Only add the original X offset in the final rendering call.
 * ANM: Correctly shift the alpha value when blending 16-bit sprites.
 * Layout: Don't increment the tab counter if no tab commands were used.
 * Layout: Recognize 'l' as a tab command.
 * Layout: Perform full text layout in GetTextExtent.
 * Layout: Use custom callback functions to render substrings.
 * Layout: Fix an off-by-one error in layout_match.
 * Add a module for translation of generic plaintext formats.
 * MSG: Cut off replacement strings at the last Unicode code point.

thcrap_loader

 * Move the last piece of high-level injection code from the loader to the core.
 * Give "exe" precedence over "game" in the run configuration.
 * Improve the help messages about passing the target executable.
 * Don't show two messages on a run configuration syntax error.
 * Show a more helpful error if a game ID wasn't found in games.js.

scripts

 * repo_update.py: Don't count deleted files towards the file count of a patch.

win32_utf8

 * Add CreateFontIndirect and CreateFontIndirectEx.
 * Export function level promotion for the CreateFont family.
 * win32_utf8: Add DragQueryFile.
 * shell32: Ensure the correct calling convention.
 * LoadString: Return the string in the fallback codepage if possible.
 * CreateFontIndirect*: Limit face name conversion to the actual string length.
 * Add SHBrowseForFolder.
 * Add WritePrivateProfileString.
 * Add ExtractIcon and ExtractIconEx.
 * Add GetGlyphOutline.
 * Add UnregisterClass.
 * Add ExtTextOut and TabbedTextOut.
 * Add the GetFileVersionInfo functions.
 * RegisterClass*: Fix a crash if lpszMenuName is an integer resource ID.
 * Add GetOpenFileName and GetSaveFileName.
 * STUB GetClassInfo and GetClassInfoEx.
 * StringToUTF8: Don't include the terminating \0 in the returned length.
 * FormatMessage: Support FORMAT_MESSAGE_FROM_STRING.
 * FormatMessage: Fix non-allocating calls.
 * FormatMessage: Fix a few return value and error code issues.
 * FormatMessage: Parse the formatting syntax and convert any string arguments.
 * FormatMessage: Actually use the correct size for the allocated buffer.
 * OPENFILENAME functions: Write nFileOffset and nFileExtension.
 * FormatMessage: Fix FORMAT_MESSAGE_ARGUMENT_ARRAY for 32-bit builds.
 * Add GetCommandLine.
 * Add CommandLineToArgv.
 * Add DirectSoundCaptureEnumerate and DirectSoundEnumerate.
 * Add main.

2014-05-28
When ZUN releases a game *outside* your vacations for a change, RL swamps you with work and your hardware starts failing, it's just going to take a while for 14.3 support to get done. Therefore, this is merely an intermediate release, focusing on fixes for bugs pointed out by our new members in the patch network, but also adding a bit of the functionality required for th143.

thcrap

 * Fix random crashes in the hot-repatching module on Wine.
 * ... with "random" meaning "shortly after starting the game, if updated patch data needs to be downloaded".


 * Always skip the UTF-8 byte order mark on JSON loading.
 * Thanks to Nazeo for pointing that out.


 * Revise file size handling in file breakpoints.
 * Not only does this streamline the code a lot, it also fixes a long-standing bug: In patch configurations that have both a replacement file bigger than the original and a .jdiff patch on top, the replacement file would have been cut to the size of the original game file during .jdiff application, losing data in the process.
 * Thanks to Gamer251's Mima patch for creating such a configuration and revealing this flaw.


 * Allow to overwrite JSON objects with other types.
 * This also allows a patch to clear all data in a certain JSON file below its own position in a patch stack, by replacing its contents with an empty array.
 * This might be useful if a patch decides to use only the native .msg format for in-game dialogue instead of .jdiff. Since .jdiff's are always resolved and applied after .msg's, a .jdiff in any position in a patch stack would always be prioritized over a .msg. Therefore, a patch can keep its own translations while still being stacked together with others.

thcrap_configure

 * Fix patch removal to work with absolute dependencies.

scripts

 * Filter out Thumbs.db when enumerating the files of a patch.

win32_utf8

 * Add EnumFontFamiliesEx.

2014-05-12
Just a one-line change to register the th143 dialog file name pattern in order to make translations show up.

thcrap_tsa

 * Register the th143 dialog file name pattern.

2014-05-08
... and just when you thought you had a rock-solid build, you notice a bug in the one main thing you wanted to focus on. Oh well, at least we do have the option to ship updates on a daily basis now.

thcrap_configure

 * Fix a logic error with read-only repository files.
 * Use SHBrowseForFolder to select the root game path.
 * Ask to search in another directory if no games were found at all.

scripts

 * repo_update.py: Catch the error thrown if files.js doesn't exist.

-

2014-05-06
Over three months of development, resulting in digitally signed automatic updates of thcrap itself... as well as lots of features nobody has asked for, and which will only matter a few years from now.

thcrap

 * Use a custom resolving chain for global.js and the game's main JSON files.
 * Previously, game-specific settings from patches at a lower position in the stack would overwrite global settings from higher up. This allows global.js to reach its full redundancy-elimination potential.


 * Move thcrap updating information from patch.js to the run configuration.
 * Check for a valid file name pointer when dumping a data file.
 * Would have caused a crash if BP_file_loaded was called after the file was replaced by BP_file_load in particular modding scenarios.


 * Optionally check a binary hack against an expected sequence of bytes.
 * This can be used to selectively disable certain binary hacks if they would crash a particular variety of a game build. Especially helpful for cooperation with certain other patches (*cough*gensokyo.org*cough*) which have statically modified the binary to such an extent as to make unpatching their modifications annoying enough.
 * Fixes bug #49.


 * Detour ExitProcess to properly shut down any thcrap worker threads.
 * This has fixed a crash on quitting the game for at least one person.


 * textdisp_CreateFontA: Only override iCharSet if a face name is given.
 * Mainly of interest for people who use thcrap without a translation patch.


 * Implement detour chaining.
 * A great technical breakthrough that allows for forwards-compatible patches using IAT detouring! Yes, it doesn't qualify as a visible feature at all, but this is the kind of innovation and consideration that makes this engine so special.


 * Add a module to watch for and apply changes to the patch files.
 * AKA "hot-repatching". Mostly to address a slight design flaw in the custom formats used by thcrap, this brings "self-updating" to a completely new level. However, it is currently only implemented for the following file types:
 * Hardcoded strings and their locations (stringdefs.js and stringlocs.js)
 * Format specifications (formats.js)
 * Music titles (themes.js</tt>) and comments (musiccmt.js</tt>)
 * Spell cards (spells.js</tt>) and comments (spellcomments.js</tt>)
 * Other data formats won't be repatchable without investing a lot of effort.


 * json_object_get_create: Fail if the containing object is NULL.
 * This has certainly caused crashes for someone out there.


 * Zip file reading support.
 * ... although it kind of saddens me that this sort of reinforces the notion of Zip being The Universal Standard Deflate Container. It quite frankly a terrible format which we all should have stopped using together with MS-DOS and floppy disks.

thcrap_configure

 * Use the flexible array loop for dependencies.
 * Whoops... This broke automatic dependency resolution for every patch with just one dependency. And I only noticed it when a Japanese user wanted to use Skipgame and nothing else.


 * Default to the Nmlgc repository.
 * Mention the artwork offer.

thcrap_update

 * Link to the default zlib1.dll instead of zlibwapi.dll.
 * Yes, you can delete the latter file now. ☺


 * Allow deletion of unmodified patch files by using JSON nulls in files.js.
 * Move update notifications for thcrap and the game itself to thcrap_update.
 * Add digitally signed automatic updates of thcrap itself.

thcrap_tsa

 * MSG patching: Increment the line counter correctly to repair hard line patching.
 * Well, counting is hard, it seems. Add the general horror of the .msg patcher and a lack of testing with the 2 ½ games that need this feature, and you have what is probably the most embarrassing bug in thcrap history. Fixes bug #52.


 * Remove the <f$> ruby layout parser introduced in 2013-08-20.
 * While "automatic ruby support everywhere" may have been a nice thought, the results were never exactly pretty, and barely legible at 640x480.


 * BP_ruby_offset</tt>: Fix a crash if "font_dialog" or "font_ruby" are not given.
 * Layout: Don't overwrite the current width when defining a tabstop.
 * Will be relevant for hardcoded string translation later on.


 * Layout: Parse font-related commands before anything else.
 * sprite_patch_set</tt>: Verify the destination sprite coordinates.
 * Fixes a bug introduced with advanced image patching in 2014-01-03. ANM entries can define sprites with coordinates outside the dimensions of the original texture. However, if these happen to be inside the dimensions of a replacement image, the sprite is "patched" regardless - thus, overwriting random memory in the process and crashing the application.
 * This broke the trial versions of th14 when used with the Western name order patch, prior to a corresponding fix to the data itself.
 * Thanks to Rindou for reporting this issue.


 * Layout: Only use the rightmost tab cell for the last token on a line.
 * Previously, this effectively did not render any token beyond the first one that didn't provide a second parameter. As a result, this broke a lot of potential layout options.

scripts

 * repo_update.py: Dump JSON with Git-compatible whitespace.
 * repo_update.py: Explicitly set UTF-8 encoding for text I/O.
 * Add a script to digitally sign a release archive.
 * Don't try to create directories with empty names when writing JSON files.
 * Enforce Unix line endings for JSON files.
 * Apparently, GitHub automatically does this. As a result, the checksums created by the script would no longer match up with the actual content downloaded from there if we didn't do this ourself. And well, compatibility with GitHub is more important than compatibility with the original Notepad.

win32_utf8
(Mainly as a result of frustration from anything else, this project was greatly enhanced in this release in an attempt to provide locale independence for various additional Touhou fangames.)
 * Add MoveFile, MoveFileEx and MoveFileWithProgress.
 * Add GetTempPath.
 * Add GetFileAttributes and GetFileAttributesEx.
 * Add LoadString.
 * Add WideCharToMultiByte and MultiByteToWideChar.
 * This might be quite a controversial change, seeing that it robs a program of the ability to convert between any other single- or multi-byte encoding that is not UTF-8 - which is probably why AppLocale doesn't do anything similar. However, it has only improved things as far as I've tested...


 * Add InsertMenuItem.
 * Add fopen.
 * Well, we had to enter C runtime territory at one point.


 * Add RemoveDirectory.
 * Add DeleteFile.

2014-01-27
Hotfix to repair update notifications, which have been broken since 2014-01-03.

thcrap

 * Fix a reference counting issue that broke update notifications in 2014-01-03.
 * Luckily, this is thcrap and there is still the possibility for nifty workarounds to deal with the problem that every user of 2014-01-03 will never see any regular update notification...

2014-01-26
8 bugfixes of varying intensity, multi-address breakpoints, the most proper Ruby annotation patching we will ever have, and finally, a script to create your own custom patch server! Global Touhou Patch Network, here we come!

scripts

 * Add a script to build and update a patch repository.

thcrap

 * Support breakpoints with multiple addresses.
 * Eliminate crashes when an "archive" object is no string.
 * Tell the user to download KB2533623 if DLL injection failed.
 * Only use the LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR</tt> flag if KB2533623 is installed.
 * Another cause for DLL injection failure, and hopefully the last one. The LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR</tt> flag of LoadLibraryEx is unsupported on Windows XP, but the function works just fine otherwise. However, on Windows Vista and 7 installations *without* KB2533623 installed, the function just outright fails entirely if that flag is given. As a result, the last build broke thcrap for pretty much everyone who hasn't updated their Windows Vista or 7 since KB2533623 was published in 2011.


 * Fall back to IAT detouring by pointer if OriginalFirstThunk is not available.
 * Fixes a crash that previously occurred in this case. This is particularly likely to happen with unpacked versions of previously packed binaries (UPX decompressor, I'm looking at you).


 * Introduce a global run configuration file at the bottom of the hierarchy.
 * This can be used to define general run configuration elements shared by all games.


 * binhacks_apply</tt>: Fix a logic flaw in the log counting.
 * thcrap_detour</tt>: Show the name of the module the detours are applied to.

thcrap_configure

 * Display a repository's contact e-mail address.

thcrap_tsa

 * Fix a potential buffer overflow when determining the .msg.jdiff slot key.
 * One of the last few fixed char arrays left in the code, and it was susceptible to a buffer overflow. Hooray.


 * MSG patching: Don't patch in invalid TSA ruby syntax due to utter plebbery.
 * Just... just... No, I won't reproduce the commit message here. Click the link above to see the full horror.


 * Music Room patching: Don't print "@" for untranslated music titles.
 * Add a breakpoint to calculate the X offset for variable-width Ruby annotations.
 * Third attempt at patching ruby annotations. At a cost of requiring 6 values per game, we finally got it right this time. Fixes bug #47.

thcrap_update

 * ServerDownloadFile</tt>: Fix potential memory leaks.
 * Ensure graceful termination while an update is in progress.

win32_utf8

 * Add IsDBCSLeadByteFB</tt>.
 * Required to provide enough "AppLocale" support to run (an unpacked) Danmakufu without crashing.

2014-01-03
Finally, advanced image patching, patch dependencies, another bunch of small things... and a New Year's Resolution of never taking as long with releasing new build ever again during active development.

thcrap

 * Do string table lookups for string parameters in variable argument lists.
 * Required to translate certain hardcoded ASCII strings that only appear as a parameter to a sprintf</tt> format string.


 * Persistent string concatenation
 * Required for that one instance in the custom.exe</tt> of.


 * Support relative paths in the run configuration by turning them into absolute ones internally.
 * Fix some memory leaks and reference counting issues.
 * Fixes bug #41.


 * inject_CreateRemoteThread</tt>: Catch and detour LoadLibraryW</tt>.
 * Required for patched netplay on top of Adonis.


 * thcrap_init</tt>: Don't log exported functions.


 * Use <tt>LoadLibraryEx</tt> in the injection payload to guarantee the correct DLL path.
 * This should fix the "Could not load the DLL" errors resulting from old DLL versions in the game's own directory, which we have always advised against anyway.

thcrap_configure

 * Write relative paths.
 * Hardcode <tt>srv.thpatch.net</tt> as the default patch server.
 * Of course, this setting can still be overridden through the command line. This merely eliminates the need to bundle a <tt>server.js</tt> with thcrap.


 * Mention that the shortcuts work from anywhere.
 * Rename the patch list "server" concept to "repository".
 * Prior to this, we had two things called "server": the list of patches downloadable from one place (stored in <tt>server.js</tt>) and the actual download URLs (stored in the <tt>"servers"</tt> array of <tt>server.js</tt> and <tt>patch.js</tt>).


 * Add recursive patch repository discovery.
 * Global Touhou Patch Repository Network, here we come!


 * Display all locally available repositories in the patch selection.
 * Move the list of selected patches to the bottom.
 * Makes sense to put it closer to where the user is actually looking when selecting patches, especially once there'll be a lot to scroll.


 * Truncate long patch IDs.
 * Patch dependency resolution
 * Works either absolute (by directly specifying the target repository ID) or relative (and then resolves a dependency first on a patch's own server, then globally across all known repositories).


 * Use a new method for naming run configurations.
 * Now, all patches below the first translation ("lang_") patch don't show up in the name. I bet that people aren't particularly enthused about being told all the dependencies necessary for their language.


 * Ask for a custom run configuration file name.
 * ... and that's just in case we swallowed too much by doing the above.


 * Ask if existing run configuration files should be overwritten.
 * Require the selection of at least one patch.
 * I know at least two people who once accidentally pressed Enter without selecting a patch. Sure, running without any patches might be a valid use case - thcrap behaves effectively like AppLocale then. That's not what people usually want though.


 * Print errors if writing failed, and ask the user to continue.
 * Reword the patch selection.
 * Set a sufficiently large console screen buffer to hold the patch list on Wine.
 * Fixes bug #46.

thcrap_tsa

 * Correctly parse nested layout markup.
 * Set window title to translated game title and identified build.
 * Advanced image patching:
 * Alpha-based patching on sprite level.
 * By classifying an alpha channel into one of three states ("empty" if all alpha values are 0, "opaque" if all alpha values are 0xff, and "full" for everything else), we can selectively patch parts of images, defined by the ANM entry's sprite list. This can drastically reduce the size of the replacement PNGs in certain cases: If only certain sprites of an image need to be edited, the unchanged ones can be "ignored" by simply deleting them (that is, zeroing their alpha channel).
 * Perform alpha blending for opaque originals.
 * Walk the patch stack.
 * Fix a logic flaw in ANM sprite boundary resizing.

thcrap_update

 * Use the new <tt>files.js</tt> file instead of <tt>patch.js</tt> for updating.
 * Way easier to handle.

win32_utf8

 * Add <tt>SetDlgItemText</tt>.

2013-10-25
The result of two months worth of painstaking detail work. DLL injection chaining (read: vpatch) support, a number of smaller bug fixes, and quite a lot of general quality improvements throughout the code base.

thcrap

 * Actually *call* <tt>strings_patch</tt>. -.-
 * Necessary to translate the confirmation message box in custom.exe.


 * Eliminate directory creation confusion and patch <tt>CreateDirectoryA</tt>.
 * Now, the initial creation of the AppData directory for games from th125 on no longer fails if a user name contains non-ASCII characters.


 * Patch Win32 dialog font sizes.
 * Mainly necessary to work around broken font settings in the custom_e.exe of the th095 English patch.
 * Correctly determine the size of patched Win32 dialog items, once and for all.


 * <tt>strings_vsprintf</tt>: Rewrite to work independently of string encoding.
 * Hardcoded ASCII strings can now safely appear in-game.


 * Introduce a "Rx" syntax for hexadecimal addresses relative to the game's base address.
 * Use three methods to determine the entry point of the game process.
 * DLL injection (and thus, thcrap as a whole) now also work for games using address space layout randomization.


 * Detour <tt>CreateProcess</tt> and <tt>LoadLibrary</tt> for DLL injection chaining.
 * Detour <tt>CreateRemoteThread</tt> to apply the thcrap detours to newly injected DLLs.
 * Add <tt>inject_CreateProcessW</tt>.
 * Or in short: thcrap can now be chained to vpatch.


 * Add a basic custom exception handler.
 * Crash logs now at least contain the exact code address where the crash occurred.


 * <tt>log_nprint</tt>: Check if the console was opened.

thcrap_tsa

 * <tt>tsa_CreateWindowExA</tt>: Observe CW_USEDEFAULT.

win32_utf8

 * Add <tt>GetModuleFileNameEx</tt>.
 * Redirect GetWindowLong and SetWindowLong to their W equivalents.
 * Fixes a window title glitch in th135.
 * Add <tt>GetPrivateProfileInt</tt>.
 * Required for vpatch.

2013-08-25
Win32 dialog patching, and a couple of smaller fixes for bigger problems.

thcrap

 * Win32 dialog patching
 * <tt>strings_lookup</tt> for <tt>MessageBox</tt> and <tt>CreateWindowEx</tt>.

thcrap_tsa

 * Fix window placement bugs in the original games.
 * If a Touhou game is closed while being minimized, the game window will no longer be placed at some unreachable "pseudo-minimized" position on new sessions.
 * If the game window was moved to another monitor which is then disconnected, the game window will now still be created at a visible place, approximating its old position.
 * Do string lookup in <tt>GetTextExtent</tt>, not in <tt>GetTextExtentBase</tt>.
 * Fixes a regression introduced in 2013-08-20 where string lookup in <tt>GetTextExtent</tt> was not working as expected (noticeable in the th07 main menu descriptions).


 * Add the <tt>custom.exe</tt> bug fix for Western systems.

thcrap_configure

 * Maximize the height of the console window.
 * We've been accumulating so many patches lately that they've been starting to go beyond the already enlarged console window.

win32_utf8

 * Add <tt>CreateDialogParam</tt> and <tt>DialogBoxParam</tt>.
 * Now, Windows dialogs also come with "AppLocale functionality".


 * Add DrawText.

2013-08-20
Music Room and proper ruby. 'nuff said.

thcrap

 * <tt>stack_game_file_resolve</tt>: Fix build-specific files to actually work as expected.

thcrap_tsa

 * Add ruby layout.
 * <tt>GetTextExtent</tt>: Take layout markup into account.
 * Add Music Room comment patching.
 * Add Music Room title patching.

2013-08-15
Another three small things: two in the updater, and one in the build configuration.

thcrap_update

 * Don't download 0-byte files.
 * Ignore Internet Explorer's "work offline" setting.

Build configuration

 * Include zlib in the libpng DLL... apparently, this is necessary on some systems.

2013-08-12
Three small things - one of that actually being a rather important improvement - before th14 comes out. Nothing relevant.

thcrap_configure

 * Well, it's the th14 full version release and still no GUI...
 * Disable console by default in new run configurations.

thcrap_update

 * Actually verify the CRC32 of downloaded files.

2013-08-08
Hardcoded string translation... and comparatively many bug fixes.

thcrap

 * Use thread-local storage for the global <tt>file_rep_t</tt> object. (File patching is thread-safe now.)
 * IsLatestBuild: Fix a crash if <tt>latest</tt> is neither array nor string.
 * Include build-specific files in the patch stack resolving functions.
 * Add basic translation of hardcoded strings via dictionary lookup.
 * Add a safe and persistent <tt>vsprintf</tt> handler.
 * CreateFontA: Check hardcoded strings for a replacement font.

thcrap_tsa

 * Layout command 't': Choose the longest string out of all given parameters. (Fixes a logic flaw in ending text alignment.)

win32_utf8

 * Add <tt>GetEnvironmentVariable</tt>. (Necessary to run th125 and later with user names that contain non-ASCII characters.)

2013-08-05
A text layout parser, and bug fixes in the UTF-8 wrappers.

win32_utf8

 * StringToUTF16: Actually observe input and output widths correctly.
 * TextOutU/GetTextExtentPoint32U: Clear out the wchar_t buffer before writing.

thcrap_tsa

 * Add a TextOut hook with a parser for special tabstop and alignment syntax.

2013-07-29
Images! (and probably Endings!, too)

thcrap

 * Remove the th11 English patch assist font width kludge.
 * Fix the infinite loop on failed plug-in loading.
 * Move logging for file breakpoint down to the resolving functions.

thcrap_update

 * Fix the server number comparison.

thcrap_tsa

 * Add basic ANM patching for all formats.
 * Add patching support for multiple textures in one image, starting at custom positions
 * Add ANM sprite boundary dumping, invoked by <tt>dat_dump</tt>.

2013-07-16
Answers to a couple of smaller problems that came up with doing spell cards.

thcrap

 * Thread-safe ESP manipulation in the breakpoint handler
 * Add GetTextExtentForFont.

thcrap_configure

 * Use a custom pausing function instead of <tt>system("pause")</tt>.

2013-07-14
Spell cards!

thcrap

 * Automatically look up breakpoint functions using the runconfig key.
 * Remove manual breakpoint registration.
 * Add support for multi-slot breakpoints.
 * Refactor stack file resolving to include support for game-local JSON files.
 * Run patch hooks even without a dedicated patch file.

thcrap_tsa

 * Add spell card patching.
 * Add spell comment patching.

2013-07-06
Mostly a maintenance build, preparing for the move to open-source development.

thcrap

 * Log file now includes the build date and Windows username of the builder
 * JSON loading now skips over UTF-8 byte order marks
 * Split off the Unicode wrappers to the Win32 API into its own module (<tt>win32_utf8</tt>)

thcrap_configure

 * Display the server URL at the first screen
 * Fix bug #13 (thcrap_configure can't tell the root path on its own)

thcrap

 * Now using UTF-8 almost everywhere
 * Consistent UTF-8 logging to <tt>thcrap_log.txt</tt>
 * Improved Unicode support - now, every game should be able to run from directories with CJK file names
 * Run configuration archives are now checked for existence
 * patch.js can now recommend a minimum version of the patch engine (read: update checking)
 * Lots of refactoring

thcrap_configure

 * Patch selection now shows patches sorted alphabetically
 * Local server.js is now overwritten with the latest version downloaded from the server

thcrap_tsa

 * Fix bug #3 (Game crash after Alice Bossfight)
 * Fixed a delayed crash in th09 when returning to the main menu from in-game. (This confirms that this game, like th08, also adds 4 bytes to every file size, just to be annoying.)

... and other stuff I forgot about.

2013-05-29

 * <tt>thcrap_configure</tt> now has an icon instead of <tt>thcrap_loader</tt> - people are probably more likely to click something with a nice icon first
 * Added a hook for <tt>GetModuleFileNameA</tt> and <tt>SetCurrentDirectoryA</tt> - we can now run th14 out of that Chinese directory name
 * Completely rewritten game locating based on user feedback

2013-05-28

 * _except_handler4_common is now fixed properly - no need for the alternate build anymore
 * run configuration can now contain an "exe" parameter to directly launch a specific game (this didn't work properly in the release build - shame on me)
 * more error reporting in the downloader (Gray21oh, where are you)