mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-24 08:26:13 +02:00
Customization: item tabs over 1,024 items load instead of showing blank warning triangles
The item browser reads grids up to 4,096 rows, but the native list writer it publishes them through refused more than 1,024, so a bigger tab failed with "Native menu list is invalid." every pass. The writer now takes up to 4,096.
This commit is contained in:
1 parent
45346b122c
commit
8e79fd62f5
1 file changed
+1
-1
@@ -228,7 +228,7 @@ std::vector<std::byte> Context::array(Value value, unsigned maximum, unsigned& c
|
||||
return result;
|
||||
}
|
||||
void Context::array(Value target, std::span<const std::byte> bytes, unsigned count) const {
|
||||
require(kind(target.type) == 4 && count <= 1024, "Native menu list is invalid.");
|
||||
require(kind(target.type) == 4 && count <= 4096, "Native menu list is invalid.");
|
||||
const auto stride = size(read<Address>(read<Address>(target.type) + 0x30));
|
||||
require(bytes.size() == static_cast<std::size_t>(count) * stride, "Native menu list element size differs.");
|
||||
address(target);
|
||||
|
||||
Reference in new issue
Block a user