Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 8ed02b6

Browse files
Added Dragon's Dogma 2 support
- Changed the icon for the program. - Changed the up/down arrows. - Fixed an issue with the UI where only 3 fields would show for a float4 value.
1 parent 40e9d22 commit 8ed02b6

28 files changed

+3284
-3167
lines changed

MDF-Manager/App.xaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<Application x:Class="MDF_Manager.App"
2-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:local="clr-namespace:MDF_Manager"
5-
StartupUri="MainWindow.xaml">
6-
<Application.Resources>
7-
8-
</Application.Resources>
9-
</Application>
1+
<Application x:Class="MDF_Manager.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:MDF_Manager"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
8+
</Application.Resources>
9+
</Application>

MDF-Manager/App.xaml.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Configuration;
4-
using System.Data;
5-
using System.Linq;
6-
using System.Threading.Tasks;
7-
using System.Windows;
8-
9-
namespace MDF_Manager
10-
{
11-
/// <summary>
12-
/// Interaction logic for App.xaml
13-
/// </summary>
14-
public partial class App : Application
15-
{
16-
}
17-
}
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
9+
namespace MDF_Manager
10+
{
11+
/// <summary>
12+
/// Interaction logic for App.xaml
13+
/// </summary>
14+
public partial class App : Application
15+
{
16+
}
17+
}

MDF-Manager/AssemblyInfo.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using System.Windows;
2-
3-
[assembly: ThemeInfo(
4-
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5-
//(used if a resource is not found in the page,
6-
// or application resource dictionaries)
7-
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8-
//(used if a resource is not found in the page,
9-
// app, or any theme specific resource dictionaries)
10-
)]
1+
using System.Windows;
2+
3+
[assembly: ThemeInfo(
4+
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5+
//(used if a resource is not found in the page,
6+
// or application resource dictionaries)
7+
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8+
//(used if a resource is not found in the page,
9+
// app, or any theme specific resource dictionaries)
10+
)]

MDF-Manager/BatchConverter.xaml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
<Window x:Class="MDF_Manager.BatchConverter"
2-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5-
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6-
xmlns:local="clr-namespace:MDF_Manager"
7-
mc:Ignorable="d"
8-
Title="Batch Converter" Height="300" Width="500">
9-
<Grid>
10-
<Grid.ColumnDefinitions>
11-
<ColumnDefinition Width="*"/>
12-
<ColumnDefinition Width="*"/>
13-
<ColumnDefinition Width="*"/>
14-
</Grid.ColumnDefinitions>
15-
<Grid.RowDefinitions>
16-
<RowDefinition Height="*"/>
17-
<RowDefinition Height="*"/>
18-
<RowDefinition Height="*"/>
19-
<RowDefinition Height="*"/>
20-
<RowDefinition Height="*"/>
21-
</Grid.RowDefinitions>
22-
<ListBox Grid.ColumnSpan="3" Grid.Row="2" Grid.RowSpan="2" Margin="25,0,25,0" x:Name="MDFView" Background="#EEEEEE"/>
23-
<ComboBox Grid.Row="1" Grid.Column="2" Width="100" Height="25" SelectedItem="{Binding ExportType, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding TypeList}" Name="TypeSelect"/>
24-
<Button Grid.Row="1" Grid.Column="0" Content="Add MDFs" Click="AddToList" Width="100" Height="25"/>
25-
<Button Grid.Row="1" Grid.Column="1" Content="Remove MDF" Click="RemoveSelected" Width="100" Height="25"/>
26-
<Button Grid.Row="4" Grid.Column="2" Content="Convert" Click="ConvertAll" Width="100" Height="25"/>
27-
</Grid>
28-
</Window>
1+
<Window x:Class="MDF_Manager.BatchConverter"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6+
xmlns:local="clr-namespace:MDF_Manager"
7+
mc:Ignorable="d"
8+
Title="Batch Converter" Height="300" Width="500">
9+
<Grid>
10+
<Grid.ColumnDefinitions>
11+
<ColumnDefinition Width="*"/>
12+
<ColumnDefinition Width="*"/>
13+
<ColumnDefinition Width="*"/>
14+
</Grid.ColumnDefinitions>
15+
<Grid.RowDefinitions>
16+
<RowDefinition Height="*"/>
17+
<RowDefinition Height="*"/>
18+
<RowDefinition Height="*"/>
19+
<RowDefinition Height="*"/>
20+
<RowDefinition Height="*"/>
21+
</Grid.RowDefinitions>
22+
<ListBox Grid.ColumnSpan="3" Grid.Row="2" Grid.RowSpan="2" Margin="25,0,25,0" x:Name="MDFView" Background="#EEEEEE"/>
23+
<ComboBox Grid.Row="1" Grid.Column="2" Width="100" Height="25" SelectedItem="{Binding ExportType, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding TypeList}" Name="TypeSelect"/>
24+
<Button Grid.Row="1" Grid.Column="0" Content="Add MDFs" Click="AddToList" Width="100" Height="25"/>
25+
<Button Grid.Row="1" Grid.Column="1" Content="Remove MDF" Click="RemoveSelected" Width="100" Height="25"/>
26+
<Button Grid.Row="4" Grid.Column="2" Content="Convert" Click="ConvertAll" Width="100" Height="25"/>
27+
</Grid>
28+
</Window>

