chore: minify dfuhelperinfo

This commit is contained in:
CLARATION committed 2026-07-31 22:06:11 -07:00
1 parent 3d0e269244
commit da8c45465a
5 files changed
+12 -9

No files matched your search

+3 -3
View File
@@ -39,7 +39,7 @@
#endif
#if WITH_RAMDISK
# include "gen/embedded/ramdisk.h"
# include "gen/embedded/ramdisk-compressed.dmg.h"
# include "gen/embedded/ramdisk-compressed.h"
#endif
#include "gen/embedded/Pongo.h"
#include "gen/embedded/checkra1n-kpf-pongo.h"
@@ -64,8 +64,8 @@ payload_t g_payload_overlay = {
#if WITH_RAMDISK
payload_t g_payload_ramdisk = {
.data = embedded_ramdisk_compressed_dmg_lzma,
.data_len = embedded_ramdisk_compressed_dmg_lzma_len,
.data = embedded_ramdisk_compressed_lzma,
.data_len = embedded_ramdisk_compressed_lzma_len,
.uncompressed_data_len = embedded_ramdisk_dmg_len,
};
#else
+4 -4
View File
@@ -28,7 +28,7 @@
#if defined(WITH_GUI) || defined(WITH_TUI)
#include <nlohmann/json.hpp>
#include "gen/embedded/DFUHelperDeviceInfo.h"
#include "gen/embedded/DFUHelperDeviceInfo-minified.h"
#include "sequence.hpp"
DfuSequence ParseSequence(const std::string& deviceKey)
@@ -36,9 +36,9 @@ DfuSequence ParseSequence(const std::string& deviceKey)
DfuSequence seq;
static nlohmann::json j = nlohmann::json::parse(
embedded_DFUHelperDeviceInfo_json,
embedded_DFUHelperDeviceInfo_json +
embedded_DFUHelperDeviceInfo_json_len
embedded_DFUHelperDeviceInfo_minified_json,
embedded_DFUHelperDeviceInfo_minified_json +
embedded_DFUHelperDeviceInfo_minified_json_len
);
auto itMap = j["devicemap"].find(deviceKey);