Added warp-hash update and check
This commit is contained in:
parent
14f4cbc2ec
commit
fadf971074
12 changed files with 282 additions and 37 deletions
|
|
@ -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>
|
||||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue