What I’ve got at the moment is a simple game which loads pretty much all of the resources from the classpath, including resorces which reference other resources. All is fine and dandy for development as I have a collection of dirs manually added to the classpath where my raw files sit. For webstart these get packed up into jars and all is good. Pretty standard stuff.
Now what I’d like to do is provide this as a webstart app, and then have another person able to add their own resources to it. They’d pick an external dir (say, C:\MyGame\Resources) and ‘somehow’ that dir would be added to my apps classpath and resources could be loaded from it without the game knowing there’s any difference.
I’m slightly lost how to do this, my current thinking would be to provide a custom ClassLoader which would check this new dir manually first, then delagate pretty much everything else to the normal ClassLoader. Is this going to work? Anyone have any suggestions?
