Permalink
Browse files

* Resolved an issue causing some steam games to be detected twice

  • Loading branch information...
sanmadjack committed Jun 16, 2013
1 parent 71e0ba7 commit 69aa560cf4bfc3861f9a0956e0f62f626b02636e
@@ -1,5 +1,13 @@
=1.0.6=
* Resolves a potential permissions issue with updated XML files in multi-user environments
* Fixes a default versioning unit not showing up in settings
* Fixes an error caused by new "other steam library" feature
* Fixed e-mailing errors causing a WTF exception
* Restored the "no archive data" error message, was showing a "string not found" exception in its place
* Resolved an issue causing some steam games to be detected twice
=1.0.4=
* Can now detect Steam games that have been installed on ther drives through Steam's new feature that lets you do what I just said.
* Can now detect Steam games that have been installed on other drives through Steam's new feature that lets you do what I just said.
=1.0.2=
* Implemented custom List view to overcome the limitations of the stock one
@@ -1,8 +1,8 @@
#define MyAppName "MASGAU"
#define MyAppVersion "1.0.4"
#define MyAppVersion "1.0.6"
#define MyAppPublisher "Matthew Barbour"
#define MyAppURL "http://masgau.org/"
#define Mode "Release"
#define Mode "Debug"
#define Stability "Release"
[Setup]
AppMutex={#MyAppName}
@@ -27,7 +27,7 @@ AllowRootDirectory=true
DirExistsWarning=no
VersionInfoProductName={#MyAppName}
VersionInfoCompany={#MyAppPublisher}
VersionInfoCopyright=2012
VersionInfoCopyright=2013
VersionInfoVersion={#MyAppVersion}
VersionInfoProductVersion={#MyAppVersion}
LicenseFile=..\Docs\gpl-2.0.txt
Submodule Data updated 8 files
+25 −69 c.xml
+20 −25 d.xml
+7 −22 g.xml
+55 −104 h.xml
+6 −5 p.xml
+3 −2 r.xml
+6 −4 s.xml
+8 −20 t.xml
@@ -1,6 +1,7 @@
using System;
using System.IO;
using GameSaveInfo;
using Exceptions;
namespace MASGAU.Location.Holders {
// This holds locations that have been found
public class DetectedLocationPathHolder : LocationPath {
@@ -17,8 +18,47 @@ public DetectedLocationPathHolder(EnvironmentVariable ev, string absolute_root,
: base(ev, path) {
if (absolute_root == null)
throw new Exception("ABSOLUTE ROOT MUST BE PROVIDED");
this.AbsoluteRoot = absolute_root;
this.owner = owner;
this.AbsoluteRoot = absolute_root;
if (this.Exists) {
string[] parts = this.FullDirPath.Split(System.IO.Path.DirectorySeparatorChar);
DirectoryInfo dir = new DirectoryInfo(parts[0] + System.IO.Path.DirectorySeparatorChar);
int i = 1;
bool found;
while (i < parts.Length) {
found = false;
foreach (DirectoryInfo folder in dir.GetDirectories()) {
if (folder.Name.ToLower() == parts[i].ToLower()) {
found = true;
dir = folder;
i++;
break;
}
}
if (!found) {
throw new Exceptions.WTFException("The folder " + parts[i] + " could not be found in " + dir.FullName);
}
}
string new_root = dir.FullName.Substring(0, absolute_root.Length).TrimEnd(System.IO.Path.DirectorySeparatorChar);
string new_path = dir.FullName.Substring(absolute_root.Length).Trim(System.IO.Path.DirectorySeparatorChar);
if(this.Path==null) {
if (this.Path == null && !String.IsNullOrEmpty(new_path) || this.AbsoluteRoot.ToLower() != new_root.ToLower()) {
throw new Exceptions.WTFException(String.Concat(this.Path,new_path,this.AbsoluteRoot,new_root));
}
} else {
if (new_path.ToLower() != this.Path.ToLower() || this.AbsoluteRoot.ToLower() != new_root.ToLower()) {
throw new Exceptions.WTFException(String.Concat(this.Path, new_path, this.AbsoluteRoot, new_root));
}
}
this.AbsoluteRoot = new_root;
this.Path = new_path;
}
}
protected DetectedLocationPathHolder() {
@@ -41,7 +81,7 @@ public DetectedLocationPathHolder(EnvironmentVariable ev, string absolute_root,
// Gets the full absolute path of the folfer
public string FullDirPath {
public string FullDirPath {
get {
if (AbsoluteRoot != null && AbsoluteRoot != "") {
if (Path == null || Path == "") {
@@ -57,7 +97,7 @@ public DetectedLocationPathHolder(EnvironmentVariable ev, string absolute_root,
public bool Exists {
get {
return Directory.Exists(FullDirPath);
return Directory.Exists(FullDirPath);
}
}
@@ -120,13 +160,13 @@ public DetectedLocationPathHolder(EnvironmentVariable ev, string absolute_root,
public void delete() {
try {
DirectoryInfo info = new DirectoryInfo(FullDirPath);
DirectoryInfo info = new DirectoryInfo(FullDirPath);
if (info.Exists) {
info.Attributes = FileAttributes.Normal;
info.Delete(true);
}
} catch (Exception e) {
throw new Translator.TranslateableException("DeleteError", e, FullDirPath);
throw new Translator.TranslateableException("DeleteError", e, FullDirPath);
}
}
}
@@ -163,8 +163,12 @@
<EmbeddedResource Include="data\f.xml">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="data\g.xml" />
<EmbeddedResource Include="data\h.xml" />
<EmbeddedResource Include="data\g.xml">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="data\h.xml">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="data\i.xml" />
<EmbeddedResource Include="data\j.xml" />
<EmbeddedResource Include="data\k.xml" />
BIN -12 KB (99%) MASGAU.NET.v11.suo
Binary file not shown.

0 comments on commit 69aa560

Please sign in to comment.