From 5929ae417dfc20bc34afbd36ec3750f5680cf833 Mon Sep 17 00:00:00 2001 From: EillesWan Date: Sun, 20 Nov 2022 12:26:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=A4=AA=E5=BF=AB=E4=BA=86=EF=BC=8C?= =?UTF-8?q?=E5=87=BA=E9=97=AE=E9=A2=98=E4=BA=86=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- msctPkgver/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msctPkgver/main.py b/msctPkgver/main.py index 387ae42..c24fed8 100644 --- a/msctPkgver/main.py +++ b/msctPkgver/main.py @@ -1283,7 +1283,7 @@ class midiConvert: _bytes += key[y][int(yforward)] - with open(os.path.abspath(os.path.join(self.outputPath,f"{self.midFileName}.bdx")), "w+") as f: + with open(os.path.abspath(os.path.join(self.outputPath,f"{self.midFileName}.bdx")), "ab+") as f: f.write(brotli.compress(_bytes + b"XE")) return (True, _bytes, (nowx, maxheight, _sideLength)) @@ -1395,7 +1395,7 @@ class midiConvert: _bytes += key[y][int(yforward)] - with open(os.path.abspath(os.path.join(self.outputPath,f"{self.midFileName}.bdx")), "w+") as f: + with open(os.path.abspath(os.path.join(self.outputPath,f"{self.midFileName}.bdx")), "ab+") as f: f.write(brotli.compress(_bytes + b"XE")) return (True, _bytes, (nowx, maxheight, _sideLength))