Archived
Private
Public Access
1
0

Initial commit

This commit is contained in:
2022-09-04 12:23:26 +02:00
commit c7523c31a3
1063 changed files with 1448215 additions and 0 deletions

13
CarConverter/.idea/.idea.CarConverter/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/modules.xml
/contentModel.xml
/.idea.CarConverter.iml
/projectSettingsUpdater.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectDictionaryState">
<dictionary name="leon" />
</component>
</project>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DiscordProjectSettings">
<option name="show" value="PROJECT_FILES" />
<option name="description" value="" />
</component>
</project>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownSettings">
<enabledExtensions>
<entry key="MermaidLanguageExtension" value="false" />
<entry key="PlantUMLLanguageExtension" value="false" />
</enabledExtensions>
</component>
</project>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="com.jetbrains.rider.android.RiderAndroidMiscFileCreationComponent">
<option name="ENSURE_MISC_FILE_EXISTS" value="true" />
</component>
</project>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

6
CarConverter/App.config Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

9
CarConverter/App.xaml Normal file
View File

@@ -0,0 +1,9 @@
<Application x:Class="CarConverter.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CarConverter"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>

6
CarConverter/App.xaml.cs Normal file
View File

@@ -0,0 +1,6 @@
namespace CarConverter {
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App { }
}

View File

@@ -0,0 +1,104 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{731B2018-840C-43BF-AC9F-E18B73EB901D}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>CarConverter</RootNamespace>
<AssemblyName>CarConverter</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<ApplicationIcon>convertibles.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32bit>false</Prefer32bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32bit>false</Prefer32bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="CodeWalker.Core">
<HintPath>..\..\C#\CodeWalker.Core\bin\Debug\netstandard2.0\CodeWalker.Core.dll</HintPath>
</Reference>
<Reference Include="CustomMarshalers" />
<Reference Include="Microsoft.WindowsAPICodePack, Version=1.1.4.0, Culture=neutral, PublicKeyToken=8985beaab7ea3f04, processorArchitecture=MSIL">
<HintPath>packages\Microsoft-WindowsAPICodePack-Core.1.1.4\lib\net48\Microsoft.WindowsAPICodePack.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAPICodePack.Shell, Version=1.1.4.0, Culture=neutral, PublicKeyToken=8985beaab7ea3f04, processorArchitecture=MSIL">
<HintPath>packages\Microsoft-WindowsAPICodePack-Shell.1.1.4\lib\net48\Microsoft.WindowsAPICodePack.Shell.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Numerics" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="WindowsFormsIntegration" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Compile Include="Utils.cs" />
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="convertibles.ico" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,24 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CDirectXTex_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CHtmlAgilityPack_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CHtmlAgilityPack_002Epdb/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CHtmlAgilityPack_002Exml/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CRageLib_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CRageLib_002EGTA5_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CRageLib_002EGTA5_002Edll_002Econfig/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002ED3DCompiler_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002ED3DCompiler_002Epdb/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002ED3DCompiler_002Exml/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002EDirect3D11_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002EDirect3D11_002Epdb/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002EDirect3D11_002Exml/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002EDXGI_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002EDXGI_002Epdb/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002EDXGI_002Exml/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002EMathematics_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002EMathematics_002Epdb/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002EMathematics_002Exml/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005CProgrammierstuff_005C_002ELibrarys_005CGTA_0020Toolkit_005CSharpDX_002Epdb/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=CarConverter_002FProperties_002FResources/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/ResxEditorPersonal/Initialized/@EntryValue">True</s:Boolean></wpf:ResourceDictionary>

View File

