Skip to content

Commit

Permalink
FUCK
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Sep 1, 2024
1 parent 11e87e7 commit d315831
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Omega/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Plugin : IDalamudPlugin {

private static Server _server = null!;

public Plugin(DalamudPluginInterface pluginInterface) {
public Plugin(IDalamudPluginInterface pluginInterface) {
pluginInterface.Create<Services>();

WindowSystem = new("Omega");
Expand Down
3 changes: 0 additions & 3 deletions Omega/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ protected override void OnMessage(MessageEventArgs e) {

switch (msg.MessageCase) {
case C2SMessage.MessageOneofCase.Ping: {
PluginLog.Debug("Got ping, sending pong");
var msg2 = new S2CMessage {
Pong = new Pong {
GameVersion = File.ReadAllText("ffxivgame.ver"),
Expand Down Expand Up @@ -155,7 +154,6 @@ protected override void OnMessage(MessageEventArgs e) {
foreach (var payload in payloads) {
var addr = (nint)payload.Address;
var data = payload.Data.ToByteArray()[0];
PluginLog.Verbose("Writing {Data:X} to {Address:X}", data, payload.Address);

VirtualProtect(addr, 1, 0x40, out var oldProtect);
unsafe {
Expand Down Expand Up @@ -187,7 +185,6 @@ protected override void OnMessage(MessageEventArgs e) {
}

default:
PluginLog.Warning("Unknown message type: {Message}", msg.MessageCase);
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Omega/Services.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Omega;

public class Services {
[PluginService] public static DalamudPluginInterface PluginInterface { get; private set; } = null!;
[PluginService] public static IDalamudPluginInterface PluginInterface { get; private set; } = null!;
[PluginService] public static ICommandManager CommandManager { get; private set; } = null!;
[PluginService] public static ISigScanner SigScanner { get; private set; } = null!;
[PluginService] public static IFramework Framework { get; private set; } = null!;
Expand Down

0 comments on commit d315831

Please sign in to comment.