mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
In the help of making the new C++ standard a better one, we will now no longer rely on using parent class names in friend classes of a subclass.
svn-id: r50952
This commit is contained in:
parent
aa631a64dc
commit
bf17cc1053
@ -579,7 +579,7 @@ void GUI_LoK::setupSavegames(Menu &menu, int num) {
|
||||
for (int i = startSlot; i < num; ++i)
|
||||
menu.item[i].enabled = 0;
|
||||
|
||||
KyraEngine_v1::SaveHeader header;
|
||||
KyraEngine_LoK::SaveHeader header;
|
||||
for (int i = startSlot; i < num && uint(_savegameOffset + i) < _saveSlots.size(); i++) {
|
||||
if ((in = _vm->openSaveForReading(_vm->getSavegameFilename(_saveSlots[i + _savegameOffset]), header))) {
|
||||
Common::strlcpy(savenames[i], header.description.c_str(), ARRAYSIZE(savenames[0]));
|
||||
|
@ -2611,7 +2611,7 @@ void GUI_LoL::updateSavegameList() {
|
||||
if (_savegameListSize) {
|
||||
Common::sort(_saveSlots.begin(), _saveSlots.end(), Common::Greater<int>());
|
||||
|
||||
KyraEngine_v1::SaveHeader header;
|
||||
LoLEngine::SaveHeader header;
|
||||
Common::InSaveFile *in;
|
||||
|
||||
_savegameList = new char *[_savegameListSize];
|
||||
@ -2658,7 +2658,7 @@ int GUI_LoL::getInput() {
|
||||
if (_currentMenu == &_savenameMenu) {
|
||||
_vm->updateInput();
|
||||
|
||||
for (Common::List<KyraEngine_v1::Event>::const_iterator evt = _vm->_eventList.begin(); evt != _vm->_eventList.end(); ++evt) {
|
||||
for (Common::List<LoLEngine::Event>::const_iterator evt = _vm->_eventList.begin(); evt != _vm->_eventList.end(); ++evt) {
|
||||
if (evt->event.type == Common::EVENT_KEYDOWN)
|
||||
_keyPressed = evt->event.kbd;
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ void GUI_v2::setupSavegameNames(Menu &menu, int num) {
|
||||
if (_isSaveMenu && _savegameOffset == 0)
|
||||
startSlot = 1;
|
||||
|
||||
KyraEngine_v1::SaveHeader header;
|
||||
KyraEngine_v2::SaveHeader header;
|
||||
Common::InSaveFile *in;
|
||||
for (int i = startSlot; i < num && uint(_savegameOffset + i) < _saveSlots.size(); ++i) {
|
||||
if ((in = _vm->openSaveForReading(_vm->getSavegameFilename(_saveSlots[i + _savegameOffset]), header)) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user