@@ -0,0 +1,157 @@
<Window x:Class="CarConverter.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Closing="OnClose"
Title="CarConverter" Height="500" Width="800">
<Window.Resources>
<Brush x:Key="Background">#37323E</Brush>
<Brush x:Key="Text">#FFFFFF</Brush>
<Brush x:Key="Light">#6D6A75</Brush>
<Brush x:Key="Gray">#524E5A</Brush>
<Brush x:Key="Dark">#514C50</Brush>
<Style TargetType="{x:Type Label}">
<Setter Property="Foreground" Value="{StaticResource Text}" />
</Style>
<Style TargetType="{x:Type Label}" x:Key="HeaderText" BasedOn="{StaticResource {x:Type Label}}">
<Setter Property="FontSize" Value="15" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="FontWeight" Value="Bold" />
</Style>
<Style TargetType="{x:Type CheckBox}">
<Setter Property="Foreground" Value="{StaticResource Text}" />
<Setter Property="FontSize" Value="11" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="FontWeight" Value="Bold" />
</Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="{StaticResource Light}" />
<Setter Property="BorderBrush" Value="{StaticResource Light}"></Setter>
<Setter Property="Foreground" Value="{StaticResource Text}" />
<Setter Property="FontSize" Value="15" />
<Setter Property="Margin" Value="10 5"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Border" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{StaticResource Gray}" TargetName="Border" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="{StaticResource Dark}" TargetName="Border"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type Button}" x:Key="ActionButtons" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Margin" Value="50 5 50 5"></Setter>
</Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="Margin" Value="5"></Setter>
<Setter Property="Background" Value="{StaticResource Light}"></Setter>
<Setter Property="BorderBrush" Value="{StaticResource Gray}"></Setter>
<Setter Property="Foreground" Value="{StaticResource Text}"></Setter>
</Style>
<Style TargetType="{x:Type Label}" x:Key="OutPathStyle" BasedOn="{StaticResource {x:Type Label}}">
<Setter Property="VerticalAlignment" Value="Center"></Setter>
</Style>
<Style TargetType="{x:Type TreeView}">
<Setter Property="Background" Value="{StaticResource Background}"></Setter>
<Setter Property="BorderBrush" Value="{StaticResource Gray}"></Setter>
<Setter Property="Margin" Value="5"></Setter>
</Style>
<Style TargetType="{x:Type ListView}">
<Setter Property="Background" Value="{StaticResource Background}"></Setter>
<Setter Property="BorderBrush" Value="{StaticResource Gray}"></Setter>
<Setter Property="Margin" Value="5"></Setter>
</Style>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="Foreground" Value="{StaticResource Text}"></Setter>
</Style>
<Style TargetType="{x:Type ListViewItem}">
<Setter Property="Foreground" Value="{StaticResource Text}"></Setter>
</Style>
</Window.Resources>
<Grid Background="{StaticResource Background}">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition />
<RowDefinition Height="25"/>
</Grid.RowDefinitions>
<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" />
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition />
<RowDefinition Height="30" />
<RowDefinition />
<RowDefinition Height="50" />
<RowDefinition Height="30" />
<RowDefinition Height="40" />
</Grid.RowDefinitions>
<Label Grid.Row="0" Content="Stream Files" Style="{StaticResource HeaderText}" />
<ListView Grid.Row="1" Name="StreamFiles" />
<Label Grid.Row="2" Content="Meta Files" Style="{StaticResource HeaderText}" />
<ListView Grid.Row="3" Name="MetaFiles" />
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="Build" Click="Build" Style="{StaticResource ActionButtons}"/>
<Button Grid.Column="1" Content="Clear" Click="Clear" Style="{StaticResource ActionButtons}"/>
</Grid>
<TextBox Grid.Row="5" Text="Car name" Name="CarName" />
<Grid Grid.Row="6">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="150" />
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Content="Out dir" Name="OutPath" Style="{StaticResource OutPathStyle}"/>
<Button Grid.Column="1" Content="Set out dir" Click="ChooseOutDir" />
</Grid>
</Grid>
</Grid>
</Window>

View File

