Skip to content

Should Arguments be exempt from ContainsIllegalCharacters? #28

Description

@edgar1016

I was testing adding none localized visual novels that require Japanese locale. I use the program locale emulator to run these games. Locale emulator allows for running the LEProc.exe with the argument -run "path-to-exe" to load Japanese games with a shortcut.

Currently using periods is considered invalid in the Arguments text box for example -run "C:\Users\edgar\Desktop\Kara no Shoujo - FULL VOICE HD SIZE EDITION\Launcher.exe" would be invalid because it has a period in Launcher.exe.

.Must(ContainsIllegalCharacters).WithMessage(App.ResMan.GetString("ValidationArgumentsIllegalChars"));

So I was wondering if maybe this line should be removed or maybe add some sort of integration where the LEProc.exe path is stored and the software can run it with the argument containing the game executable's path. This could be toggled on an individual basis like the Enable Custom Arguments toggle maybe it could be something like Use Locale Emulator. I also don't like the idea of just adding a period to

string allowableLetters = $@"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890/\-_ !?;:'+={'"'}";

This line also keeps me from adding games with Japanese characters in its executable obviously. Also there's can't be more than once game added with the same executable path so adding game using LEProc.exe is a no go for now.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions