Skip to content

Commit fd10f94

Browse files
committed
thcrap_tasofro: add vfs files for greedy trial
All the characters have the same dialogues in greedy trial (actually the files were copy-pasted with just a few minor changes).
1 parent a408df1 commit fd10f94

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

thcrap_tasofro/src/th175.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "files_list.h"
1414
#include "act-nut.h"
1515

16-
static json_t *flandre_copy_generator(std::unordered_map<std::string, json_t*> in_data, const std::string out_fn, size_t* out_size)
16+
static json_t *jsonvfs_copy_generator(std::unordered_map<std::string, json_t*> in_data, const std::string out_fn, size_t* out_size)
1717
{
1818
if (out_size) {
1919
*out_size = 0;
@@ -40,8 +40,16 @@ int th175_init()
4040
SAFE_FREE(music_pattern_fn);
4141

4242
// Flandre easy route
43-
jsonvfs_game_add("data/event/script/flandre_stage4_easy.pl.jdiff", { "data/event/script/flandre_stage4_normal.pl.jdiff" }, flandre_copy_generator);
44-
jsonvfs_game_add("data/event/script/flandre_stage4_easy_win.pl.jdiff", { "data/event/script/flandre_stage4_normal_win.pl.jdiff" }, flandre_copy_generator);
43+
jsonvfs_game_add("data/event/script/flandre_stage4_easy.pl.jdiff", { "data/event/script/flandre_stage4_normal.pl.jdiff" }, jsonvfs_copy_generator);
44+
jsonvfs_game_add("data/event/script/flandre_stage4_easy_win.pl.jdiff", { "data/event/script/flandre_stage4_normal_win.pl.jdiff" }, jsonvfs_copy_generator);
45+
46+
// Greedy trial (they all use almost copy-pasted stage 1 files)
47+
jsonvfs_game_add("data/event/script/gouyoku_marisa_stage1.pl.jdiff", { "data/event/script/gouyoku_reimu_stage1.pl.jdiff" }, jsonvfs_copy_generator);
48+
jsonvfs_game_add("data/event/script/gouyoku_kanako_stage1.pl.jdiff", { "data/event/script/gouyoku_reimu_stage1.pl.jdiff" }, jsonvfs_copy_generator);
49+
jsonvfs_game_add("data/event/script/gouyoku_murasa_stage1.pl.jdiff", { "data/event/script/gouyoku_reimu_stage1.pl.jdiff" }, jsonvfs_copy_generator);
50+
jsonvfs_game_add("data/event/script/gouyoku_yorigami_js_stage1.pl.jdiff", { "data/event/script/gouyoku_reimu_stage1.pl.jdiff" }, jsonvfs_copy_generator);
51+
jsonvfs_game_add("data/event/script/gouyoku_flandre_stage1.pl.jdiff", { "data/event/script/gouyoku_reimu_stage1.pl.jdiff" }, jsonvfs_copy_generator);
52+
jsonvfs_game_add("data/event/script/gouyoku_toutetu_stage1.pl.jdiff", { "data/event/script/gouyoku_reimu_stage1.pl.jdiff" }, jsonvfs_copy_generator);
4553

4654
return 0;
4755
}

0 commit comments

Comments
 (0)