version checking

This commit is contained in:
Your Name
2020-09-02 12:18:34 -06:00
parent 50f17c4bb6
commit 080b1bc9ef
2 changed files with 37 additions and 0 deletions

View File

@ -19,6 +19,18 @@ getRemoteWaypoints(mapname)
}
}
getRemoteVersion()
{
request = httpGet( "https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/version.txt" );
request waittill( "done", success, data );
request destroy();
if (!success)
return undefined;
return strtok(data, "\n")[0];
}
linesToWaypoints(res)
{
waypoints = [];