Thread: Ultima SDK 2.1
View Single Post
Old 08-26-2008, 03:24 PM   #18 (permalink)
Jeff
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,892
Default

Quote:
Originally Posted by HellRazor View Post
Hey Jeff (or anyone else who can help):

I am attempting to modify the DLL to allow the the path to the UO directory to be changed programically from the calling application.

I've tried using a public static variable to hold the file path, which is then used in FileIndex.cs. The problem I am running into is that once the path to the UO client has been set the first time, the DLL always uses that path, even when the static public variable has changed.

Can anyone give me an idea as to why this happens and what I can do to work around it?

Thanks!
Ya you would have to re-initialize the FileIndexes when the path is changed, kind of a pain in the ass, but doable.
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline   Reply With Quote