mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
MOHAWK: Allow setting LB cursors by name
This commit is contained in:
parent
47e9a6ccdc
commit
559c278b09
@ -252,6 +252,17 @@ void LivingBooksCursorManager_v2::setCursor(uint16 id) {
|
||||
}
|
||||
}
|
||||
|
||||
void LivingBooksCursorManager_v2::setCursor(const Common::String &name) {
|
||||
if (!_sysArchive)
|
||||
return;
|
||||
|
||||
uint16 id = _sysArchive->findResourceID(ID_TCUR, name);
|
||||
if (id == 0xffff)
|
||||
error("Could not find cursor '%s'", name.c_str());
|
||||
else
|
||||
setCursor(id);
|
||||
}
|
||||
|
||||
PECursorManager::PECursorManager(const Common::String &appName) {
|
||||
_exe = new Common::PEResources();
|
||||
|
||||
|
@ -56,6 +56,7 @@ public:
|
||||
virtual void showCursor();
|
||||
virtual void hideCursor();
|
||||
virtual void setCursor(uint16 id);
|
||||
virtual void setCursor(const Common::String &name) {}
|
||||
virtual void setDefaultCursor();
|
||||
virtual bool hasSource() const { return false; }
|
||||
|
||||
@ -157,6 +158,7 @@ public:
|
||||
~LivingBooksCursorManager_v2();
|
||||
|
||||
void setCursor(uint16 id);
|
||||
void setCursor(const Common::String &name);
|
||||
bool hasSource() const { return _sysArchive != 0; }
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user