LAB: Initial code to simplify translateFileName() and the save menu
This commit is contained in:
parent
4f0c63c0f8
commit
5ae4d3bf9e
2 changed files with 15 additions and 0 deletions
|
@ -28,12 +28,15 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common/config-manager.h"
|
||||||
#include "common/debug-channels.h"
|
#include "common/debug-channels.h"
|
||||||
#include "common/scummsys.h"
|
#include "common/scummsys.h"
|
||||||
#include "common/error.h"
|
#include "common/error.h"
|
||||||
#include "common/fs.h"
|
#include "common/fs.h"
|
||||||
#include "common/rect.h"
|
#include "common/rect.h"
|
||||||
|
|
||||||
|
#include "engines/dialogs.h"
|
||||||
|
#include "engines/engine.h"
|
||||||
#include "engines/util.h"
|
#include "engines/util.h"
|
||||||
|
|
||||||
#include "gui/message.h"
|
#include "gui/message.h"
|
||||||
|
@ -50,6 +53,12 @@ LabEngine *g_lab;
|
||||||
LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc)
|
LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc)
|
||||||
: Engine(syst), _gameDescription(gameDesc), _extraGameFeatures(0) {
|
: Engine(syst), _gameDescription(gameDesc), _extraGameFeatures(0) {
|
||||||
g_lab = this;
|
g_lab = this;
|
||||||
|
|
||||||
|
//const Common::FSNode gameDataDir(ConfMan.get("path"));
|
||||||
|
//SearchMan.addSubDirectoryMatching(gameDataDir, "game");
|
||||||
|
//SearchMan.addSubDirectoryMatching(gameDataDir, "game/pict");
|
||||||
|
//SearchMan.addSubDirectoryMatching(gameDataDir, "game/spict");
|
||||||
|
//SearchMan.addSubDirectoryMatching(gameDataDir, "music");
|
||||||
}
|
}
|
||||||
|
|
||||||
LabEngine::~LabEngine() {
|
LabEngine::~LabEngine() {
|
||||||
|
@ -108,4 +117,8 @@ Common::String LabEngine::generateSaveFileName(uint slot) {
|
||||||
return Common::String::format("%s.%03u", _targetName.c_str(), slot);
|
return Common::String::format("%s.%03u", _targetName.c_str(), slot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*void LabEngine::showMainMenu() {
|
||||||
|
|
||||||
|
}*/
|
||||||
|
|
||||||
} // End of namespace Lab
|
} // End of namespace Lab
|
||||||
|
|
|
@ -60,6 +60,8 @@ public:
|
||||||
bool hasFeature(EngineFeature f) const;
|
bool hasFeature(EngineFeature f) const;
|
||||||
Common::String generateSaveFileName(uint slot);
|
Common::String generateSaveFileName(uint slot);
|
||||||
|
|
||||||
|
//void showMainMenu();
|
||||||
|
|
||||||
LargeSet *_conditions, *_roomsFound;
|
LargeSet *_conditions, *_roomsFound;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue