mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-07 16:36:10 +00:00
Log to a file if running from a JAR
This commit is contained in:
@@ -94,4 +94,9 @@ public class LibraryHelper {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isRunningFromJar() {
|
||||
String classPath = LibraryHelper.class.getResource("LibraryHelper.class").toString();
|
||||
return classPath.startsWith("jar:");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user