From 284cbf7e556be9d788e0c61e51f7077b1c5fb6d2 Mon Sep 17 00:00:00 2001
From: Li
Date: Tue, 4 Oct 2022 15:40:09 +1300
Subject: [PATCH] macos port but it actually works?
---
HorseIsleServer/MPN00BS/ServerStarter.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/HorseIsleServer/MPN00BS/ServerStarter.cs b/HorseIsleServer/MPN00BS/ServerStarter.cs
index a79fe1e..02f4161 100755
--- a/HorseIsleServer/MPN00BS/ServerStarter.cs
+++ b/HorseIsleServer/MPN00BS/ServerStarter.cs
@@ -78,7 +78,7 @@ namespace MPN00BS
clientProcess.StartInfo.FileName = executable;
-#if defined(OS_LINUX) || defined(OS_MACOS)
+#if OS_LINUX || 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();
@@ -222,7 +222,7 @@ namespace MPN00BS
BaseDir = Path.Combine(hispFolder, "HISP", "N00BS");
Directory.CreateDirectory(BaseDir);
-#elif defined(OS_LINUX) || defined(OS_MACOS)
+#elif OS_LINUX || OS_MACOS
string hispFolder = Environment.GetEnvironmentVariable("HOME");
if (hispFolder == null)
return;
@@ -237,7 +237,7 @@ namespace MPN00BS
try
{
-#if defined(OS_LINUX) || defined(OS_MACOS)
+#if OS_LINUX || OS_MACOS
cs = new ContentServer("127.0.0.1", 12322);
#else
cs = new ContentServer("127.0.0.1", 80);