From c1751c1ab8fb4acb406cb10489de6737f9646fb7 Mon Sep 17 00:00:00 2001
From: 0xFEEDC0DE64 <0xFEEDC0DE64@gmail.com>
Date: Sun, 5 Mar 2017 15:53:39 +0100
Subject: [PATCH] Fixed linux compatibility
---
RCTExtractor.sln | 39 ++++++++-----------
RCTExtractor/App.config | 6 ---
RCTExtractor/Program.cs | 4 +-
RCTExtractor/Properties/AssemblyInfo.cs | 51 ++++++++++--------------
RCTExtractor/RCTExtractor.csproj | 52 ++++++++-----------------
5 files changed, 56 insertions(+), 96 deletions(-)
delete mode 100644 RCTExtractor/App.config
diff --git a/RCTExtractor.sln b/RCTExtractor.sln
index e408698..3144ff5 100644
--- a/RCTExtractor.sln
+++ b/RCTExtractor.sln
@@ -1,22 +1,17 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 14
-VisualStudioVersion = 14.0.25420.1
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCTExtractor", "RCTExtractor\RCTExtractor.csproj", "{85DC5D8A-E279-496E-B58C-A863A8AF94F5}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {85DC5D8A-E279-496E-B58C-A863A8AF94F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {85DC5D8A-E279-496E-B58C-A863A8AF94F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {85DC5D8A-E279-496E-B58C-A863A8AF94F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {85DC5D8A-E279-496E-B58C-A863A8AF94F5}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCTExtractor", "RCTExtractor\RCTExtractor.csproj", "{5AEBB205-E967-466B-91EB-351B6BEB6143}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {5AEBB205-E967-466B-91EB-351B6BEB6143}.Debug|x86.ActiveCfg = Debug|x86
+ {5AEBB205-E967-466B-91EB-351B6BEB6143}.Debug|x86.Build.0 = Debug|x86
+ {5AEBB205-E967-466B-91EB-351B6BEB6143}.Release|x86.ActiveCfg = Release|x86
+ {5AEBB205-E967-466B-91EB-351B6BEB6143}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+EndGlobal
diff --git a/RCTExtractor/App.config b/RCTExtractor/App.config
deleted file mode 100644
index 88fa402..0000000
--- a/RCTExtractor/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/RCTExtractor/Program.cs b/RCTExtractor/Program.cs
index 5ae5221..0166b42 100644
--- a/RCTExtractor/Program.cs
+++ b/RCTExtractor/Program.cs
@@ -7,7 +7,7 @@ namespace RCTExtractor
{
class Program
{
- private const string rctPath = @"D:\SteamLibrary\steamapps\common\RollerCoaster Tycoon Deluxe";
+ private const string rctPath = @"/home/danbru1211/.wine/drive_c/Program Files (x86)/Steam/steamapps/common/RollerCoaster Tycoon Deluxe";
private const string extracted = "extracted";
//music
@@ -65,7 +65,7 @@ namespace RCTExtractor
using (var fsi = File.OpenRead(Path.Combine(rctPath, "Data", "csg1i.dat")))
using (var bri = new BinaryReader(fsi))
- using (var fs = File.OpenRead(Path.Combine(rctPath, "Data", "csg1.dat")))
+ using (var fs = File.OpenRead(Path.Combine(rctPath, "Data", "CSG1.DAT")))
using (var br = new BinaryReader(fs))
{
while(fsi.Position < fsi.Length)
diff --git a/RCTExtractor/Properties/AssemblyInfo.cs b/RCTExtractor/Properties/AssemblyInfo.cs
index 6144074..d34f8ba 100644
--- a/RCTExtractor/Properties/AssemblyInfo.cs
+++ b/RCTExtractor/Properties/AssemblyInfo.cs
@@ -1,36 +1,27 @@
using System.Reflection;
using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-// Allgemeine Informationen über eine Assembly werden über die folgenden
-// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
-// die einer Assembly zugeordnet sind.
-[assembly: AssemblyTitle("RCTExtractor")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("RCTExtractor")]
-[assembly: AssemblyCopyright("Copyright © 2017")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
+// Information about this assembly is defined by the following attributes.
+// Change them to the values specific to your project.
-// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
-// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
-// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
-[assembly: ComVisible(false)]
+[assembly: AssemblyTitle ("RCTExtractor")]
+[assembly: AssemblyDescription ("")]
+[assembly: AssemblyConfiguration ("")]
+[assembly: AssemblyCompany ("")]
+[assembly: AssemblyProduct ("")]
+[assembly: AssemblyCopyright ("danbru1211")]
+[assembly: AssemblyTrademark ("")]
+[assembly: AssemblyCulture ("")]
-// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
-[assembly: Guid("85dc5d8a-e279-496e-b58c-a863a8af94f5")]
+// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
+// The form "{Major}.{Minor}.*" will automatically update the build and revision,
+// and "{Major}.{Minor}.{Build}.*" will update just the revision.
+
+[assembly: AssemblyVersion ("1.0.*")]
+
+// The following attributes are used to specify the signing key for the assembly,
+// if desired. See the Mono documentation for more information about signing.
+
+//[assembly: AssemblyDelaySign(false)]
+//[assembly: AssemblyKeyFile("")]
-// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
-//
-// Hauptversion
-// Nebenversion
-// Buildnummer
-// Revision
-//
-// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
-// übernehmen, indem Sie "*" eingeben:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/RCTExtractor/RCTExtractor.csproj b/RCTExtractor/RCTExtractor.csproj
index 42a7a88..8f8a7fa 100644
--- a/RCTExtractor/RCTExtractor.csproj
+++ b/RCTExtractor/RCTExtractor.csproj
@@ -1,60 +1,40 @@
-
-
-
+
+
Debug
- AnyCPU
- {85DC5D8A-E279-496E-B58C-A863A8AF94F5}
+ x86
+ {5AEBB205-E967-466B-91EB-351B6BEB6143}
Exe
- Properties
RCTExtractor
RCTExtractor
- v4.5.2
- 512
- true
+ v4.5
-
- AnyCPU
+
true
full
false
- bin\Debug\
- DEBUG;TRACE
+ bin\Debug
+ DEBUG;
prompt
4
+ true
+ x86
-
- AnyCPU
- pdbonly
+
+ full
true
- bin\Release\
- TRACE
+ bin\Release
prompt
4
+ true
+ x86
-
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file