Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Linux game path finding is just awful #181

Description

@MaKiPL

Currently it looks for pre-configured pathes that lead only to specific user (in this case DEVs). This is a giant no-no
We either need to introduce some user-friendly config (or forcing the user to type path on first use) or at least change /home/{user}/... to actually grab from whoami or $(USER)

Task:
Replace content of

private static string LinuxRootGameDirectory()
{
var commonRoots = new string[]
{
@"/home/robert/Final Fantasy VIII",
@"/media/griever/Data/SteamLibrary/steamapps/common/FINAL FANTASY VIII",
@"/home/griever/.PlayOnLinux/wineprefix/Steam/drive_c/Program Files/Steam/steamapps/common/FINAL FANTASY VIII",
@"/home/parallels/src/ff8/steam"
};
if (commonRoots.Where(path => Directory.Exists(path)).Any())
return commonRoots.Where(path => Directory.Exists(path)).First();
throw new DirectoryNotFoundException($"Cannot find game directory." +
$"Add your own path to the {nameof(LinuxRootGameDirectory)}.");
}
with suggestions above

This should be really easy- any junior want to take the challenge? :D

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions