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 stepbrother1988, our newest member.

Who's Online:

Total Members: 844
Total Posts: 13009
Total Topics: 1473
Total Categories: 7
Total Boards: 25

Recent Posts:

Re: chek it out i made front page of qj.net by chi-kitory
Re: chek it out i made front page of qj.net by Rick
Re: Hi everyone (remember me? :P) by Tdude_gamer
Re: Hi everyone (remember me? :P) by dan369
Hi everyone (remember me? :P) by Tdude_gamer
Re: Hows everyone doing? by osgeld
Re: Homebrew Idol 3: The Homebrew Horror Show by dan369
Problem on Tag game by andykd7


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