-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
221 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")] |
6 changes: 6 additions & 0 deletions
6
ArkModMapFix/ArkModMapFix/obj/Debug/ArkModMapFix.csproj.FileListAbsolute.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Empty file.
Empty file.
Empty file.