|
76 | 76 | // interval between the Windows and Unix epoch |
77 | 77 | #define UNIX_EPOCH_IN_FILETIME 116444736000000000ULL |
78 | 78 |
|
79 | | -#if defined(TIC80_PRO) |
| 79 | +#if defined(TIC80_PRO) && defined(BUILD_EDITORS) |
80 | 80 | #define TIC_EDITOR_BANKS (TIC_BANKS) |
81 | 81 | #else |
82 | 82 | #define TIC_EDITOR_BANKS 1 |
@@ -348,7 +348,7 @@ const char* studioExportMusic(Studio* studio, s32 track, s32 bank, const char* f |
348 | 348 | #if TIC80_SAMPLE_CHANNELS == 2 |
349 | 349 | wave_enable_stereo(); |
350 | 350 | #endif |
351 | | -#if defined(TIC80_PRO) |
| 351 | +#if defined(TIC80_PRO) && defined(BUILD_EDITORS) |
352 | 352 | // chained = true in CLI. Set to false if want to use unchained |
353 | 353 | bool chained = studio->bank.chained; |
354 | 354 | if(chained) |
@@ -700,7 +700,7 @@ struct Start* getStartScreen(Studio* studio) |
700 | 700 | return studio->start; |
701 | 701 | } |
702 | 702 |
|
703 | | -#if defined (TIC80_PRO) |
| 703 | +#if defined(TIC80_PRO) && defined(BUILD_EDITORS) |
704 | 704 |
|
705 | 705 | static void drawBankIcon(Studio* studio, s32 x, s32 y) |
706 | 706 | { |
@@ -1064,7 +1064,7 @@ void drawToolbar(Studio* studio, tic_mem* tic, bool bg) |
1064 | 1064 | "MUSIC EDITOR", |
1065 | 1065 | }; |
1066 | 1066 |
|
1067 | | -#if defined (TIC80_PRO) |
| 1067 | +#if defined (TIC80_PRO) && defined(BUILD_EDITORS) |
1068 | 1068 | enum {TextOffset = (COUNT_OF(Modes) + 2) * Size - 2}; |
1069 | 1069 | if(mode >= 1) |
1070 | 1070 | drawBankIcon(studio, COUNT_OF(Modes) * Size + 2, 0); |
@@ -1792,7 +1792,7 @@ static void startBattle(Studio* studio) |
1792 | 1792 | } |
1793 | 1793 | #endif |
1794 | 1794 |
|
1795 | | -#if defined(TIC80_PRO) |
| 1795 | +#if defined(TIC80_PRO) && defined(BUILD_EDITORS) |
1796 | 1796 |
|
1797 | 1797 | static void switchBank(Studio* studio, s32 bank) |
1798 | 1798 | { |
@@ -1906,7 +1906,7 @@ static void processShortcuts(Studio* studio) |
1906 | 1906 | else if(keyWasPressedOnce(studio, tic_key_s)) saveProject(studio); |
1907 | 1907 | #endif |
1908 | 1908 |
|
1909 | | -#if defined(TIC80_PRO) |
| 1909 | +#if defined(TIC80_PRO) && defined(BUILD_EDITORS) |
1910 | 1910 |
|
1911 | 1911 | else |
1912 | 1912 | for(s32 bank = 0; bank < TIC_BANKS; bank++) |
|
0 commit comments