But description can also contain UTF-8 characters. For example, we had an exe in base_tsa/version.js for th06 with the description "Original with 紅魔郷 removed from the .dat file names", which crashed with a DBCS locale like Chinese or Japanese. We removed it as a quick and dirty fix, but we need to fix the underlying issue (and then to revert thpatch/thcrap-tsa@2e993bd ).
In https://github.com/thpatch/thcrap/blob/fd10f94d867fde403ef9008e3534a2b2e3d16274/thcrap_configure_v3/ThcrapDll.cs#L180C9-L180C9 , we assume that the members of the
game_search_result
struct will contain only ASCII characters, outside ofpath
which is declared asIntPtr
and converted manually.But
description
can also contain UTF-8 characters. For example, we had an exe inbase_tsa/version.js
for th06 with the description "Original with 紅魔郷 removed from the .dat file names", which crashed with a DBCS locale like Chinese or Japanese. We removed it as a quick and dirty fix, but we need to fix the underlying issue (and then to revert thpatch/thcrap-tsa@2e993bd ).Some more details about the crash: