Skip to content

Commit

Permalink
fix command line args
Browse files Browse the repository at this point in the history
  • Loading branch information
the-database committed Jul 30, 2024
1 parent 6fa323b commit 7509a4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BuildMpvUpscale2xAnimeJaNai/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
using System.Text;
using static Downloader;

if (args.Length < 2)
if (args.Length < 1)
{
throw new ArgumentException("Version is required.");
}

// Get the path of the currently executing assembly
var assemblyDirectory = AppContext.BaseDirectory;
var animejanaiDirectory = Path.Combine(assemblyDirectory, "mpv-upscale-2x_animejanai");
var installDirectory = Path.Combine(assemblyDirectory, $"mpv-upscale-2x_animejanai-v{args[1]}");
var installDirectory = Path.Combine(assemblyDirectory, $"mpv-upscale-2x_animejanai-v{args[0]}");
var vapourSynthPluginsPath = Path.Combine(installDirectory, "vs-plugins");
var vsmlrtModelsPath = Path.Combine(vapourSynthPluginsPath, "models");
var vapourSynthVersion = "R69";
Expand Down
8 changes: 8 additions & 0 deletions BuildMpvUpscale2xAnimeJaNai/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"profiles": {
"BuildMpvUpscale2xAnimeJaNai": {
"commandName": "Project",
"commandLineArgs": "3.1.0"
}
}
}

0 comments on commit 7509a4d

Please sign in to comment.