src/main.cpp

changeset 189
ac2d3e8dd110
parent 183
f1b8cb53d2a2
child 191
9bb6a17305ad
--- a/src/main.cpp	Thu May 09 17:03:44 2013 +0300
+++ b/src/main.cpp	Fri May 10 17:39:56 2013 +0300
@@ -39,7 +39,7 @@
 // =============================================================================
 int main (int argc, char* argv[]) {
 	// Load or create the configuration
-	if (!config::load()) {
+	if (!config::load ()) {
 		printf ("Creating configuration file...\n");
 		if (config::save ())
 			printf ("Configuration file successfully created.\n");
@@ -80,25 +80,12 @@
 	va_end (va);
 }
 
-void warnf (const char* fmtstr, ...) {
+void doDevf (const char* func, const char* fmtstr, ...) {
 	va_list va;
-	va_start (va, fmtstr);
-	g_win->logVA (LOG_Warning, fmtstr, va);
-	va_end (va);
-}
-
-void errf (const char* fmtstr, ...) {
-	va_list va;
+	
+	printf ("%s: ", func);
+	
 	va_start (va, fmtstr);
-	g_win->logVA (LOG_Error, fmtstr, va);
+	vprintf (fmtstr, va);
 	va_end (va);
-}
-
-#ifndef RELEASE
-void devf (const char* fmtstr, ...) {
-	va_list va;
-	va_start (va, fmtstr);
-	g_win->logVA (LOG_Dev, fmtstr, va);
-	va_end (va);
-}
-#endif // RELEASE
\ No newline at end of file
+}
\ No newline at end of file

mercurial