mirror of
https://github.com/4sval/FModel.git
synced 2026-09-24 01:05:51 -05:00
just getting rid of some output folders
This commit is contained in:
@@ -307,7 +307,7 @@ namespace FModel.ViewModels
|
||||
{
|
||||
Title = "Save Audio",
|
||||
FileName = fileToSave.FileName,
|
||||
InitialDirectory = Path.Combine(UserSettings.Default.OutputDirectory, "Sounds")
|
||||
InitialDirectory = Path.Combine(UserSettings.Default.OutputDirectory, "Exports")
|
||||
};
|
||||
if (!(bool) saveFileDialog.ShowDialog()) return;
|
||||
path = saveFileDialog.FileName;
|
||||
@@ -580,4 +580,4 @@ namespace FModel.ViewModels
|
||||
return vgmProcess?.ExitCode == 0 && File.Exists(wavFilePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -730,7 +730,7 @@ namespace FModel.ViewModels
|
||||
|
||||
private void SaveAndPlaySound(string fullPath, string ext, byte[] data)
|
||||
{
|
||||
var userDir = Path.Combine(UserSettings.Default.OutputDirectory, "Sounds");
|
||||
var userDir = Path.Combine(UserSettings.Default.OutputDirectory, "Exports");
|
||||
if (fullPath.StartsWith("/")) fullPath = fullPath[1..];
|
||||
var savedAudioPath = Path.Combine(userDir,
|
||||
UserSettings.Default.KeepDirectoryStructure ? fullPath : fullPath.SubstringAfterLast('/')).Replace('\\', '/') + $".{ext.ToLower()}";
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace FModel.ViewModels
|
||||
public void SaveProperty(bool autoSave)
|
||||
{
|
||||
var fileName = Path.ChangeExtension(Header, ".json");
|
||||
var directory = Path.Combine(UserSettings.Default.OutputDirectory, "Saves",
|
||||
var directory = Path.Combine(UserSettings.Default.OutputDirectory, "Exports",
|
||||
UserSettings.Default.KeepDirectoryStructure ? Directory : "", fileName).Replace('\\', '/');
|
||||
|
||||
if (!autoSave)
|
||||
@@ -196,7 +196,7 @@ namespace FModel.ViewModels
|
||||
{
|
||||
Title = "Save Property",
|
||||
FileName = fileName,
|
||||
InitialDirectory = Path.Combine(UserSettings.Default.OutputDirectory, "Saves"),
|
||||
InitialDirectory = Path.Combine(UserSettings.Default.OutputDirectory, "Exports"),
|
||||
Filter = "JSON Files (*.json)|*.json|INI Files (*.ini)|*.ini|XML Files (*.xml)|*.xml|All Files (*.*)|*.*"
|
||||
};
|
||||
var result = saveFileDialog.ShowDialog();
|
||||
@@ -236,7 +236,7 @@ namespace FModel.ViewModels
|
||||
{
|
||||
if (!HasImage) return;
|
||||
var fileName = Path.ChangeExtension(Header, ".png");
|
||||
var directory = Path.Combine(UserSettings.Default.OutputDirectory, "Textures",
|
||||
var directory = Path.Combine(UserSettings.Default.OutputDirectory, "Exports",
|
||||
UserSettings.Default.KeepDirectoryStructure ? Directory : "", fileName!).Replace('\\', '/');
|
||||
|
||||
if (!autoSave)
|
||||
@@ -245,7 +245,7 @@ namespace FModel.ViewModels
|
||||
{
|
||||
Title = "Save Texture",
|
||||
FileName = fileName,
|
||||
InitialDirectory = Path.Combine(UserSettings.Default.OutputDirectory, "Textures"),
|
||||
InitialDirectory = Path.Combine(UserSettings.Default.OutputDirectory, "Exports"),
|
||||
Filter = "PNG Files (*.png)|*.png|All Files (*.*)|*.*"
|
||||
};
|
||||
var result = saveFileDialog.ShowDialog();
|
||||
|
||||
Reference in New Issue
Block a user