From 753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Sun, 6 Dec 2009 22:58:26 +0100 Subject: Revised methods how are translated strings handled Few comments were made available to Doxygen --- src/base/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/base/main.c') diff --git a/src/base/main.c b/src/base/main.c index d854a33..cfd13af 100644 --- a/src/base/main.c +++ b/src/base/main.c @@ -99,8 +99,8 @@ int *newInt(int x) void accessExistFile(const char *s) { if (access(s, F_OK) != 0) { - fprintf(stderr, _("[Error] File not found [%s]\n"), s); - fprintf(stderr, _("[Error] Shutting down the game\n")); + error("File not found [%s]", s); + error("Shutting down the game"); exit(-1); } } @@ -165,8 +165,8 @@ int main(int argc, char *argv[]) /* let's initialize WinSock */ if (WSAStartup(wVersionRequested, &data) != 0) { - fprintf(stderr, _("[Error] Initialization of WinSock failed\n")); - fprintf(stderr, _("[Error] Shutting down the game\n")); + error("Initialization of WinSock failed"); + error("Shutting down the game"); exit(-1); } #endif /* __WIN32__ */ -- cgit v1.2.3