Revision 335bc9d...
Go back to digest for 18th September 2011Optimization in Games
Laszlo Papp committed changes in [gluon] core/directoryprovider.cpp:
Remove just the last organization and application name, not everything
Using chop is a better approach if we are about to remove certain string values
from the end of another path string. It cannot be broken by any install path
this way coming from the build system. As of performance, it is even faster
since it does not need to look up the substrings this way.
Along the way: I also fixed the place the slash where to add it to the string.
The concern is that here, paths normally return the directory path without the
leading slash, and that is actually how this API has been designed and used by
the API users heretofore.
File Changes
Modified 1 files
- core/directoryprovider.cpp
1 files changed in total