Closed aligator closed 6 years ago
I just found out that the --maps parameter already worked before. Don't know why I haven't tried it before I implemented it. My fault... (But I haven't found any documentation of it anywhere, so it wasn't obvious.)
It is added inside of SwingResourceLoader:
// Setup map load paths
setupMapListFactory(options.getProperty("maps"), settlersFolderInfo.mapsFolder);
So this pull request has no sense.
But I'll add jSettlers to the Arch-repo, soon :-)
fixes #699
I found some time to add this option. It is a simpler approach than I described in the issue, but it's enough for creating repo-packages.
Now you can start it with --maps: java -jar /usr/share/java/jsettlers/JSettlers.jar --maps=/usr/share/jsettlers/maps
And if you set the workingdir for example to ~/.jsettlers, packaging for linux is very easy.
If --maps is set, the workingdir is still used as additional maps-folder, because the MapCreator saves them there.
Without --maps it acts like before.
As soon as this is pulled, I will add jsettlers to the Arch User Repositories. (maybe I will create packages for other distis, too.)
I have not tested it with Windows or Mac, yet.