Skip to content

Commit

Permalink
updated to latest beta - removed xdg-mime removal code as it does not…
Browse files Browse the repository at this point in the history
… work. (but y tho)
  • Loading branch information
TauAkiou committed Nov 3, 2020
1 parent 0522022 commit 4824414
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 41 deletions.
2 changes: 1 addition & 1 deletion AmongUsCapture/GameVerifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static class GameVerifier
private const string steamapi32_orig_hash = "07407c1bc2f3114042dbcfe8183b77f73e178be7";
private const string steamapi64_orig_hash = "e77433094c56433685a68a4436e81b76c3b5e1f5";
private const string amongusexe_orig_hash = "adb281fa5deee89800ddf68eea941a6b8cf6f38e";
private const string gameassembly_orig_hash = "009a5b65dca2bbf48d64b6e9e13a050ef3dbf201";
private const string gameassembly_orig_hash = "b0d0cd0103c9854707b158d14538e87a6323102c";

public static bool VerifySteamHash(string executablePath)
{
Expand Down
34 changes: 0 additions & 34 deletions AmongUsCapture/IPC/DBus/IPCadapterDBus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,40 +189,6 @@ public override void RemoveHandler()
{
File.Delete(xdg_file);
}

var xdgproc = new Process()
{
StartInfo = new ProcessStartInfo
{
FileName = "/usr/bin/xdg-mime",
Arguments = $"query defualt x-scheme-handler/aucapture",
RedirectStandardOutput = true,
UseShellExecute = false,
CreateNoWindow = true,
}
};

xdgproc.Start();
string result = xdgproc.StandardOutput.ReadToEnd();
xdgproc.WaitForExit();

if (!result.IsNullOrEmpty())
{
xdgproc = new Process()
{
StartInfo = new ProcessStartInfo
{
FileName = "/usr/bin/xdg-mime",
Arguments = $"uninstall x-scheme-handler/aucapture",
RedirectStandardOutput = true,
UseShellExecute = false,
CreateNoWindow = true,
}
};

xdgproc.Start();
xdgproc.WaitForExit();
}
}

public override async Task<bool> SendToken(string jsonText)
Expand Down
12 changes: 6 additions & 6 deletions AmongUsCapture/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ public interface IGameOffsets
[Option(Alias = "GameHash", DefaultValue = "74C7DF9C5C722CC641018880F29F2C4C8F52C0720DFC808FD0060D0E7552F192")]
string GameHash { get; }

[Option(Alias = "Offsets.Client", DefaultValue = 0x1468840)]
[Option(Alias = "Offsets.Client", DefaultValue = 0x144BB30)]
int AmongUsClientOffset { get; set; }

[Option(Alias = "Offsets.GameData", DefaultValue = 0x1468864)]
[Option(Alias = "Offsets.GameData", DefaultValue = 0x144BA30)]
int GameDataOffset { get; set; }

[Option(Alias = "Offsets.MeetingHud", DefaultValue = 0x14686A0)]
[Option(Alias = "Offsets.MeetingHud", DefaultValue = 0x144B7CC)]
int MeetingHudOffset { get; set; }

[Option(Alias = "Offsets.GameStartManager", DefaultValue = 0x13FB424)]
[Option(Alias = "Offsets.GameStartManager", DefaultValue = 0x13A715C)]
int GameStartManagerOffset { get; set; }

[Option(Alias = "Offsets.HudManager", DefaultValue = 0x13EEB44)]
[Option(Alias = "Offsets.HudManager", DefaultValue = 0x139B29C)]
int HudManagerOffset { get; set; }

[Option(Alias = "Offsets.ServerManager", DefaultValue = 0x13F14E4)]
[Option(Alias = "Offsets.ServerManager", DefaultValue = 0x139CF7c)]
int ServerManagerOffset { get; set; }
}
}

0 comments on commit 4824414

Please sign in to comment.