From: Holger Schemel Date: Tue, 5 Apr 2022 06:38:07 +0000 (+0200) Subject: added function to load score tape (not used yet) X-Git-Tag: 4.3.2.0~41 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;ds=sidebyside;h=a3c955e7ca01ec4b0bb3142192be1c1c5694f2aa;hp=51cc8f17af487cc53aafccf050ff1b16fec878a9;p=rocksndiamonds.git added function to load score tape (not used yet) --- diff --git a/src/files.c b/src/files.c index e3835b7d..1e185c23 100644 --- a/src/files.c +++ b/src/files.c @@ -8326,6 +8326,13 @@ void LoadSolutionTape(int nr) CopyNativeTape_SP_to_RND(&level); } +void LoadScoreTape(char *score_tape_basename, int nr) +{ + char *filename = getScoreTapeFilename(score_tape_basename, nr); + + LoadTapeFromFilename(filename); +} + static boolean checkSaveTape_SCRN(struct TapeInfo *tape) { // chunk required for team mode tapes with non-default screen size diff --git a/src/files.h b/src/files.h index b1033292..3736666e 100644 --- a/src/files.h +++ b/src/files.h @@ -53,6 +53,7 @@ void CopyNativeLevel_Native_to_RND(struct LevelInfo *); void LoadTapeFromFilename(char *); void LoadTape(int); void LoadSolutionTape(int); +void LoadScoreTape(char *, int); void SaveTapeToFilename(char *); void SaveTape(int); void SaveScoreTape(int);