Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/thpatch/thcrap

Touhou Community Reliant Automatic Patcher
https://github.com/thpatch/thcrap

stack_game_file_resolve(): Fix build-specific files to actually work as expected.

75889b583f45a1939b783708fc4d83efd8df3887 authored over 11 years ago by nmlgc <[email protected]>
Bump version number to 2013-08-15

e4883c48b61977e38068847cf40797021fd67c09 authored over 11 years ago by nmlgc <[email protected]>
Fix zlib linkage on the debug build.

a219447f68cade18fe2f996feedb41f5dd8e702f authored over 11 years ago by nmlgc <[email protected]>
stack_json_resolve: Move fn_for_build() out of the inner loop.

lol, why was it even in there in the first place?

54b45a85db4ed49a9c95f34754ab4ebda433850c authored over 11 years ago by nmlgc <[email protected]>
Ignore Internet Explorer's "work offline" setting.

... which will essentially block all wininet HTTP accesses on handles that do not explicitly ign...

84aeb66134c75ee27a20f289286c0d52b4b0cd41 authored over 11 years ago by nmlgc <[email protected]>
Don't download 0-byte files.

cbaa1231f2861a3deedddbd31f3ea88d8ea1f68a authored over 11 years ago by nmlgc <[email protected]>
Bump version number to 2013-08-12

93e8e55b3ce20707e90b0421ac5726270070ff1e authored over 11 years ago by nmlgc <[email protected]>
Actually verify the CRC32 of downloaded files.

This introduces a dependency of thcrap_update on zlib, which just so happens to include such a f...

25759ebbab33a661b6ffedd05796b63fa69a1502 authored over 11 years ago by nmlgc <[email protected]>
thcrap_configure: Disable console by default in new run configurations.

It was nice for debugging and all, but I suppose most players will be put off by it. It also imp...

9b277844d255db5bb40af763363a144b24f073a0 authored over 11 years ago by nmlgc <[email protected]>
Well, it's the th14 full version release and still no GUI...

cb49224a66e9d7a2dacba6fa0dd923e36ce0477f authored over 11 years ago by nmlgc <[email protected]>
Bump version number to 2013-08-08

e67b4eef208eb683604a5fda7f468c693032bf66 authored over 11 years ago by nmlgc <[email protected]>
CreateFontA: Check hardcoded strings for a replacement font.

This has priority over the run configuration setting. It'll be mostly used to provide replacemen...

9de60fc56bcbf6a451cb98b43a4d15241beff7ce authored over 11 years ago by nmlgc <[email protected]>
win32_utf8: Add GetEnvironmentVariable.

This is necessary to run th125 and later with user names that contain non-ASCII characters.

afa4a218e5c41ae1a048ce865b7e43c24b1f9178 authored over 11 years ago by nmlgc <[email protected]>
win32_utf8: Order functions alphabetically.

7e258645f7caa7ee67dc24cf1a743042ab78d660 authored over 11 years ago by nmlgc <[email protected]>
Add a safe and persistent vsprintf handler.

This function should be inserted via binary hacks everywhere a game calls sprintf, as it guarant...

06089df91c96e304bc012bf1d7d08767700d95f5 authored over 11 years ago by nmlgc <[email protected]>
strings_lookup: Optionally return the length of the final string.

31c1f16945ab25fdccb4b1834f199078e10908b2 authored over 11 years ago by nmlgc <[email protected]>
Spell translation: Support base ID calculation based on the difficulty level offset.

This is necessary for the result screen, because we don't have spell_id there.
Yes, this *will* ...

257f34acc2975168d5c619516e141b0e5792408d authored over 11 years ago by nmlgc <[email protected]>
IsLatestBuild: Fix a crash if "latest" is neither array nor string.

... or simply not given at all. This is probably my most hated function in this whole project an...

8facb6a0f42d5d473c6585fdf7987584a9186f51 authored over 11 years ago by nmlgc <[email protected]>
Add basic translation of hardcoded strings via dictionary lookup.

e51a8e11982f6f8c91d6cd840f4b974eee8e3e47 authored over 11 years ago by nmlgc <[email protected]>
Layout command 't': Choose the longest string out of all given parameters.

... wow, 9 levels of indentation. I should work on this...

e874005a6aa176148656302005941cb6e5b06bc3 authored over 11 years ago by nmlgc <[email protected]>
Include build-specific files in the patch stack resolving functions.

1e072407b116f49016ab8bdb78edee0e1d73b003 authored over 11 years ago by nmlgc <[email protected]>
Introduce "fn_for_" as a prefix for functions operating on file names.

