diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-03-29 11:29:26 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-03-29 11:29:26 +0200 |
commit | b65c0c250055b6b981a596c6369db8fef670e04f (patch) | |
tree | 7da5ac3f1e50fbe2be901e3052a498df808cce81 /crawl-ref/source/database.cc | |
parent | 64e714e54be29f77fb7fc456214b98ee03e6b239 (diff) | |
download | crawl-ref-b65c0c250055b6b981a596c6369db8fef670e04f.tar.gz crawl-ref-b65c0c250055b6b981a596c6369db8fef670e04f.zip |
A bit of debug info about loaded translations, to help investigate CDO.
Somehow, they fail to load there, and I can't seem to be able to reproduce
that locally, even in DGL mode.
Diffstat (limited to 'crawl-ref/source/database.cc')
-rw-r--r-- | crawl-ref/source/database.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/database.cc b/crawl-ref/source/database.cc index abd47cfe74..87d6bb3974 100644 --- a/crawl-ref/source/database.cc +++ b/crawl-ref/source/database.cc @@ -21,6 +21,7 @@ #include "libutil.h" #include "options.h" #include "random.h" +#include "state.h" #include "stuff.h" #include "syscalls.h" #include "threads.h" @@ -259,6 +260,9 @@ bool TextDB::_needs_update() const return false; } + if (_lang) + crawl_state.db_loaded += std::string(" ") + _db_name; + return (ts != timestamp); } @@ -327,6 +331,8 @@ void databaseSystemInit() // the current version ("git submodule sync;git submodule update --init"). ASSERT(sqlite3_threadsafe()); + crawl_state.language_loaded = Options.lang; + thread_t th[NUM_DB]; for (unsigned int i = 0; i < NUM_DB; i++) #ifndef DGAMELAUNCH |