Skip to content

Commit 297bc2e

Browse files
committed
Fix write permissions when RAMdrive is mounted
1 parent 6e9a378 commit 297bc2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/fs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ bool CheckWritePermissions(const char* path) {
8686
if (pdrv == 0) {
8787
perm = PERM_SDCARD;
8888
snprintf(area_name, 16, "the SD card");
89-
} else if (GetMountState() == IMG_RAMDRV) {
89+
} else if ((pdrv == 7) && (GetMountState() == IMG_RAMDRV)) {
9090
perm = PERM_RAMDRIVE;
9191
snprintf(area_name, 16, "the RAM drive");
9292
} else if (((pdrv >= 1) && (pdrv <= 3)) || (GetVirtualSource(path) == VRT_SYSNAND)) {

source/godmode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "virtual.h"
88
#include "image.h"
99

10-
#define VERSION "0.5.0"
10+
#define VERSION "0.5.1"
1111

1212
#define N_PANES 2
1313
#define IMG_DRV "789I"

0 commit comments

Comments
 (0)