mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
NDS: Fix link error in non-SCUMM builds by removing some dead & obsolete code
svn-id: r35129
This commit is contained in:
parent
d230b17a93
commit
38bb172b92
@ -33,13 +33,6 @@
|
||||
|
||||
#define ALLOW_CPU_SCALER
|
||||
|
||||
#ifdef DS_SCUMM_BUILD
|
||||
namespace Scumm {
|
||||
extern Common::StringList generateSavegameList(Scumm::ScummEngine *scumm, bool saveMode);
|
||||
extern Scumm::ScummEngine *g_scumm;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace DS {
|
||||
|
||||
DSOptionsDialog::DSOptionsDialog() : GUI::Dialog(0, 0, 320 - 10, 230 - 40) {
|
||||
@ -124,10 +117,6 @@ DSOptionsDialog::DSOptionsDialog() : GUI::Dialog(0, 0, 320 - 10, 230 - 40) {
|
||||
|
||||
|
||||
|
||||
#ifdef DS_SCUMM_BUILD
|
||||
_delDialog = new Scumm::SaveLoadChooser("Delete game:", "Delete", false, Scumm::g_scumm);
|
||||
#endif
|
||||
|
||||
if (ConfMan.hasKey("snaptoborder", "ds")) {
|
||||
_snapToBorderCheckbox->setState(ConfMan.getBool("snaptoborder", "ds"));
|
||||
} else {
|
||||
@ -393,35 +382,6 @@ void DSOptionsDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint
|
||||
updateConfigManager();
|
||||
close();
|
||||
}
|
||||
|
||||
#ifdef DS_SCUMM_BUILD
|
||||
/* if (cmd == 'dels') {
|
||||
_delDialog->setList(Scumm::generateSavegameList(Scumm::g_scumm, false));
|
||||
_delDialog->handleCommand(NULL, GUI::kListSelectionChangedCmd, 0);
|
||||
|
||||
Common::Event event;
|
||||
event.type = Common::EVENT_KEYDOWN;
|
||||
event.kbd.ascii = 0;
|
||||
event.kbd.keycode = Common::KEYCODE_DOWN;
|
||||
OSystem_DS::instance()->addEvent(event);
|
||||
|
||||
event.type = Common::EVENT_KEYUP;
|
||||
OSystem_DS::instance()->addEvent(event);
|
||||
|
||||
int idx = _delDialog->runModal();
|
||||
|
||||
if (idx >= 0) {
|
||||
char name[256];
|
||||
Scumm::g_scumm->makeSavegameName(name, idx, false);
|
||||
if (!DS::isGBAMPAvailable()) {
|
||||
((DSSaveFileManager *) (OSystem_DS::instance()->getSavefileManager()))->deleteFile(name);
|
||||
}
|
||||
}
|
||||
|
||||
}*/
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
void togglePause() {
|
||||
|
@ -71,10 +71,6 @@ protected:
|
||||
GUI::CheckboxWidget* _touchPadStyle;
|
||||
GUI::CheckboxWidget* _screenTaps;
|
||||
|
||||
#ifdef DS_SCUMM_BUILD
|
||||
Scumm::SaveLoadChooser* _delDialog;
|
||||
#endif
|
||||
|
||||
bool _radioButtonMode;
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user