@@ -0,0 +1,182 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using Microsoft.WindowsAPICodePack.Dialogs;
namespace CarConverter {
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow {
private readonly string _optionFilePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
Path.DirectorySeparatorChar + "CarConverter" +
Path.DirectorySeparatorChar + "settings.ini";
private const string TempFolder = "./Temp/Vehicle/";
private readonly string[] _streamLocations = new[] { "vehicles.rpf", "vehiclemods" };
private readonly List<FileInfo> _metaFiles = new List<FileInfo>();
private readonly List<FileInfo> _streamFiles = new List<FileInfo>();
public MainWindow() {
InitializeComponent();
if (File.Exists(_optionFilePath))
OutPath.Content = File.ReadAllText(_optionFilePath);
else {
Directory.CreateDirectory(_optionFilePath.Replace("settings.ini", ""));
OutPath.Content = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
}
}
private void OnDrop(object sender, DragEventArgs e) {
if (!e.Data.GetDataPresent(DataFormats.FileDrop)) return;
Clear(null, null);
string dlcFile = ((string[])e.Data.GetData(DataFormats.FileDrop))[0];
Utils.UnpackDlcFile(dlcFile, TempFolder, Compress.IsChecked.Value);
UpdateUi(TempFolder, "dlc.rpf");
}
private void UpdateUi(string folder, string rootFolderName) {
var info = new DirectoryInfo(folder);
var root = new TreeViewItem { Header = rootFolderName, IsExpanded = true };
AddSubFiles(info, root);
FolderView.Items.Add(root);
UpdateOutLists();
}
private void AddSubFiles(DirectoryInfo info, TreeViewItem root) {
foreach (var dir in info.EnumerateDirectories()) {
var item = new TreeViewItem { Header = dir.Name, DataContext = dir.FullName };
AddSubFiles(dir, item);
root.Items.Add(item);
}
foreach (var file in info.EnumerateFiles()) {
if (file.Extension.Equals(".meta") && _metaFiles.All(meta => meta.Name != file.Name))
_metaFiles.Add(file);
if (_streamLocations.Any(url => file.FullName.Contains(url)))
_streamFiles.Add(file);
var item = new TreeViewItem { Header = file.Name, DataContext = file.FullName };
item.MouseDoubleClick += (sender, args) => ListInteraction(sender, null);
root.Items.Add(item);
}
}
private void UpdateOutLists() {
StreamFiles.Items.Clear();
MetaFiles.Items.Clear();
foreach (var meta in _metaFiles) {
var item = new ListViewItem { Content = meta.Name, DataContext = meta.FullName };
item.KeyDown += ListInteraction;
MetaFiles.Items.Add(item);
}
foreach (var stream in _streamFiles) {
var item = new ListViewItem { Content = stream.Name, DataContext = stream.FullName };
item.KeyDown += ListInteraction;
StreamFiles.Items.Add(item);
}
}
private void Clear(object sender, RoutedEventArgs e) {
_metaFiles.Clear();
_streamFiles.Clear();
MetaFiles.Items.Clear();
StreamFiles.Items.Clear();
FolderView.Items.Clear();
if (Directory.Exists(TempFolder))
Directory.Delete(TempFolder, true);
}
private void OnClose(object sender, CancelEventArgs e) => Clear(sender, null);
private void ListInteraction(object sender, KeyEventArgs e) {
if (sender is ListViewItem) {
if (!new[] { Key.Return, Key.Delete }.Contains(e.Key)) return;
var item = sender as ListViewItem;
if (item.Parent.Equals(MetaFiles)) {
_metaFiles.Remove(_metaFiles.Single(meta => meta.FullName.Equals(item.DataContext)));
MetaFiles.Items.Remove(item);
return;
}
if (item.Parent.Equals(StreamFiles)) {
_streamFiles.Remove(_streamFiles.Single(stream => stream.FullName.Equals(item.DataContext)));
StreamFiles.Items.Remove(item);
return;
}
}
if (sender is TreeViewItem) {
var item = sender as TreeViewItem;
if ((item.DataContext as string).EndsWith(".meta")) {
if (!_metaFiles.Any(file => file.FullName.Equals(item.DataContext as string)))
_metaFiles.Add(new FileInfo(item.DataContext as string));
}
else {
if (!_streamFiles.Any(file => file.FullName.Equals(item.DataContext as string)))
_streamFiles.Add(new FileInfo(item.DataContext as string));
}
UpdateOutLists();
}
}
private void Build(object sender, RoutedEventArgs e) {
var info = Directory.CreateDirectory((string)OutPath.Content + Path.DirectorySeparatorChar + CarName.Text);
File.WriteAllText(info.FullName + Path.DirectorySeparatorChar + "fxmanifest.lua", Utils.ManifestContent);
var streamRoot = info.CreateSubdirectory("stream");
foreach (var meta in _metaFiles) {
meta.CopyTo(info.FullName + Path.DirectorySeparatorChar + meta.Name);
}
foreach (var stream in _streamFiles)
stream.CopyTo(streamRoot.FullName + Path.DirectorySeparatorChar + stream.Name);
AnimateBuildButton(sender as Button);
}
private async Task AnimateBuildButton(Button button) {
Brush origColor = button.Foreground;
object origContent = button.Content;
button.Foreground = Brushes.GreenYellow;
button.Content = "Done!";
await Task.Delay(1000);
button.Content = origContent;
button.Foreground = origColor;
}
private void ChooseOutDir(object sender, RoutedEventArgs e) {
var dialog = new CommonOpenFileDialog();
dialog.IsFolderPicker = true;
dialog.Multiselect = false;
var result = dialog.ShowDialog();
if (result == CommonFileDialogResult.Ok) {
var path = dialog.FileNames.First();
File.WriteAllText(_optionFilePath, path);
OutPath.Content = path;
}
}
}
}

View File

@@ -0,0 +1,55 @@
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CarConverter")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CarConverter")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -0,0 +1,61 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CarConverter.Properties {
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder",
"4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance",
"CA1811:AvoidUncalledPrivateCode")]
internal Resources() { }
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState
.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if ((resourceMan == null)) {
global::System.Resources.ResourceManager temp =
new global::System.Resources.ResourceManager("CarConverter.Properties.Resources",
typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState
.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get { return resourceCulture; }
set { resourceCulture = value; }
}
}
}

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

71
CarConverter/Utils.cs Normal file
View File

@@ -0,0 +1,71 @@
using System;
using System.IO;
using CodeWalker.GameFiles;
namespace CarConverter {
public static class Utils {
public const string ManifestContent = @"
fx_version 'cerulean'
game 'gta5'
files {
'*.meta'
}
data_file 'HANDLING_FILE' 'handling.meta'
data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.meta'
data_file 'VEHICLE_METADATA_FILE' 'vehicles.meta'
data_file 'CARCOLS_FILE' 'carcols.meta'
data_file 'VEHICLE_VARIATION_FILE' 'carvariations.meta'
";
public static void UnpackDlcFile(string dlcFile, string targetFolder, bool compress = true) {
string tempFolder = Path.GetTempPath() + Path.DirectorySeparatorChar + "MloConverter" +
Path.DirectorySeparatorChar + "OrigDlc";
if (Directory.Exists(tempFolder))
Directory.Delete(tempFolder, true);
Directory.CreateDirectory(tempFolder);
File.Copy(dlcFile, tempFolder + Path.DirectorySeparatorChar + "dlc.rpf");
var manager = new RpfManager();
manager.Init(Path.GetDirectoryName(tempFolder), status => Console.WriteLine("STATUS: " + status), error => Console.Error.WriteLine("ERROR: " + error));
foreach (var rpf in manager.AllRpfs) {
foreach (var entry in rpf.AllEntries) {
if (entry.Path.EndsWith(".rpf")) continue;
try {
var fentry = entry as RpfFileEntry;
if (fentry == null) continue;
byte[] data = entry.File.ExtractFile(fentry);
if (compress && !entry.Path.Contains("_manifest.ymf"))
data = ResourceBuilder.Compress(data);
var rrfe = fentry as RpfResourceFileEntry;
if (rrfe != null)
data = ResourceBuilder.AddResourceHeader(rrfe, data);
if (data != null) {
string outPath = targetFolder + entry.Path.Replace("origdlc" + Path.DirectorySeparatorChar + "dlc.rpf", "").Remove(0, 1);
string folder = Path.GetDirectoryName(outPath);
if (!Directory.Exists(folder))
Directory.CreateDirectory(folder);
File.WriteAllBytes(outPath, data);
}
}
catch (Exception e) {
string err = entry.Name + ": " + e.Message;
manager.ErrorLog.Invoke(err);
}
}
}
Directory.Delete(tempFolder, true);
}
}
}

