All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

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.
Review request changed
Updated (April 25, 2011, 4:40 p.m.)
Use string::rfind instead of string::find, so last occurrence of build dir prefix will be matched.
Ship it!
Posted (April 26, 2011, 11:05 a.m.)