git-svn-id: https://svn.eduke32.com/eduke32@850 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-07-10 04:37:41 +00:00
parent a6c68170d0
commit b442e26fb0
6 changed files with 16 additions and 14 deletions

View file

@ -104,7 +104,7 @@ void initcache(intptr_t dacachestart, int dacachesize)
cac[0].lock = &zerochar; cac[0].lock = &zerochar;
cacnum = 1; cacnum = 1;
initprintf("Initialized %.1f megabytes of cache\n", (float)(dacachesize/1024.f/1024.f)); initprintf("Initialized %.1f megabyte cache\n", (float)(dacachesize/1024.f/1024.f));
} }
void allocache(intptr_t *newhandle, int newbytes, char *newlockptr) void allocache(intptr_t *newhandle, int newbytes, char *newlockptr)

View file

@ -411,6 +411,7 @@ int initmultiplayersparms(int argc, char **argv)
initmultiplayers_reset(); initmultiplayers_reset();
danetmode = 255; daindex = 0; danetmode = 255; daindex = 0;
if (!argv) return 0;
// go looking for the port, if specified // go looking for the port, if specified
for (i=0;i<argc;i++) for (i=0;i<argc;i++)
{ {

View file

@ -510,10 +510,10 @@ static void print_os_version(void)
if (ver != NULL) if (ver != NULL)
{ {
initprintf("OS: Windows %s (Version %lu.%lu.%lu)\n", ver, osv.dwMajorVersion, osv.dwMinorVersion, initprintf("OS: Windows %s (%lu.%lu.%lu) %s\n", ver, osv.dwMajorVersion, osv.dwMinorVersion,
awful_windows_9x?osv.dwBuildNumber&0xffff:osv.dwBuildNumber); awful_windows_9x?osv.dwBuildNumber&0xffff:osv.dwBuildNumber,osv.szCSDVersion);
if (osv.szCSDVersion[0]) // if (osv.szCSDVersion[0])
initprintf(" - %s\n", osv.szCSDVersion); // initprintf(" - %s\n", osv.szCSDVersion);
} }
} }
@ -833,7 +833,7 @@ int initmouse(void)
if (moustat) return 0; if (moustat) return 0;
initprintf("Initializing mouse... "); // initprintf("Initializing mouse... ");
moustat=1; moustat=1;
mousethread = CreateThread mousethread = CreateThread
@ -848,13 +848,13 @@ int initmouse(void)
if (!mousethread) if (!mousethread)
{ {
initprintf("FAILED!\n"); initprintf("Failed to create mouse thread!\n");
return 0; return 0;
} }
SetThreadPriority(mousethread, THREAD_PRIORITY_HIGHEST); SetThreadPriority(mousethread, THREAD_PRIORITY_HIGHEST);
ResumeThread(mousethread); ResumeThread(mousethread);
initprintf("OK\n"); // initprintf("OK\n");
// grab input // grab input
grabmouse(1); grabmouse(1);

View file

@ -10404,10 +10404,10 @@ void app_main(int argc,const char **argv)
if (VOLUMEALL) wm_setapptitle(HEAD2); if (VOLUMEALL) wm_setapptitle(HEAD2);
else wm_setapptitle(HEAD); else wm_setapptitle(HEAD);
initprintf("\n"); // initprintf("\n");
if (g_ScriptDebug) if (g_ScriptDebug)
initprintf("CON debugging activated (level %d).\n\n",g_ScriptDebug); initprintf("CON debugging activated (level %d).\n",g_ScriptDebug);
RegisterShutdownFunction(Shutdown); RegisterShutdownFunction(Shutdown);

View file

@ -4732,13 +4732,13 @@ repeatcase:
if (keyword() != -1) if (keyword() != -1)
{ {
initprintf("Duke Nukem 3D v1.3D style CON files detected.\n"); // initprintf("Duke Nukem 3D v1.3D style CON files detected.\n");
break; break;
} }
else else
{ {
g_ScriptVersion = 14; g_ScriptVersion = 14;
initprintf("Duke Nukem 3D v1.4+ style CON files detected.\n"); // initprintf("Duke Nukem 3D v1.4+ style CON files detected.\n");
} }
} }
@ -5194,9 +5194,9 @@ void loadefs(const char *filenam)
k++; k++;
} }
initprintf("\nCompiled code size: %ld bytes\n",(unsigned)(scriptptr-script)); initprintf("Compiled code size: %ld bytes, version %s\n",(unsigned)(scriptptr-script),(g_ScriptVersion == 14?"1.4+":"1.3D"));
initprintf("%ld/%ld labels, %d/%d variables\n",labelcnt,min((MAXSECTORS * sizeof(sectortype)/sizeof(int)),(MAXSPRITES * sizeof(spritetype)/(1<<6))),iGameVarCount,MAXGAMEVARS); initprintf("%ld/%ld labels, %d/%d variables\n",labelcnt,min((MAXSECTORS * sizeof(sectortype)/sizeof(int)),(MAXSPRITES * sizeof(spritetype)/(1<<6))),iGameVarCount,MAXGAMEVARS);
initprintf("%ld event definitions, %ld defined actors\n\n",j,k); initprintf("%ld event definitions, %ld defined actors\n",j,k);
for (i=0;i<128;i++) for (i=0;i<128;i++)
if (fta_quotes[i] == NULL) if (fta_quotes[i] == NULL)

View file

@ -349,6 +349,7 @@ void AL_Shutdown()
{ {
if (openal_disabled)return; if (openal_disabled)return;
initprintf("Uninitializing OpenAL...\n");
ALdoing="Shut"; ALdoing="Shut";
balcMakeContextCurrent(NULL); balcMakeContextCurrent(NULL);
check(1); check(1);