Skip to content

Commit

Permalink
Use Path func for filetype check
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharied committed Oct 10, 2024
1 parent e28912a commit 7ea0487
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static async Task<GenerateResult> Generate(FumenConvertOption option, Ong
return new(false, Resources.OutputFumenFileNotSelect);

if (option.IsStandarizeFumen) {
if (!option.OutputFumenFilePath.EndsWith(".ogkr")) {
if (Path.GetExtension(option.OutputFumenFilePath) != ".ogkr") {
return new(false, Resources.OutputFumenStandardizeFormatNotSupported);
}

Expand Down

0 comments on commit 7ea0487

Please sign in to comment.