System.usbDiskModeActivate() ?
Moderators: Shine, Insert_witty_name
System.usbDiskModeActivate() ?
What is the real purpose of using the functions, System.usbDiskModeActivate() and System.usbDiskModeDeactivate()?
Should I leave either one upon the final release?
During development, I sometimes got corrupted folders on memory stick. I had to reformat it. Will one of those functions help to prevent the mishaps?
Thanks
Should I leave either one upon the final release?
During development, I sometimes got corrupted folders on memory stick. I had to reformat it. Will one of those functions help to prevent the mishaps?
Thanks
Geo Massar
Retired Engineer
Retired Engineer
-
- Posts: 42
- Joined: Sat Nov 12, 2005 2:30 am
as far as iknow
as far as i know, the USB mode activate command is used for easier debugging of the code as it puts the PSP in USB mode while the Lua script is running, making it easier to fix code, press start (if break is set for start) and see the changes immediately. about the corrupt folder things, i think there is something about not writing to the memory stick from within Lua while in USB mode or it will require formatting the card, so removing the USB mode code should fixt that problem!
regards,
PSIKO
[edit: fixed spelling errors, some of em anyways]
regards,
PSIKO
[edit: fixed spelling errors, some of em anyways]
Well, Ive found out that:
you cannot write to a file while USB mode is enabled and a cord is plugged
if you are writing from the computer to the PSP WHILE the PSP is writing a file, the file the PSP writes becomes corrupt. And even though everything will still work the way it should, you cannot delete the file or its parent folders
I hope this helps.
you cannot write to a file while USB mode is enabled and a cord is plugged
if you are writing from the computer to the PSP WHILE the PSP is writing a file, the file the PSP writes becomes corrupt. And even though everything will still work the way it should, you cannot delete the file or its parent folders
I hope this helps.
-
- Posts: 28
- Joined: Fri Dec 15, 2006 10:26 pm
-
- Posts: 123
- Joined: Mon Oct 03, 2005 4:25 am
- Location: Netherlands
I'm having this corruption problem a lot. Either happens:
1. I have to save my script twice each time I change the code
2. I have to delete the file with windows and save it again
3. I have to backup and reformat the stick to make it work again.
By the way, wich IDE do we all use? I myself use QDE; has a very handy autocomplete function; wich also works for variables/functions.
Disadvantage: crashes on startup when psp not connected (wich holds the last edited project, is thus not accessible and the program chrashes)
Backups are placed in the project folder; wich must be on psp. (When your memstick totally corrupts you lose everything; never happened to me)
Tested Zeus too, not very handy autocomplete
1. I have to save my script twice each time I change the code
2. I have to delete the file with windows and save it again
3. I have to backup and reformat the stick to make it work again.
By the way, wich IDE do we all use? I myself use QDE; has a very handy autocomplete function; wich also works for variables/functions.
Disadvantage: crashes on startup when psp not connected (wich holds the last edited project, is thus not accessible and the program chrashes)
Backups are placed in the project folder; wich must be on psp. (When your memstick totally corrupts you lose everything; never happened to me)
Tested Zeus too, not very handy autocomplete
Behold! The Underminer got hold of a PSP