Skip to content

Commit

Permalink
Include actual .asm file name in auxiliary data
Browse files Browse the repository at this point in the history
Fixes #298.
  • Loading branch information
Gumball2415 committed Dec 26, 2024
1 parent 3c3f1a3 commit ef3dd21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Source/ChunkRenderText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,12 @@ void CChunkRenderText::StoreNSFStub(unsigned char Expansion, vibrato_t VibratoSt
str.Append("USE_LINEARPITCH = 1\n");
}

str.Append("\n.include \"driver/driver.s\"\t; path to NSF driver source\n");
str.Append("\n; path to NSF driver source\n");
str.Append(".include \"driver/driver.s\"\n");

str.Append(".include \"music.asm\"\t\t; path to NSF export source\n");
std::string asmfile = m_pFile->GetFileName();
str.Append("; path to NSF export source\n");
str.AppendFormat(".include \"%s\"\n", asmfile.c_str());

WriteFileString(str, m_pFileNSFStub);
}
Expand Down
2 changes: 1 addition & 1 deletion Source/PatternCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ void CPatternCompiler::CompileData(int Track, int Pattern, int Channel)
}

// Volume command
if (Volume < 0x10) {
if (Volume < MAX_VOLUME) {
WriteDuration();
WriteData(0xF0 | Volume);
Action = true; // Terminate command
Expand Down

0 comments on commit ef3dd21

Please sign in to comment.