Skip to content

Commit e0971d4

Browse files
author
Rodi Degirmenci
committed
Fixed swf file option.
1 parent 4eaba6f commit e0971d4

5 files changed

Lines changed: 9 additions & 11 deletions

File tree

RBot/AppRuntime.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
using System;
1+
using RBot.Options;
22
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
63
using System.Windows.Forms;
74

8-
using RBot.Options;
9-
105
namespace RBot
116
{
127
public static class AppRuntime
@@ -24,13 +19,15 @@ public static void Init()
2419
new Option<int>("proxy.port", "Proxy Port", "The port that the patch proxy will bind to. Port 0 finds an available port."),
2520
new Option<bool>("proxy.cache.disable", "Disable Cache", "Disables caching of network responses when using the proxy.", true),
2621
new Option<bool>("updates.check", "Check for Updates", "When enabled, RBot will check for updates and notify you of new versions on launch.", true),
27-
new Option<bool>("updates.beta", "Check for Prereleases", "Update checks will also check for prerelease versions.", false),
22+
new Option<bool>("updates.beta", "Check for Prereleases", "Update checks will also check for prerelease versions."),
2823

2924
new Option<int>("binding.start", "", "", (int)Keys.F10),
3025
new Option<int>("binding.stop", "", "", (int)Keys.F11),
3126
new Option<int>("binding.toggle", "", "", (int)Keys.F12),
3227
new Option<int>("binding.load", "", "", (int)Keys.F9),
3328

29+
new Option<string>("client.swf", "Client SWF", "The SWF file to be loaded as the game client.", "spider.swf"),
30+
3431
new Option<bool>("secret.zmana", "", "", false)
3532
});
3633

RBot/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("3.5.1.0")]
36-
[assembly: AssemblyFileVersion("3.5.1.0")]
35+
[assembly: AssemblyVersion("3.5.2.1")]
36+
[assembly: AssemblyFileVersion("3.5.2.1")]

RBot/RBot.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<ErrorReport>prompt</ErrorReport>
5555
<WarningLevel>4</WarningLevel>
5656
<LangVersion>8.0</LangVersion>
57+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5758
</PropertyGroup>
5859
<PropertyGroup>
5960
<ApplicationIcon>rbot.ico</ApplicationIcon>

RBot/Resources/BuildDate.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
09/10/2021 13:58:15.01
1+
09/10/2021 14:28:42.02

RBot/Scripts/ScriptInterface.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public void HandleFlashCall(AxShockwaveFlash flash, string name, object[] args)
435435
switch (name)
436436
{
437437
case "requestLoadGame":
438-
FlashUtil.Call("loadClient", AppRuntime.Options.Get<string>("client.swf") ?? "spider.swf");
438+
FlashUtil.Call("loadClient", AppRuntime.Options.Get<string>("client.swf"));
439439
break;
440440
case "debug":
441441
Debug.WriteLine(args[0]);

0 commit comments

Comments
 (0)