Code from other banks gets added to bank 0, if using external editor. #516
This commit is contained in:
parent
bed37f3e87
commit
4a60393a1c
|
@ -684,33 +684,14 @@ static bool loadTextSection(const char* project, const char* comment, char* dst,
|
||||||
const char* end = project + strlen(project);
|
const char* end = project + strlen(project);
|
||||||
|
|
||||||
{
|
{
|
||||||
char tagbuf[64];
|
char tagstart[16];
|
||||||
char tag[16];
|
sprintf(tagstart, "\n%s <", comment);
|
||||||
|
|
||||||
for(s32 i = 0; i < COUNT_OF(BinarySections); i++)
|
const char* ptr = SDL_strstr(project, tagstart);
|
||||||
{
|
|
||||||
for(s32 b = 0; b < TIC_BANKS; b++)
|
|
||||||
{
|
|
||||||
makeTag(BinarySections[i].tag, tag, b);
|
|
||||||
|
|
||||||
sprintf(tagbuf, "\n%s <%s>", comment, tag);
|
|
||||||
|
|
||||||
const char* ptr = SDL_strstr(project, tagbuf);
|
|
||||||
|
|
||||||
if(ptr && ptr < end)
|
if(ptr && ptr < end)
|
||||||
end = ptr;
|
end = ptr;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
sprintf(tagbuf, "\n%s <PALETTE>", comment);
|
|
||||||
|
|
||||||
const char* ptr = SDL_strstr(project, tagbuf);
|
|
||||||
|
|
||||||
if(ptr && ptr < end)
|
|
||||||
end = ptr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(end > start)
|
if(end > start)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue