Mass renaming of selector-related functions, and removed some defines which were just cloaking functions with a different name
- GET_SEL32 -> readSelector - GET_SEL32V -> readSelectorValue - PUT_SEL32 -> writeSelector - PUT_SEL32V -> writeSelectorValue Also, changed some selector-related function names and variables to CamelCase svn-id: r49317
This commit is contained in:
parent
4ecacdad16
commit
67de5b1bd3
26 changed files with 466 additions and 473 deletions
|
@ -56,7 +56,7 @@ reg_t GameFeatures::getDetectionAddr(const Common::String &objName, Selector slc
|
|||
}
|
||||
|
||||
if (methodNum == -1) {
|
||||
if (lookup_selector(_segMan, objAddr, slc, NULL, &addr) != kSelectorMethod) {
|
||||
if (lookupSelector(_segMan, objAddr, slc, NULL, &addr) != kSelectorMethod) {
|
||||
warning("getDetectionAddr: target selector is not a method of object %s", objName.c_str());
|
||||
return NULL_REG;
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ SciVersion GameFeatures::detectSetCursorType() {
|
|||
}
|
||||
|
||||
// Now we check what the number variable holds in the handCursor object.
|
||||
uint16 number = GET_SEL32V(_segMan, objAddr, SELECTOR(number));
|
||||
uint16 number = readSelectorValue(_segMan, objAddr, SELECTOR(number));
|
||||
|
||||
// If the number is 0, it uses views and therefore the SCI1.1 kSetCursor semantics,
|
||||
// otherwise it uses the SCI0 early kSetCursor semantics.
|
||||
|
@ -346,7 +346,7 @@ SciVersion GameFeatures::detectGfxFunctionsType() {
|
|||
// The game has an overlay selector, check how it calls kDrawPicto determine
|
||||
// the graphics functions type used
|
||||
reg_t objAddr = _segMan->findObjectByName("Rm");
|
||||
if (lookup_selector(_segMan, objAddr, _kernel->_selectorCache.overlay, NULL, NULL) == kSelectorMethod) {
|
||||
if (lookupSelector(_segMan, objAddr, _kernel->_selectorCache.overlay, NULL, NULL) == kSelectorMethod) {
|
||||
if (!autoDetectGfxFunctionsType()) {
|
||||
warning("Graphics functions detection failed, taking an educated guess");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue