CONTINUE, NOT RETURN!!!

This commit is contained in:
Li 2022-10-26 22:45:22 +13:00
parent 3e3d840ce6
commit 4c09390ac8
6 changed files with 14 additions and 14 deletions

View file

@ -60,11 +60,11 @@ namespace MPN00BS
clientProcess = new Process();
#if OS_WINDOWS
#if OS_WINDOWS || DEBUG
string executable = Path.Combine(Directory.GetCurrentDirectory(), "flashplayer", "WINDOWS", "flash.exe");
#elif OS_LINUX
string executable = Path.Combine(Directory.GetCurrentDirectory(), "flashplayer", "LINUX", "flash.elf");
#elif OS_MACOS
string executable = Path.Combine(Directory.GetCurrentDirectory(), "flashplayer", "LINUX", "flash.elf");
#elif OS_MACOS
string executable = Path.Combine(Directory.GetCurrentDirectory(), "flashplayer", "MACOS", "flash.app", "Contents", "MacOS", "Flash Player");
#else
MessageBox.Show(null,"ERROR: No path for flash projector specified on this platform", "Porting error", MessageBoxButtons.Ok);
@ -79,7 +79,7 @@ namespace MPN00BS
clientProcess.StartInfo.FileName = executable;
#if OS_LINUX || OS_MACOS
clientProcess.StartInfo.Arguments = "http://"+cs.ipaddr+":"+cs.portnum+"/horseisle_mapfix.swf?SERVER=" + serverIp + "&PORT=" + serverPort.ToString();
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();
#endif
@ -215,7 +215,7 @@ namespace MPN00BS
public static void SetBaseDir()
{
#if OS_WINDOWS
#if OS_WINDOWS || DEBUG
string hispFolder = Environment.GetEnvironmentVariable("APPDATA");
if (hispFolder == null)
return;