projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20131113-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
setup.c
diff --git
a/src/libgame/setup.c
b/src/libgame/setup.c
index 246e3891f486e44cdfb1abf58c60be87d7e3e593..ac5b78d0ce7c7d2044268c1a132c376d6a053ebf 100644
(file)
--- a/
src/libgame/setup.c
+++ b/
src/libgame/setup.c
@@
-3951,7
+3951,7
@@
void LoadLevelSetup_LastSeries()
free(filename);
}
free(filename);
}
-
void SaveLevelSetup_LastSeries(
)
+
static void SaveLevelSetup_LastSeries_Ext(boolean deactivate_last_level_series
)
{
/* ----------------------------------------------------------------------- */
/* ~/.<program>/levelsetup.conf */
{
/* ----------------------------------------------------------------------- */
/* ~/.<program>/levelsetup.conf */
@@
-3972,6
+3972,10
@@
void SaveLevelSetup_LastSeries()
fprintf(file, "%s\n\n", getFormattedSetupEntry(TOKEN_STR_FILE_IDENTIFIER,
getCookie("LEVELSETUP")));
fprintf(file, "%s\n\n", getFormattedSetupEntry(TOKEN_STR_FILE_IDENTIFIER,
getCookie("LEVELSETUP")));
+
+ if (deactivate_last_level_series)
+ fprintf(file, "# %s\n# ", "the following level set may have caused a problem and was deactivated");
+
fprintf(file, "%s\n", getFormattedSetupEntry(TOKEN_STR_LAST_LEVEL_SERIES,
level_subdir));
fprintf(file, "%s\n", getFormattedSetupEntry(TOKEN_STR_LAST_LEVEL_SERIES,
level_subdir));
@@
-3982,6
+3986,16
@@
void SaveLevelSetup_LastSeries()
free(filename);
}
free(filename);
}
+void SaveLevelSetup_LastSeries()
+{
+ SaveLevelSetup_LastSeries_Ext(FALSE);
+}
+
+void SaveLevelSetup_LastSeries_Deactivate()
+{
+ SaveLevelSetup_LastSeries_Ext(TRUE);
+}
+
static void checkSeriesInfo()
{
static char *level_directory = NULL;
static void checkSeriesInfo()
{
static char *level_directory = NULL;