Since https://github.com/renpy/renpy/pull/3423 has been merged, webaudio.play() is broken as the file argument is now a RWops object with no way to retrieve the location of the underlying resource file. This PR simply adds a name attribute to RWops to store the file location to match the definition of io.FileIO (which is what webaudio expects).
Setting this attribute only from RWops_from_file() seems to fix the issue, but maybe it should be set in other locations where a RWops object is created as well.
Since https://github.com/renpy/renpy/pull/3423 has been merged,
webaudio.play()
is broken as thefile
argument is now aRWops
object with no way to retrieve the location of the underlying resource file. This PR simply adds aname
attribute toRWops
to store the file location to match the definition ofio.FileIO
(which is whatwebaudio
expects).Setting this attribute only from
RWops_from_file()
seems to fix the issue, but maybe it should be set in other locations where aRWops
object is created as well.