From fa348ae1b4a0f730215b158955cf01a9a57860e0 Mon Sep 17 00:00:00 2001 From: shelru Date: Sun, 26 Mar 2017 01:10:08 +0300 Subject: [PATCH] Update enginemsg.cpp --- MiniBase/enginemsg.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/MiniBase/enginemsg.cpp b/MiniBase/enginemsg.cpp index a113f9e..7e76d9a 100644 --- a/MiniBase/enginemsg.cpp +++ b/MiniBase/enginemsg.cpp @@ -36,7 +36,7 @@ void MSG_SaveReadCount(){ void MSG_RestoreReadCount(){ *MSG_ReadCount = MSG_SavedReadCount; } -pfnEngineMessage pSVC_Resourcelist; +pfnEngineMessage pSVC_VoiceInit; pfnEngineMessage pSVC_StuffText; pfnEngineMessage pSVC_SendCvarValue; @@ -205,6 +205,20 @@ void SVC_Director(){ MSG_RestoreReadCount(); pSVC_Director(); } +void SVC_VoiceInit(){ + MSG_SaveReadCount(); + char* codec = MSG_ReadString();int bit = MSG_ReadByte(); + char str[1024]; + strncpy(str, command, sizeof(str)); + str[sizeof(str) - 1] = 0; + ConsolePrintColor(255, 255, 255, "[Extra Mirror] voiceinit: "); + ConsolePrintColor(255, 255, 255, (" %s - ", str)); + ConsolePrintColor(255, 255, 255, (" %s - ", codec)); + ConsolePrintColor(255, 255, 255, (" %d", bit)); + ConsolePrintColor(255, 255, 255, "\n"); + MSG_RestoreReadCount(); + pSVC_VoiceInit(); +} /* void SVC_Resourcelist() { MSG_SaveReadCount(); @@ -228,4 +242,4 @@ void SVC_Resourcelist() { } -*/ \ No newline at end of file +*/