-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed favourites being inconsistent displaying servers properly. Some…
… changes regarding how servers are displayed and fetched data from. Mirrored official list URI to internet list. Improved error handling and made error messages more verbose.
- Loading branch information
Showing
35 changed files
with
3,737 additions
and
3,533 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
using System; | ||
|
||
/// <summary> | ||
/// SA:MP launcher .NET namespace | ||
/// </summary> | ||
namespace SAMPLauncherNET | ||
{ | ||
/// <summary> | ||
/// Ping string class | ||
/// </summary> | ||
public class PingString : IComparable, IComparable<PingString> | ||
{ | ||
/// <summary> | ||
/// Ping | ||
/// </summary> | ||
private readonly uint ping; | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
/// <param name="ping">Ping</param> | ||
public PingString(uint ping) | ||
{ | ||
this.ping = ping; | ||
} | ||
|
||
/// <summary> | ||
/// Compare to | ||
/// </summary> | ||
/// <param name="obj">Object</param> | ||
/// <returns>Result</returns> | ||
public int CompareTo(object obj) | ||
{ | ||
int ret = 1; | ||
if (obj != null) | ||
{ | ||
ret = CompareTo(obj as PingString); | ||
} | ||
return ret; | ||
} | ||
|
||
/// <summary> | ||
/// CompareTo | ||
/// </summary> | ||
/// <param name="other">Other</param> | ||
/// <returns>Result</returns> | ||
public int CompareTo(PingString other) | ||
{ | ||
int ret = 1; | ||
if (other != null) | ||
{ | ||
ret = ping.CompareTo(other.ping); | ||
} | ||
return ret; | ||
} | ||
|
||
/// <summary> | ||
/// To string | ||
/// </summary> | ||
/// <returns>String representation</returns> | ||
public override string ToString() | ||
{ | ||
return ((ping == uint.MaxValue) ? "-" : ping.ToString()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.