Upgraded all projects to XNA 2.0; project files now use (x86) instead of (PC) to indicate an x86 build (more logical and readily associated with the build platform); moved all text files into their project's documents folder; fixed any build configuration inconsistencies encountered along the way; renamed Nuclex.Graphics.Effects to Nuclex.Graphics.SpecialEffects to avoid confusion with the XNA 'Effect' class

git-svn-id: file:///srv/devel/repo-conversion/nusu@56 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2007-12-14 20:43:34 +00:00
parent b1e97f48bf
commit 57d4c734b6
6 changed files with 218 additions and 418 deletions

View file

@ -39,13 +39,13 @@ namespace Nuclex.Support {
// Calculate the required length for the StrinBuilder to be slightly more
// friendly in terms of memory usage.
int requiredLength = (baseDirectories.Length - (lastCommonRoot + 1)) * 3;
for(int index = lastCommonRoot + 1; index < absoluteDirectories.Length; index++)
for(int index = lastCommonRoot + 1; index < absoluteDirectories.Length; ++index)
requiredLength += absoluteDirectories[index].Length + 1;
StringBuilder relativePath = new StringBuilder(requiredLength);
// Go to the common path by adding .. until we're where we want to be
for(int index = lastCommonRoot + 1; index < baseDirectories.Length; index++) {
for(int index = lastCommonRoot + 1; index < baseDirectories.Length; ++index) {
if(baseDirectories[index].Length > 0) {
if(relativePath.Length > 0) // We don't want the path to start with a slash
relativePath.Append(Path.DirectorySeparatorChar);