MCPcopy Create free account
hub / github.com/diasurgical/devilution / SNetGetGameInfo

Function SNetGetGameInfo

SourceX/storm/storm_net.cpp:71–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71BOOL SNetGetGameInfo(int type, void *dst, unsigned int length, unsigned int *byteswritten)
72{
73 switch (type) {
74 case GAMEINFO_NAME:
75 strncpy((char *)dst, gpszGameName, length);
76 *byteswritten = strlen(gpszGameName) + 1;
77 break;
78 case GAMEINFO_PASSWORD:
79 strncpy((char *)dst, gpszGamePassword, length);
80 *byteswritten = strlen(gpszGamePassword) + 1;
81 break;
82 }
83
84 return true;
85}
86
87BOOL SNetLeaveGame(int type)
88{

Callers 1

NetInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected