[BUG] All Respack will be Removed while importing Unexpected Respack since v0.7.0
bug
Affected Version: v0.7.0, v0.7.1, v0.7.0-rc1. v0.7.0-rc2
Not affected: v0.6.7
Happen since 65869b0
## Reproduce
(Tested on Android and Windows)
1. Import a normal respack
2. Import a chart as respack (by [ + ] in respack view, or by Android "Open in")
3.
```
Failed to import respack.
Caused by:
0: invalid info.yml
1: missing field `author`
```
4. `data/respack` is deleted now (***All Respack will be deleted***)
5. *[since v0.7.1]* If you try to visit those respack now
```
Failed to load respacks.
Caused by:
系統找不到指定的檔案。 (os error 2)
```
6. Now, those respacks is still in `.config.respacks[]` of `data/data.json`
7. Rescan to clear them from list if you enter the Respack view again
### Other case
- Tested with a `hitFx: [0, 7]` respack, this deletion WON'T be triggered
- If you have selected your respack before you import the chart (as respack), the respack preview will keep there (not refreshed). And then, play any chart:
```
Failed to load the beatmap
Caused by:
0: Failed to load resources
1: Failed to load resource pack
2: 系統找不到指定的檔案。 (os error 2)
```
## THANKS
Thanks for the comment by 带着星星远航 in QQ:
> 好像是我不小心把谱面当成资源包导了,报错后退出重进就这样 [04-12 21:54]
And the comment by mxsyjkm
> 如果导入铺面时候不小心点到资源包会导致资源包全部销毁0.71 [04-11 23:47]
## Related
Player Comments: #750
2 条评论