return false on Wlan.useConnectionConfig

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
liquid8d
Posts: 66
Joined: Thu Jun 30, 2005 6:29 am

return false on Wlan.useConnectionConfig

Post by liquid8d »

Unfortunately, it seems that Wlan.useConnectionConfig doesn't check to make sure that the wlan connection is available. Right now, i have an 'offline' option in my program, and if it is on, i just skip ConnectionConfig, but if it is run and your connection isn't available, this function just hangs waiting for a connection. Any way to check first to see if the connection works first?

liquid8d
Elxx
Posts: 16
Joined: Wed Dec 07, 2005 4:48 pm
Contact:

Post by Elxx »

I added a fix for this into the SVN for 0.17. Here's my latest compile of LuaPlayer with the fix. Just replace your Eboot with that one, wouldn't hurt to make a backup either.

The function will now return nil if it was unable to connect, 1 if it connected successfully.
Post Reply