mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'reenablemumble' into 'master'
Re-enable Mumble support See merge request KartKrew/RingRacers!109
This commit is contained in:
commit
a3de1dcfc1
2 changed files with 2 additions and 5 deletions
|
|
@ -91,9 +91,6 @@ endif()
|
|||
target_compile_definitions(SRB2SDL2 PRIVATE -DHAVE_MIXER -DSOUND=SOUND_MIXER)
|
||||
target_compile_definitions(SRB2SDL2 PRIVATE -DDIRECTFULLSCREEN -DHAVE_SDL)
|
||||
|
||||
# NOMUMBLE till WRITE* macros are fixed for C++ or mumble integration is rewritten
|
||||
target_compile_definitions(SRB2SDL2 PRIVATE -DNOMUMBLE)
|
||||
|
||||
#### Installation ####
|
||||
if("${CMAKE_SYSTEM_NAME}" MATCHES Darwin)
|
||||
install(TARGETS SRB2SDL2
|
||||
|
|
|
|||
|
|
@ -1350,7 +1350,7 @@ static void I_SetupMumble(void)
|
|||
if(shmfd < 0)
|
||||
return;
|
||||
|
||||
mumble = mmap(NULL, sizeof(*mumble), PROT_READ | PROT_WRITE, MAP_SHARED, shmfd, 0);
|
||||
mumble = static_cast<mumble_s*>(mmap(NULL, sizeof(*mumble), PROT_READ | PROT_WRITE, MAP_SHARED, shmfd, 0));
|
||||
if (mumble == MAP_FAILED)
|
||||
mumble = NULL;
|
||||
#endif
|
||||
|
|
@ -1366,7 +1366,7 @@ void I_UpdateMumble(const mobj_t *mobj, const listener_t listener)
|
|||
return;
|
||||
|
||||
if(mumble->uiVersion != 2) {
|
||||
wcsncpy(mumble->name, L"Dr. Robotnik's Ring Racers "VERSIONSTRINGW, 256);
|
||||
wcsncpy(mumble->name, L"Dr. Robotnik's Ring Racers " VERSIONSTRINGW, 256);
|
||||
wcsncpy(mumble->description, L"Dr. Robotnik's Ring Racers with integrated Mumble Link support.", 2048);
|
||||
mumble->uiVersion = 2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue