mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 17:45:39 +00:00
WINTERMUTE: Privatize members in AdSceneState
This commit is contained in:
parent
4985a89b36
commit
8f33a2ea0b
@ -1599,7 +1599,7 @@ AdSceneState *AdGame::getSceneState(const char *filename, bool saving) {
|
||||
}
|
||||
|
||||
for (uint32 i = 0; i < _sceneStates.size(); i++) {
|
||||
if (scumm_stricmp(_sceneStates[i]->_filename, filenameCor) == 0) {
|
||||
if (scumm_stricmp(_sceneStates[i]->getFilename(), filenameCor) == 0) {
|
||||
delete[] filenameCor;
|
||||
return _sceneStates[i];
|
||||
}
|
||||
|
@ -72,6 +72,9 @@ void AdSceneState::setFilename(const char *filename) {
|
||||
}
|
||||
}
|
||||
|
||||
const char *AdSceneState::getFilename() const {
|
||||
return _filename;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
AdNodeState *AdSceneState::getNodeState(const char *name, bool saving) {
|
||||
|
@ -39,9 +39,11 @@ class AdSceneState : public BaseClass {
|
||||
public:
|
||||
AdNodeState *getNodeState(const char *name, bool saving);
|
||||
void setFilename(const char *filename);
|
||||
const char *getFilename() const;
|
||||
DECLARE_PERSISTENT(AdSceneState, BaseClass)
|
||||
AdSceneState(BaseGame *inGame);
|
||||
virtual ~AdSceneState();
|
||||
private:
|
||||
char *_filename;
|
||||
BaseArray<AdNodeState *> _nodeStates;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user