Skip to content

Cleanup Location Info#5

Draft
EnKdev wants to merge 13 commits into
mainfrom
cleanup-location-info
Draft

Cleanup Location Info#5
EnKdev wants to merge 13 commits into
mainfrom
cleanup-location-info

Conversation

@EnKdev
Copy link
Copy Markdown
Collaborator

@EnKdev EnKdev commented Feb 24, 2025

This splits the hardcoded data from within the AllLocationInformation.cs file into their own respective location files up, thus removing hardcoded data and reducing the code size by a bit.

# Conflicts:
#	Archipelago.RetroArchClient/OcarinaOfTime/Data/AllLocationInformation.cs
…it them up into their own respective YAML files.

Also removed a few unnecessary comments at this point.
This changes the feedback from this:
"Reading .\Data\location_info_BotW.yaml..."
to this:
"Reading ./Data/location_info_BotW.yaml..."
Comment thread Archipelago.RetroArchClient/Data/LOCATION_CODES.md Outdated
Comment thread Archipelago.RetroArchClient/Data/location_info_BotW.yaml Outdated
Comment thread Archipelago.RetroArchClient/Data/location_info_BotW_MQ.yaml Outdated
Comment thread Archipelago.RetroArchClient/OcarinaOfTime/OoTClient.cs Outdated
Comment on lines +414 to +419
// This is super convoluted, but god forbid me to be able to use our LocationInformation object directly.
// However, I tested this, and it reads every file without issue and creates respective location information
// objects without skipping a single location.
foreach (var file in Directory.GetFiles("./Data"))
{
// Screw windows with using backslashes for paths.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to not have comments like this left in the code, if there's gonna be comments they should be simple and have a real purpose.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant the Screw windows comment too, I don't like windows at all, I just don't think that kind of comment belongs in code.

# Conflicts:
#	Archipelago.RetroArchClient/Archipelago.RetroArchClient.csproj
#	Archipelago.RetroArchClient/OcarinaOfTime/OoTClient.cs
#	Archipelago.RetroArchClient/OcarinaOfTime/Services/LocationCheckService.cs
Comment thread Archipelago.RetroArchClient/OcarinaOfTime/Services/LocationCheckService.cs Outdated
@EnKdev EnKdev assigned EnKdev and unassigned JoshuaEagles Feb 24, 2025
@EnKdev EnKdev marked this pull request as draft May 18, 2025 09:16
WIP, will take some time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants