mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-03-13 19:39:14 +07:00
Replaced home path checking with function call
This commit is contained in:
parent
cf8ddc09f1
commit
d07f7df1c6
@ -205,7 +205,7 @@ public class MapViewer extends Tool {
|
||||
|
||||
if (cli.hasOption("d2")) {
|
||||
home = new FileHandle(cli.getOptionValue("d2"));
|
||||
if (!home.child("d2data.mpq").exists()) {
|
||||
if (!InstallationFinder.isD2Home(home)) {
|
||||
throw new GdxRuntimeException("'d2' does not refer to a valid D2 installation: " + home);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user