Rename title accessors in Song.
Add a preference to prefer transliterations. Press F9 in the music
select screen to toggle it ("what's that kanji again?"); appearance
options entry forthcoming.
Hopefully fix wheel sections; we were assuming that sections were
always sorted the same as the songs in them, but this isn't true
with "OTHER".
This commit is contained in:
@@ -219,14 +219,9 @@ bool NotesWriterDWI::Write( CString sPath, const Song &out )
|
||||
if( fp == NULL )
|
||||
RageException::Throw( "Error opening song file '%s' for writing.", sPath.GetString() );
|
||||
|
||||
/* If we have transliterations, write them instead of the real title, since
|
||||
* DWI doesn't support UTF-8. */
|
||||
if(!out.GetSortTitle().empty())
|
||||
fprintf( fp, "#TITLE:%s;\n", out.GetSortTitle().GetString() );
|
||||
if(!out.m_sArtistTranslit.empty())
|
||||
fprintf( fp, "#ARTIST:%s;\n", out.m_sArtistTranslit.GetString() );
|
||||
else if(!out.m_sArtist.empty())
|
||||
fprintf( fp, "#ARTIST:%s;\n", out.m_sArtist.GetString() );
|
||||
/* Write transliterations, if we have them, since DWI doesn't support UTF-8. */
|
||||
fprintf( fp, "#TITLE:%s;\n", out.GetTranslitMainTitle().GetString() );
|
||||
fprintf( fp, "#ARTIST:%s;\n", out.GetTranslitArtist().GetString() );
|
||||
ASSERT( out.m_BPMSegments[0].m_fStartBeat == 0 );
|
||||
fprintf( fp, "#BPM:%.3f;\n", out.m_BPMSegments[0].m_fBPM );
|
||||
fprintf( fp, "#GAP:%d;\n", int(-roundf( out.m_fBeat0OffsetInSeconds*1000 )) );
|
||||
|
||||
Reference in New Issue
Block a user