From 31d9bc47597dc8308c00ca7f2d39a82aef6771a1 Mon Sep 17 00:00:00 2001 From: leslie Date: Sun, 4 Sep 2011 11:29:50 +0800 Subject: [PATCH] add tecfreak's overide cable/terr source patch --- override.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/override.c b/override.c index 1b2b27b..3cbb21f 100644 --- a/override.c +++ b/override.c @@ -134,7 +134,9 @@ bool cValidityRange::ParseSourceRange(const char *str) if((l=sscanf(str,"%a[^-:]-%a[^-:]",&s1,&s2))>=1) { if(s1 && (fromSource=cSource::FromString(s1))>0 && (l<2 || (s2 && (toSource=cSource::FromString(s2))>0))) { - if(cSource::IsSat(fromSource) && (toSource<0 || (cSource::IsSat(toSource) && toSource>fromSource))) { + if((cSource::IsSat(fromSource) && (toSource<0 || (cSource::IsSat(toSource) && toSource>fromSource))) || + (cSource::IsCable(fromSource) && toSource<0) || + (cSource::IsTerr(fromSource) && toSource<0)) { res=true; } else PRINTF(L_CORE_LOAD,"override: SOURCE range error"); -- 2.39.5