ec63c5bc92e291d85b128e8beee498f6be54b821 authored over 11 years ago by nmlgc <[email protected]>
stack_json_resolve: Refactor the inner loop into its own function.

Because in the next step...

5d9eb2f1400ccfc396430c106975b37d8a973f4f authored over 11 years ago by nmlgc <[email protected]>
json_object_merge: Don't create deep copies.

Why should we when there's a reference counter? Sure, you might want to re-use and change the or...

376563a012b3a55c1cf86cd40520c23ab56aec8e authored over 11 years ago by nmlgc <[email protected]>
Use thread-local storage for the global file_rep_t object.

File replacement and patching should now be sufficiently thread-safe. Hooray.

35e8c1d2e64283c4544e6c2f68fe8976c2d495f1 authored over 11 years ago by nmlgc <[email protected]>
Bump version number to 2013-08-05

513c491181237d8b186a650022c0ad8ca170a1bc authored over 11 years ago by nmlgc <[email protected]>
Add bold and italic font markup.

Of course, we could pre-generate bold, italic and bold-italic fonts once we're doing #19, but I ...

2ed1cce6d9c72be21ef91dfd4c2f06da21b2d153 authored over 11 years ago by nmlgc <[email protected]>
Fixes and improvements for the text layout parser.

* Now interprets every character of the cmd string as a layout command
* Tabstops are now relati...

611b4347bb047fc73461e2526b4b83210b88805c authored over 11 years ago by nmlgc <[email protected]>
thcrap_tsa: Add a TextOut hook with a parser for special tabstop and alignment syntax.

3457eb4f957ba05228128e18438b034498929614 authored over 11 years ago by nmlgc <[email protected]>
Change the layout markup parameter delimiter to '$'.

Whoops, I completely forgot that MediaWiki already uses '|' for template syntax. <...$> seems fa...

d034d5aabab20f48cb3812d044e65577a6a7f03c authored over 11 years ago by nmlgc <[email protected]>
Cleanup.

ea6aaad525dfa214582220bcbc32fb4451dbdd40 authored over 11 years ago by nmlgc <[email protected]>
Add json_array_set_expand.

59767c341f352bbc3f069e8e34e0cce2f7e45034 authored over 11 years ago by nmlgc <[email protected]>
TextOutU/GetTextExtentPoint32U: Clear out the wchar_t buffer before writing.

This correctly terminates the resulting string in any case. :)

dd0712e0db98f6fd4291781fd8802054bdb5bda2 authored over 11 years ago by nmlgc <[email protected]>
StringToUTF16: Actually observe input and output widths correctly.

I must have read over the "size, in wide characters" part. This becomes a problem once you only ...

c230ad4f66160425032e7baad10334ef2d4937b3 authored over 11 years ago by nmlgc <[email protected]>
Bump version number to 2013-07-29

93a7bcb119e8e3dc49effec88611500327c5394b authored over 11 years ago by nmlgc <[email protected]>
thcrap_tsa: box_end cleanup.

6f415ffeca89146fd260ff4de23edd9411dbf219 authored over 11 years ago by nmlgc <[email protected]>
Add a patch hook for th10+ endings.

The underlying format is the same as for the in-game dialogue, it will just require a different ...

10aa1f81b38d06a776646a90d1b4059db0d189b5 authored over 11 years ago by nmlgc <[email protected]>
Add ANM sprite boundary dumping.

This can be enabled with the `dat_dump` parameter in the run configuration.

... yeah, you could...

36d8112f73471ea85b14950f32f70232459dc21a authored over 11 years ago by nmlgc <[email protected]>
Refactor ANM patching.

Move structures to a header file, and combine png_image and the buffer pointer into one structure.

61b02695b64d9ab23a4a8beb2a46bdaa0009b9fc authored over 11 years ago by nmlgc <[email protected]>
Add patching support for multiple textures in one image, starting at custom positions

This implementation even allows PNGs with smaller dimensions than the source image.

And that's ...

d231f3ada59b46f8bf773de0a99233335952a587 authored over 11 years ago by nmlgc <[email protected]>
Add patching support for GRAY8 images.

... or rather, "just let libpng do everything". Who knows when these ever become patch-relevant,...

cd4905bf1dcad69f7cc77c4f21210a8aa509c57b authored over 11 years ago by nmlgc <[email protected]>
Add patching support for RGB565 images.

... and because of consistency considerations, since *this* format actually isn't BGR either.

fd056c74c3c0c2886bd5cf22099461e394009bb0 authored over 11 years ago by nmlgc <[email protected]>
Add patching support for little-endian ARGB4444 images.

