1
0
mirror of https://github.com/r4sas/ExtraMirror synced 2025-01-24 21:44:16 +00:00

Update enginemsg.cpp

This commit is contained in:
shelru 2017-03-26 01:10:08 +03:00 committed by GitHub
parent f877a605f6
commit fa348ae1b4

View File

@ -36,7 +36,7 @@ void MSG_SaveReadCount(){
void MSG_RestoreReadCount(){ void MSG_RestoreReadCount(){
*MSG_ReadCount = MSG_SavedReadCount; *MSG_ReadCount = MSG_SavedReadCount;
} }
pfnEngineMessage pSVC_Resourcelist; pfnEngineMessage pSVC_VoiceInit;
pfnEngineMessage pSVC_StuffText; pfnEngineMessage pSVC_StuffText;
pfnEngineMessage pSVC_SendCvarValue; pfnEngineMessage pSVC_SendCvarValue;
@ -205,6 +205,20 @@ void SVC_Director(){
MSG_RestoreReadCount(); MSG_RestoreReadCount();
pSVC_Director(); 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() { void SVC_Resourcelist() {
MSG_SaveReadCount(); MSG_SaveReadCount();
@ -228,4 +242,4 @@ void SVC_Resourcelist() {
} }
*/ */