There's a little bug with macOS right now.
Booting love2d games with "open -n -a love /game/path/", brings up a "No Game" screen about 2/3 of the time, and the other 1/3 brings up the game.
I was wondering if theres an adjustment I can make to the love.run function to make the game just quit if it can't find the game.
Thanks!
Quit instead of "No Game"
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Quit instead of "No Game"
I don't think that's a love.run thing. I'm talking out of my ass, But i'd guess the "no game" screen is a .löve file or something like that that löve loads if you run it without a game. If that's the case you'd probably have to modify the löve source for it to quit.
Re: Quit instead of "No Game"
Inspecting the source a bit I see that you are certainly correct, this is hardcoded into boot.lua.
It seems a little overkill to recompile just to change a few lines in this script, but I guess that what I would have to do?
https://bitbucket.org/rude/love/src/def ... s/boot.lua
If I were I think it would be something like this:
line 371:
if not can_has_game then
local nogame = require("love.nogame")
nogame()
end
--becomes-->
if not can_has_game then
love.quit()
end
Any objections to this approach?
It seems a little overkill to recompile just to change a few lines in this script, but I guess that what I would have to do?
https://bitbucket.org/rude/love/src/def ... s/boot.lua
If I were I think it would be something like this:
line 371:
if not can_has_game then
local nogame = require("love.nogame")
nogame()
end
--becomes-->
if not can_has_game then
love.quit()
end
Any objections to this approach?
- slime
- Solid Snayke
- Posts: 3172
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Quit instead of "No Game"
This is a bug which should be fixed in love 11.2. You can test out a preview build here to see if the fix works for you: https://bitbucket.org/slime73/love_macbin/get/tip.zip
Re: Quit instead of "No Game"
Thank you slime, problem solved!
Who is online
Users browsing this forum: Google [Bot] and 2 guests