From 1bfb57c525759776af91651c916abc10c9df9aaa Mon Sep 17 00:00:00 2001 From: meep-eep Date: Fri, 5 Sep 2003 04:14:40 +0000 Subject: [PATCH] Dirty hack to not show a warning for "ignored.key". Temporary until the new resource system. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1199 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/resource/getres.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/resource/getres.c b/sc2/src/sc2code/libs/resource/getres.c index e97ee9bcc..00bb19b2a 100644 --- a/sc2/src/sc2code/libs/resource/getres.c +++ b/sc2/src/sc2code/libs/resource/getres.c @@ -303,7 +303,13 @@ load_package (INDEX_HEADERPTR ResHeaderPtr, RES_PACKAGE res_package) if (fp == NULL) { #if 1 // def DEBUG - fprintf (stderr, "Can't open '%s'\n", file_buf); + // HACK: added the 'if' here as not to scare people + // with the warning for this workaround. + // It will go with the new resource system. + // (together with the rest of this file) + if (strcmp(file_buf, "ignored.key") != 0) { + fprintf (stderr, "Can't open '%s'\n", file_buf); + } #endif /* DEBUG */ } else