Added warp-hash update and check

This commit is contained in:
Willem Cazander 2022-03-15 16:53:12 +01:00
parent 14f4cbc2ec
commit fadf971074
12 changed files with 282 additions and 37 deletions

View file

@ -17,4 +17,24 @@
<artifactId>x4o-driver</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View file

@ -16,6 +16,17 @@ import love.distributedrebirth.warpme.Warpᵐᵉ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterShotAddict {
public static void main(String[] args) {
try {
WaterShotAddict addict = new WaterShotAddict();
addict.updateWarpHashes(new File(args[0]));
System.exit(0);
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
}
public boolean validateWarpChainLink(File folder) throws FileNotFoundException, X4OConnectionException, SAXException, IOException, NoSuchAlgorithmException {
File fileWarpHash = new File(folder, Warpᵐᵉ.WARP_HASH);
if (!fileWarpHash.exists()) {