Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- printf("Replace setting.txt with SD card setting.txt?\n");
- if (yes_or_no()) {
- /*ret = ISFS_GetAttr(filepath, &ownerID, &groupID, &attr, &ownperm, &groupperm, &otherperm);
- if (ret < 0){
- printf("\tFail! %d\n", ret);
- attr = 0;
- ownperm = groupperm = otherperm = 1;
- exit(1);
- }*/
- ownerID = 1000;
- groupID = 1;
- attr = 0;
- ownperm = 3;
- groupperm = 3;
- otherperm = 3;
- ret = ISFS_WriteFileFromArray(filepath, setting_txt, 256, ownerID, groupID, attr, ownperm, groupperm, otherperm);
- if (ret < 0){
- printf("\tFail! %d\n", ret);
- wait_anyKey();
- exit(1);
- }
- ret = ISFS_GetAttr(filepath, &ownerID, &groupID, &attr, &ownperm, &groupperm, &otherperm);
- if (ret < 0){
- printf("\tFail! %d\n", ret);
- }
- wait_anyKey();
- }
Add Comment
Please, Sign In to add comment