Skip to content

Commit

Permalink
fix not using threadsafe readString in FlashList
Browse files Browse the repository at this point in the history
  • Loading branch information
Punikekk committed Nov 1, 2023
1 parent e5a5e6e commit 1e43425
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ private FlashVector(Class<E> valueType) {
@Override
public void update(long address) {
if (this.address != address && valueType == null) {
String type = Main.API.readString(address, 32, 48, 144);
String type = threadSafe
? Main.API.readStringDirect(address, 32, 48, 144)
: Main.API.readString(address, 32, 48, 144);
switch (type) {
case "uint":
case "int":
Expand Down

0 comments on commit 1e43425

Please sign in to comment.