Ejemplo n.º 1
0
int __stdcall thcrap_plugin_init()
{
	// th06_msg
	patchhook_register("msg*.dat", patch_msg_dlg); // th06-08
	patchhook_register("p*.msg", patch_msg_dlg); // th09
	patchhook_register("s*.msg", patch_msg_dlg); // lowest common denominator for th10+
	patchhook_register("msg*.msg", patch_msg_dlg); // th143
	patchhook_register("e*.msg", patch_msg_end); // th10+ endings

	patchhook_register("*.anm", patch_anm);
	return 0;
}
Ejemplo n.º 2
0
int __stdcall thcrap_plugin_init()
{
	if(stack_remove_if_unneeded("base_tsa")) {
		return 1;
	}

	const char *game = json_object_get_string(runconfig_get(), "game");
	game_id = game_id_from_string(game);

	// th06_msg
	patchhook_register("msg*.dat", patch_msg_dlg, NULL); // th06-08
	patchhook_register("p*.msg", patch_msg_dlg, NULL); // th09
	patchhook_register("s*.msg", patch_msg_dlg, NULL); // lowest common denominator for th10+
	patchhook_register("msg*.msg", patch_msg_dlg, NULL); // th143
	patchhook_register("e*.msg", patch_msg_end, NULL); // th10+ endings

	patchhook_register("*.anm", patch_anm, tlnote_remove_size_hook);
	// Remove TL notes when retrying a stage
	patchhook_register("*.std", nullptr, tlnote_remove_size_hook);
	return 0;
}