Skip to content

Commit

Permalink
Fixed SingleBoostr for newest version of Steam. Updated HourBoostr pa…
Browse files Browse the repository at this point in the history
…ckages.
  • Loading branch information
Ezzpify committed Jan 1, 2018
1 parent 673648e commit f769d2a
Show file tree
Hide file tree
Showing 294 changed files with 86,446 additions and 75,359 deletions.
Binary file modified HourBoostr/.vs/HourBoostr/v14/.suo
Binary file not shown.
Binary file modified HourBoostr/.vs/HourBoostr/v15/.suo
Binary file not shown.
Empty file.
Binary file not shown.
6 changes: 3 additions & 3 deletions HourBoostr/HourBoostr/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/>
</startup>
</configuration>
</configuration>
8 changes: 0 additions & 8 deletions HourBoostr/HourBoostr/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ public Bot(Config.AccountSettings info)
Connect();
}


/// <summary>
/// Connect to Steam
/// </summary>
Expand Down Expand Up @@ -275,13 +274,6 @@ private void BackgroundWorkerOnRunWorkerCompleted(object sender, RunWorkerComple
/// <param name="callback">SteamClient.ConnectedCallback</param>
private void OnConnected(SteamClient.ConnectedCallback callback)
{
if (callback.Result != EResult.OK)
{
mLog.Write(Log.LogLevel.Warn, $"OnConnected error: {callback.Result}");
mIsRunning = false;
return;
}

/*Set sentry hash*/
byte[] sentryHash = null;
if (File.Exists(mSteam.sentryPath))
Expand Down
6 changes: 6 additions & 0 deletions HourBoostr/HourBoostr/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ public class Settings
public bool CheckForUpdates { get; set; } = true;


/// <summary>
/// If we should hide application to tray
/// </summary>
public bool HideToTray { get; set; } = true;


/// <summary>
/// List of accounts
/// </summary>
Expand Down
26 changes: 19 additions & 7 deletions HourBoostr/HourBoostr/HourBoostr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>HourBoostr</RootNamespace>
<AssemblyName>HourBoostr</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -22,6 +23,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -31,24 +33,34 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Win32.Registry, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Win32.Registry.4.4.0\lib\net461\Microsoft.Win32.Registry.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.10.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="protobuf-net, Version=2.0.0.668, Culture=neutral, PublicKeyToken=257b51d87d2e4d67, processorArchitecture=MSIL">
<HintPath>..\packages\protobuf-net.2.0.0.668\lib\net40\protobuf-net.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="SteamKit2, Version=1.8.2.0, Culture=neutral, PublicKeyToken=ed3ce47ed5aad940, processorArchitecture=MSIL">
<HintPath>..\packages\SteamKit2.1.8.2\lib\net45\SteamKit2.dll</HintPath>
<Reference Include="protobuf-net, Version=2.1.0.0, Culture=neutral, PublicKeyToken=257b51d87d2e4d67, processorArchitecture=MSIL">
<HintPath>..\packages\protobuf-net.2.1.0\lib\net451\protobuf-net.dll</HintPath>
</Reference>
<Reference Include="SteamKit2, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SteamKit2.2.0.0\lib\netstandard2.0\SteamKit2.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Security.AccessControl, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.AccessControl.4.4.0\lib\net461\System.Security.AccessControl.dll</HintPath>
</Reference>
<Reference Include="System.Security.Principal.Windows, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.Principal.Windows.4.4.0\lib\net461\System.Security.Principal.Windows.dll</HintPath>
</Reference>
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
Expand Down Expand Up @@ -84,10 +96,10 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="icon.ico" />
<None Include="packages.config" />
<None Include="Resources\icon.ico" />
<None Include="media\icon.ico" />
<None Include="media\icon.png" />
Expand Down
10 changes: 10 additions & 0 deletions HourBoostr/HourBoostr/InMemoryServerListProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ public Task UpdateServerListAsync(IEnumerable<IPEndPoint> endPoints)
return Task.Delay(0);
}

Task<IEnumerable<ServerRecord>> IServerListProvider.FetchServerListAsync()
{
throw new NotImplementedException();
}

public Task UpdateServerListAsync(IEnumerable<ServerRecord> endpoints)
{
throw new NotImplementedException();
}

internal event EventHandler ServerListUpdated;
}
}
4 changes: 2 additions & 2 deletions HourBoostr/HourBoostr/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.1.0")]
[assembly: AssemblyFileVersion("3.1.0")]
[assembly: AssemblyVersion("3.2.1")]
[assembly: AssemblyFileVersion("3.2.1")]
29 changes: 7 additions & 22 deletions HourBoostr/HourBoostr/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public Session(Config.Settings settings)
private void MBwg_DoWork(object sender, DoWorkEventArgs e)
{
/*Go through account and log them into steam*/
//SteamDirectory.Initialize().ConfigureAwait(true);
InitializeCMs(Program.mGlobalDB.CellID, Program.mGlobalDB.ServerListProvider);
foreach (var account in mSettings.Accounts)
{
if (account.IgnoreAccount)
Expand Down Expand Up @@ -94,31 +92,18 @@ private void MBwg_DoWork(object sender, DoWorkEventArgs e)
/*Start status thread*/
mThreadStatus = new Thread(ThreadStatus);
mThreadStatus.Start();
}


/// <summary>
/// Borrowed this part from
/// https://github.com/JustArchi/ArchiSteamFarm
/// </summary>
/// <param name="cellId">steam cellid</param>
/// <param name="serverList">list of cm servers</param>
private void InitializeCMs(uint cellId, IServerListProvider serverList)
{
CMClient.Servers.CellID = cellId;
CMClient.Servers.ServerListProvider = serverList;
Console.WriteLine("Initializing SteamDirectory ...");

try
if (mSettings.HideToTray)
{
SteamDirectory.Initialize(cellId).ConfigureAwait(false);
}
catch (Exception ex)
{
Console.WriteLine($"Error configuring CM. Connecting might take longer than usual. {ex.Message}");

}
}

private void HideAppToTray()
{

}


/// <summary>
/// Returns the DateTime of when the application was built
Expand Down
2 changes: 1 addition & 1 deletion HourBoostr/HourBoostr/SteamWeb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public bool Authenticate(string myUniqueId, SteamClient client, string myLoginKe

// rsa encrypt it with the public key for the universe we're on
byte[] cryptedSessionKey = null;
using (RSACrypto rsa = new RSACrypto(KeyDictionary.GetPublicKey(client.ConnectedUniverse)))
using (RSACrypto rsa = new RSACrypto(KeyDictionary.GetPublicKey(client.Universe)))
{
cryptedSessionKey = rsa.Encrypt(sessionKey);
}
Expand Down
7 changes: 5 additions & 2 deletions HourBoostr/HourBoostr/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Win32.Registry" version="4.4.0" targetFramework="net471" />
<package id="Newtonsoft.Json" version="10.0.1" targetFramework="net452" />
<package id="protobuf-net" version="2.0.0.668" targetFramework="net452" />
<package id="SteamKit2" version="1.8.2" targetFramework="net452" />
<package id="protobuf-net" version="2.1.0" targetFramework="net471" />
<package id="SteamKit2" version="2.0.0" targetFramework="net471" />
<package id="System.Security.AccessControl" version="4.4.0" targetFramework="net471" />
<package id="System.Security.Principal.Windows" version="4.4.0" targetFramework="net471" />
</packages>
Binary file modified HourBoostr/Settings/.vs/Settings/v14/.suo
Binary file not shown.
Binary file modified HourBoostr/Settings/.vs/Settings/v15/.suo
Binary file not shown.
Empty file.
Binary file not shown.
8 changes: 7 additions & 1 deletion HourBoostr/Settings/Settings.sln
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Settings", "Settings\Settings.csproj", "{26846449-44E9-4D8C-91BF-F6789207FC80}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{26846449-44E9-4D8C-91BF-F6789207FC80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{26846449-44E9-4D8C-91BF-F6789207FC80}.Debug|Any CPU.Build.0 = Debug|Any CPU
{26846449-44E9-4D8C-91BF-F6789207FC80}.Debug|x86.ActiveCfg = Debug|x86
{26846449-44E9-4D8C-91BF-F6789207FC80}.Debug|x86.Build.0 = Debug|x86
{26846449-44E9-4D8C-91BF-F6789207FC80}.Release|Any CPU.ActiveCfg = Release|Any CPU
{26846449-44E9-4D8C-91BF-F6789207FC80}.Release|Any CPU.Build.0 = Release|Any CPU
{26846449-44E9-4D8C-91BF-F6789207FC80}.Release|x86.ActiveCfg = Release|x86
{26846449-44E9-4D8C-91BF-F6789207FC80}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
6 changes: 6 additions & 0 deletions HourBoostr/Settings/Settings/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ public class Settings
public bool CheckForUpdates { get; set; } = true;


/// <summary>
/// If we should hide application to tray
/// </summary>
public bool HideToTray { get; set; } = true;


/// <summary>
/// List of accounts
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions HourBoostr/Settings/Settings/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.1.0")]
[assembly: AssemblyFileVersion("3.1.0")]
[assembly: AssemblyVersion("3.2.1")]
[assembly: AssemblyFileVersion("3.2.1")]
20 changes: 20 additions & 0 deletions HourBoostr/Settings/Settings/Settings.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,26 @@
<PropertyGroup>
<ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.10.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
Expand Down
Loading

0 comments on commit f769d2a

Please sign in to comment.