-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Guild Wars launcher process (#423)
Added timeouts for mod startup Added detection logic for uMod breaking after GuildWars update Closes #415
- Loading branch information
1 parent
8fdc9a6
commit f3b8221
Showing
10 changed files
with
178 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Daybreak.Services.Mods; | ||
|
||
public interface IModService | ||
{ | ||
string Name { get; } | ||
bool IsEnabled { get; set; } | ||
bool IsInstalled { get; } | ||
IEnumerable<string> GetCustomArguments(); | ||
/// <summary> | ||
/// Called before starting the guild wars process. | ||
/// Do mod preparation here. | ||
/// </summary> | ||
Task OnGuildwarsStarting(Process process); | ||
Task OnGuildwarsStarting(Process process, CancellationToken cancellationToken); | ||
/// <summary> | ||
/// Called when the process is created in suspended state. | ||
/// Do dll injection here. | ||
/// </summary> | ||
Task OnGuildWarsCreated(Process process); | ||
Task OnGuildWarsCreated(Process process, CancellationToken cancellationToken); | ||
/// <summary> | ||
/// Called after the process has been resumed. | ||
/// Do clean-up/integration with the guild wars process here. | ||
/// </summary> | ||
Task OnGuildwarsStarted(Process process); | ||
Task OnGuildwarsStarted(Process process, CancellationToken cancellationToken); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.