diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-06-14 00:45:43 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-06-14 03:00:42 +0530 |
commit | 8daa06edec80533c60f919ec2d927e2f0d42186d (patch) | |
tree | b61bf4da055263f9ebfb99f346206d72cf5262b4 /crawl-ref/source/clua.h | |
parent | b115954e0e5c6e2f76a18cc1fedb9418c2d42964 (diff) | |
download | crawl-ref-8daa06edec80533c60f919ec2d927e2f0d42186d.tar.gz crawl-ref-8daa06edec80533c60f919ec2d927e2f0d42186d.zip |
Make Crawl react better to seeing des files and database text files modified and recompiled by new Crawl processes while older processes are running.
When mapdef.cc detects that a .dsc file is out of sync, it throws an exception
that dungeon.cc catches. dungeon.cc then discards all loaded maps and reloads
then from the map index (.idx) files.
The old behaviour was to create a panic save and exit for out-of-sync .dsc
files, which is not ideal since the panic save code is rarely used and tends to
bitrot.
When regenerating text database files in DGL installs, the game no longer
unlinks the old .db file, and will instead update the old file with the
new db keys.
None of this code should be relevant to single-user installs.
Diffstat (limited to 'crawl-ref/source/clua.h')
-rw-r--r-- | crawl-ref/source/clua.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/clua.h b/crawl-ref/source/clua.h index d8d4389d17..837be3e169 100644 --- a/crawl-ref/source/clua.h +++ b/crawl-ref/source/clua.h @@ -124,8 +124,10 @@ public: int loadstring(const char *str, const char *context); int execstring(const char *str, const char *context = "init.txt", int nresults = 0); - int execfile(const char *filename, bool trusted = false, - bool die_on_fail = false); + int execfile(const char *filename, + bool trusted = false, + bool die_on_fail = false, + bool force = false); void pushglobal(const std::string &name); |