Are the pre and post launch script env vars available inside the launched instance? #2754
-
Id like to know what instance a user launched inside my mod. Is that possible somehow? I thought this might be more reliable than checking the absolute path of a class inside my mod jar. And then seducing it's location based on the returned file path. |
Beta Was this translation helpful? Give feedback.
Answered by
TheKodeToad
Aug 25, 2024
Replies: 1 comment
-
You can use String instanceName = System.getProperty("org.prismlauncher.instance.name"); See https://github.com/PrismLauncher/PrismLauncher/blob/develop/libraries/launcher/org/prismlauncher/SystemProperties.java to see all of the properties that are available. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mainrs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
See https://github.com/PrismLauncher/PrismLauncher/blob/develop/libraries/launcher/org/prismlauncher/SystemProperties.java to see all of the properties that are available.