Skip to content

Instantly share code, notes, and snippets.

@StillManic
Created August 23, 2016 20:55
Show Gist options
  • Save StillManic/7ca96b59fd1bb51c99c2b5dc0a7ab671 to your computer and use it in GitHub Desktop.
Save StillManic/7ca96b59fd1bb51c99c2b5dc0a7ab671 to your computer and use it in GitHub Desktop.
File savesDir = FMLClientHandler.instance().getSavesDir();
TransitMod.logger.printf(Level.INFO, "saves dir: %s, exists: %b", savesDir.getAbsolutePath(), savesDir.exists());
File test = new File(TransitMod.class.getResource("/assets/").getPath());
TransitMod.logger.printf(Level.INFO, "test: %s, exists: %b", test.getAbsolutePath(), test.exists());
saves dir: C:\Users\Gerald\Documents\Bitbucket\Transit Authority\Transit Mod\run\.\saves, exists: true
test: C:\Users\Gerald\Documents\Bitbucket\Transit%20Authority\Transit%20Mod\classes\production\Transit_Mod_main\assets, exists: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment