mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
Nuke redundant anim files and C# anim installer
This commit is contained in:
parent
31d332bfb3
commit
50bf65f447
17 changed files with 0 additions and 220 deletions
|
@ -1,70 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace BeatrunAnimInstaller
|
||||
{
|
||||
internal class BeatrunAnimInstaller
|
||||
{
|
||||
private static readonly string inDir = ".";
|
||||
private static readonly string outDir = "gamemodes\\beatrun\\content\\models";
|
||||
private static readonly List<string> choices = new List<string>() { "Beatrun Reanimated", "Original Animations" };
|
||||
|
||||
static void RecursiveCopyDir(string inputDir, string outputDir)
|
||||
{
|
||||
if (!Directory.Exists(inputDir)) return;
|
||||
if (!Directory.Exists(outputDir)) Directory.CreateDirectory(outputDir);
|
||||
|
||||
foreach (string filePath in Directory.GetFiles(inputDir))
|
||||
{
|
||||
string fileName = Path.GetFileName(filePath);
|
||||
File.Copy(filePath, outputDir + Path.DirectorySeparatorChar + fileName, true);
|
||||
Console.WriteLine(string.Format("Copied {0} to {1}", filePath, outputDir));
|
||||
}
|
||||
|
||||
foreach (string dirPath in Directory.GetDirectories(inputDir))
|
||||
{
|
||||
string dirName = Path.GetDirectoryName(dirPath);
|
||||
RecursiveCopyDir(dirPath, outputDir + Path.DirectorySeparatorChar + dirName);
|
||||
}
|
||||
}
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Select animations to install:");
|
||||
Console.WriteLine("");
|
||||
int i = 1;
|
||||
foreach (string choice in choices)
|
||||
{
|
||||
Console.WriteLine(string.Format("{0}: {1}", i, choice));
|
||||
i++;
|
||||
}
|
||||
Console.WriteLine("");
|
||||
|
||||
while (true)
|
||||
{
|
||||
ConsoleKeyInfo key = Console.ReadKey(true);
|
||||
|
||||
if (key.Key == ConsoleKey.Enter || key.Key == ConsoleKey.Escape) break;
|
||||
|
||||
char keyChar = key.KeyChar;
|
||||
if (char.IsDigit(keyChar))
|
||||
{
|
||||
int index = keyChar - '0';
|
||||
string choice = choices[index - 1];
|
||||
if (choice != null)
|
||||
{
|
||||
Console.WriteLine(string.Format("Selected pack: {0}", choice));
|
||||
|
||||
RecursiveCopyDir(inDir + Path.DirectorySeparatorChar + choice, outDir);
|
||||
|
||||
Console.WriteLine("Press any key to exit...");
|
||||
Console.ReadKey(true);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.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>{6096D195-BC98-4E67-86F7-CBD21A427405}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>BeatrunAnimInstaller</RootNamespace>
|
||||
<AssemblyName>BeatrunAnimInstaller</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</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>
|
||||
<PropertyGroup>
|
||||
<StartupObject>BeatrunAnimInstaller.BeatrunAnimInstaller</StartupObject>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="BeatrunAnimInstaller.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
|
@ -1,25 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.6.33829.357
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeatrunAnimInstaller", "BeatrunAnimInstaller.csproj", "{6096D195-BC98-4E67-86F7-CBD21A427405}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{6096D195-BC98-4E67-86F7-CBD21A427405}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6096D195-BC98-4E67-86F7-CBD21A427405}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6096D195-BC98-4E67-86F7-CBD21A427405}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6096D195-BC98-4E67-86F7-CBD21A427405}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {A9FCE6D1-6D4B-4DFB-91A2-DCC7E79299D8}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,36 +0,0 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Общие сведения об этой сборке предоставляются следующим набором
|
||||
// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
|
||||
// связанные с этой сборкой.
|
||||
[assembly: AssemblyTitle("BeatrunAnimInstaller")]
|
||||
[assembly: AssemblyDescription("Beatrun Animations Installer")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("beatrun.ru")]
|
||||
[assembly: AssemblyProduct("BeatrunAnimInstaller")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
|
||||
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
|
||||
// из модели COM задайте для атрибута ComVisible этого типа значение true.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM
|
||||
[assembly: Guid("6096d195-bc98-4e67-86f7-cbd21a427405")]
|
||||
|
||||
// Сведения о версии сборки состоят из указанных ниже четырех значений:
|
||||
//
|
||||
// Основной номер версии
|
||||
// Дополнительный номер версии
|
||||
// Номер сборки
|
||||
// Номер редакции
|
||||
//
|
||||
// Можно задать все значения или принять номера сборки и редакции по умолчанию
|
||||
// используя "*", как показано ниже:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -1,30 +0,0 @@
|
|||
# ENGLISH
|
||||
|
||||
## Animations Installer Source Code
|
||||
|
||||
Here you can find source code of the animations installer.\
|
||||
I don't know why you will ever need that but we put it here so you can be sure we don't supply malware with our project.
|
||||
|
||||
## How To Use
|
||||
|
||||
Please refer to this [README](../beatrun/README.md).
|
||||
|
||||
## Credits
|
||||
|
||||
* [YuRaNnNzZZ](https://github.com/YuRaNnNzZZ) - Creator of this installer.
|
||||
|
||||
<!-- markdownlint-disable-next-line -->
|
||||
# RUSSIAN
|
||||
|
||||
## Исходный код установщика анимаций
|
||||
|
||||
Здесь находятся исходники нашего установщика анимаций.\
|
||||
Я не знаю зачем это вам надо, но мы оставили их здесь чтобы вы могли убедиться что мы не распространяем вирусы в нашем проекте.
|
||||
|
||||
## Как использовать
|
||||
|
||||
Прочитайте этот файл [README](../beatrun/README.md).
|
||||
|
||||
## Благодарность
|
||||
|
||||
* [YuRaNnNzZZ](https://github.com/YuRaNnNzZZ) - Создатель установщика.
|
|
@ -1,3 +0,0 @@
|
|||
<?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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue