Skip to content

Commit

Permalink
Update Chunks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Captian-obvious authored Nov 23, 2023
1 parent 313e0c1 commit 8a289fb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Chunks.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,28 @@ def PRNT(chunk, rbxm):
##end
def PROP(chunk, rbxm):
buffer=chunk.Data
classID=buffer.readNumber("<I4")
classref=rbxm.ClassRefs[classID-1]
refs=classref.Refs
sizeof=classref.Sizeof
name=basicTypes.String(buffer)
optTypeIdCheck=ord(buffer.read(1, False)) == 0x1E
if (optTypeIdCheck):
buffer.seek(1)
##endif
typeID=ord(buffer.read())
properties=[]
if (typeID == 0x01 or typeID == 0x1D):
for i in range(sizeof):
properties[i]=basicTypes.String(buffer)
##end
elif (typeID==0x02):
for i in range(sizeof):
properties[i]=buffer.read()!="\0"
##end
elif (typeID==0x03):
properties=basicTypes.Int32Array(buffer, sizeof)
##endif
##end
def SSTR(chunk, rbxm):
buffer=chunk.Data
Expand Down

0 comments on commit 8a289fb

Please sign in to comment.