Skip to content

Commit

Permalink
webMAN MOD 1.47.46h
Browse files Browse the repository at this point in the history
- Fixed webMAN MOD installer not auto-enabling Cobra on Evilnat 4.91.x
  • Loading branch information
aldostools committed Jul 22, 2024
1 parent 0afb203 commit 2afb4c4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 4 deletions.
Binary file modified _Projects_/updater/pkgfiles/USRDIR/webftp_server_full.sprx
Binary file not shown.
Binary file modified _Projects_/updater/pkgfiles/USRDIR/webftp_server_lite.sprx
Binary file not shown.
Binary file modified _Projects_/updater/pkgfiles/USRDIR/webftp_server_noncobra.sprx
Binary file not shown.
Binary file not shown.
14 changes: 10 additions & 4 deletions _Projects_/updater/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,22 @@ bool is_cobra(void)
{
bool ret = false;

if(is_disabled("/dev_blind/sys/stage2_disabled.bin", "/dev_blind/sys/stage2.bin")) return true;
if(is_disabled("/dev_blind/sys/stage2.cex.bak", "/dev_blind/sys/stage2.cex")) ret = true;
if(is_disabled("/dev_blind/sys/stage2.dex.bak", "/dev_blind/sys/stage2.dex")) ret = true;
if(is_disabled("/dev_blind/sys/stage2.bin.bak", "/dev_blind/sys/stage2.bin")) return true;
if(is_disabled("/dev_blind/habib/cobra/stage2_disabled.cex", "/dev_blind/habib/cobra/stage2.cex")) return true;

if(is_disabled("/dev_blind/sys/stage2_disabled.bin", "/dev_blind/sys/stage2.bin")) return true;
if(is_disabled("/dev_blind/rebug/cobra/stage2.cex.bak", "/dev_blind/rebug/cobra/stage2.cex")) ret = true;
if(is_disabled("/dev_blind/rebug/cobra/stage2.dex.bak", "/dev_blind/rebug/cobra/stage2.dex")) ret = true;
if(is_disabled("/dev_blind/habib/cobra/stage2_disabled.cex", "/dev_blind/habib/cobra/stage2.cex")) return true;

if(ret) return true;

if(file_exists("/dev_flash/sys/stage2.bin")) return true;
if(file_exists(HDDROOT_DIR "/boot_plugins.txt")) return true;
if(file_exists("/dev_flash/sys/stage2.cex")) return true;
if(file_exists("/dev_flash/sys/stage2.dex")) return true;

if(file_exists("/dev_flash/rebug/cobra")) return true;
if(file_exists(HDDROOT_DIR "/boot_plugins.txt")) return true;

if (is_mamba()) return false;

Expand Down
Binary file modified _Projects_/updater/update/dev_hdd0/plugins/webftp_server.sprx
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 2afb4c4

Please sign in to comment.