本文整理汇总了C++中MFStr函数的典型用法代码示例。如果您正苦于以下问题:C++ MFStr函数的具体用法?C++ MFStr怎么用?C++ MFStr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了MFStr函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: MFModel_DeinitModule
void MFModel_DeinitModule()
{
// list all non-freed textures...
MFModelPool::Iterator pI = gModelBank.First();
bool bShowHeader = true;
while(pI)
{
if(bShowHeader)
{
bShowHeader = false;
MFDebug_Message("\nUn-freed models:\n----------------------------------------------------------");
}
MFDebug_Message(MFStr("'%s' - x%d", (*pI)->pName, (*pI)->refCount));
// Destroy template...
pI = gModelBank.Next(pI);
}
MFModel_DeinitModulePlatformSpecific();
gModelBank.Deinit();
}
开发者ID:RemedyGameJam,项目名称:fuji,代码行数:25,代码来源:MFModel.cpp
示例2: MFFileSystem_Open
int F3DFile::ReadOBJ(const char *pFilename)
{
pModel = this;
MFFile *pFile = MFFileSystem_Open(pFilename, MFOF_Read);
if(!pFile)
{
MFDebug_Warn(2, MFStr("Failed to open OBJ file %s", pFilename));
return 1;
}
int size = MFFile_Seek(pFile, 0, MFSeek_End);
MFFile_Seek(pFile, 0, MFSeek_Begin);
char *pMem = (char*)MFHeap_Alloc(size+1);
MFFile_Read(pFile, pMem, size);
pMem[size] = 0;
MFFile_Close(pFile);
ParseOBJFile(pMem);
MFHeap_Free(pMem);
return 0;
}
开发者ID:RemedyGameJam,项目名称:fuji,代码行数:25,代码来源:ReadOBJ.cpp
示例3: MFSound_Unlock
MF_API void MFSound_Unlock(MFSound *pSound)
{
MFDebug_Assert(pSound->flags & MFPF_Locked, MFStr("Dynamic sound '%s' is not locked.", pSound->name));
if(pSound->pInternal->p3DBuffer)
{
// copy new data into 3d buffer...
VOID *pBuffer, *pB2;
DWORD bufferLen, l2;
pSound->pInternal->p3DBuffer->Lock(pSound->lockOffset, pSound->lockBytes, &pBuffer, &bufferLen, &pB2, &l2, pSound->lockBytes == 0 ? DSBLOCK_ENTIREBUFFER : 0);
MFCopyMemory(pBuffer, pSound->pLock1, pSound->lockSize1);
if(pB2)
MFCopyMemory(pB2, pSound->pLock2, pSound->lockSize2);
pSound->pInternal->p3DBuffer->Unlock(pBuffer, bufferLen, pB2, l2);
}
// and unlock the main buffer
pSound->pInternal->pBuffer->Unlock(pSound->pLock1, pSound->lockSize1, pSound->pLock2, pSound->lockSize2);
pSound->pLock1 = NULL;
pSound->lockSize1 = 0;
pSound->pLock2 = NULL;
pSound->lockSize2 = 0;
pSound->flags = pSound->flags & ~MFPF_Locked;
}
开发者ID:jacob-carlborg,项目名称:fuji,代码行数:27,代码来源:MFSound_PC.cpp
示例4: GetNextToken
const char *ParseAnimationSet(const char *pText)
{
const char *pName = GetNextToken(pText, &pText);
if(MFString_Compare(pName, "{"))
SkipToken(pText, "{");
const char *pTok = GetNextToken(pText, &pText);
while(MFString_Compare(pTok, "}"))
{
if(!MFString_Compare(pTok, "Animation"))
{
pText = ParseAnimation(pText);
}
else
{
MFDebug_Warn(4, MFStr("Unexpected token '%s'\n", pTok));
SkipSection(pText);
}
pTok = GetNextToken(pText, &pText);
}
return pText;
}
开发者ID:RemedyGameJam,项目名称:fuji,代码行数:26,代码来源:ReadX.cpp
示例5: MissingStates
static void MissingStates(MFStateBlockConstantType type, uint32 missing)
{
static const char * const sStateType[MFSB_CT_TypeCount] =
{
"Bool",
"Vector",
"Matrix",
"RenderState",
"Texture",
"Misc",
"",
"Unknown"
};
MFString states;
for(int a=0; a<32; ++a)
{
if(missing & (1<<a))
{
if(!states.IsNull())
states += ", ";
states += MFStateBlock_GetRenderStateName(type, a);
}
}
MFDebug_Assert(missing == 0, MFStr("Missing %s states: %s", sStateType[type], states.CStr()));
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:27,代码来源:MFRenderer.cpp
示例6: CopyTrackData
void CopyTrackData()
{
gpListBox->Show(MFTranslation_GetString(pStrings, COPY_TRACK_DATA), CopyDataCallback);
int difficulty = gTargetTrack / GHS_NumTracks;
int track = gTargetTrack % GHS_NumTracks;
const char *pTargetTrack = MFStr("%s - %s", gEditor.pSong->GetDifficultyName(difficulty), gEditor.pSong->GetTrackName(track));
gpListBox->AddItem(MFStr("%s: %s", MFTranslation_GetString(pStrings, TARGET_TRACK), pTargetTrack));
const char *pYes = MFTranslation_GetString(pStrings, MENU_YES);
const char *pNo = MFTranslation_GetString(pStrings, MENU_NO);
gpListBox->AddItem(MFStr("%s: %s", MFTranslation_GetString(pStrings, COPY_NOTES), gbNotes ? pYes : pNo));
gpListBox->AddItem(MFStr("%s: %s", MFTranslation_GetString(pStrings, COPY_SPECIALS), gbSpecials ? pYes : pNo));
gpListBox->AddItem(MFStr("%s: %s", MFTranslation_GetString(pStrings, COPY_EVENTS), gbEvents ? pYes : pNo));
gpListBox->AddItem(MFTranslation_GetString(pStrings, MENU_COPY));
}
开发者ID:KingDwag,项目名称:feedback-editor,代码行数:17,代码来源:OldEditor.cpp
示例7: MFFile_HomePath
MF_API const char* MFFile_HomePath(const char *pFilename)
{
MFCALLSTACK;
pFilename = pFilename ? pFilename : "";
#if defined(MF_XBOX)
return MFStr("E:\\Home\\%s", pFilename);
#elif defined(_LINUX)
return MFStr("~/%s", pFilename);
#elif defined(MF_IPHONE)
const char *GetUserHome();
return MFStr("%s/%s", GetUserHome(), pFilename);
#else
return MFStr("Home/%s", pFilename);
#endif
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:17,代码来源:MFFileSystem.cpp
示例8: DebugMenu_AddItemTo
MF_API void DebugMenu_AddItemTo(const char *name, Menu *pParent, MenuObject *pObject, DebugCallback callback, void *userData)
{
MFDebug_Assert(pParent, "Invalid parent menu.");
MFDebug_Assert(pParent->type == MenuType_Menu, MFStr("Cant add menu '%s', Parent is not of Menu type.", name));
MFDebug_Assert(MFString_Length(name) < 64, "Max of 64 characters in Menu Name.");
MFDebug_Assert(pParent->numChildren < MENU_MAX_CHILDREN, MFStr("Maximum number of items in menu: '%s'", pParent->name));
MFString_Copy(pObject->name, name);
pObject->pParent = pParent;
pObject->menuDepth = pParent->menuDepth+1;
pObject->pCallback = callback;
pObject->pUserData = userData;
pParent->pChildren[pParent->numChildren] = pObject;
++pParent->numChildren;
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:18,代码来源:DebugMenu.cpp
示例9: MFMaterial_DeinitModule
void MFMaterial_DeinitModule()
{
MFCALLSTACK;
// destroy stock materials
MFMaterial_Release(pNoneMaterial);
MFMaterial_Release(pWhiteMaterial);
MFMaterial_Release(pSysLogoLarge);
MFMaterial_Release(pSysLogoSmall);
#if defined(_PSP)
// destroy PSP specific stock materials
MFMaterial_Release(pConnected);
MFMaterial_Release(pDisconnected);
MFMaterial_Release(pPower);
MFMaterial_Release(pCharging);
MFMaterial_Release(pUSB);
#endif
MaterialDefinition *pDef = pDefinitionRegistry;
while(pDef)
{
MaterialDefinition *pNext = pDef->pNextDefinition;
MFMaterial_DestroyDefinition(pDef);
pDef = pNext;
}
bool bShowHeader = true;
// list all non-freed materials...
MFResourceIterator *pI = MFResource_EnumerateFirst(MFRT_Material);
while(pI)
{
if(bShowHeader)
{
bShowHeader = false;
MFDebug_Message("\nUn-freed materials:\n----------------------------------------------------------");
}
MFMaterial *pMat = (MFMaterial*)MFResource_Get(pI);
MFDebug_Message(MFStr("'%s' - x%d", pMat->pName, pMat->refCount));
pMat->refCount = 1;
MFMaterial_Release(pMat);
pI = MFResource_EnumerateNext(pI, MFRT_Material);
}
MFMaterial_UnregisterMaterialType("Standard");
MFMaterial_UnregisterMaterialType("Effect");
gMaterialDefList.Deinit();
gMaterialRegistry.Deinit();
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:56,代码来源:MFMaterial.cpp
示例10: OnDeviceAdded
virtual HRESULT STDMETHODCALLTYPE OnDeviceAdded(LPCWSTR pwstrDeviceId)
{
MFDebug_Log(2, MFStr("WASAPI: Device added: %S", pwstrDeviceId));
char temp[128];
MFString_CopyUTF16ToUTF8(temp, pwstrDeviceId);
MFDevice *pDev = MFDevice_GetDeviceById(temp);
if(!pDev)
pDev = NewDevice(pwstrDeviceId);
return S_OK;
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:10,代码来源:MFSound_WASAPI.cpp
示例11: MFFileSystem_RegisterFileSystem
MFFileSystemHandle MFFileSystem_RegisterFileSystem(const char *pFilesystemName, MFFileSystemCallbacks *pCallbacks)
{
MFDebug_Log(5, MFStr("Call: MFFileSystem_RegisterFileSystem(\"%s\")", pFilesystemName));
GET_MODULE_DATA(MFFileSystemState);
for(uint32 a=0; a<gDefaults.filesys.maxFileSystems; a++)
{
if(pModuleData->ppFileSystemList[a] == NULL)
{
MFDebug_Assert(pCallbacks->Open, "No Open function supplied.");
MFDebug_Assert(pCallbacks->Close, "No Close function supplied.");
MFDebug_Assert(pCallbacks->Read, "No Read function supplied.");
MFDebug_Assert(pCallbacks->Write, "No Write function supplied.");
MFDebug_Assert(pCallbacks->Seek, "No Seek function supplied.");
MFFileSystem *pFS = pModuleData->gFileSystems.Create();
MFZeroMemory(pFS, sizeof(MFFileSystem));
MFString_Copy(pFS->name, pFilesystemName);
MFCopyMemory(&pFS->callbacks, pCallbacks, sizeof(MFFileSystemCallbacks));
pModuleData->ppFileSystemList[a] = pFS;
#if defined(USE_JOB_THREAD)
pFS->ppJobQueue = (MFJob**)MFHeap_Alloc(sizeof(MFJob*)*MAX_JOBS);
pFS->jobs.Init(MFStr("%s Job List", pFilesystemName), MAX_JOBS+2);
pFS->readJob = 0;
pFS->writeJob = 0;
pFS->numJobs = MAX_JOBS;
pFS->semaphore = MFThread_CreateSemaphore("Filesystem Semaphore", MAX_JOBS, 0);
pFS->thread = MFThread_CreateThread(MFStr("%s Thread", pFilesystemName), MKFileJobThread, pFS, MFPriority_AboveNormal);
#endif
if(pFS->callbacks.RegisterFS)
pFS->callbacks.RegisterFS();
return a;
}
}
MFDebug_Assert(false, MFStr("Exceeded maximum of %d Filesystems. Modify 'gDefaults.filesys.maxFileSystems'.", gDefaults.filesys.maxFileSystems));
return -1;
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:43,代码来源:MFFileSystem.cpp
示例12: MFMaterial_DeinitModule
void MFMaterial_DeinitModule()
{
MFCALLSTACK;
// destroy stock materials
MFMaterial_Destroy(pNoneMaterial);
MFMaterial_Destroy(pWhiteMaterial);
MFMaterial_Destroy(pSysLogoLarge);
MFMaterial_Destroy(pSysLogoSmall);
#if defined(_PSP)
// destroy PSP specific stock materials
MFMaterial_Destroy(pConnected);
MFMaterial_Destroy(pDisconnected);
MFMaterial_Destroy(pPower);
MFMaterial_Destroy(pCharging);
MFMaterial_Destroy(pUSB);
#endif
MaterialDefinition *pDef = pDefinitionRegistry;
while(pDef)
{
MaterialDefinition *pNext = pDef->pNextDefinition;
MFMaterial_DestroyDefinition(pDef);
pDef = pNext;
}
// list all non-freed materials...
MFMaterial **ppI = gMaterialList.Begin();
bool bShowHeader = true;
while(*ppI)
{
if(bShowHeader)
{
bShowHeader = false;
MFDebug_Message("\nUn-freed materials:\n----------------------------------------------------------");
}
MFDebug_Message(MFStr("'%s' - x%d", (*ppI)->pName, (*ppI)->refCount));
(*ppI)->refCount = 1;
MFMaterial_Destroy(*ppI);
ppI++;
}
MFMaterial_UnregisterMaterialType("Standard");
MFMaterial_UnregisterMaterialType("Effect");
gMaterialList.Deinit();
gMaterialDefList.Deinit();
gMaterialRegistry.Deinit();
}
开发者ID:RemedyGameJam,项目名称:fuji,代码行数:55,代码来源:MFMaterial.cpp
示例13: MFSound_InitModulePlatformSpecific
void MFSound_InitModulePlatformSpecific(int *pSoundDataSize, int *pVoiceDataSize)
{
MFCALLSTACK;
// we need to return the size of the internal structures so the platform independant
// code can make the correct allocations..
*pSoundDataSize = sizeof(MFSoundDataInternal);
MFDebug_Log(2, "Initialising PortAudio driver.");
// init portaudio
Pa_Initialize();
// choose the output device
PaDeviceIndex device = Pa_GetDefaultOutputDevice();
// HACK: try and find an ALSA device (default OSS sucks)
PaHostApiIndex alsaAPI = Pa_HostApiTypeIdToHostApiIndex(paALSA);
if(alsaAPI >= 0)
{
int numDevices = Pa_GetDeviceCount();
for(int a=0; a<numDevices; ++a)
{
pDeviceInfo = Pa_GetDeviceInfo(a);
if(pDeviceInfo->hostApi == alsaAPI)
{
device = a;
break;
}
}
}
pDeviceInfo = Pa_GetDeviceInfo(device);
pHostAPIInfo = Pa_GetHostApiInfo(pDeviceInfo->hostApi);
MFDebug_Log(2, MFStr("PortAudio output: %s", pDeviceInfo->name));
MFDebug_Log(2, MFStr("PortAudio host: %s", pHostAPIInfo->name));
MFDebug_Log(2, MFStr("Sample rate: %g", (float)pDeviceInfo->defaultSampleRate));
MFDebug_Log(2, MFStr("In/Out channels: %d/%d", pDeviceInfo->maxInputChannels, pDeviceInfo->maxOutputChannels));
MFDebug_Log(2, MFStr("Input latency: %g-%g", (float)pDeviceInfo->defaultLowInputLatency, (float)pDeviceInfo->defaultHighInputLatency));
MFDebug_Log(2, MFStr("Output latency: %g-%g", (float)pDeviceInfo->defaultLowOutputLatency, (float)pDeviceInfo->defaultHighOutputLatency));
// create a very low latency audio output stream
PaStreamParameters params;
params.device = Pa_GetDefaultOutputDevice();
params.channelCount = 2;
params.sampleFormat = paInt16;
params.suggestedLatency = 0.0167;
params.hostApiSpecificStreamInfo = NULL;
PaError error = Pa_OpenStream(&pPAStream, NULL, ¶ms, pDeviceInfo->defaultSampleRate, paFramesPerBufferUnspecified, paPrimeOutputBuffersUsingStreamCallback, MFSound_MixCallback, NULL);
if(error != paNoError)
MFDebug_Log(2, MFStr("Error: %s", Pa_GetErrorText(error)));
else
Pa_StartStream(pPAStream);
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:57,代码来源:MFSound_Port.cpp
示例14: alcOpenDevice
static Context *CreateContext(MFDevice *pDevice)
{
AudioDevice &device = *(AudioDevice*)pDevice->pInternal;
if(!device.pDevice)
device.pDevice = alcOpenDevice(pDevice->strings[MFDS_ID]);
if(!device.pDevice)
return NULL;
Context *pContext = (Context*)MFHeap_Alloc(sizeof(Context));
pContext->pContext = alcCreateContext(device.pDevice, NULL);
pContext->pDevice = pDevice;
pContext->pRender = &device;
Context *pOld = MakeCurrent(pContext);
const char *pVersion = alGetString(AL_VERSION);
const char *pExtensions = alGetString(AL_EXTENSIONS);
MFDebug_Log(0, MFStr("OpenAL Version: %s", pVersion));
MFDebug_Log(0, MFStr("OpenAL Extensions: %s", pExtensions));
pContext->ext.static_buffer = alIsExtensionPresent("ALC_EXT_STATIC_BUFFER") == AL_TRUE;
pContext->ext.offset = alIsExtensionPresent("AL_EXT_OFFSET") == AL_TRUE;
pContext->ext.float32 = alIsExtensionPresent("AL_EXT_float32") == AL_TRUE;
pContext->ext.source_radius = alIsExtensionPresent("AL_EXT_SOURCE_RADIUS") == AL_TRUE;
pContext->ext.buffer_sub_data = alIsExtensionPresent("AL_SOFT_buffer_sub_data") == AL_TRUE;
pContext->ext.buffer_samples = alIsExtensionPresent("AL_SOFT_buffer_samples") == AL_TRUE;
if(pContext->ext.static_buffer)
alBufferDataStatic = (PFNALBUFFERDATASTATICPROC)alGetProcAddress("alBufferDataStatic");
if(pContext->ext.buffer_sub_data)
alBufferSubDataSOFT = (PFNALBUFFERSUBDATASOFTPROC)alGetProcAddress("alBufferSubDataSOFT");
alListener3f(AL_POSITION, 0, 0, 0);
alListener3f(AL_VELOCITY, 0, 0, 0);
alListener3f(AL_ORIENTATION, 0, 0, -1);
MakeCurrent(pOld);
return pContext;
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:41,代码来源:MFSound_OpenAL.cpp
示例15: MFFileNative_FindFirst
bool MFFileNative_FindFirst(MFFind *pFind, const char *pSearchPattern, MFFindData *pFindData)
{
// separate path and search pattern..
char *pPath = (char*)MFStr("%s%s", (char*)pFind->pMount->pFilesysData, pSearchPattern);
const char *pPattern = pPath;
char *pLast = MFString_RChr(pPath, '/');
if(pLast)
{
*pLast = 0;
pPattern = pLast + 1;
}
else
{
// find pattern refers to current directory..
pPath = (char*)".";
}
// open the directory
DIR *hFind = opendir(pPath);
if(!hFind)
{
MFDebug_Warn(2, MFStr("Couldnt open directory '%s' with search pattern '%s'", pPath, pPattern));
return false;
}
MFString_CopyCat(pFindData->pSystemPath, (char*)pFind->pMount->pFilesysData, pSearchPattern);
pLast = MFString_RChr(pFindData->pSystemPath, '/');
if(pLast)
pLast[1] = 0;
else
pFindData->pSystemPath[0] = 0;
pFind->pFilesystemData = (void*)hFind;
bool bFound = MFFileNative_FindNext(pFind, pFindData);
if(!bFound)
MFFileNative_FindClose(pFind);
return bFound;
}
开发者ID:FujiGameJam,项目名称:fuji,代码行数:41,代码来源:MFFileSystemNative_Linux.cpp
示例16: OnDeviceStateChanged
virtual HRESULT STDMETHODCALLTYPE OnDeviceStateChanged(LPCWSTR pwstrDeviceId, DWORD dwNewState)
{
MFDebug_Log(2, MFStr("WASAPI: State changed: %d (%S)", dwNewState, pwstrDeviceId));
char temp[128];
MFString_CopyUTF16ToUTF8(temp, pwstrDeviceId);
MFDevice *pDev = MFDevice_GetDeviceById(temp);
if(!pDev)
pDev = NewDevice(pwstrDeviceId);
if(pDev)
UpdateState(pDev, dwNewState);
return S_OK;
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:12,代码来源:MFSound_WASAPI.cpp
示例17: OnDefaultDeviceChanged
virtual HRESULT STDMETHODCALLTYPE OnDefaultDeviceChanged(EDataFlow flow, ERole role, LPCWSTR pwstrDefaultDeviceId)
{
MFDebug_Log(2, MFStr("WASAPI: Default device changed: %S", pwstrDefaultDeviceId));
char temp[128];
MFString_CopyUTF16ToUTF8(temp, pwstrDefaultDeviceId);
MFDevice *pDev = MFDevice_GetDeviceById(temp);
if(!pDev)
pDev = NewDevice(pwstrDefaultDeviceId);
if(pDev)
MFDevice_SetDefaultDevice(gDt[flow], gDef[role], pDev);
return S_OK;
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:12,代码来源:MFSound_WASAPI.cpp
示例18: OnDeviceRemoved
virtual HRESULT STDMETHODCALLTYPE OnDeviceRemoved(LPCWSTR pwstrDeviceId)
{
MFDebug_Log(2, MFStr("WASAPI: Device removed: %S", pwstrDeviceId));
char temp[128];
MFString_CopyUTF16ToUTF8(temp, pwstrDeviceId);
MFDevice *pDev = MFDevice_GetDeviceById(temp);
if(!pDev)
pDev = NewDevice(pwstrDeviceId);
if(pDev)
UpdateState(pDev, DEVICE_STATE_UNPLUGGED);
return S_OK;
}
开发者ID:TurkeyMan,项目名称:fuji,代码行数:12,代码来源:MFSound_WASAPI.cpp
示例19: MFFileNative_Open
int MFFileNative_Open(MFFile *pFile, MFOpenData *pOpenData)
{
MFCALLSTACK;
MFDebug_Assert(pOpenData->cbSize == sizeof(MFOpenDataNative), "Incorrect size for MFOpenDataNative structure. Invalid pOpenData.");
MFOpenDataNative *pNative = (MFOpenDataNative*)pOpenData;
int access = ((pOpenData->openFlags&MFOF_Read) ? PSP_O_RDONLY : NULL) | ((pOpenData->openFlags&MFOF_Write) ? PSP_O_WRONLY|PSP_O_CREAT|PSP_O_TRUNC : NULL);
MFDebug_Assert(access, "Neither MFOF_Read nor MFOF_Write specified.");
const char *pFilename = MFStr("%s/%s", gPSPSystemPath, pNative->pFilename);
SceUID hFile = sceIoOpen(pFilename, access, 0777);
if(hFile < 0)
{
MFDebug_Warn(4, MFStr("File does not exist: '%s'", pFilename));
return -1;
}
pFile->pFilesysData = (void*)hFile;
pFile->createFlags = pOpenData->openFlags;
pFile->offset = 0;
// find file length
SceOff fileSize = sceIoLseek(hFile, 0, SEEK_END);
// TODO: something's very wrong with this line! :/
// MFDebug_Assert(fileSize < 2147483648LL, MFStr("Error opening file '%s', Fuji does not support files larger than 2,147,483,647 bytes.", pFilename));
pFile->length = (int64)fileSize;
// return to start of file
sceIoLseek32(hFile, 0, SEEK_SET);
#if defined(_DEBUG)
MFString_Copy(pFile->fileIdentifier, pFilename);
#endif
return 0;
}
开发者ID:RemedyGameJam,项目名称:fuji,代码行数:39,代码来源:MFFileSystemNative_PSP.cpp
示例20: ShowPopupMenu
void ShowPopupMenu()
{
#if defined(MF_PSP)
float w = 300.f;
#else
float w = 200.f;
#endif
gpListBox->Show(MFTranslation_GetString(pStrings, MENU_QUICK_MENU), QuickMenuCallback, w, 198.0f);
gpListBox->AddItem(MFStr("%s %s", MFTranslation_GetString(pStrings, bMetronome ? MENU_DISABLE : MENU_ENABLE), MFTranslation_GetString(pStrings, MENU_METRONOME)));
gpListBox->AddItem(MFStr("%s %s", MFTranslation_GetString(pStrings, bClaps ? MENU_DISABLE : MENU_ENABLE), MFTranslation_GetString(pStrings, MENU_CLAPS)));
gpListBox->AddItem(MFTranslation_GetString(pStrings, MENU_PLACE_EVENT));
gpListBox->AddItem(MFTranslation_GetString(pStrings, MENU_PLACE_TRACK_EVENT));
gpListBox->AddItem(MFTranslation_GetString(pStrings, MENU_PLACE_SECTION));
gpListBox->AddItem(MFTranslation_GetString(pStrings, MENU_SELECT_DIFFICULTY));
gpListBox->AddItem(MFTranslation_GetString(pStrings, SELECT_TRACK));
gpListBox->AddItem(MFTranslation_GetString(pStrings, SHOW_REFERENCE));
gpListBox->AddItem(MFTranslation_GetString(pStrings, MENU_COPY_CHART));
gpListBox->AddItem(MFTranslation_GetString(pStrings, MENU_CHART_SETTINGS));
gpListBox->AddItem(MFTranslation_GetString(pStrings, MENU_VOLUME));
gpListBox->AddItem(MFTranslation_GetString(pStrings, MENU_MAIN_MENU));
gpListBox->AddItem(MFTranslation_GetString(pStrings, MENU_HELP));
}
开发者ID:KingDwag,项目名称:feedback-editor,代码行数:22,代码来源:OldEditor.cpp
注:本文中的MFStr函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论