| 69 | } |
| 70 | |
| 71 | BOOL 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 | |
| 87 | BOOL SNetLeaveGame(int type) |
| 88 | { |