Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make autobuild folders consistent

  • Loading branch information...
commit 25526501d1020984bdbba33ec99e8b24143239be 1 parent dda3856
@sbourdeauducq sbourdeauducq authored
View
10 src/keyboard.c
@@ -29,11 +29,10 @@
#include "cp.h"
#include "messagebox.h"
#include "filedialog.h"
+#include "performance.h"
#include "keyboard.h"
-#define AUTOBUILD_PATCHES_FOLDER "/ssd/patches/"
-
static int appid;
static struct filedialog *browse_dlg;
@@ -209,11 +208,6 @@ 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++) {
@@ -237,7 +231,7 @@ static void autobuild_callback(mtk_event *e, void *arg)
key[1] = 0x00;
}
if(filename[0] == 0x00)
- strcpy(filename, AUTOBUILD_PATCHES_FOLDER);
+ strcpy(filename, SIMPLE_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;
View
3  src/midi.c
@@ -31,6 +31,7 @@
#include "cp.h"
#include "messagebox.h"
#include "filedialog.h"
+#include "performance.h"
#include "midi.h"
@@ -391,7 +392,7 @@ static void autobuild_callback(mtk_event *e, void *arg)
if(note[0] == 0x00)
strcpy(note, "C2");
if(filename[0] == 0x00)
- strcpy(filename, "/ssd");
+ strcpy(filename, SIMPLE_PATCHES_FOLDER);
notecode = midistr(note);
if(notecode < 0) {
messagebox("Auto build failed", "Invalid starting note");
View
2  src/performance.c
@@ -144,8 +144,6 @@ static void add_osc_patches()
}
}
-#define SIMPLE_PATCHES_FOLDER "/ssd/patches/"
-
static void add_simple_patches()
{
DIR *d;
View
2  src/performance.h
@@ -18,6 +18,8 @@
#ifndef __PERFORMANCE_H
#define __PERFORMANCE_H
+#define SIMPLE_PATCHES_FOLDER "/ssd/patches/"
+
void init_performance();
void start_performance(bool simple);
Please sign in to comment.
Something went wrong with that request. Please try again.