Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
OliBomby committed Dec 21, 2022
2 parents 18465df + 31548a0 commit bb00f49
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Mapping_Tools/Mapping_Tools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<PackageReference Include="Microsoft-WindowsAPICodePack-Shell" Version="1.1.4" />
<PackageReference Include="NAudio" Version="2.0.0" />
<PackageReference Include="NAudio.Vorbis" Version="1.3.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="NVorbis" Version="0.10.3" />
<PackageReference Include="OggVorbisEncoder" Version="1.2.0" />
<PackageReference Include="Onova" Version="2.6.2" />
Expand Down
5 changes: 4 additions & 1 deletion Mapping_Tools/Viewmodels/HitsoundCopierVM.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text.Json.Serialization;
using Mapping_Tools.Classes;
using Mapping_Tools.Classes.BeatmapHelper;
Expand Down Expand Up @@ -233,7 +234,9 @@ public HitsoundCopierVm() {

ExportBrowseCommand = new CommandImplementation(
_ => {
string[] paths = IOHelper.BeatmapFileDialog(true, !SettingsManager.Settings.CurrentBeatmapDefaultFolder);
string pathFromDirectory = Directory.GetParent(PathFrom).FullName;
string[] paths = IOHelper.BeatmapFileDialog(pathFromDirectory, true);
if (paths.Length != 0) {
PathTo = string.Join("|", paths);
}
Expand Down
5 changes: 4 additions & 1 deletion Mapping_Tools/Viewmodels/MetadataManagerVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Mapping_Tools.Classes.SystemTools;
using Mapping_Tools.Components.Domain;
using System;
using System.IO;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
Expand Down Expand Up @@ -84,7 +85,9 @@ public MetadataManagerVm() {

ExportBrowseCommand = new CommandImplementation(
_ => {
var paths = IOHelper.BeatmapFileDialog(true, !SettingsManager.Settings.CurrentBeatmapDefaultFolder);
string importPathDirectory = Directory.GetParent(ImportPath).FullName;
var paths = IOHelper.BeatmapFileDialog(importPathDirectory, true);
if( paths.Length != 0 ) {
ExportPath = string.Join("|", paths);
}
Expand Down
7 changes: 5 additions & 2 deletions Mapping_Tools/Viewmodels/TimingCopierVM.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.IO;
using Mapping_Tools.Classes.SystemTools;
using Mapping_Tools.Components.Domain;
using System.ComponentModel;
Expand Down Expand Up @@ -56,8 +57,10 @@ public TimingCopierVm() {

ExportBrowseCommand = new CommandImplementation(
_ => {
string[] paths = IOHelper.BeatmapFileDialog(true, !SettingsManager.Settings.CurrentBeatmapDefaultFolder);
if( paths.Length != 0 ) {
string importPathDirectory = Directory.GetParent(ImportPath).FullName;
string[] paths = IOHelper.BeatmapFileDialog(importPathDirectory, true);
if ( paths.Length != 0 ) {
ExportPath = string.Join("|", paths);
}
});
Expand Down
2 changes: 1 addition & 1 deletion Mapping_Tools_Tests/Mapping_Tools_Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.*" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.3" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>
</Project>

0 comments on commit bb00f49

Please sign in to comment.