Permalink
Browse files

also include what IP is considered invalid

  • Loading branch information...
UnknownShadow200 committed Feb 11, 2019
1 parent abb2a7f commit 3420c719d9388c8a061ae8ed72002b4bd4414aae
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/Program.c
@@ -124,7 +124,12 @@ int main(int argc, char** argv) {
String_Copy(&Game_IPAddress, &args[2]);

if (!Utils_ParseIP(&args[2], ip)) {
Window_ShowDialog("Failed to start", "Invalid IP");
char tmpIpBuffer[200];
String tmpIp = String_NT_Array(tmpIpBuffer);
String_Format1(&tmpIp, "Invalid IP: %s", &args[2]);
tmpIp.buffer[tmpIp.length] = '\0';

Window_ShowDialog("Failed to start", tmpIpBuffer);
Platform_Exit(1); return 1;
}
if (!Convert_ParseUInt16(&args[3], &port)) {

0 comments on commit 3420c71

Please sign in to comment.