more debug

This commit is contained in:
Jonathan Campbell
2015-10-14 06:50:10 +00:00
parent 0db9599548
commit a3ef9ba5dd
5 changed files with 18 additions and 0 deletions

View File

@@ -70,6 +70,9 @@ void MSG_Replace(const char * _name, const char* _val) {
void LoadMessageFile(const char * fname) {
if (!fname) return;
if(*fname=='\0') return;//empty string=no languagefile
LOG(LOG_MISC,LOG_DEBUG)("Loading message file %s",fname);
FILE * mfile=fopen(fname,"rt");
/* This should never happen and since other modules depend on this use a normal printf */
if (!mfile) {