Submit Your Own Code

PSP Lua CodeBase : Returning To XMB

Description:
  The command, os.exit() , returns your game to the PSP's XMB when called upon. As for what versions of luaplayer this is supported I am not sure.

 -- EVILMANA.COM PSP LUA CODEBASE
-- www.evilmana.com/tutorials/codebase
-- Returning to XMB
-- SUBMITTED BY: bronxbomber92

red = Color.new(255,0,0)

while true do
pad = Controls.read()
screen:clear()

screen:print( 10, 220, "Press 'X' to do nothing, or press 
start to exit to the
XMB.", red)

if pad:cross() then --This code block really does nothing important.
screen:clear()
screen:blit(100, 200,"Your are doing nothing.", red)
end

if pad:start() then
os.exit()
end

screen.flip()
screen.waitVblankStart()
end

Back to CodeBase
 

Please welcome daryy, our newest member.

Who's Online: 5 Guests, 0 Users

Total Members: 556
Total Posts: 13060
Total Topics: 1480
Total Categories: 8
Total Boards: 35

Recent Posts:

Re: Lua 5.1.4 help. by daryy
Re: PGELua Help - need term for a special rotation fix (mathematical issue) by yaustar
Re: Lua Loader? by Buddy4point0
Re: Lua Loader? by osgeld
Re: Lua Loader? by acer5050
Re: Lua Loader? by bumuckl
Re: Lua Loader? by acer5050
Re: Lua Loader? by bumuckl


Copyright © 2006-2007 www.EvilMana.com All rights reserved.
EvilMana Logo by emcp and Charlie