Skip to content

Commit 450982a

Browse files
committed
Rename function away from builtin 'log'
1 parent dc85a7d commit 450982a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/ft2-nsf2data/nsf2data.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ char DW[8];
1313
char LL[8];
1414

1515
unsigned char memory[65536];
16-
bool log;
16+
bool should_log;
1717
bool change;
1818
int wait_;
1919
int duration;
@@ -90,7 +90,7 @@ static inline void mem_wr(int adr, unsigned char data) {
9090

9191
if (adr < 0x4018) // APU registers
9292
{
93-
if (!log)
93+
if (!should_log)
9494
return;
9595

9696
if (adr == 0x4001 || adr == 0x4005) {
@@ -201,7 +201,7 @@ void convert_effects(void) {
201201
memory[0x01FE] = 0x01; // return address 0x01FF-1
202202
memory[0x01FD] = 0xFE;
203203

204-
log = false;
204+
should_log = false;
205205

206206
for (i = 0; i < 2000; ++i)
207207
cpu_tick(); // 2000 is enough for FT init
@@ -211,7 +211,7 @@ void convert_effects(void) {
211211
effect_ptr = 0;
212212
effect_last_zero_volume_ptr = 0;
213213

214-
log = true;
214+
should_log = true;
215215
cnt = 0;
216216
wait_ = -1;
217217
duration = 0;

0 commit comments

Comments
 (0)