mtheall / ftpd

FTP Server for 3DS/Switch
GNU General Public License v3.0
1.39k stars 134 forks source link

Press HOME button cannot exit #54

Closed liangziqi124 closed 8 years ago

liangziqi124 commented 8 years ago

At any moment I press B then it shows "Press the Home Button to exit", no button functions any more so I need to hard shutdown the device

using ftpd.cia via Luma3DSv6.1.1 ftpd v2.2-17f1036c JPN 3DSL sys v11.0 (arm9ed)

mtheall commented 8 years ago

So you mean pressing the home button doesn't suspend the app?

liangziqi124 commented 8 years ago

Exactly

mtheall commented 8 years ago

Sounds like aptMainLoop() is always returning true. Can you modify the code to print out the value of aptIsCrippled() after the print for "Press the Home Button" message?

liangziqi124 commented 8 years ago

Sorry but I haven't learnt make 3ds program yet :( I don't know if just removing the line 109 and 110 (console_print and while(aptMainLoop())) will work? The app would close while receive a B (I'm not sure as I don't even know what console_render() dose)

JumperGerald commented 8 years ago

Is your 3ds an o3ds or a n3ds?

JumperGerald commented 8 years ago

I tested this build with no issues on: JPN N3DS w/ a9lh > Luma 6.1.1

liangziqi124 commented 8 years ago

O3DS

liangziqi124 commented 8 years ago

Sorry guys, I have just tested for some times but I failed to "re-encounter" the error I met before. I've always been using DOS ftp command to send/get/delete files on 3DS. I tested all those actions but no errors occurred.

mtheall commented 8 years ago

Okay, I will close this issue. If you run into it again just let me know and we can reopen it.