aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-08-02 20:50:34 +0200
committerBad Diode <bd@badd10de.dev>2023-08-02 20:50:34 +0200
commit76dca3d333c13d0406daa4900a9a21b48c06915b (patch)
tree79e9d806a60b02b4da5ab803b200f92fa77e70e9
parent8528186b39886a3b032da0d42687b7db262ed49a (diff)
downloadstepper-76dca3d333c13d0406daa4900a9a21b48c06915b.tar.gz
stepper-76dca3d333c13d0406daa4900a9a21b48c06915b.zip
Add bank reset to first pattern for now
-rw-r--r--Makefile2
-rw-r--r--src/sequencer.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 913795a..4b07fd3 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS))
27INC_FLAGS += -I$(LIBGBA_SRC) 27INC_FLAGS += -I$(LIBGBA_SRC)
28 28
29# Output library names and executables. 29# Output library names and executables.
30TARGET := STEPPER-v1.6-dev-rc 30TARGET := STEPPER-v1.6-dev-rc2
31ELF := $(BUILD_DIR)/$(TARGET).elf 31ELF := $(BUILD_DIR)/$(TARGET).elf
32BIN := $(BUILD_DIR)/$(TARGET).gba 32BIN := $(BUILD_DIR)/$(TARGET).gba
33 33
diff --git a/src/sequencer.c b/src/sequencer.c
index 6da0a9f..18c9b20 100644
--- a/src/sequencer.c
+++ b/src/sequencer.c
@@ -549,6 +549,8 @@ select_bank(int i) {
549 // TODO: queue bank if we are currently playing? 549 // TODO: queue bank if we are currently playing?
550 chain.current = 15; 550 chain.current = 15;
551 chain.current = find_next_pattern(); 551 chain.current = find_next_pattern();
552 current_pattern = 0;
553 next_pattern = 0;
552 clipboard.type = CLIP_EMPTY; 554 clipboard.type = CLIP_EMPTY;
553 save_bank(current_bank); 555 save_bank(current_bank);
554 metadata.current_pattern = current_pattern; 556 metadata.current_pattern = current_pattern;