Binary file not shown.

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

View File

@@ -0,0 +1,71 @@
#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "23E6860267D9E9B9F4E98FCEE83DD76122960903F8ED004E2DAF13A401785A34"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using CarConverter;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace CarConverter {
/// <summary>
/// App
/// </summary>
public partial class App : System.Windows.Application {
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
#line 5 "..\..\App.xaml"
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
#line default
#line hidden
}
/// <summary>
/// Application Entry Point.
/// </summary>
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public static void Main() {
CarConverter.App app = new CarConverter.App();
app.InitializeComponent();
app.Run();
}
}
}

View File

@@ -0,0 +1,71 @@
#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "23E6860267D9E9B9F4E98FCEE83DD76122960903F8ED004E2DAF13A401785A34"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using CarConverter;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace CarConverter {
/// <summary>
/// App
/// </summary>
public partial class App : System.Windows.Application {
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
#line 5 "..\..\App.xaml"
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
#line default
#line hidden
}
/// <summary>
/// Application Entry Point.
/// </summary>
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public static void Main() {
CarConverter.App app = new CarConverter.App();
app.InitializeComponent();
app.Run();
}
}
}

View File

@@ -0,0 +1 @@
d19514ee31f8df67514cf327cba817e3581740d2

View File

@@ -0,0 +1,15 @@
D:\Programmierstuff\FiveM\CarConverter\bin\Debug\CarConverter.exe.config
D:\Programmierstuff\FiveM\CarConverter\bin\Debug\CarConverter.exe
D:\Programmierstuff\FiveM\CarConverter\bin\Debug\CarConverter.pdb
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\CarConverter.csproj.AssemblyReference.cache
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\CarConverter.csproj.SuggestedBindingRedirects.cache
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\MainWindow.g.cs
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\App.g.cs
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\CarConverter_MarkupCompile.cache
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\MainWindow.baml
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\CarConverter.g.resources
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\CarConverter.Properties.Resources.resources
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\CarConverter.csproj.GenerateResource.cache
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\CarConverter.csproj.CoreCompileInputs.cache
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\CarConverter.exe
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\CarConverter.pdb

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,13 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("convertibles.png")]

View File

@@ -0,0 +1,20 @@
CarConverter
winexe
C#
.cs
D:\Programmierstuff\FiveM\CarConverter\obj\Debug\
CarConverter
none
false
DEBUG;TRACE
D:\Programmierstuff\FiveM\CarConverter\App.xaml
11151548125
5-502624746
251795321033
MainWindow.xaml;
False

View File

@@ -0,0 +1,62 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
namespace XamlGeneratedNamespace {
/// <summary>
/// GeneratedInternalTypeHelper
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper {
/// <summary>
/// CreateInstance
/// </summary>
protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) {
return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
| (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture);
}
/// <summary>
/// GetPropertyValue
/// </summary>
protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) {
return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture);
}
/// <summary>
/// SetPropertyValue
/// </summary>
protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) {
propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture);
}
/// <summary>
/// CreateDelegate
/// </summary>
protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) {
return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod
| (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] {
delegateType,
handler}, null)));
}
/// <summary>
/// AddEventHandler
/// </summary>
protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
eventInfo.AddEventHandler(target, handler);
}
}
}

Binary file not shown.

View File

