[Solved] Detect love.js
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
[Solved] Detect love.js
Does love.js provide some like an environment variable that says "this is running in love.js"? When building a C/C++ project with emsdk there is a define called __EMSCRIPTEN__, which is useful for when you need to do something slightly different in the web build. I'm wondering if there's something similar for love.js.
Last edited by marclurr on Wed Sep 13, 2023 7:47 pm, edited 1 time in total.
- slime
- Solid Snayke
- Posts: 3172
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Detect love.js
love.system.getOS will return "Web", I think.
Re: Detect love.js
Yep you're exactly right. Thanks for that
Who is online
Users browsing this forum: Google [Bot] and 7 guests