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

Merge remote-tracking branch 'origin/runconfig_struct' into netcode_rework

c084f26dae735814577fd060e7e36b0aa6a108df authored over 4 years ago
netcode: improve logs

- We don't want to print a message about cancelled downloads,
they usually means the file was su...

6d17927d7b65b1c8e412370c11cf0791c9b4e3d0 authored over 4 years ago
netcode: encode special characters in the URL

e74d604e299fa162f07984eb748a508b54e4bfc1 authored over 4 years ago
netcode: add user agent

5b9da04d774d3d498141e63a1730087e1162f484 authored over 4 years ago
netcode: build on Windows.

With a surprisingly low number of errors given that it's been a
long time since my last Windows ...

4c1d2c9c46b24643381e2ea9f42147379a98aa78 authored over 4 years ago
Remove leftover codecave_local_t::offset

It wasn't even used

f6d1b545ef25f36db3466c5282527cdf9ba4c75f authored over 4 years ago
Add unit tests for the patch API

f103bee4784483af6f6399690cfb15da85845ce4 authored over 4 years ago
netcode: add the HttpHandle interface file

I forgot it in the last commit...

def6ae2fe0665c331d356458c4deb2f36b925a03 authored over 4 years ago
netcode: use an interface for HttpHandle.

Most of the code don't need to store one, only to have a pointer
and call its functions. And sin...

f5b228363c327c6276e0acdcb6dd9520663e67ab authored over 4 years ago
netcode: Update http_wininet to the new API

I didn't try to compile, so it probably doesn't work.

66c1b42c126d13f1c4ffffd22e0304a49ea6054e authored over 4 years ago
Improve codecaves

This includes:
- Guaranteed double-quadword alignment for all codecaves
- Improved code for appl...

f866f8c9e239289d023e376c99d192692835802a authored over 4 years ago
Fix mod_func_remove

0da45b2478676e9d2cf0477b323fd225a9a041bf authored over 4 years ago
When you screw up and didn't test first

c6a0dcbaa72253584316a9b7f804e7188055152e authored over 4 years ago
Allow showing message box when binhack parser can't find function

f667216c20172940b0a30f9512a759bae7233647 authored over 4 years ago
Add missing semicolon

10b6dcf66434b2d689776d2b325778ee97c19ae0 authored over 4 years ago
Allow safe unloading of plugins

46c64068848aafaf1959696f0712bbb285fc6f47 authored over 4 years ago
Use UINT_PTR over DWORD

92126203e0c06b90e838a6da36e5c1bd9d5bf963 authored over 4 years ago
Export malloc and free wrappers

4fda8a6c8ea81c2f09aacd8cc4109bed1b15e828 authored over 4 years ago
Remove json_t usage from GetExportedFunctions

As well as the mod_func functions.

Due to the way I decided to do this, thcrap now requires C++...

5a23db51e6256bb15f40bfd378c1a8a029179e74 authored over 4 years ago
Fix double call of ExitDll leading to crash

76987a28b735f1eab2ae34fbdd0b9743d83cbdba authored over 4 years ago
Add malloc() and free() wrappers

24e158d7647823ae08efbfda1b807b7ab5a8e65e authored over 4 years ago
netcode: move patch_bootstrap to update.cpp

The main.cpp won't move to thcrap_update, it only contains the
kind of stuff we will find in thc...

4e4ecbbef0d66f0a2dbd264c53d3b78a77651224 authored over 4 years ago
netcode: add Server::downloadFile and ServerCache::downloadFile

I removed them before because I didn't think I would need them, but
actually we will need them w...

ea09111bfa9eafd8c4d71d8b043548b7f7c909ff authored over 4 years ago
netcode: don't trust files.js about a file existing

This is needed to work around broken 3rd party installers that
just write the remote files.js in...

c73320d3c8e22622fb001ce036ac093d16bee10d authored over 4 years ago
netcode: append CRC32 to URL

Used to get the correct file instead of an old cached one.

f2daf1d0adbc06ad1f07e1fb62d4e9459d28ceac authored over 4 years ago
netcode: check CRC32 of downloaded files

