mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 00:30:08 -06:00
Removed MusicMod, it's hacky, it's not maintained and it seems it didn't compile for a while now.
Also with the advance of LLE sound we won't really need it. If someone disagree feel free to make it compile and recommit :-) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3176 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
77
Externals/MusicMod/Player/Src/Unicode.cpp
vendored
77
Externals/MusicMod/Player/Src/Unicode.cpp
vendored
@ -1,77 +0,0 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Plainamp, Open source Winamp core
|
||||
//
|
||||
// Copyright <20> 2005 Sebastian Pipping <webmaster@hartwork.org>
|
||||
//
|
||||
// --> http://www.hartwork.org
|
||||
//
|
||||
// This source code is released under the GNU General Public License (GPL).
|
||||
// See GPL.txt for details. Any non-GPL usage is strictly forbidden.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "Unicode.h"
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ToAnsi( char * szDest, wchar_t * szSource, int iLen )
|
||||
{
|
||||
char * const szBytesource = ( char * )szSource;
|
||||
for( int i = 0; i < iLen; i++ )
|
||||
{
|
||||
szDest[ i ] = szBytesource[ 2 * i + 1 ];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/*
|
||||
void ToUnicode( wchar_t * szDest, char * szSource, int iLen )
|
||||
{
|
||||
for( int i = 0; i < iLen; i++ )
|
||||
{
|
||||
szDest[ i ] = ( wchar_t )szSource[ i ];
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ToTchar( TCHAR * szDest, wchar_t * szSource, int iLen )
|
||||
{
|
||||
#ifdef PA_UNICODE
|
||||
memcpy( szDest, szSource, 2 * iLen );
|
||||
#else
|
||||
char * const stByteSource = ( TCHAR * )szSource;
|
||||
for( int i = 0; i < iLen; i++ )
|
||||
{
|
||||
szDest[ i ] = stByteSource[ 2 * i + 1 ];
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ToTchar( TCHAR * szDest, char * szSource, int iLen )
|
||||
{
|
||||
#ifdef PA_UNICODE
|
||||
for( int i = 0; i < iLen; i++ )
|
||||
{
|
||||
szDest[ i ] = szSource[ 2 * i + 1 ];
|
||||
}
|
||||
#else
|
||||
memcpy( szDest, szSource, iLen );
|
||||
#endif
|
||||
}
|
Reference in New Issue
Block a user