Skip to content

Commit 87f2518

Browse files
committed
fix: fix manual uploader
1 parent 3513451 commit 87f2518

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

src/components/community/phizone/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export const PhiZoneAPI = {
310310
const x = stat.bad;
311311
const e = stat.good_late;
312312
const a = (accountInfo.userBasicInfo as PZUserBasicInfo).id;
313-
const chartmd5 = wi.hook.chartsMD5.get(wi.hook.selectchart.value);
313+
const chartmd5 = wi.hook.chartData.chartsMD5.get(wi.hook.selectchart.value);
314314
const aa = {
315315
token: pzPlayInfo.token,
316316
maxCombo: f,

src/components/pages/userChartUpload.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
const inputIllustrator = $id("input-illustrator");
8080
const selectDifficulty = $id("select-difficulty");
8181
const selectLevel = $id("select-level");
82-
if (hook.chartsMD5.size > 1) {
82+
if (hook.chartData.chartsMD5.size > 1) {
8383
shared.game.msgHandler.sendMessage(
8484
this.$t("userChartUpload.err.haveMultipleCharts"),
8585
"error"
@@ -135,7 +135,7 @@
135135
}
136136
137137
// 拼接url
138-
const md5 = hook.chartsMD5.get(hook.selectchart.value);
138+
const md5 = hook.chartData.chartsMD5.get(hook.selectchart.value);
139139
140140
// 校验
141141
if (this.target && md5 !== this.target) {

src/components/renderer/renderers/sim-phi/assetsProcessor/uploader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,4 @@ function loadComplete(): void {
163163
if (uploader_done && uploader_done === uploader_total) {
164164
shared.game.ptmain.chartLoadedCB();
165165
}
166-
}
166+
}

src/components/renderer/renderers/sim-phi/playerMain.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { loadSkinFromBuffer, loadSkinFromDB } from "./components/ResourcePack/sk
1212
import { gauge } from "./plugins/gauge";
1313

1414
import { imgShader, imgSplit } from "./assetsProcessor/imgProcessor";
15+
import { uploader } from "./assetsProcessor/reader";
1516
import { handleFile } from "./assetsProcessor/uploader";
1617

1718
import { createCanvas } from "./utils/canvas";
@@ -751,4 +752,5 @@ const enableFilter = $id("enableFilter");
751752
})();
752753

753754
simphiPlayer.pauseHook = () => simphiPlayer.emitter.eq("play") && simphiPlayer.playController.pause();
754-
simphiPlayer.app.reloadRes = loadRes;
755+
simphiPlayer.app.reloadRes = loadRes;
756+
simphiPlayer.uploader = uploader;

src/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ const ptAppInstance = createApp({
12441244
$("uploader").classList.remove("disabled");
12451245
ploading.r("loadChart");
12461246
shared.game.userChartUploaded();
1247-
this.lastLoad = hook.chartsMD5.get(hook.selectchart.value);
1247+
this.lastLoad = hook.chartData.chartsMD5.get(hook.selectchart.value);
12481248
return;
12491249
}
12501250

src/utils/js/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const flag0 = "flag{\x71w\x71}";
99
import("./reverse.js");
1010
})();
1111
hook.before.set(flag0, () => {
12-
const md5 = hook.chartsMD5.get(hook.selectchart.value);
12+
const md5 = hook.chartData.chartsMD5.get(hook.selectchart.value);
1313
//console.log(hook.tmps.name);
1414
const hashDF = [
1515
"cdb5987ad81b70e3dc96153af2efaa61",

0 commit comments

Comments
 (0)