Pastel Chime Continue: Make sure resume save v7 is used

Because make_rsave() determines the version of resume save based on the
AIN version, it returns RSM v6 for Pastel Chime Continue. But this game
requires the comment field added in RSM v7.

This solves the issue by upgrading to RSM v7 when comments are written
to the save file.
This commit is contained in:
kichikuou
2025-09-07 09:21:37 +09:00
parent 44c73f644f
commit eef99c0910
+5
View File
@@ -969,6 +969,11 @@ static int write_rsave_image_comments(const char *key, const char *path, struct
return 0;
}
// Comments were added in RSM v7, so if the save is older, upgrade it.
if (save->version <= 6) {
save->version = 7;
}
for (int i = 0; i < save->nr_comments; i++) {
free(save->comments[i]);
}