From eef99c091064f3b4496e5bda8bde453a16c0ea94 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Fri, 25 Jul 2025 10:32:17 +0900 Subject: [PATCH] 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. --- src/resume.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/resume.c b/src/resume.c index b86a595..1c57fac 100644 --- a/src/resume.c +++ b/src/resume.c @@ -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]); }