mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
TEENAGENT: Migrate to using ConfMan singleton.
This commit is contained in:
parent
313502e2ee
commit
d7b3ca02fe
@ -1219,7 +1219,7 @@ uint Scene::messageDuration(const Common::String &str) {
|
||||
//total delay = total message length * delay / 8 + 60.
|
||||
uint total_width = str.size();
|
||||
|
||||
int speed = Common::ConfigManager::instance().getInt("talkspeed");
|
||||
int speed = ConfMan.getInt("talkspeed");
|
||||
if (speed < 0)
|
||||
speed = 60;
|
||||
uint delay_delta = 1 + (255 - speed) * 99 / 255;
|
||||
|
@ -535,7 +535,7 @@ Common::Error TeenAgentEngine::run() {
|
||||
setMusic(1);
|
||||
music->start();
|
||||
|
||||
int load_slot = Common::ConfigManager::instance().getInt("save_slot");
|
||||
int load_slot = ConfMan.getInt("save_slot");
|
||||
if (load_slot >= 0) {
|
||||
loadGameState(load_slot);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user