![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on how to make lua exit when i press on an option. within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; hi sorry about the questions but i cant get os.exit() end to work, my psp just crashes, i did try ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#3 | ||
![]() Enter Custom Title
|
try:
System.Quit()
__________________
http://img489.imageshack.us/img489/5841/99862310tg8.jpg Quote:
Quote:
|
||
|
|
|
|
|
#5 |
![]() ![]() Developer
|
Or let the game end properly by breaking out the main loop.
Code:
endGame = false; while not endGame do pad = Controls.read(); if pad:home() then endGame = true; end end
__________________
[Blog] [Portfolio] [Homebrew Illuminati - Serious Homebrew Development Forums] [I want to make Homebrew FAQ] [How I broke into the Games Industry] [Programming Book List] [Programming Article List] |
|
|
|
|
|
#6 | ||
![]() Enter Custom Title
|
first of all what luaplayer r u using?
if your using luaplayerHM then System.Quit() should work but remember... you are getting that error because u typed System as system with a lower case S...lua is case sensitive so make the S in System capital and the Q in Quit capital and it should work for you... so just like this : System.Quit()
__________________
http://img489.imageshack.us/img489/5841/99862310tg8.jpg Quote:
Quote:
|
||
|
|
|
|
|
#7 |
![]() |
yes that works for me now, it was just the caps S,Q i always forget its caps sensitive, i usualy make errors because everything is spelt the american way like color, in the UK its colour, theres loads of other words but i cant remember off hand
|
|
|
|
![]() |
| Tags |
| exit , lua , make , option , press |
| Thread Tools | |
|
|