love.js icon indicating copy to clipboard operation
love.js copied to clipboard

Love.js-Api-Player doesn't work because FS is not global

Open spectrenoir06 opened this issue 4 years ago • 6 comments

Hello I try to use Love.js-Api-Player with this version of loveJS but Love.js-Api-Player use the FS to communicate between lua and JS but can't use FS from loveJS because it's not in the scope How can I fix this ? https://github.com/MrcSnm/Love.js-Api-Player

spectrenoir06 avatar Mar 20 '21 15:03 spectrenoir06

Huh, according to https://github.com/Davidobot/love.js/issues/26 it all worked fine.

Maybe @alexjgriffith could help out?

Davidobot avatar Mar 20 '21 16:03 Davidobot

I had to declase FS at the start of love.js for making it work

spectrenoir06 avatar Mar 20 '21 18:03 spectrenoir06

Would you like to submit a pull request with that change?

Davidobot avatar Mar 20 '21 18:03 Davidobot

https://github.com/spectrenoir06/love.js

spectrenoir06 avatar Mar 20 '21 22:03 spectrenoir06

I assume the changes are to the love source?

Davidobot avatar Mar 20 '21 23:03 Davidobot

I have only remove the var before the FS declaration

spectrenoir06 avatar Mar 21 '21 02:03 spectrenoir06