Skip to content

Commit 7e70ea3

Browse files
Fix Pro=On + Editors=Off (#2863)
1 parent 1a86695 commit 7e70ea3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/studio/studio.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
// interval between the Windows and Unix epoch
7777
#define UNIX_EPOCH_IN_FILETIME 116444736000000000ULL
7878

79-
#if defined(TIC80_PRO)
79+
#if defined(TIC80_PRO) && defined(BUILD_EDITORS)
8080
#define TIC_EDITOR_BANKS (TIC_BANKS)
8181
#else
8282
#define TIC_EDITOR_BANKS 1
@@ -348,7 +348,7 @@ const char* studioExportMusic(Studio* studio, s32 track, s32 bank, const char* f
348348
#if TIC80_SAMPLE_CHANNELS == 2
349349
wave_enable_stereo();
350350
#endif
351-
#if defined(TIC80_PRO)
351+
#if defined(TIC80_PRO) && defined(BUILD_EDITORS)
352352
// chained = true in CLI. Set to false if want to use unchained
353353
bool chained = studio->bank.chained;
354354
if(chained)
@@ -700,7 +700,7 @@ struct Start* getStartScreen(Studio* studio)
700700
return studio->start;
701701
}
702702

703-
#if defined (TIC80_PRO)
703+
#if defined(TIC80_PRO) && defined(BUILD_EDITORS)
704704

705705
static void drawBankIcon(Studio* studio, s32 x, s32 y)
706706
{
@@ -1064,7 +1064,7 @@ void drawToolbar(Studio* studio, tic_mem* tic, bool bg)
10641064
"MUSIC EDITOR",
10651065
};
10661066

1067-
#if defined (TIC80_PRO)
1067+
#if defined (TIC80_PRO) && defined(BUILD_EDITORS)
10681068
enum {TextOffset = (COUNT_OF(Modes) + 2) * Size - 2};
10691069
if(mode >= 1)
10701070
drawBankIcon(studio, COUNT_OF(Modes) * Size + 2, 0);
@@ -1792,7 +1792,7 @@ static void startBattle(Studio* studio)
17921792
}
17931793
#endif
17941794

1795-
#if defined(TIC80_PRO)
1795+
#if defined(TIC80_PRO) && defined(BUILD_EDITORS)
17961796

17971797
static void switchBank(Studio* studio, s32 bank)
17981798
{
@@ -1906,7 +1906,7 @@ static void processShortcuts(Studio* studio)
19061906
else if(keyWasPressedOnce(studio, tic_key_s)) saveProject(studio);
19071907
#endif
19081908

1909-
#if defined(TIC80_PRO)
1909+
#if defined(TIC80_PRO) && defined(BUILD_EDITORS)
19101910

19111911
else
19121912
for(s32 bank = 0; bank < TIC_BANKS; bank++)

0 commit comments

Comments
 (0)