MacOS port

This commit is contained in:
Li 2022-10-04 15:34:09 +13:00
parent d5e7c97633
commit 44f1d1bd79

View file

@ -78,9 +78,7 @@ namespace MPN00BS
clientProcess.StartInfo.FileName = executable;
#if OS_LINUX
clientProcess.StartInfo.Arguments = "http://"+cs.ipaddr+":"+cs.portnum+"/horseisle_mapfix.swf?SERVER=" + serverIp + "&PORT=" + serverPort.ToString();
#elif OS_MACOS
#if defined(OS_LINUX) || defined(OS_MACOS)
clientProcess.StartInfo.Arguments = "http://"+cs.ipaddr+":"+cs.portnum+"/horseisle_mapfix.swf?SERVER=" + serverIp + "&PORT=" + serverPort.ToString();
#else
clientProcess.StartInfo.Arguments = "http://"+cs.ipaddr+":"+cs.portnum+"/horseisle.swf?SERVER=" + serverIp + "&PORT=" + serverPort.ToString();
@ -224,7 +222,7 @@ namespace MPN00BS
BaseDir = Path.Combine(hispFolder, "HISP", "N00BS");
Directory.CreateDirectory(BaseDir);
#elif OS_LINUX
#elif defined(OS_LINUX) || defined(OS_MACOS)
string hispFolder = Environment.GetEnvironmentVariable("HOME");
if (hispFolder == null)
return;
@ -239,7 +237,7 @@ namespace MPN00BS
try
{
#if OS_LINUX
#if defined(OS_LINUX) || defined(OS_MACOS)
cs = new ContentServer("127.0.0.1", 12322);
#else
cs = new ContentServer("127.0.0.1", 80);