kikito / love-loader

Threaded resource loading for LÖVE
http://love2d.org
MIT License
131 stars 16 forks source link

error in raw data loading #31

Open carlosbispo opened 11 months ago

carlosbispo commented 11 months ago

In latest love version (11.3)

loader.read(self.documents, resource.name, resource.src), throws and error.

the fix is simple. in line 106, instead of textData = { requestKey = "rawDataPath", resourceKey = "rawData", constructor = love.filesystem.read }

change to

rawData = { requestKey = "rawDataPath", resourceKey = "rawData", constructor = love.filesystem.read }