[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36920] trunk/blender/source/blender/ blenlib/intern/path_util.c: Since we don't support win2k or older anymore, remove old shortname code.
Nathan Letwory
nathan at letworyinteractive.com
Thu May 26 14:23:11 CEST 2011
Revision: 36920
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36920
Author: jesterking
Date: 2011-05-26 12:23:11 +0000 (Thu, 26 May 2011)
Log Message:
-----------
Since we don't support win2k or older anymore, remove old shortname code. Finally nice full names.
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/intern/path_util.c
Modified: trunk/blender/source/blender/blenlib/intern/path_util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/path_util.c 2011-05-26 12:15:42 UTC (rev 36919)
+++ trunk/blender/source/blender/blenlib/intern/path_util.c 2011-05-26 12:23:11 UTC (rev 36920)
@@ -1691,7 +1691,6 @@
#ifdef _WIN32
if(GetModuleFileName(0, fullname, maxlen)) {
- GetShortPathName(fullname, fullname, maxlen);
if(!BLI_exists(fullname)) {
printf("path can't be found: \"%.*s\"\n", maxlen, fullname);
MessageBox(NULL, "path constains invalid characters or is too long (see console)", "Error", MB_OK);
@@ -1745,18 +1744,6 @@
printf("guessing '%s' == '%s'\n", name, fullname);
}
#endif
-
-#ifdef _WIN32
- // in windows change long filename to short filename because
- // win2k doesn't know how to parse a commandline with lots of
- // spaces and double-quotes. There's another solution to this
- // with spawnv(P_WAIT, bprogname, argv) instead of system() but
- // that's even uglier
- GetShortPathName(fullname, fullname, maxlen);
-#if defined(DEBUG)
- printf("Shortname = '%s'\n", fullname);
-#endif
-#endif
}
}
More information about the Bf-blender-cvs
mailing list