From bfb6615b591db29c60fe55064d44b6f007f4daa1 Mon Sep 17 00:00:00 2001 From: PeratX <1215714524@qq.com> Date: Tue, 29 Oct 2019 15:56:35 +0800 Subject: [PATCH] sf.json: version as revision (V38.1) --- FlashDetector/sf.json | 2 +- FlashDetector/src/iTXTech/FlashDetector/Loader.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FlashDetector/sf.json b/FlashDetector/sf.json index f94bf43..ae124f5 100644 --- a/FlashDetector/sf.json +++ b/FlashDetector/sf.json @@ -1,6 +1,6 @@ { "name": "FlashDetector", - "version": "RESERVED", + "version": "1", "api": 6, "description": "Universal NAND Flash Part Number Decoder", "author": "iTX Technologies", diff --git a/FlashDetector/src/iTXTech/FlashDetector/Loader.php b/FlashDetector/src/iTXTech/FlashDetector/Loader.php index 10e9d55..7f2d128 100644 --- a/FlashDetector/src/iTXTech/FlashDetector/Loader.php +++ b/FlashDetector/src/iTXTech/FlashDetector/Loader.php @@ -32,7 +32,7 @@ public function load(){ $info = new \ReflectionClass(ModuleInfo::class); $prop = $info->getProperty("version"); $prop->setAccessible(true); - $prop->setValue($this->getInfo(), FlashDetector::getVersion()); + $prop->setValue($this->getInfo(), FlashDetector::getVersion() . "." . $this->getInfo()->getVersion()); } public function unload(){