From 53ec0989c272a87ff2add6e99fc31303d1295f4d Mon Sep 17 00:00:00 2001 From: sorgelig Date: Tue, 23 Jan 2018 06:30:24 +0800 Subject: [PATCH] Move device.bin to config folder. --- file_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file_io.c b/file_io.c index fb0643c..80c3e59 100644 --- a/file_io.c +++ b/file_io.c @@ -338,7 +338,7 @@ char *getFullPath(char *name) void setStorage(int dev) { device = 0; - FileSave("device.bin", &dev, sizeof(int)); + FileSave(CONFIG_DIR"/device.bin", &dev, sizeof(int)); app_restart(); } @@ -413,7 +413,7 @@ void FindStorage(void) char str[128]; printf("Looking for root device...\n"); device = 0; - FileLoad("device.bin", &device, sizeof(int)); + FileLoad(CONFIG_DIR"/device.bin", &device, sizeof(int)); orig_device = device; if(device && !isUSBMounted())