danoniplus 42.1.0 → 42.1.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 +18 -9
- package/package.json +1 -1
package/js/danoni_main.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Source by tickle
|
|
6
6
|
* Created : 2018/10/08
|
|
7
|
-
* Revised : 2025/06/
|
|
7
|
+
* Revised : 2025/06/08
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 42.1.
|
|
12
|
-
const g_revisedDate = `2025/06/
|
|
11
|
+
const g_version = `Ver 42.1.1`;
|
|
12
|
+
const g_revisedDate = `2025/06/08`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -3016,13 +3016,22 @@ const getMusicUrl = _scoreId =>
|
|
|
3016
3016
|
* @returns {string}
|
|
3017
3017
|
*/
|
|
3018
3018
|
const getFullMusicUrl = (_musicUrl = ``) => {
|
|
3019
|
-
let
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3019
|
+
let baseMusicUrl = _musicUrl;
|
|
3020
|
+
let baseDir = `../${g_headerObj.musicFolder}/`;
|
|
3021
|
+
|
|
3022
|
+
if (_musicUrl.includes(C_MRK_CURRENT_DIRECTORY)) {
|
|
3023
|
+
// musicUrl, musicFolder両方にカレントパス指定がある場合は、musicUrlの値を優先
|
|
3024
|
+
|
|
3025
|
+
} else if (g_headerObj.musicFolder.includes(C_MRK_CURRENT_DIRECTORY)) {
|
|
3026
|
+
// musicFolderにカレントパス指定がある場合は、ファイル名にmusicFolderの値も含める
|
|
3027
|
+
baseMusicUrl = `${g_headerObj.musicFolder}/${_musicUrl}`;
|
|
3028
|
+
}
|
|
3029
|
+
if (g_headerObj.musicFolder.includes(C_MRK_CURRENT_DIRECTORY)) {
|
|
3030
|
+
// musicFolderにカレントパス指定がある場合は、ディレクトリは指定しない
|
|
3031
|
+
baseDir = ``;
|
|
3024
3032
|
}
|
|
3025
|
-
|
|
3033
|
+
const [musicFile, musicPath] = getFilePath(baseMusicUrl, baseDir);
|
|
3034
|
+
return `${musicPath}${musicFile}`;
|
|
3026
3035
|
}
|
|
3027
3036
|
|
|
3028
3037
|
/**
|