From 2bee9edd0ba2761bace5c8060c1fa1ea20700102 Mon Sep 17 00:00:00 2001 From: Veikko Sariola Date: Sun, 12 Apr 2020 22:14:28 +0300 Subject: [PATCH] Quick fix so that global store opcode is exported as 12 when glitch is not used. --- src/4klang.inc | 2 -- src/vsti/Go4kVSTiCore.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/4klang.inc b/src/4klang.inc index d6c421b..084c54e 100644 --- a/src/4klang.inc +++ b/src/4klang.inc @@ -83,8 +83,6 @@ go4k_synth_commands dd 0 dd _go4kFLD_func@0 %ifdef GO4K_USE_GLITCH dd _go4kGLITCH_func@0 -%else - dd _go4kFLD_func@0 %endif %ifdef GO4K_USE_FSTG dd _go4kFSTG_func@0 diff --git a/src/vsti/Go4kVSTiCore.cpp b/src/vsti/Go4kVSTiCore.cpp index 6eb00ef..a031027 100644 --- a/src/vsti/Go4kVSTiCore.cpp +++ b/src/vsti/Go4kVSTiCore.cpp @@ -2718,7 +2718,7 @@ void Go4kVSTi_SaveByteStream(HINSTANCE hInst, char* filename, int useenvlevels, fprintf(file, "%%endif\n"); fprintf(file, "%%ifdef GO4K_USE_FSTG\n"); - fprintf(file, "GO4K_FSTG_ID equ 13\n"); + fprintf(file, "GO4K_FSTG_ID equ %d\n", uses.glitch_use ? 13 : 12); fprintf(file, "%%macro GO4K_FSTG 2\n"); fprintf(file, " db %%1\n"); fprintf(file, " dw %%2\n");