R2NorthstarTools / R2NorthstarTools/FlightCore

Improve control flow for detecting EA App install path

Open
#404 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
94
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Originally posted by @Jan200101 in https://github.com/R2NorthstarTools/FlightCore/pull/394#discussion_r1241218353

the type that get_value returns depend on the type that is expected, so we cannot easily set the type of game_path_str to something like Result<String> without the function returning a Result<Result<String>>.

The curent way its done is a bit ugly but it does the job (plus what are the chances someone has the registry subkey but not the value :clueless:)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file or test. Locate the EA App install-path detection and inspect how get_value and the registry subkey/value cases are handled; done means the control flow is improved without changing the detected path behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, operating-systems
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.