MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEUD_NetplayText

Function FCEUD_NetplayText

src/drivers/sdl/unix-netplay.cpp:347–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345
346
347void
348FCEUD_NetplayText(uint8 *text)
349{
350 char *tot = (char *)FCEU_dmalloc(strlen((const char *)text) + 1);
351 char *tmp;
352 if (!tot)
353 return;
354 strcpy(tot, (const char *)text);
355 tmp = tot;
356
357 while(*tmp) {
358 if(*tmp < 0x20) {
359 *tmp = ' ';
360 }
361 tmp++;
362 }
363 puts(tot);
364 FCEU_dfree(tot);
365}

Callers

nothing calls this directly

Calls 2

FCEU_dmallocFunction · 0.85
FCEU_dfreeFunction · 0.85

Tested by

no test coverage detected