Skip to content

Commit 8d8eec4

Browse files
committed
Temporarily use locally built MegaApiClient library with hashcash support to fix MEGA login issues
1 parent 2601dc0 commit 8d8eec4

File tree

10 files changed

+2477
-12
lines changed

10 files changed

+2477
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
#### Version - 4.0.3.0
44
* The link to a missing Nexus file now directly opens to the specific missing archive instead of the general mod page ([@ninjawaffle](https://www.github.com/ninjawaffle))
5-
* Adjusted how Wabbajack gets its version number so it works with the current build pipeline, it now comes out correctly within the application (no more 4.0.0.0 when you actually have 4.0.2.0) ([@EzioTheDeadPoet](https://www.github.com/EzioTheDeadPoet))
6-
* Added back a working hash-game-files function to the CLI to make it easier to add support for new games ([@JanuarySnow](https://www.github.com/JanuarySnow))
5+
* Fixed version not properly being inlined into the executable ([@EzioTheDeadPoet](https://www.github.com/EzioTheDeadPoet))
6+
* This means you won't see a 4.0.0.0 version in the bottom left of Wabbajack when you actually have 4.0.2.0.
7+
* Reintroduced hash-game-files function in the CLI to add support for new games ([@JanuarySnow](https://www.github.com/JanuarySnow))
78
* Added support for extracting InnoSetup executables ([@EzioTheDeadPoet](https://www.github.com/EzioTheDeadPoet)))
89
* Fixed a bug where searching for Nexus archives in the modlist overview would only search on the mod name instead of the archive name
10+
* Fixed the MEGA integration breaking with 402 Payment Required error messages after they implemented hashcashes
11+
* A hashcash is basically a computationally expensive cryptographic puzzle, it needs to be solved upon login and it was implemented as a security measure by MEGA to prevent API abuse by bots
912

1013
#### Version - 4.0.2.0 - 6/26/2025
1114
* Fixed the community URL not being saved in the compiler menu

Wabbajack.App.Wpf/ViewModels/Interventions/MegaLoginVM.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
using System;
22
using System.Reactive.Disposables;
3-
using System.Reactive.Linq;
4-
using System.Reactive.Subjects;
53
using System.Threading;
64
using System.Threading.Tasks;
7-
using System.Web;
8-
using System.Windows;
95
using System.Windows.Input;
106
using CG.Web.MegaApiClient;
117
using Microsoft.Extensions.Logging;
128
using ReactiveUI;
139
using ReactiveUI.Fody.Helpers;
14-
using Wabbajack.DTOs.Logins;
1510
using Wabbajack.Messages;
1611
using Wabbajack.Networking.WabbajackClientApi;
17-
using Wabbajack.RateLimiter;
1812
using Wabbajack.Services.OSIntegrated.TokenProviders;
1913
using static CG.Web.MegaApiClient.MegaApiClient;
2014

@@ -151,4 +145,6 @@ private async Task DoLoginAnonymously(CancellationToken token)
151145
{
152146
await _apiClient.LoginAnonymousAsync().WaitAsync(token);
153147
}
148+
149+
154150
}

Wabbajack.App.Wpf/Wabbajack.App.Wpf.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,10 @@
138138

139139
</ItemGroup>
140140

141+
<ItemGroup>
142+
<Reference Include="MegaApiClient">
143+
<HintPath>..\Wabbajack.Downloaders.Mega\lib\MegaApiClient\MegaApiClient.dll</HintPath>
144+
</Reference>
145+
</ItemGroup>
146+
141147
</Project>

Wabbajack.CLI/Wabbajack.CLI.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,10 @@
6868
<Folder Include="Properties\PublishProfiles\" />
6969
</ItemGroup>
7070

71+
<ItemGroup>
72+
<Reference Include="MegaApiClient">
73+
<HintPath>..\Wabbajack.Downloaders.Mega\lib\MegaApiClient\MegaApiClient.dll</HintPath>
74+
</Reference>
75+
</ItemGroup>
76+
7177
</Project>

Wabbajack.Downloaders.Mega/Wabbajack.Downloaders.Mega.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
@@ -12,11 +12,16 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="MegaApiClient" Version="1.10.4" />
1615
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.1" />
1716
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.1" />
1817
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.1" />
1918
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2019
</ItemGroup>
2120

21+
<ItemGroup>
22+
<Reference Include="MegaApiClient">
23+
<HintPath>lib\MegaApiClient.dll</HintPath>
24+
</Reference>
25+
</ItemGroup>
26+
2227
</Project>

0 commit comments

Comments
 (0)