@@ -0,0 +1,171 @@
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "64DE227BEF6F33E971FFB9C078DA08012CEC776C9FC1A1FBC3CB4EBE8E1B2A19"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace CarConverter {
/// <summary>
/// MainWindow
/// </summary>
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 104 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TreeView FolderView;
#line default
#line hidden
#line 119 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListView StreamFiles;
#line default
#line hidden
#line 122 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListView MetaFiles;
#line default
#line hidden
#line 134 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox CarName;
#line default
#line hidden
#line 142 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Label OutPath;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/CarConverter;component/mainwindow.xaml", System.UriKind.Relative);
#line 1 "..\..\MainWindow.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 7 "..\..\MainWindow.xaml"
((CarConverter.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.OnClose);
#line default
#line hidden
return;
case 2:
this.FolderView = ((System.Windows.Controls.TreeView)(target));
#line 104 "..\..\MainWindow.xaml"
this.FolderView.Drop += new System.Windows.DragEventHandler(this.OnDrop);
#line default
#line hidden
return;
case 3:
this.StreamFiles = ((System.Windows.Controls.ListView)(target));
return;
case 4:
this.MetaFiles = ((System.Windows.Controls.ListView)(target));
return;
case 5:
#line 130 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Build);
#line default
#line hidden
return;
case 6:
#line 131 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Clear);
#line default
#line hidden
return;
case 7:
this.CarName = ((System.Windows.Controls.TextBox)(target));
return;
case 8:
this.OutPath = ((System.Windows.Controls.Label)(target));
return;
case 9:
#line 143 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ChooseOutDir);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

View File

@@ -0,0 +1,171 @@
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "64DE227BEF6F33E971FFB9C078DA08012CEC776C9FC1A1FBC3CB4EBE8E1B2A19"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace CarConverter {
/// <summary>
/// MainWindow
/// </summary>
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 104 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TreeView FolderView;
#line default
#line hidden
#line 119 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListView StreamFiles;
#line default
#line hidden
#line 122 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListView MetaFiles;
#line default
#line hidden
#line 134 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox CarName;
#line default
#line hidden
#line 142 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Label OutPath;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/CarConverter;component/mainwindow.xaml", System.UriKind.Relative);
#line 1 "..\..\MainWindow.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 7 "..\..\MainWindow.xaml"
((CarConverter.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.OnClose);
#line default
#line hidden
return;
case 2:
this.FolderView = ((System.Windows.Controls.TreeView)(target));
#line 104 "..\..\MainWindow.xaml"
this.FolderView.Drop += new System.Windows.DragEventHandler(this.OnDrop);
#line default
#line hidden
return;
case 3:
this.StreamFiles = ((System.Windows.Controls.ListView)(target));
return;
case 4:
this.MetaFiles = ((System.Windows.Controls.ListView)(target));
return;
case 5:
#line 130 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Build);
#line default
#line hidden
return;
case 6:
#line 131 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Clear);
#line default
#line hidden
return;
case 7:
this.CarName = ((System.Windows.Controls.TextBox)(target));
return;
case 8:
this.OutPath = ((System.Windows.Controls.Label)(target));
return;
case 9:
#line 143 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ChooseOutDir);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

View File

@@ -0,0 +1,71 @@
#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "23E6860267D9E9B9F4E98FCEE83DD76122960903F8ED004E2DAF13A401785A34"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using CarConverter;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace CarConverter {
/// <summary>
/// App
/// </summary>
public partial class App : System.Windows.Application {
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
#line 5 "..\..\App.xaml"
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
#line default
#line hidden
}
/// <summary>
/// Application Entry Point.
/// </summary>
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public static void Main() {
CarConverter.App app = new CarConverter.App();
app.InitializeComponent();
app.Run();
}
}
}

View File

@@ -0,0 +1,71 @@
#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "23E6860267D9E9B9F4E98FCEE83DD76122960903F8ED004E2DAF13A401785A34"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using CarConverter;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace CarConverter {
/// <summary>
/// App
/// </summary>
public partial class App : System.Windows.Application {
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
#line 5 "..\..\App.xaml"
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
#line default
#line hidden
}
/// <summary>
/// Application Entry Point.
/// </summary>
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public static void Main() {
CarConverter.App app = new CarConverter.App();
app.InitializeComponent();
app.Run();
}
}
}

