Skip to content

Commit

Permalink
Fixed swf file option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodi Degirmenci committed Oct 9, 2021
1 parent 4eaba6f commit e0971d4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
11 changes: 4 additions & 7 deletions RBot/AppRuntime.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
using System;
using RBot.Options;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using RBot.Options;

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

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

new Option<string>("client.swf", "Client SWF", "The SWF file to be loaded as the game client.", "spider.swf"),

new Option<bool>("secret.zmana", "", "", false)
});

Expand Down
4 changes: 2 additions & 2 deletions RBot/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.5.1.0")]
[assembly: AssemblyFileVersion("3.5.1.0")]
[assembly: AssemblyVersion("3.5.2.1")]
[assembly: AssemblyFileVersion("3.5.2.1")]
1 change: 1 addition & 0 deletions RBot/RBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>8.0</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>rbot.ico</ApplicationIcon>
Expand Down
2 changes: 1 addition & 1 deletion RBot/Resources/BuildDate.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
09/10/2021 13:58:15.01
09/10/2021 14:28:42.02
2 changes: 1 addition & 1 deletion RBot/Scripts/ScriptInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public void HandleFlashCall(AxShockwaveFlash flash, string name, object[] args)
switch (name)
{
case "requestLoadGame":
FlashUtil.Call("loadClient", AppRuntime.Options.Get<string>("client.swf") ?? "spider.swf");
FlashUtil.Call("loadClient", AppRuntime.Options.Get<string>("client.swf"));
break;
case "debug":
Debug.WriteLine(args[0]);
Expand Down

0 comments on commit e0971d4

Please sign in to comment.