Add command to start the core from command line.

This commit is contained in:
sorgelig
2019-06-07 12:56:11 +08:00
parent 8bee4fa072
commit 00a25d974d
2 changed files with 6 additions and 2 deletions

View File

@@ -462,7 +462,9 @@ int fpga_load_rbf(const char *name, const char *cfg)
}
printf("Loading RBF: %s\n", name);
sprintf(path, "%s/%s", !strcasecmp(name, "menu.rbf") ? getStorageDir(0) : getRootDir(), name);
if(name[0] == '/') strcpy(path, name);
else sprintf(path, "%s/%s", !strcasecmp(name, "menu.rbf") ? getStorageDir(0) : getRootDir(), name);
int rbf = open(path, O_RDONLY);
if (rbf < 0)