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

BUG - any path with the string "*temp*" or "*appdata*" will cause the app not to launch #424

Closed
snaxib opened this issue Apr 25, 2023 · 1 comment

Comments

@snaxib
Copy link

snaxib commented Apr 25, 2023

Line 181 of MainWindow.xaml.cs calls VerifyHunterPiePathUseCase. This executes the following:

`internal class VerifyHunterPiePathUseCase
{

public static bool Invoke() => !ClientInfo.ClientPath.ToLowerInvariant()
    .ContainsAny(new[] { "temp", "appdata" });

}`

This uses greedy matching, meaning if you have temp or appdata anywhere in the path, you cannot launch the mod. Example:
C:\Users\tempo\Desktop\HunterPie will cause the GUI initialization to fail, stating that you are launching from an unsafe directory.

A workaround is to move the execution directory to any path that does not contain either string.

@Haato3o
Copy link
Member

Haato3o commented Apr 26, 2023

I already know that, also a duplicate of #354

@Haato3o Haato3o closed this as completed Apr 26, 2023
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

No branches or pull requests

2 participants