diff options
author | p-schneider <p-schneider@hotmail.de> | 2014-07-19 15:46:55 +0200 |
---|---|---|
committer | p-schneider <p-schneider@hotmail.de> | 2014-07-19 15:46:55 +0200 |
commit | 66fa2412578fb2e656068b40f322d50a8b6b7efc (patch) | |
tree | 592e6ad0d033983da8e9cee43d9c9a7740b0dd5c /depends | |
parent | 71575a5022a4e682a9960256ade7ea5672d1210d (diff) | |
download | MultiMC-66fa2412578fb2e656068b40f322d50a8b6b7efc.tar MultiMC-66fa2412578fb2e656068b40f322d50a8b6b7efc.tar.gz MultiMC-66fa2412578fb2e656068b40f322d50a8b6b7efc.tar.lz MultiMC-66fa2412578fb2e656068b40f322d50a8b6b7efc.tar.xz MultiMC-66fa2412578fb2e656068b40f322d50a8b6b7efc.zip |
Show a warning in the log if a library is missing
Diffstat (limited to 'depends')
-rw-r--r-- | depends/launcher/org/multimc/onesix/OneSixLauncher.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/depends/launcher/org/multimc/onesix/OneSixLauncher.java b/depends/launcher/org/multimc/onesix/OneSixLauncher.java index b9eb4d66..0e8af513 100644 --- a/depends/launcher/org/multimc/onesix/OneSixLauncher.java +++ b/depends/launcher/org/multimc/onesix/OneSixLauncher.java @@ -101,7 +101,15 @@ public class OneSixLauncher implements Launcher Utils.log("Libraries:"); for (String s : libraries) { - Utils.log(" " + s); + File f = new File(s); + if (f.exists()) + { + Utils.log(" " + s); + } + else + { + Utils.log(" " + s + " (missing)", "Warning"); + } } Utils.log(); |