Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: replace name #404

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: replace name
kurokobo committed Jun 10, 2024
commit c1d38b09be2a1b1a6b188c7ac64cd57a426f3a20
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
},
{
"login": "Wolfhound905",
"name": "Aiden",
"name": "Wolfhound905",
"avatar_url": "https://avatars.githubusercontent.com/u/58155937?v=4",
"profile": "https://github.com/wolfhound905",
"contributions": [

Unchanged files with check annotations Beta

return Players;
}
private PlayerInfo? GetPlayerById(ProcessMemory memInstance, int id) {

Check warning on line 116 in AmongUsCapture/Memory/GameMemReader.cs

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
var player = GetPlayers(memInstance).FirstOrDefault(x => x.PlayerId == id);
return player;
}
private PlayerInfo? GetExiledPlayer(ProcessMemory memInstance) {

Check warning on line 121 in AmongUsCapture/Memory/GameMemReader.cs

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
var exiledPlayerId = memInstance.ReadWithDefault<byte>(GameAssemblyPtr, 255, CurrentOffsets.ExiledPlayerIdOffsets);
return GetPlayerById(memInstance, exiledPlayerId);
}
});
}
private string? GetGameCode(ProcessMemory memInstance) {

Check warning on line 226 in AmongUsCapture/Memory/GameMemReader.cs

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
var gameCode = memInstance.ReadString(ProcessMemory.getInstance().Read<IntPtr>(GameAssemblyPtr, CurrentOffsets.GameCodeOffsets), CurrentOffsets.StringOffsets[0], CurrentOffsets.StringOffsets[1]);
if (string.IsNullOrEmpty(gameCode)) return null;
return gameCode;
Logger.Debug("New connection to API server");
}
private void GameOverHandler(object? sender, GameOverEventArgs e)

Check warning on line 40 in AmongUsCapture/ServerSocket.cs

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
Send(JsonConvert.SerializeObject(new WebsocketEvent(EventName.gameover, e)));
}
private void JoinedLobbyHandler(object? sender, LobbyEventArgs e)

Check warning on line 45 in AmongUsCapture/ServerSocket.cs

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
Send(JsonConvert.SerializeObject(new WebsocketEvent(EventName.lobby, e)));
}
private void PlayerChangedHandler(object? sender, PlayerChangedEventArgs e)

Check warning on line 50 in AmongUsCapture/ServerSocket.cs

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
Send(JsonConvert.SerializeObject(new WebsocketEvent(EventName.player, e)));
}
private void GameStateChangedHandler(object? sender, GameStateChangedEventArgs e)

Check warning on line 55 in AmongUsCapture/ServerSocket.cs

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
Send(JsonConvert.SerializeObject(new WebsocketEvent(EventName.state, e)));
}
PersistentSettings = new ConfigurationBuilder<IPersistentSettings>().UseJsonFile(Path.Join(StorageLocation, "Settings.json")).Build();
}
catch (Newtonsoft.Json.JsonReaderException e) //Delete file and recreate config

Check warning on line 27 in AmongUsCapture/Settings.cs

GitHub Actions / build

The variable 'e' is declared but never used
{
Console.WriteLine($"Bad config. Clearing.");
File.Delete(Path.Join(StorageLocation, "Settings.json"));
socket.EmitAsync("taskFailed", update.TaskId);
return;
};
var paramString = "";

Check warning on line 66 in AmongUsCapture/ClientSocket.cs

GitHub Actions / build

The variable 'paramString' is assigned but its value is never used
Logger.Debug("Recieved task: {task}", update);
handler.UpdateUser(update.GuildId, update.UserId, update.Parameters.Mute, update.Parameters.Deaf).ContinueWith(x => {
Logger.Debug("Task {TaskID} {$result}", update.TaskId, x.Result ? "completed successfully" : "failed");
{
var guild = DClient.GetGuild(GuildID);
var member = guild.GetUser(UserID);
TaskStatus s = TaskStatus.WaitingToRun;

Check warning on line 75 in AmongUsCapture/DiscordHandler.cs

GitHub Actions / build

The variable 's' is assigned but its value is never used
return await member.ModifyAsync(x =>
{
x.Deaf = deafen;