aboutsummaryrefslogtreecommitdiff
path: root/tools/TexturePacker
diff options
context:
space:
mode:
authoralthekiller <althekiller@svn>2010-08-13 18:13:07 +0000
committeralthekiller <althekiller@svn>2010-08-13 18:13:07 +0000
commit6226261a768af811d3278eb4f2a74c985483451e (patch)
tree3f6ddbd1c39d7dbca46c1798e2b8d271e3de6745 /tools/TexturePacker
parentc027717b5f9bd5a4f793bc475bf8089516a8f149 (diff)
fixed: XBMCTex didn't properly parse quoted args on linux.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32759 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/TexturePacker')
-rw-r--r--tools/TexturePacker/cmdlineargs.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/TexturePacker/cmdlineargs.h b/tools/TexturePacker/cmdlineargs.h
index 6d3a6b68a3..eef40fd6f1 100644
--- a/tools/TexturePacker/cmdlineargs.h
+++ b/tools/TexturePacker/cmdlineargs.h
@@ -56,14 +56,24 @@ public:
CmdLineArgs (const int argc, const char **argv)
{
std::string cmdline;
+#ifdef _LINUX
+ cmdline = "\"";
+#endif
for (int i = 0 ; i<argc ; i++)
{
cmdline += std::string(argv[i]);
if ( i != (argc-1) )
{
- cmdline += " ";
+#ifdef _LINUX
+ cmdline += "\" \"";
+#else
+ cmdline += " ";
+#endif
}
}
+#ifdef _LINUX
+ cmdline += "\"";
+#endif
m_cmdline = new char [cmdline.length() + 1];
if (m_cmdline)
{