Files
SteamEmuUtility/Common/Web/InternetConnectionChecker.cs
turusudiro b76d5ce516 - a lot of changes on how to handle goldberg configuration
- made a changes to goldberg generator window
See difference
2024-05-08 02:04:24 +07:00

25 lines
523 B
C#

namespace InternetCommon
{
public class Internet
{
public static bool IsInternetAvailable()
{
try
{
using (var client = new System.Net.WebClient())
{
using (var stream = client.OpenRead("http://www.google.com"))
{
return true;
}
}
}
catch
{
return false;
}
}
}
}