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

Who's Online:

Total Members: 522
Total Posts: 13085
Total Topics: 1515
Total Categories: 7
Total Boards: 42

Recent Posts:

Re: Hello every body... by DeniseVera
Need help please by Robbynator
Re: Hello every body... by horvathann
Re: background criminal record check by backgroundchecker
background criminal record check by backgroundchecker
Intro to Perl Part 2: What are Scalars? & Examples by Chi Kitory
Intro to Perl Part 1 About Perl and Hello World by Chi Kitory
Re: Trying To Get Rid of the Spammers by Charlie


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