STORM-1182: XUI Preview Tool fails to load XMLs from indra/newview/skins (Ported Vadim's Linux fix to Mac)
Review Request #277 - Created April 25, 2011 and submitted
Boroondas Gupte | Reviewers | ||
viewer | |||
STORM-1182 | |||
None | viewer-development |
Just looked at Vadim's fix for Linux in lldir_linux.cpp (also in this review request's diff) and applied analogous changes to lldir_mac.cpp, in hope that this would fix the same issue on Mac, too: * renamed indra_pos to build_dir_pose (just for consistency. This should not have any effect.) * search for "/build-darwin-" rather than "/indra" within mExecutableDir (The new build dir prefix is taken from .hgignore, in the hope that is up to date.)
None, as I don't have a mac.
Looks good, thanks. One note that applies to my patch as well: rfind() seems to fit better than find() in this case.
Review request changed
Updated (April 25, 2011, 4:40 p.m.)
-
- added Diff r2
Use string::rfind instead of string::find, so last occurrence of build dir prefix will be matched.
Other reviews