Fixes and improvements (#616)
This commit is contained in:
committed by
GitHub
parent
f943c4dd69
commit
b03759a111
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <TactilityCpp/Allocator.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -16,6 +18,10 @@ struct AppHubEntry {
|
||||
std::string file;
|
||||
};
|
||||
|
||||
bool parseJson(const std::string& filePath, std::vector<AppHubEntry>& entries);
|
||||
// The top-level entries buffer prefers PSRAM/SPIRAM via OptExternalAllocator; individual
|
||||
// AppHubEntry string/vector members still use the default (internal-RAM) allocator.
|
||||
using AppHubEntryList = std::vector<AppHubEntry, OptExternalAllocator<AppHubEntry>>;
|
||||
|
||||
bool parseJson(const std::string& filePath, AppHubEntryList& entries);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user