From 63aa2d412884136c6c16b0c9d7498dfd37aff711 Mon Sep 17 00:00:00 2001 From: Sakura Knoll Date: Mon, 11 Jul 2022 22:04:39 +0900 Subject: [PATCH] Preload ch 19 cgs --- public/novels/ae/ko-KR/game.js | 12 ++++++------ public/novels/ae/ko-KR/xml/ch19.xml | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/public/novels/ae/ko-KR/game.js b/public/novels/ae/ko-KR/game.js index 8c4408e1..412aec8f 100644 --- a/public/novels/ae/ko-KR/game.js +++ b/public/novels/ae/ko-KR/game.js @@ -1498,7 +1498,8 @@ function preLoadUiImages(resStr, resList, flag_continue) { if (flag_continue != 'continue') $('.preload').html('') for (var i = 0; i < resList.length; i++) { var $tempImage = $('') - var tempSrc = base_url + '/resources/' + resStr + '/' + resList[i] + var tempSrc = getResourceUrl(resStr, resList[i]) + $tempImage .attr('src', tempSrc) .addClass('preload-image') @@ -1583,12 +1584,11 @@ function preLoadImagesBegin(imageList) { else if (imageList[i].getAttribute('type') == 'cg') continue else if (imageList[i].getAttribute('type') == 'background') continue var $tempImage = $('') - var tempSrc = - base_url + - '/resources/' + - imageList[i].getAttribute('type') + - '/' + + var tempSrc = getResourceUrl( + imageList[i].getAttribute('type'), imageList[i].getAttribute('src') + ) + if (imageList[i].getAttribute('type') == 'www') tempSrc = imageList[i].getAttribute('src') $tempImage diff --git a/public/novels/ae/ko-KR/xml/ch19.xml b/public/novels/ae/ko-KR/xml/ch19.xml index 555c6958..7b62c8ae 100644 --- a/public/novels/ae/ko-KR/xml/ch19.xml +++ b/public/novels/ae/ko-KR/xml/ch19.xml @@ -1,5 +1,8 @@ - + + + +