Skip to content

Commit

Permalink
Merge pull request #36 from General-101/master
Browse files Browse the repository at this point in the history
Use the full path when getting the scenario name
  • Loading branch information
Steven Garcia authored Jul 27, 2022
2 parents d63c010 + 45828ea commit f72559c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Launcher/ToolkitInterface/ToolkitBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ public static (string ScenarioPath, string ScenarioName, string BspName) SplitSt
if (data_file.EndsWith(".scenario"))
{
scenario_path = Path.GetDirectoryName(data_file).ToLower() ?? "";
scenario_name = Path.GetFileNameWithoutExtension(scenario_path).ToLower();
scenario_name = Path.GetFileNameWithoutExtension(data_file).ToLower();
bsp_name = "all";
if (!string.IsNullOrEmpty(bsp_data_file))
{
Expand Down

0 comments on commit f72559c

Please sign in to comment.