mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-23 13:41:02 +00:00
Cleanup snapshot generation
This commit is contained in:
@@ -35,8 +35,8 @@ int main()
|
||||
// print_apiset(apiSetMap);
|
||||
|
||||
// Compress the API-SET binary blob
|
||||
const auto* data_ptr = reinterpret_cast<const uint8_t*>(api_set_map);
|
||||
const std::vector<uint8_t> buffer(data_ptr, data_ptr + api_set_map->Size);
|
||||
const auto* data_ptr = reinterpret_cast<const std::byte*>(api_set_map);
|
||||
const std::span buffer(data_ptr, data_ptr + api_set_map->Size);
|
||||
const auto compressed = utils::compression::zlib::compress(buffer);
|
||||
if (compressed.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user