static void Monitor_Print(void) { if(!monitoredBytes) { LOGDEV_NET_MSG("Nothing has been sent yet"); return; } LOGDEV_NET_MSG("%i bytes sent (%i packets)") << monitoredBytes << monitoredPackets; int i, k; for(i = 0, k = 0; i < 256; ++i) { // LogBuffer_Printf uses manual newlines. if(!k) LogBuffer_Printf(DE2_LOG_DEV, " "); LogBuffer_Printf(DE2_LOG_DEV, "%10.10f", (double)(monitor[i]) / (double)monitoredBytes); // Break lines. if(++k == 4) { k = 0; LogBuffer_Printf(DE2_LOG_DEV, ",\n"); } else { LogBuffer_Printf(DE2_LOG_DEV, ", "); } } if(k) LogBuffer_Printf(DE2_LOG_DEV, "\n"); }
foreach(Library* lib, loadedLibs) { if(lib->isGamePlugin) { LogBuffer_Printf(DE2_LOG_DEBUG, "Library_ReleaseGames: Closing '%s'\n", Str_Text(lib->path)); // Close the Library. DENG_ASSERT(lib->file); lib->file->clear(); } }