From b8425e137a267801568160d723c1678aae9a6feb Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Sun, 19 May 2024 01:51:20 +0800 Subject: [PATCH] Disable loading boot.bin on shelled environment. --- src/rishka_vm.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rishka_vm.cpp b/src/rishka_vm.cpp index 13ab1b7..e341b4a 100644 --- a/src/rishka_vm.cpp +++ b/src/rishka_vm.cpp @@ -71,6 +71,9 @@ bool RishkaVM::loadFile(const char* fileName) { if(!SD.exists(absoluteFilename)) return false; + if(absoluteFilename == "/bin/boot.bin") + return false; + File file = SD.open(absoluteFilename); if(!file) { file.close();