ceb8a39a0674a10dc505d2033037dc9051c71065 authored over 4 years ago
netcode: look at the local state when updating

And by that, I mean "don't download a file if we already downloaded
it 2 seconds ago". We check ...

d668efa5513c756e3c716f1af153e47de9b077db authored over 4 years ago
netcode: fix memory leaks and a buffer overflow

Surprisingly, up until the last commit, there wasn't any error (outside of main.cpp, but it does...

0d83b5071b2351a62ae454aff3e6595cc86a6d5f authored over 4 years ago
netcode: improve repo discovery

A long-running request we have is to *not* write every repo.js in the world to the disk. These f...

dd29c26f0ca98a8483d97e1f7490f8c28bb069f4 authored over 4 years ago
netcode: respect the update:false flag, and ignore git repos

8a4407ac30e3a3a63fd8d06ee13ed499b099e299 authored over 4 years ago
netcode: add number of files downloaded / total to the progress callback

b907c8f46470e558c026e741fc4d05ff99fd7f04 authored over 4 years ago
netcode: remove PatchUpdate class.

It was already acting as a part of the Update class (it even had a
"friend" to access the Update...

d0aa4e04cc40c41672a7631e1ee1107a1255e5a6 authored over 4 years ago
netcode: report progression to the caller.

And because reporting progression goes through all the layers, with every layer adding it's own ...

3836537f119fca969684e38fc4954aa70d7736c8 authored over 4 years ago
netcode: delete file if the files.js entry is null

d8236713ddaa9d7d4f913bf87cde6b08371cdd9e authored over 4 years ago
netcode: fix a log_print and remove a few TODO comments

b612309a45937d62e7b7559913fd2c3aea33d185 authored over 4 years ago
netcode: replace printf with log_printf

When we will integrate this to thcrap, we will want to use
log_printf. In the meantime, log_prin...

1b0a8b0e42f35c6769614c69a157bd7a1a32c4b0 authored over 4 years ago
netcode: remove TODO comment

I fixed that one in 3b78d3d, but somehow I didn't see the comment
in the line right above the ch...

9672fbaa6800328359027e114715419fcb7a8a52 authored over 4 years ago
netcode: return the download errors in Downloader.

stack_update and global_update still decide to discard the error code,
but at least the other pa...

ec1350fe4bfa8663c1e649414e76fa671b088c21 authored over 4 years ago
netcode: update server isAlive comment

The TODO have been fixed a while ago, and the last commit
changed the meaning of this variable.

d337214dd890aa3657651312116b5e2f4f3cce11 authored over 4 years ago
netcode: stop using a server only on server errors

A 503 or 504 error code, a timeout, or a connection refused are
usually a sign that a server is ...

3b78d3d0f53ba3ad47ee35e3bcf8de34e876cd8b authored over 4 years ago
netcode: follow redirections in curl download

A redirection isn't a failure, only a request to look somewhere else.
And actually, the whole th...

498323d8ef08cd04f8cc1286b9e1271cbaf26a38 authored over 4 years ago
netcode: fix the hang in repo discovery, when a download fails.

When a download was failing in repo discovery, we never marked
the download as ended, so the mai...

80cd345039b3ef185372fe10ad3a1b9184ee3f55 authored over 4 years ago
netcode: write a lightweight thcrap_configure to test all the

network calls it makes.

And this actually shows 2 broken things:
- Infinite sleep on failure.
- ...

04b6a8313f45f6049fede1bba0ea0d2b1ce61d9d authored over 4 years ago
netcode: implement stack_update and global_update

0297717d3343bb3b12004beadc1618d31fc4c166 authored over 4 years ago
configure: fix dependant removal

de8b82f67bf677651d2aa20025c27905c6a323cd authored over 4 years ago
Fix the thcrap_configure crash when removing patch

00a9be7d820a44653fb36311a9ef5c9055da3e17 authored over 4 years ago
Add thcrap_test

Yes, we now have some automated testing. That's not a lot, but now, when people write new featur...

8bd0ffa03fa5083783cc3be7a114e5f655b66aab authored over 4 years ago
Rearrange and fix patch stack related code

Doing this wil fix a few of the problems that cause thcrap_configure to
crash whenever you remov...

5fa036cbac0c5ec465479acc32dab9b67e6d653a authored over 4 years ago
bgmmod: strdup filenames before adding them to

the chain array.
Without doing this you have an array that's 6 times the same thing.
Modifying s...

2dae7f3c10847957ab545e02c68ea9170ff48105 authored over 4 years ago
patchhooks: make sure a hook array exists before using it

2459f24fee32d938fe8de3cdc207f4e893d9ec5c authored over 4 years ago
Don't apply breakpoints/binhacks if there are none

33f29a73b5fdf4788a3f253dfdcac6d0bc0490cc authored over 4 years ago
netcode: update repo discovery to the new API

2361515f4edea328ef2e253243e1b7d3593470ba authored over 4 years ago
Merge remote-tracking branch 'origin/runconfig_struct' into netcode_rework

66e6fec9c36dd6f83b5919842af40dcd915d4776 authored over 4 years ago
thcrap: fix a crash on process exit

d9c15bbc2ec0bbd818e9a89de40253d0f7c5f4c7 authored over 4 years ago
Merge branch 'master' into runconfig_struct

a4a53093a5ee2423b1b271932fa408f5450b1733 authored over 4 years ago
Change the runconfig from a jansson object to a C struct.

Json is nice for input configuration, but using C structs internally has some strong advantages:...

2d8becee1e3e62857dd93ddf0349fb7b196abded authored over 4 years ago
scripts: stop releasing to thpatch.net

3b3bfc9f44d623bd08e2b380f5dba9788f20a8c6 authored over 4 years ago
Update version number

1f0900b1f50d9e3fccd4070ed3d03e93cb7fad28 authored over 4 years ago
Steam integration for MoF, SA, UFO

3451882f1dcbdbd7cf5c981f5774726d24d5bffd authored over 4 years ago
Setup GitHub actions

61a794ada23864b9395cde2347dd4f47bc77cb62 authored over 4 years ago
FUNDING needs an extension

12df0d1582e023030ebdb8f56fb0cc8824a99f76 authored over 4 years ago
Update README.md

13f889a5966293f5aca6165d41b0f551e8889f1a authored over 4 years ago
Move our dependencies to another repository

The repository will also contain prebuilt versions of the libraries.
This allow us to have more ...

c4a3666516b092466b79558e61ad63836afe643b authored over 4 years ago
Update xiph submodule urls to github

bb553721224a5de693d3cca2d52f4ab55d014bbb authored over 4 years ago
release script: upload the release to thcrap.thpatch.net and add the

version number to the file name there.

This will allow caching of the thcrap releases.

d2c0faad64c7c1eff578c556bc2022c6b18cc397 authored over 4 years ago
Add shield for release

09acab1187826b99dce3dc1015e7478d069fff3a authored over 4 years ago
thcrap: allow debug and release builds side-by-side.

This doesn't provide anything for users, but for devs, it means I can run a debug build without ...

584391f55a816ae640f19d27fcd2d0e3b4b8290a authored over 4 years ago
Update version number

28503bf6aeae49962d1d1d9d56cdd8044325bcdd authored over 4 years ago
Small logging fix

3058e6dfbccc0f5e1f2c40f60fed84f8eeba003a authored almost 5 years ago
TSA: th06: end: Prevent another crash

28607ad522fca1d7e9c6b5e54036af6972fb5769 authored almost 5 years ago
Update version number

a4de147408222ce9fc921997a08de800fe7e4b53 authored almost 5 years ago
codecaves: allow specifying the memory protection of the codecaves

98675e1d3d7debb38a2978e843f4484f88e901ea authored almost 5 years ago
thcrap-tsa: th06 end patching: prevent a potential out-of-bounds access

1b81acbd905570b863e192d4b8ded8c01e951320 authored almost 5 years ago
TSA: th06: end: don't rely on @z

a9a707cb3d1ea9b576cdb7c0a28db2525d61daa3 authored almost 5 years ago
Merge branch 'master' of https://github.com/thpatch/thcrap

39f74434a70fca28a93493e1654570b1ad3f15ec authored almost 5 years ago
Merge pull request #126 from exphp-forks/codecave-twopass

Let codecaves refer to each other

8c21aaaa486585db2f3e251baea44d5ad429f54a authored almost 5 years ago
Fix allocation size bug in codecaves

278534f8e40dedcae629232ea29cd5e317f9034a authored almost 5 years ago
let codecaves refer to each other

6130c651be68bfbb97b26fe4579ae4b0491b54fb authored almost 5 years ago
TSA: th06: end: detect @ in a correct way

cd6c28d008e3636c2f06697356dacf0d20233d7f authored almost 5 years ago
Update version number

e9a74cfd465e985107dbccc0d1c4540fa2fbc274 authored almost 5 years ago
thcrap: fix some errors introduced with the retry button

1f0ded3868b3410cd586ace69c33cf47bce80c9a authored almost 5 years ago
Fix linux build.

Actually I didn't test, it may still be broken. But at least 2 things are fixed.

eb2ea25f8f937a20f7da7012cc7e64b1ffb93113 authored almost 5 years ago
Implement a wininet backend for the new netcode.

This will allow us to do the transition in 2 steps, by first using the new netcode, and then fig...

e1b0a80b950c08b8a0661047a7eaec669389d624 authored almost 5 years ago
Retry button for JSON errors

Fixes https://github.com/thpatch/thcrap/issues/21

239ca159a8e33c492668d71e35595a68fa95b14a authored almost 5 years ago
TSA: th06: end: remove unnessesary check

021f457a2f7a57e786f95924fa0c681d1ec3ff5e authored almost 5 years ago
TSA: th06: end: remove offsets code, table feature exists

61bdb744e82c70214fa2fad4a1a2bfc6c9b2f56b authored almost 5 years ago
TSA: th06: end: line by line offsets and pixel based auto alignment

2a2972434c8beb6620d983cf91e918391ec71510 authored almost 5 years ago
TSA: th06: end: create patched .end file directly into game buffer

2444b94e251b0f96f4404515c4239f8ee4a833a9 authored almost 5 years ago
th06: Pixel-based line offset for endings

9162a21f833770d9260977853a7cb8bd3c6c632e authored almost 5 years ago
TSA: th06-th09 end patching

e86a7281ce59473a26f3d423f5a71f06b1a79a4c authored almost 5 years ago
Small potential bugfix

cbb237c069aaab5d165f55f5862d6e073f01e6f2 authored almost 5 years ago
update: Split the patches update code into 2 classes and 4 functions.

687ceaaa4b4983974c603aa1985c3c381330843a authored almost 5 years ago
Implement an equivalent of patch_update/stack_update.

With its handful of TODO comments and missing error checks.

4230d504f06973e25c787139f69b807ea4fdfa74 authored almost 5 years ago
netcode: better success and error handling.

We still don't bubble errors all the way to the top, but it's getting better.

c0b5c7d5cb2d1a0056a50cdf205ca0d681fe0755 authored almost 5 years ago
Add a random singleton class.

This avoids using rand(), which might also be used by the game and mess with it.

f827224c8ff8788b0434fda3732718c6d0b76037 authored almost 5 years ago
Split netcode.h into several .h files

3a9bb3c747cecce3679427a3108b8e0854e95c0f authored almost 5 years ago
Move all the cURL-specific code to HttpHandle.

Now, we could add another network library just by writing another HttpHandle implementation.

734f3f22b20269e4b97baf79ae14893cce3a90f6 authored almost 5 years ago
Add patches download from a big files list

25b149eb814d4bc2ba4354c3b5e52b9612beb001 authored almost 5 years ago
netcode: add makefile

1e9eb4baa118d091c2b8a19673869ae6e397e61b authored almost 5 years ago
Start the update code rework.

The aim of this rework is to improve download speed - see #106.
I work on linux, so for now, the...

e9aa0cc725333886626d094dfa6a1e9c07a6e783 authored almost 5 years ago