本文整理汇总了C++中scumm_stricmp函数的典型用法代码示例。如果您正苦于以下问题:C++ scumm_stricmp函数的具体用法?C++ scumm_stricmp怎么用?C++ scumm_stricmp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了scumm_stricmp函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: finishThreads
bool ScScript::finishThreads() {
for (uint32 i = 0; i < _engine->_scripts.size(); i++) {
ScScript *scr = _engine->_scripts[i];
if (scr->_thread && scr->_state != SCRIPT_FINISHED && scr->_owner == _owner && scumm_stricmp(scr->_filename, _filename) == 0) {
scr->finish(true);
}
}
return STATUS_OK;
}
开发者ID:jaeyeonkim,项目名称:scummvm-kor,代码行数:9,代码来源:script.cpp
示例2: getIndex
int Inventory::getIndex(char* name) {
uint i = 0;
for (i = 0; i < _inventory.size(); i++) {
if (!scumm_stricmp(_inventory[i]->name, name))
return i;
}
return UNKNOWN_OBJECT;
}
开发者ID:AdamRi,项目名称:scummvm-pink,代码行数:9,代码来源:actor.cpp
示例3: while
const PlainGameDescriptor *findPlainGameDescriptor(const char *gameid, const PlainGameDescriptor *list) {
const PlainGameDescriptor *g = list;
while (g->gameid) {
if (0 == scumm_stricmp(gameid, g->gameid))
return g;
g++;
}
return 0;
}
开发者ID:havlenapetr,项目名称:Scummvm,代码行数:9,代码来源:game.cpp
示例4: saveGame
bool SaveLoad_ns::saveGame() {
// NOTE: shouldn't this check be done before, so that the
// user can't even select 'save'?
if (!scumm_stricmp(_vm->_location._name, "caveau")) {
return false;
}
return SaveLoad::saveGame();
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:9,代码来源:saveload.cpp
示例5: debugC
bool ResourceManager::exist(const char *name) {
debugC(1, kCGEDebugFile, "ResourceManager::exist(%s)", name);
BtKeypack* result = find(name);
if (!result)
return false;
return scumm_stricmp(result->_key, name) == 0;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:9,代码来源:fileio.cpp
示例6: while
GameDescriptor Sword2MetaEngine::findGame(const char *gameid) const {
const Sword2::GameSettings *g = Sword2::sword2_settings;
while (g->gameid) {
if (0 == scumm_stricmp(gameid, g->gameid))
break;
g++;
}
return GameDescriptor(g->gameid, g->description);
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:9,代码来源:sword2.cpp
示例7: stripPath
SaveLoad_v4::SaveFile *SaveLoad_v4::getSaveFile(const char *fileName) {
fileName = stripPath(fileName);
for (int i = 0; i < ARRAYSIZE(_saveFiles); i++)
if (!scumm_stricmp(fileName, _saveFiles[i].sourceName))
return &_saveFiles[i];
return 0;
}
开发者ID:havlenapetr,项目名称:Scummvm,代码行数:9,代码来源:saveload_v4.cpp
示例8: filename
/*
Compare two filename (fileName1,fileName2).
If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp)
If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi
or strcasecmp)
If iCaseSenisivity = 0, case sensitivity is defaut of your operating system
(like 1 on Unix, 2 on Windows)
*/
int unzStringFileNameCompare(const char* fileName1, const char* fileName2, int iCaseSensitivity) {
if (iCaseSensitivity==0)
iCaseSensitivity=CASESENSITIVITYDEFAULTVALUE;
if (iCaseSensitivity==1)
return strcmp(fileName1,fileName2);
return scumm_stricmp(fileName1,fileName2);
}
开发者ID:havlenapetr,项目名称:Scummvm,代码行数:18,代码来源:unzip.cpp
示例9: assert
void ConfigFile::removeSection(const String §ion) {
assert(isValidName(section));
for (List<Section>::iterator i = _sections.begin(); i != _sections.end(); ++i) {
if (!scumm_stricmp(section.c_str(), i->name.c_str())) {
_sections.erase(i);
return;
}
}
}
开发者ID:iPodLinux-Community,项目名称:iScummVM,代码行数:9,代码来源:config-file.cpp
示例10: assert
bool ScummFile::openSubFile(const Common::String &filename) {
assert(isOpen());
// Disable the XOR encryption and reset any current subfile range
setEnc(0);
resetSubfile();
// Read in the filename table and look for the specified file
unsigned long file_off, file_len;
char file_name[0x20+1];
unsigned long i;
// Get the length of the data file to use for consistency checks
const uint32 data_file_len = size();
// Read offset and length to the file records */
const uint32 file_record_off = readUint32BE();
const uint32 file_record_len = readUint32BE();
// Do a quick check to make sure the offset and length are good
if (file_record_off + file_record_len > data_file_len) {
return false;
}
// Do a little consistancy check on file_record_length
if (file_record_len % 0x28) {
return false;
}
// Scan through the files
for (i = 0; i < file_record_len; i += 0x28) {
// read a file record
seek(file_record_off + i, SEEK_SET);
file_off = readUint32BE();
file_len = readUint32BE();
read(file_name, 0x20);
file_name[0x20] = 0;
assert(file_name[0]);
//debug(7, " extracting \'%s\'", file_name);
// Consistency check. make sure the file data is in the file
if (file_off + file_len > data_file_len) {
return false;
}
if (scumm_stricmp(file_name, filename.c_str()) == 0) {
// We got a match!
setSubfileRange(file_off, file_len);
return true;
}
}
return false;
}
开发者ID:St0rmcrow,项目名称:scummvm,代码行数:56,代码来源:file.cpp
示例11:
GameVar *GameVar::getSubVarByName(const char *name) {
GameVar *sv = 0;
if (_subVars != 0) {
sv = _subVars;
for (;sv && scumm_stricmp(sv->_varName, name); sv = sv->_nextVarObj)
;
}
return sv;
}
开发者ID:33d,项目名称:scummvm,代码行数:10,代码来源:stateloader.cpp
示例12: RemoveForce
HRESULT CPartEmitter::RemoveForce(char *Name) {
for (int i = 0; i < m_Forces.GetSize(); i++) {
if (scumm_stricmp(Name, m_Forces[i]->m_Name) == 0) {
delete m_Forces[i];
m_Forces.RemoveAt(i);
return S_OK;
}
}
return E_FAIL;
}
开发者ID:somaen,项目名称:Wintermute-git,代码行数:10,代码来源:PartEmitter.cpp
示例13: RemoveSprite
HRESULT CPartEmitter::RemoveSprite(char *Filename) {
for (int i = 0; i < m_Sprites.GetSize(); i++) {
if (scumm_stricmp(Filename, m_Sprites[i]) == 0) {
delete [] m_Sprites[i];
m_Sprites.RemoveAt(i);
return S_OK;
}
}
return E_FAIL;
}
开发者ID:somaen,项目名称:Wintermute-git,代码行数:10,代码来源:PartEmitter.cpp
示例14:
GameVar *GameVar::getSubVarByName(const Common::String &name) {
GameVar *sv = 0;
if (_subVars != 0) {
sv = _subVars;
for (;sv && scumm_stricmp(sv->_varName.c_str(), name.c_str()); sv = sv->_nextVarObj)
;
}
return sv;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:10,代码来源:stateloader.cpp
示例15: Engine
Sword2Engine::Sword2Engine(OSystem *syst) : Engine(syst) {
// Add default file directories
const Common::FSNode gameDataDir(ConfMan.get("path"));
SearchMan.addSubDirectoryMatching(gameDataDir, "clusters");
SearchMan.addSubDirectoryMatching(gameDataDir, "sword2");
SearchMan.addSubDirectoryMatching(gameDataDir, "video");
SearchMan.addSubDirectoryMatching(gameDataDir, "smacks");
if (!scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2demo") || !scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2psxdemo"))
_features = GF_DEMO;
else
_features = 0;
// Check if we are running PC or PSX version.
if (!scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2psx") || !scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2psxdemo"))
Sword2Engine::_platform = Common::kPlatformPSX;
else
Sword2Engine::_platform = Common::kPlatformPC;
_bootParam = ConfMan.getInt("boot_param");
_saveSlot = ConfMan.getInt("save_slot");
_memory = NULL;
_resman = NULL;
_sound = NULL;
_screen = NULL;
_mouse = NULL;
_logic = NULL;
_fontRenderer = NULL;
_debugger = NULL;
_keyboardEvent.pending = false;
_mouseEvent.pending = false;
_wantSfxDebug = false;
_gameCycle = 0;
_gameSpeed = 1;
_gmmLoadSlot = -1; // Used to manage GMM Loading
g_eventRec.registerRandomSource(_rnd, "sword2");
}
开发者ID:jweinberg,项目名称:scummvm,代码行数:43,代码来源:sword2.cpp
示例16: getRoomId
uint32 Database::getRoomId(const char *name) {
for (uint i = 0; i < _ages.size(); i++)
for (uint j = 0; j < _ages[i].rooms.size(); j++) {
if (!scumm_stricmp(_ages[i].rooms[j].name, name)) {
return _ages[i].rooms[j].id;
}
}
return 0;
}
开发者ID:Harrypoppins,项目名称:grim_mouse,代码行数:10,代码来源:database.cpp
示例17: getFontByUsage
const Font *FontManager::getFontByName(const Common::String &name) const {
for (int i = 0; builtinFontNames[i].name; i++)
if (!scumm_stricmp(name.c_str(), builtinFontNames[i].name))
return getFontByUsage(builtinFontNames[i].id);
Common::String lowercaseName = name;
lowercaseName.toLowercase();
if (!_fontMap.contains(lowercaseName))
return 0;
return _fontMap[lowercaseName];
}
开发者ID:Grimfan33,项目名称:residual,代码行数:11,代码来源:fontman.cpp
示例18: setGraphicsMode
bool OSystem::setGraphicsMode(const char *name) {
if (!name)
return false;
// Special case for the 'default' filter
if (!scumm_stricmp(name, "normal") || !scumm_stricmp(name, "default")) {
return setGraphicsMode(getDefaultGraphicsMode());
}
const GraphicsMode *gm = getSupportedGraphicsModes();
while (gm->name) {
if (!scumm_stricmp(gm->name, name)) {
return setGraphicsMode(gm->id);
}
gm++;
}
return false;
}
开发者ID:peres,项目名称:scummvm,代码行数:20,代码来源:system.cpp
示例19: Engine
TinselEngine::TinselEngine(OSystem *syst, const TinselGameDescription *gameDesc) :
Engine(syst), _gameDescription(gameDesc) {
_vm = this;
// Register debug flags
Common::addDebugChannel(kTinselDebugAnimations, "animations", "Animations debugging");
Common::addDebugChannel(kTinselDebugActions, "actions", "Actions debugging");
Common::addDebugChannel(kTinselDebugSound, "sound", "Sound debugging");
Common::addDebugChannel(kTinselDebugMusic, "music", "Music debugging");
// Setup mixer
_mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume"));
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume"));
// Add DW2 subfolder to search path in case user is running directly from the CDs
Common::File::addDefaultDirectory(_gameDataDir.getChild("dw2"));
// Add subfolders needed for psx versions of Discworld 1
if (TinselV1PSX)
SearchMan.addDirectory(_gameDataDir.getPath(), _gameDataDir, 0, 3, true);
const GameSettings *g;
const char *gameid = ConfMan.get("gameid").c_str();
for (g = tinselSettings; g->gameid; ++g)
if (!scumm_stricmp(g->gameid, gameid))
_gameId = g->id;
int cd_num = ConfMan.getInt("cdrom");
if (cd_num >= 0)
_system->openCD(cd_num);
int midiDriver = MidiDriver::detectMusicDriver(MDT_MIDI | MDT_ADLIB | MDT_PREFER_MIDI);
bool native_mt32 = ((midiDriver == MD_MT32) || ConfMan.getBool("native_mt32"));
//bool adlib = (midiDriver == MD_ADLIB);
_driver = MidiDriver::createMidi(midiDriver);
if (native_mt32)
_driver->property(MidiDriver::PROP_CHANNEL_MASK, 0x03FE);
_midiMusic = new MidiMusicPlayer(_driver);
_pcmMusic = new PCMMusicPlayer();
//_midiMusic->setNativeMT32(native_mt32);
//_midiMusic->setAdlib(adlib);
_musicVolume = ConfMan.getInt("music_volume");
_sound = new SoundManager(this);
_mousePos.x = 0;
_mousePos.y = 0;
_keyHandler = NULL;
_dosPlayerDir = 0;
}
开发者ID:havlenapetr,项目名称:Scummvm,代码行数:54,代码来源:tinsel.cpp
示例20: takeEnum
int CGEEngine::takeEnum(const char **tab, const char *text) {
const char **e;
if (text) {
for (e = tab; *e; e++) {
if (scumm_stricmp(text, *e) == 0) {
return e - tab;
}
}
}
return -1;
}
开发者ID:MaddTheSane,项目名称:scummvm,代码行数:11,代码来源:cge_main.cpp
注:本文中的scumm_stricmp函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论