Reworked MloCombiner
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{731B2018-840C-43BF-AC9F-E18B73EB901D}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>CarConverter</RootNamespace>
|
||||
<AssemblyName>CarConverter</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
|
||||
<Label Grid.Row="0" Content="RPF Explorer" Style="{StaticResource HeaderText}" />
|
||||
<TreeView Grid.Row="1" AllowDrop="True" Drop="OnDrop" x:Name="FolderView"/>
|
||||
<CheckBox Grid.Row="2" Content="Compress Files" x:Name="Compress" />
|
||||
<CheckBox Grid.Row="2" Content="Compress Files" x:Name="Compress" IsChecked="True" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1">
|
||||
|
||||
@@ -41,18 +41,16 @@ namespace CarConverter {
|
||||
Clear(null, null);
|
||||
string dlcFile = ((string[])e.Data.GetData(DataFormats.FileDrop))[0];
|
||||
Utils.UnpackDlcFile(dlcFile, TempFolder, Compress.IsChecked.Value);
|
||||
UpdateUi(TempFolder, "dlc.rpf");
|
||||
UpdateUi(TempFolder);
|
||||
}
|
||||
|
||||
private void UpdateUi(string folder, string rootFolderName) {
|
||||
private void UpdateUi(string folder) {
|
||||
var info = new DirectoryInfo(folder);
|
||||
var root = new TreeViewItem { Header = rootFolderName, IsExpanded = true };
|
||||
AddSubFiles(info, root);
|
||||
FolderView.Items.Add(root);
|
||||
AddSubFiles(info, FolderView);
|
||||
UpdateOutLists();
|
||||
}
|
||||
|
||||
private void AddSubFiles(DirectoryInfo info, TreeViewItem root) {
|
||||
private void AddSubFiles(DirectoryInfo info, ItemsControl root) {
|
||||
foreach (var dir in info.EnumerateDirectories()) {
|
||||
var item = new TreeViewItem { Header = dir.Name, DataContext = dir.FullName };
|
||||
AddSubFiles(dir, item);
|
||||
|
||||
@@ -40,7 +40,7 @@ data_file 'VEHICLE_VARIATION_FILE' 'carvariations.meta'
|
||||
|
||||
var rrfe = fentry as RpfResourceFileEntry;
|
||||
if (rrfe != null) {
|
||||
if (compress && !entry.Name.EndsWith(".ytd")) {
|
||||
if (compress) {
|
||||
data = ResourceBuilder.Compress(data);
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@@ -13,11 +13,6 @@ D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter.csproj.GenerateR
|
||||
D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter.csproj.CoreCompileInputs.cache
|
||||
D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter.exe
|
||||
D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter.pdb
|
||||
D:\Programmierstuff\FiveM\CarConverter\bin\Release\SharpDX.dll
|
||||
D:\Programmierstuff\FiveM\CarConverter\bin\Release\SharpDX.Mathematics.dll
|
||||
D:\Programmierstuff\FiveM\CarConverter\bin\Release\SharpDX.pdb
|
||||
D:\Programmierstuff\FiveM\CarConverter\bin\Release\SharpDX.Mathematics.pdb
|
||||
D:\Programmierstuff\FiveM\CarConverter\bin\Release\SharpDX.Mathematics.xml
|
||||
D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter.csproj.CopyComplete
|
||||
D:\Programmierstuff\FiveM\CarConverter\bin\Release\Microsoft.WindowsAPICodePack.Shell.dll
|
||||
D:\Programmierstuff\FiveM\CarConverter\bin\Release\Microsoft.WindowsAPICodePack.Shell.xml
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
CarConverter
|
||||
|
||||
|
||||
exe
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
D:\Programmierstuff\FiveM\CarConverter\obj\Release\
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "92A7595FF2470EF78D6DC9784E3659CC431C2B1300E7088B756F2970DEA0F9E5"
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "26D5852A653F3C0B765F46E0DA025F37C39146E2B494C92B2DB3BBFADA11F8E9"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "92A7595FF2470EF78D6DC9784E3659CC431C2B1300E7088B756F2970DEA0F9E5"
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "26D5852A653F3C0B765F46E0DA025F37C39146E2B494C92B2DB3BBFADA11F8E9"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
|
||||
Reference in New Issue
Block a user