Skip to content

Commit

Permalink
Uploaded to github
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbware committed Aug 10, 2017
1 parent 91ace94 commit 494b7aa
Show file tree
Hide file tree
Showing 9 changed files with 221 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ArkModMapFix/ArkModMapFix.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArkModMapFix", "ArkModMapFix\ArkModMapFix.csproj", "{7A19DDAA-63D8-4734-B817-ACC0E7254262}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7A19DDAA-63D8-4734-B817-ACC0E7254262}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7A19DDAA-63D8-4734-B817-ACC0E7254262}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7A19DDAA-63D8-4734-B817-ACC0E7254262}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7A19DDAA-63D8-4734-B817-ACC0E7254262}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions ArkModMapFix/ArkModMapFix/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
60 changes: 60 additions & 0 deletions ArkModMapFix/ArkModMapFix/ArkModMapFix.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" 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>{7A19DDAA-63D8-4734-B817-ACC0E7254262}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ArkModMapFix</RootNamespace>
<AssemblyName>ArkModMapFix</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</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>
</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>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
91 changes: 91 additions & 0 deletions ArkModMapFix/ArkModMapFix/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;

namespace ArkModMapFix
{
class Program
{

string directory;
string[] directories;
string[] files;
int count = 0;
static string[] noScan = { "TheCenter", "Ragnarok", "ArkModMapFix" };

public Program(string directory)
{
files = ReturnFiles(directory).ToArray();
directories = ReturnFolders(directory).ToArray();
this.directory = directory;
}

static void Main(string[] args)
{

Console.WriteLine("Where is your Steam folder located? (Example: C:\\Program Files\\Steam\\)");
string directory = Console.ReadLine();

Program p = new Program(directory + "steamapps\\common\\ARK\\ShooterGame\\Content\\Mods");

foreach (string path in p.directories)
{

if(!p.files.Contains(path))
{
if (!noScan.Contains(path))
{
p.count += 1;
Console.WriteLine("Delete folder: " + path);
}
}



}


Console.WriteLine("Total files mismatched: " + p.count);
Console.WriteLine("Directory: " + p.directory);
Console.ReadLine();
}

List<string> ReturnFiles(string path)
{

string[] fullFiles = Directory.GetFiles(path);

List<string> finalList = new List<String>();

foreach(string p in fullFiles)
{
string[] substrings = p.Split('\\', '.');

finalList.Add(substrings[substrings.Length - 2]);

}

return finalList;
}

List<string> ReturnFolders(string path)
{
string[] fullFolder = Directory.GetDirectories(path);

List<string> finalList = new List<String>();

foreach(string p in fullFolder)
{
string[] substrings = p.Split('\\');

finalList.Add(substrings[substrings.Length - 1]);
}

return finalList;

}

}

}
36 changes: 36 additions & 0 deletions ArkModMapFix/ArkModMapFix/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// 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("ArkModMapFix")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ArkModMapFix")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[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)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("7a19ddaa-63d8-4734-b817-acc0e7254262")]

// 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")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
c:\users\rob\documents\visual studio 2015\Projects\ArkModMapFix\ArkModMapFix\bin\Debug\ArkModMapFix.exe.config
c:\users\rob\documents\visual studio 2015\Projects\ArkModMapFix\ArkModMapFix\bin\Debug\ArkModMapFix.exe
c:\users\rob\documents\visual studio 2015\Projects\ArkModMapFix\ArkModMapFix\bin\Debug\ArkModMapFix.pdb
c:\users\rob\documents\visual studio 2015\Projects\ArkModMapFix\ArkModMapFix\obj\Debug\ArkModMapFix.csprojResolveAssemblyReference.cache
c:\users\rob\documents\visual studio 2015\Projects\ArkModMapFix\ArkModMapFix\obj\Debug\ArkModMapFix.exe
c:\users\rob\documents\visual studio 2015\Projects\ArkModMapFix\ArkModMapFix\obj\Debug\ArkModMapFix.pdb

0 comments on commit 494b7aa

Please sign in to comment.