mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-22 13:48:59 +07:00
Replaced home path checking with function call
This commit is contained in:
@ -205,7 +205,7 @@ public class MapViewer extends Tool {
|
|||||||
|
|
||||||
if (cli.hasOption("d2")) {
|
if (cli.hasOption("d2")) {
|
||||||
home = new FileHandle(cli.getOptionValue("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);
|
throw new GdxRuntimeException("'d2' does not refer to a valid D2 installation: " + home);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user