summaryrefslogtreecommitdiff
path: root/src/base/main.c
diff options
context:
space:
mode:
authorMichal Zima <xhire@mujmalysvet.cz>2009-12-06 22:58:26 +0100
committerMichal Zima <xhire@mujmalysvet.cz>2009-12-06 22:58:26 +0100
commit753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 (patch)
treecfbded574ded7c3c666de6211877469ff6a95d75 /src/base/main.c
parenta0939379bb1185ee6d66739d9d021466d5d89624 (diff)
Revised methods how are translated strings handled
Few comments were made available to Doxygen
Diffstat (limited to 'src/base/main.c')
-rw-r--r--src/base/main.c8
1 files changed, 4 insertions, 4 deletions
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__ */