Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change root folder name from /flash to /ssd

  • Loading branch information...
commit 169dd6edc8523b6b112ed0ea24f0569759d26e58 1 parent 2ab05ed
Xiangfu Liu authored
4 src/fbgrab.c
View
@@ -31,7 +31,7 @@
#include "pngload.h"
#include "fbgrab.h"
-static char *filename = "/flash/Screenshot-00.png";
+static char *filename = "/ssd/Screenshot-00.png";
static char *get_name()
{
@@ -43,7 +43,7 @@ static char *get_name()
if (errno == ENOENT)
break;
} else
- sprintf(filename + 18, "%02d.png", i);
+ sprintf(filename + strlen(filename) - 6, "%02d.png", i);
}
return filename;
10 src/keyboard.c
View
@@ -32,6 +32,8 @@
#include "keyboard.h"
+#define AUTOBUILD_PATCHES_FOLDER "/ssd/patches/"
+
static int appid;
static struct filedialog *browse_dlg;
@@ -206,6 +208,12 @@ static void autobuild(int sk, char *folder)
}
}
closedir(d);
+
+ if(n_files == 0) {
+ messagebox("Auto build failed", "No patches under "AUTOBUILD_PATCHES_FOLDER);
+ return;
+ }
+
qsort(files, n_files, sizeof(char *), cmpstringp);
for(i=0;i<n_files;i++) {
@@ -229,7 +237,7 @@ static void autobuild_callback(mtk_event *e, void *arg)
key[1] = 0x00;
}
if(filename[0] == 0x00)
- strcpy(filename, "/flash");
+ strcpy(filename, AUTOBUILD_PATCHES_FOLDER);
if((key[1] != 0x00) || (key[0] < 'a') || (key[0] > 'z')) {
messagebox("Auto build failed", "Invalid starting key. Use only one lower case letter from 'a' to 'z'.");
return;
4 src/main.c
View
@@ -166,8 +166,8 @@ rtems_task Init(rtems_task_argument argument)
mkdir("/ramdisk", 0777);
start_memcard();
- mkdir("/flash", 0777);
- mount("/dev/flash5", "/flash", "yaffs", RTEMS_FILESYSTEM_READ_WRITE, "");
+ mkdir("/ssd", 0777);
+ mount("/dev/flash5", "/ssd", "yaffs", RTEMS_FILESYSTEM_READ_WRITE, "");
sysconfig_load();
rtems_bsdnet_initialize_network();
2  src/midi.c
View
@@ -391,7 +391,7 @@ static void autobuild_callback(mtk_event *e, void *arg)
if(note[0] == 0x00)
strcpy(note, "C2");
if(filename[0] == 0x00)
- strcpy(filename, "/flash");
+ strcpy(filename, "/ssd");
notecode = midistr(note);
if(notecode < 0) {
messagebox("Auto build failed", "Invalid starting note");
2  src/performance.c
View
@@ -144,7 +144,7 @@ static void add_osc_patches()
}
}
-#define SIMPLE_PATCHES_FOLDER "/flash/"
+#define SIMPLE_PATCHES_FOLDER "/ssd/patches/"
static void add_simple_patches()
{
2  src/shutdown.c
View
@@ -29,7 +29,7 @@ static int appid;
void clean_shutdown(int turnoff)
{
unmount("/memcard");
- unmount("/flash");
+ unmount("/ssd");
rtems_shutdown_executive(turnoff);
}
2  src/sysconfig.c
View
@@ -155,7 +155,7 @@ static void format_ip(unsigned int ip, char *out)
ip & 0x000000ff);
}
-#define SYSCONFIG_FILE "/flash/sysconfig.bin"
+#define SYSCONFIG_FILE "/ssd/sysconfig.bin"
static void my_dhcp()
{
Please sign in to comment.
Something went wrong with that request. Please try again.