Yes, ARGB, not BGRA. I was even tempted to call them GBAR according to their actual memory layou...

7cce33e11ed90fa540fb65499e2dfac11c83cca1 authored over 11 years ago by nmlgc <[email protected]>
Add basic ANM patching for BGRA8888 images.

Takes care of about half of the images.

This also introduces a dependency on libpng >= 1.6.0.

4257d535d39606f7260e6363d74140ce76c05a78 authored over 11 years ago by nmlgc <[email protected]>
Move bp_file's logging down to stack_file_game_resolve.

Sure, this doesn't print the file size anymore, but it's more consistent and gets rid of the rat...

09db994dbecd663944dedc043d46074bca984ab8 authored over 11 years ago by nmlgc <[email protected]>
Fix the infinite loop on failed plug-in loading.

Ouch! Another one that can be traced back to the pre-Reitaisai coding binge...

64915c67ce90d6e4f20bc41bf4181e3f3e2d7f8f authored over 11 years ago by nmlgc <[email protected]>
Remove the th11 English patch assist font width kludge.

base_tsa now includes a binary hack to patch this back - like it should be.

f869d73c2d6bd6a542d45e7082bbe8e6788210ee authored over 11 years ago by nmlgc <[email protected]>
thcrap_update: Fix the server number comparison.

Must have messed this up during the refactoring, as I didn't test it afterwards... and now, it b...

3db5748517e4757e112c3d8533fd99bc352e475a authored over 11 years ago by nmlgc <[email protected]>
Bump version number to 2013-07-16

a30620fc1941a8032c610efea20dd04460176c0b authored over 11 years ago by nmlgc <[email protected]>
Add GetTextExtentForFont.

7b23f0cf0e6572882740f648d50601f3c4a8d6d3 authored over 11 years ago by nmlgc <[email protected]>
Thread-safe ESP manipulation in the breakpoint handler

Wow, this actually became a problem with th095. Apparently I was too afraid to shift down the re...

19c8893a8be52ae55d4a1e398cc2d9c6e70f75ee authored over 11 years ago by nmlgc <[email protected]>
thcrap_configure: Use a custom pausing function instead of system("pause").

... and I'm finally convinced of how bad this really is. Let's forget that this ever happened...

22e63615350ba887681e6a31ec76e3ac92a63338 authored over 11 years ago by nmlgc <[email protected]>
Bump version number to 2013-07-14

282a990846242a654410dbae23442ed551625e09 authored over 11 years ago by nmlgc <[email protected]>
Add spell comment patching.

Currently without owner support, as that requires #15 to be visible anyway.
Closes #11.

205d9decc3bc912e6f35ce9cdc53e421d3868874 authored over 11 years ago by nmlgc <[email protected]>
Add spell card patching.

3dae42dbdfd7bd1648b4b538bdf184c826987a6e authored over 11 years ago by nmlgc <[email protected]>
Run patch hooks even without a dedicated patch file.

8e9c3a5ca5cea21f75cd483d19b5d26180d5f61b authored over 11 years ago by nmlgc <[email protected]>
Refactor stack file resolving to include support for game-local JSON files.

ea7b4e18f67c790dc8eb222ab1433460d2ca1a1b authored over 11 years ago by nmlgc <[email protected]>
Cleanup.

1fa2e39e16ca5be1782e77aa7b71f7c0795d8bbc authored over 11 years ago by nmlgc <[email protected]>
Add support for multi-slot breakpoints.

Closes #1.

0f88b5ec62008436dd66dca79bb4c149eb92b1e4 authored over 11 years ago by nmlgc <[email protected]>
Remove manual breakpoint registration.

eb521ff466381a44a63d5a1619598c4db3036ee6 authored over 11 years ago by nmlgc <[email protected]>
Automatically look up breakpoint functions using the runconfig key.

37bbff6ca5be967b405e521e4974ae73bbdaeef8 authored over 11 years ago by nmlgc <[email protected]>
Add an abstraction for the access of exported functions.

63fc753c08db9b30454c1d77b1a5a15842f3a358 authored over 11 years ago by nmlgc <[email protected]>
Fixing some comments and cleaning some whitespace.

5558ab87e5480649f103f487d02b9b0b680f8420 authored over 11 years ago by nmlgc <[email protected]>
Bump version number to 2013-07-06

57013bd3f8249948e6524b38f37065cfcaf65e86 authored over 11 years ago by nmlgc <[email protected]>
Initial commit

fce2dc675dd28fa1dd382068d0ea5a0b37c4273d authored over 11 years ago by nmlgc <[email protected]>