Post by chriscrawford on Mar 12, 2016 21:31:15 GMT -8
Well, here we are again. This time I'm trying to get the damn thing to work on my laptop. It refuses to find the correct storyworld file. It looks for the "working directory" using a method called getWorkingDirector. That in turn calls something called getProperties(), which in turn calls loadProperties(), which calls getUserApplicationSettingsPath(), which then calls System.getProperty("user.home").
Why in the hell can't the stupid thing simply look in the folder that the application is in? This was a standard feature 25 years ago in the Mac operating system. You simply bundled your resources into the same folder with the application. Simple. Clean. I can understand how you might want something else, but this arrangement seems obvious.
I think I found it: System.getProperty("user.dir");