MDF-Manager/BatchConverter.xaml.cs

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
using MDF_Manager.Classes;
2-
using Microsoft.Win32;
3-
using System;
4-
using System.Collections.Generic;
5-
using System.IO;
6-
using System.Linq;
7-
using System.Text;
8-
using System.Threading.Tasks;
9-
using System.Windows;
10-
using System.Windows.Controls;
11-
using System.Windows.Data;
12-
using System.Windows.Documents;
13-
using System.Windows.Input;
14-
using System.Windows.Media;
15-
using System.Windows.Media.Imaging;
16-
using System.Windows.Shapes;
17-
using Path = System.IO.Path;
18-
19-
namespace MDF_Manager
20-
{
21-
/// <summary>
22-
/// Interaction logic for BatchConverter.xaml
23-
/// </summary>
24-
public partial class BatchConverter : Window
25-
{
26-
private List<MDFTypes> MDFTypeList = new List<MDFTypes>();
27-
public List<MDFTypes> TypeList { get => MDFTypeList; }
28-
public MDFTypes ExportType { get; set; }
29-
public BatchConverter()
30-
{
31-
InitializeComponent();
32-
foreach(MDFTypes type in Enum.GetValues(typeof(MDFTypes)))
33-
{
34-
MDFTypeList.Add(type);
35-
}
36-
ExportType = MDFTypes.Sunbreak;
37-
DataContext = this;
38-
}
39-
40-
private void AddToList(object sender, RoutedEventArgs e)
41-
{
42-
OpenFileDialog importFile = new OpenFileDialog();
43-
importFile.Multiselect = true;
44-
importFile.Filter = MainWindow.MDFFilter;
45-
if (importFile.ShowDialog() == true)
46-
{
47-
foreach(string file in importFile.FileNames)
48-
{
49-
MDFView.Items.Add(new ListBoxItem() { Content = file });
50-
}
51-
}
52-
}
53-
54-
private void RemoveSelected(object sender, RoutedEventArgs e)
55-
{
56-
MDFView.Items.Remove(MDFView.SelectedItem);
57-
MDFView.SelectedIndex = 0;
58-
}
59-
60-
public void ConvertSingle(string path, string output)
61-
{
62-
BinaryReader readFile = HelperFunctions.OpenFileR(path, Encoding.Unicode);
63-
if (readFile != null)
64-
{
65-
MDFTypes type = (MDFTypes)Convert.ToInt32(System.IO.Path.GetExtension(path).Replace(".", ""));
66-
MDFFile file = new MDFFile(path, readFile, type);
67-
//now export with proper format/path
68-
string outPath = Path.ChangeExtension(Path.Combine(output, Path.GetFileName(path)), ((int)ExportType).ToString());
69-
BinaryWriter bw = HelperFunctions.OpenFileW(outPath, Encoding.Unicode);
70-
if(bw != null)
71-
{
72-
file.Export(bw, ExportType);
73-
}
74-
bw.Close();
75-
}
76-
readFile.Close();
77-
}
78-
79-
public void ConvertAll(object sender, RoutedEventArgs e)
80-
{
81-
OpenFileDialog exportFile = new OpenFileDialog();
82-
exportFile.CheckFileExists = false;
83-
exportFile.FileName = "Save Here";
84-
if(exportFile.ShowDialog() == true)
85-
{
86-
foreach (ListBoxItem item in MDFView.Items)
87-
{
88-
string path = item.Content as string;
89-
ConvertSingle(path, System.IO.Path.GetDirectoryName(exportFile.FileName));
90-
}
91-
MessageBox.Show("Batch conversion completed successfully!");
92-
this.Close();
93-
}
94-
}
95-
}
96-
}
1+
using MDF_Manager.Classes;
2+
using Microsoft.Win32;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Windows;
10+
using System.Windows.Controls;
11+
using System.Windows.Data;
12+
using System.Windows.Documents;
13+
using System.Windows.Input;
14+
using System.Windows.Media;
15+
using System.Windows.Media.Imaging;
16+
using System.Windows.Shapes;
17+
using Path = System.IO.Path;
18+
19+
namespace MDF_Manager
20+
{
21+
/// <summary>
22+
/// Interaction logic for BatchConverter.xaml
23+
/// </summary>
24+
public partial class BatchConverter : Window
25+
{
26+
private List<MDFTypes> MDFTypeList = new List<MDFTypes>();
27+
public List<MDFTypes> TypeList { get => MDFTypeList; }
28+
public MDFTypes ExportType { get; set; }
29+
public BatchConverter()
30+
{
31+
InitializeComponent();
32+
foreach(MDFTypes type in Enum.GetValues(typeof(MDFTypes)))
33+
{
34+
MDFTypeList.Add(type);
35+
}
36+
ExportType = MDFTypes.Sunbreak;
37+
DataContext = this;
38+
}
39+
40+
private void AddToList(object sender, RoutedEventArgs e)
41+
{
42+
OpenFileDialog importFile = new OpenFileDialog();
43+
importFile.Multiselect = true;
44+
importFile.Filter = MainWindow.MDFFilter;
45+
if (importFile.ShowDialog() == true)
46+
{
47+
foreach(string file in importFile.FileNames)
48+
{
49+
MDFView.Items.Add(new ListBoxItem() { Content = file });
50+
}
51+
}
52+
}
53+
54+
private void RemoveSelected(object sender, RoutedEventArgs e)
55+
{
56+
MDFView.Items.Remove(MDFView.SelectedItem);
57+
MDFView.SelectedIndex = 0;
58+
}
59+
60+
public void ConvertSingle(string path, string output)
61+
{
62+
BinaryReader readFile = HelperFunctions.OpenFileR(path, Encoding.Unicode);
63+
if (readFile != null)
64+
{
65+
MDFTypes type = (MDFTypes)Convert.ToInt32(System.IO.Path.GetExtension(path).Replace(".", ""));
66+
MDFFile file = new MDFFile(path, readFile, type);
67+
//now export with proper format/path
68+
string outPath = Path.ChangeExtension(Path.Combine(output, Path.GetFileName(path)), ((int)ExportType).ToString());
69+
BinaryWriter bw = HelperFunctions.OpenFileW(outPath, Encoding.Unicode);
70+
if(bw != null)
71+
{
72+
file.Export(bw, ExportType);
73+
}
74+
bw.Close();
75+
}
76+
readFile.Close();
77+
}
78+
79+
public void ConvertAll(object sender, RoutedEventArgs e)
80+
{
81+
OpenFileDialog exportFile = new OpenFileDialog();
82+
exportFile.CheckFileExists = false;
83+
exportFile.FileName = "Save Here";
84+
if(exportFile.ShowDialog() == true)
85+
{
86+
foreach (ListBoxItem item in MDFView.Items)
87+
{
88+
string path = item.Content as string;
89+
ConvertSingle(path, System.IO.Path.GetDirectoryName(exportFile.FileName));
90+
}
91+
MessageBox.Show("Batch conversion completed successfully!");
92+
this.Close();
93+
}
94+
}
95+
}
96+
}

0 commit comments

Comments
 (0)