View File

@@ -0,0 +1 @@
c5a724810ded647758ce46f4418e2ae04fd1259e

View File

@@ -0,0 +1,27 @@
D:\Programmierstuff\FiveM\CarConverter\bin\Release\CarConverter.exe.config
D:\Programmierstuff\FiveM\CarConverter\bin\Release\CarConverter.exe
D:\Programmierstuff\FiveM\CarConverter\bin\Release\CarConverter.pdb
D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter.csproj.AssemblyReference.cache
D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter.csproj.SuggestedBindingRedirects.cache
D:\Programmierstuff\FiveM\CarConverter\obj\Release\MainWindow.baml
D:\Programmierstuff\FiveM\CarConverter\obj\Release\MainWindow.g.cs
D:\Programmierstuff\FiveM\CarConverter\obj\Release\App.g.cs
D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter_MarkupCompile.cache
D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter.g.resources
D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter.Properties.Resources.resources
D:\Programmierstuff\FiveM\CarConverter\obj\Release\CarConverter.csproj.GenerateResource.cache
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
D:\Programmierstuff\FiveM\CarConverter\bin\Release\Microsoft.WindowsAPICodePack.dll
D:\Programmierstuff\FiveM\CarConverter\bin\Release\Microsoft.WindowsAPICodePack.xml
D:\Programmierstuff\FiveM\CarConverter\bin\Release\CodeWalker.Core.dll
D:\Programmierstuff\FiveM\CarConverter\bin\Release\CodeWalker.Core.pdb

Binary file not shown.

View File

@@ -0,0 +1,182 @@
#pragma checksum "..\..\CarConverter.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "1949A70E2528254E0C092EDB2934635D191A3393EBC5B7F696A2E249EAB83E44"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace CarConverter {
/// <summary>
/// CarConverter
/// </summary>
public partial class CarConverter : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 113 "..\..\CarConverter.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TreeView FolderView;
#line default
#line hidden
#line 114 "..\..\CarConverter.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox Compress;
#line default
#line hidden
#line 129 "..\..\CarConverter.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListView StreamFiles;
#line default
#line hidden
#line 132 "..\..\CarConverter.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListView MetaFiles;
#line default
#line hidden
#line 144 "..\..\CarConverter.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox CarName;
#line default
#line hidden
#line 152 "..\..\CarConverter.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Label OutPath;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/CarConverter;component/carconverter.xaml", System.UriKind.Relative);
#line 1 "..\..\CarConverter.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 7 "..\..\CarConverter.xaml"
((CarConverter.CarConverter)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.OnClose);
#line default
#line hidden
return;
case 2:
this.FolderView = ((System.Windows.Controls.TreeView)(target));
#line 113 "..\..\CarConverter.xaml"
this.FolderView.Drop += new System.Windows.DragEventHandler(this.OnDrop);
#line default
#line hidden
return;
case 3:
this.Compress = ((System.Windows.Controls.CheckBox)(target));
return;
case 4:
this.StreamFiles = ((System.Windows.Controls.ListView)(target));
return;
case 5:
this.MetaFiles = ((System.Windows.Controls.ListView)(target));
return;
case 6:
#line 140 "..\..\CarConverter.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Build);
#line default
#line hidden
return;
case 7:
#line 141 "..\..\CarConverter.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Clear);
#line default
#line hidden
return;
case 8:
this.CarName = ((System.Windows.Controls.TextBox)(target));
return;
case 9:
this.OutPath = ((System.Windows.Controls.Label)(target));
return;
case 10:
#line 153 "..\..\CarConverter.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ChooseOutDir);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,20 @@
CarConverter
winexe
C#
.cs
D:\Programmierstuff\FiveM\CarConverter\obj\Release\
CarConverter
none
false
TRACE
D:\Programmierstuff\FiveM\CarConverter\App.xaml
11151548125
5-502624746
181389952794
MainWindow.xaml;
False

