danoniplus 40.5.0 → 40.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js/danoni_main.js CHANGED
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 40.5.0`;
11
+ const g_version = `Ver 40.5.1`;
12
12
  const g_revisedDate = `2025/03/12`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
@@ -3906,13 +3906,14 @@ const updateImgType = (_imgType, _initFlg = false) => {
3906
3906
  }
3907
3907
  resetImgs(_imgType.name, _imgType.extension);
3908
3908
  reloadImgObj();
3909
- Object.keys(g_imgObj).forEach(key => g_imgObj[key] = `${g_rootPath}${g_imgObj[key]}`);
3909
+ const orgImgObj = structuredClone(g_imgObj);
3910
+ Object.keys(g_imgObj).forEach(key => g_imgObj[key] = `${g_rootPath}${orgImgObj[key]}`);
3910
3911
 
3911
3912
  // リモート時は作品ページ側にある画像を優先し、リモートに存在するもののみリモートから取得する
3912
3913
  if (g_remoteFlg) {
3913
- Object.keys(g_imgObj).forEach(key => g_imgObj[key] = `${g_workPath}${g_imgObj[key]}`);
3914
+ Object.keys(g_imgObj).forEach(key => g_imgObj[key] = `${g_workPath}${orgImgObj[key]}`);
3914
3915
  if (g_defaultSets.imgType.findIndex(val => val === _imgType.name) >= 0) {
3915
- Object.keys(g_defaultSets.imgList).forEach(key => g_imgObj[key] = `${g_rootPath}${g_imgObj[key]}`);
3916
+ Object.keys(g_defaultSets.imgList).forEach(key => g_imgObj[key] = `${g_rootPath}${orgImgObj[key]}`);
3916
3917
  }
3917
3918
  }
3918
3919
  if (_imgType.extension === undefined && g_presetObj.overrideExtension !== undefined) {
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Source by tickle
7
7
  * Created : 2019/11/19
8
- * Revised : 2025/03/12 (v40.5.0)
8
+ * Revised : 2025/03/12 (v40.5.1)
9
9
  *
10
10
  * https://github.com/cwtickle/danoniplus
11
11
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "40.5.0",
3
+ "version": "40.5.1",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {