1111 * | Mikachu2333 <mikachu.23333@zohomail.com>
1212 * |
1313 * Created On : <2023-08-29>
14- * Last Modified : <2025-09-29 >
14+ * Last Modified : <2025-10-28 >
1515 *
1616 * chsrc framework
1717 * ------------------------------------------------------------*/
2727#include "xy.h"
2828#include "struct.h"
2929#include "mirror.c"
30- #include "chef- helper.c"
30+ #include "helper.c"
3131
3232#define App_Name "chsrc"
3333
@@ -511,7 +511,7 @@ chsrc_check_file (char *path)
511511int
512512query_mirror_exist (Source_t * sources , size_t size , char * target_name , char * input )
513513{
514- if (chef_is_url (input ))
514+ if (hp_is_url (input ))
515515 {
516516 char * msg = ENGLISH ? "Using user-defined sources for this software is not supported at this time, please contact the developers to ask why or request support" : "暂不支持对该软件使用用户自定义源,请联系开发者询问原因或请求支持" ;
517517 chsrc_error (msg );
@@ -764,7 +764,7 @@ measure_speed_for_every_source (Source_t sources[], int size, double speed_recor
764764 }
765765 else if (!provider_skip && provider_speed_url )
766766 {
767- if (chef_is_url (provider_speed_url ))
767+ if (hp_is_url (provider_speed_url ))
768768 {
769769 url = xy_strdup (provider_speed_url );
770770 chsrc_debug ("m" , xy_2strcat ("使用镜像站整体测速链接: " , url ));
@@ -777,7 +777,7 @@ measure_speed_for_every_source (Source_t sources[], int size, double speed_recor
777777
778778 if (dedicated_speed_url )
779779 {
780- if (chef_is_url (dedicated_speed_url ))
780+ if (hp_is_url (dedicated_speed_url ))
781781 {
782782 url = xy_strdup (dedicated_speed_url );
783783 has_dedicated_speed_url = true;
@@ -1055,7 +1055,7 @@ chsrc_yield_source (Target_t *t, char *option)
10551055 {
10561056 source = t -> sources [ProgStatus .leader_selected_index ];
10571057 }
1058- else if (chef_is_url (option ))
1058+ else if (hp_is_url (option ))
10591059 {
10601060 Source_t tmp = { & UserDefinedProvider , option };
10611061 source = tmp ;
0 commit comments