Binary file not shown.

View File

@@ -0,0 +1,182 @@
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "92A7595FF2470EF78D6DC9784E3659CC431C2B1300E7088B756F2970DEA0F9E5"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace CarConverter {
/// <summary>
/// MainWindow
/// </summary>
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 113 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TreeView FolderView;
#line default
#line hidden
#line 114 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox Compress;
#line default
#line hidden
#line 129 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListView StreamFiles;
#line default
#line hidden
#line 132 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListView MetaFiles;
#line default
#line hidden
#line 144 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox CarName;
#line default
#line hidden
#line 152 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Label OutPath;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/CarConverter;component/mainwindow.xaml", System.UriKind.Relative);
#line 1 "..\..\MainWindow.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 7 "..\..\MainWindow.xaml"
((CarConverter.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.OnClose);
#line default
#line hidden
return;
case 2:
this.FolderView = ((System.Windows.Controls.TreeView)(target));
#line 113 "..\..\MainWindow.xaml"
this.FolderView.Drop += new System.Windows.DragEventHandler(this.OnDrop);
#line default
#line hidden
return;
case 3:
this.Compress = ((System.Windows.Controls.CheckBox)(target));
return;
case 4:
this.StreamFiles = ((System.Windows.Controls.ListView)(target));
return;
case 5:
this.MetaFiles = ((System.Windows.Controls.ListView)(target));
return;
case 6:
#line 140 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Build);
#line default
#line hidden
return;
case 7:
#line 141 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Clear);
#line default
#line hidden
return;
case 8:
this.CarName = ((System.Windows.Controls.TextBox)(target));
return;
case 9:
this.OutPath = ((System.Windows.Controls.Label)(target));
return;
case 10:
#line 153 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ChooseOutDir);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

View File

@@ -0,0 +1,182 @@
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "92A7595FF2470EF78D6DC9784E3659CC431C2B1300E7088B756F2970DEA0F9E5"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace CarConverter {
/// <summary>
/// MainWindow
/// </summary>
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 113 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TreeView FolderView;
#line default
#line hidden
#line 114 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox Compress;
#line default
#line hidden
#line 129 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListView StreamFiles;
#line default
#line hidden
#line 132 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListView MetaFiles;
#line default
#line hidden
#line 144 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox CarName;
#line default
#line hidden
#line 152 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Label OutPath;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/CarConverter;component/mainwindow.xaml", System.UriKind.Relative);
#line 1 "..\..\MainWindow.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 7 "..\..\MainWindow.xaml"
((CarConverter.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.OnClose);
#line default
#line hidden
return;
case 2:
this.FolderView = ((System.Windows.Controls.TreeView)(target));
#line 113 "..\..\MainWindow.xaml"
this.FolderView.Drop += new System.Windows.DragEventHandler(this.OnDrop);
#line default
#line hidden
return;
case 3:
this.Compress = ((System.Windows.Controls.CheckBox)(target));
return;
case 4:
this.StreamFiles = ((System.Windows.Controls.ListView)(target));
return;
case 5:
this.MetaFiles = ((System.Windows.Controls.ListView)(target));
return;
case 6:
#line 140 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Build);
#line default
#line hidden
return;
case 7:
#line 141 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Clear);
#line default
#line hidden
return;
case 8:
this.CarName = ((System.Windows.Controls.TextBox)(target));
return;
case 9:
this.OutPath = ((System.Windows.Controls.Label)(target));
return;
case 10:
#line 153 "..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ChooseOutDir);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft-WindowsAPICodePack-Core" version="1.1.4" targetFramework="net48" />
<package id="Microsoft-WindowsAPICodePack-Shell" version="1.1.4" targetFramework="net48" />
</packages>