I dont know Lua Players exit function... but you sure can cause a purposeful crash, and send you to the XMB.
I also heard 'os.exit()' works.
Printable View
I dont know Lua Players exit function... but you sure can cause a purposeful crash, and send you to the XMB.
I also heard 'os.exit()' works.
i think u need luaplayer .17dk2 or something like that tho.Zitat:
Zitat von SG57
os.exit exits to xmb. But is there a way to exit to luaplayer?
i think "break" (that only exits your loop, so if u put it in ur main loop, it should exit to luaplayer)Zitat:
Zitat von Shadox75
Actually, when Lua Player runs through the entire script, then does it return to Lua Player, or that weird Press STart to restart thing...
So ya, without an ifnite loop, or something stopping it from reaching hte end, then it goes to Lua Player.
hey how come this doesnt work...??? i want it to make it so when u press cross....you exit the game...
Code:menu = Image.load("menu5.png")
while true do
screen:blit(0,0,menu,true)
screen.waitVblankStart(1)
screen.flip()
pad = Controls.read()
if pad:up() then
dofile ("menu4.lua")
elseif pad:down() then
dofile("test.lua")
elsif pad:cross() then
break
end
end
Well what error does it give? Anyways you put elsif, instead of elseif.Zitat:
Zitat von altunozara
ok well i fixed that...so now its that code...but with elseif...it goes to the thing...but when its time to click x i click x...and nothing happens?
You don't use "break". The only way to exit back to the XMB is "System.Quit()". But this only works in the LuaPlayer Mod by Cools. You can get it at psplua.com
No, you can use "os.exit()" and it works on all versions of LuaPlayer.Zitat:
Zitat von ARza