TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.09k stars 222 forks source link

Fixed an error where xcopy fails due to a space in $(SolutionDir) #86

Closed jannisj1 closed 8 years ago

Jacob-Mango commented 8 years ago

This explains that error I had. I wonder why it didn't appear in the video? I just copied the files myself.

jannisj1 commented 8 years ago

I wonder why it didn't appear in the video?

He has no spaces in his sparky path I guess. The problem is that as soon as you have a space in your path and you pass it without quotation marks xcopy will receive multiple args instead of the one path, because space is obviously the standard argument-seperator. The quotation marks tell the commandline-engine (or whatever it is called) to pass everything between them as one arg and not seperate it.

TheCherno commented 8 years ago

Yes, you are correct. If you have no spaces in the $(SolutionDir) path, then this doesn't result in an error. Thanks for your pull request; merging.