fixed #1203, remove CCFileUtils::setResource & SimpleAudioEngine::setResource, these 2 methods were created for wophone.

This commit is contained in:
Walzer 2012-05-02 10:39:17 +08:00
parent 2223cbcd69
commit 2addd06f21
12 changed files with 0 additions and 61 deletions

View File

@ -54,11 +54,6 @@ void SimpleAudioEngine::end()
endJNI();
}
void SimpleAudioEngine::setResource(const char* pszZipFileName)
{
}
void SimpleAudioEngine::preloadBackgroundMusic(const char* pszFilePath)
{
preloadBackgroundMusicJNI(pszFilePath);

View File

@ -295,11 +295,6 @@ void SimpleAudioEngine::end()
}
}
void SimpleAudioEngine::setResource(const char* pszZipFileName)
{
}
void SimpleAudioEngine::preloadBackgroundMusic(const char* pszFilePath)
{
openMediaPlayer(s_pBackPlayer, pszFilePath);

View File

@ -52,12 +52,6 @@ public:
*/
static void end();
/**
@brief Set the zip file name
@param pszZipFileName The relative path of the .zip file
*/
static void setResource(const char* pszZipFileName);
/**
@brief Preload background music
@param pszFilePath The path of the background music file,or the FileName of T_SoundResInfo

View File

@ -172,11 +172,6 @@ void SimpleAudioEngine::end()
static_end();
}
void SimpleAudioEngine::setResource(const char* pszZipFileName)
{
}
void SimpleAudioEngine::preloadBackgroundMusic(const char* pszFilePath)
{
static_preloadBackgroundMusic(pszFilePath);

View File

@ -33,9 +33,6 @@ void SimpleAudioEngine::end() {
// return;
}
void SimpleAudioEngine::setResource(const char* pszZipFileName) {
}
//////////////////////////////////////////////////////////////////////////
// BackgroundMusic
//////////////////////////////////////////////////////////////////////////

View File

@ -95,11 +95,6 @@ namespace CocosDenshion
}
}
void SimpleAudioEngine::setResource(const char* pszZipFileName)
{
// todo
}
void SimpleAudioEngine::preloadBackgroundMusic(const char* pszFilePath)
{
s3eFile *fileHandle = s3eFileOpen(pszFilePath, "rb");

View File

@ -158,10 +158,6 @@ namespace CocosDenshion
stopBackground(true);
}
void SimpleAudioEngine::setResource(const char* pszZipFileName)
{
}
//
// OGG support
//

View File

@ -62,10 +62,6 @@ void SimpleAudioEngine::end()
return;
}
void SimpleAudioEngine::setResource(const char* pszZipFileName)
{
}
//////////////////////////////////////////////////////////////////////////
// BackgroundMusic
//////////////////////////////////////////////////////////////////////////

View File

@ -157,15 +157,6 @@ public:
static void setIsPopupNotify(bool bNotify);
static bool getIsPopupNotify();
///////////////////////////////////////////////////
// interfaces on wophone
///////////////////////////////////////////////////
/**
@brief Set the resource zip file name
@param pszZipFileName The relative path of the .zip file
*/
static void setResource(const char* pszZipFileName);
///////////////////////////////////////////////////
// interfaces on ios
///////////////////////////////////////////////////

View File

@ -118,11 +118,6 @@ unsigned char* CCFileUtils::getFileData(const char* pszFileName, const char* psz
return pData;
}
void CCFileUtils::setResource(const char* pszZipFileName)
{
CCAssert(0, "Have not implement!");
}
int CCFileUtils::ccLoadFileIntoMemory(const char *filename, unsigned char **out)
{
CCAssert(0, "Have not implement!");

View File

@ -475,10 +475,6 @@ unsigned char* CCFileUtils::getFileData(const char* pszFileName, const char* psz
}
return pBuffer;
}
void CCFileUtils::setResource(const char* pszZipFileName)
{
CCAssert(0, "Have not implement!");
}
// notification support when getFileData from a invalid file
static bool s_bPopupNotify = true;

View File

@ -193,12 +193,6 @@ unsigned char* CCFileUtils::getFileData(const char* pszFileName, const char* psz
return pBuffer;
}
void CCFileUtils::setResource(const char* pszZipFileName)
{
CC_UNUSED_PARAM(pszZipFileName);
CCAssert(0, "Have not implement!");
}
string CCFileUtils::getWriteablePath()
{
// return the path that the exe file saved in