FIX: Fix bug hdiff
This commit is contained in:
@@ -25,11 +25,10 @@ export function CutData(gamePath) {
|
||||
/**
|
||||
* @param {string} gamePath
|
||||
* @param {string} patchPath
|
||||
* @param {boolean} isSkipVerify
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function DataExtract(gamePath, patchPath, isSkipVerify) {
|
||||
return $Call.ByID(2161622254, gamePath, patchPath, isSkipVerify);
|
||||
export function DataExtract(gamePath, patchPath) {
|
||||
return $Call.ByID(2161622254, gamePath, patchPath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,9 +58,8 @@ export function LDiffPatchData(gamePath) {
|
||||
/**
|
||||
* @param {string} gamePath
|
||||
* @param {string} patchPath
|
||||
* @param {boolean} isNeedHDiff
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function VersionValidate(gamePath, patchPath, isNeedHDiff) {
|
||||
return $Call.ByID(2105077257, gamePath, patchPath, isNeedHDiff);
|
||||
export function VersionValidate(gamePath, patchPath) {
|
||||
return $Call.ByID(2105077257, gamePath, patchPath);
|
||||
}
|
||||
|
||||
@@ -131,15 +131,13 @@ export default function DiffPage() {
|
||||
setStageType('Version Validate')
|
||||
setProgressUpdate(0)
|
||||
setMaxProgressUpdate(1)
|
||||
const isNeedHDiff = validType !== 'hdiffmap.json'
|
||||
const [validVersion, errorVersion] = await DiffService.VersionValidate(gameDir, diffDir, isNeedHDiff)
|
||||
const [validVersion, errorVersion] = await DiffService.VersionValidate(gameDir, diffDir)
|
||||
if (!handleResult(validVersion, errorVersion)) return
|
||||
setProgressUpdate(1)
|
||||
}
|
||||
|
||||
const isSkipVerify = ['manifest', 'hdifffiles.txt', 'hdifffiles.json'].includes(validType)
|
||||
setStageType('Data Extract')
|
||||
const [validData, errorData] = await DiffService.DataExtract(gameDir, diffDir, isSkipVerify)
|
||||
const [validData, errorData] = await DiffService.DataExtract(gameDir, diffDir)
|
||||
if (!handleResult(validData, errorData)) return
|
||||
|
||||
setStageType('Cut Data')
|
||||
|
||||
Reference in New Issue
Block a user