mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 11:51:52 +00:00
added getting translated text from msg
This commit is contained in:
parent
5021ccc1b7
commit
8694e346ac
@ -20,6 +20,7 @@
|
||||
#include "engine.h"
|
||||
#include "costume.h"
|
||||
#include "sound.h"
|
||||
#include "localize.h"
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include "driver_gl.h"
|
||||
@ -117,7 +118,8 @@ void Actor::sayLine(const char *msg) {
|
||||
return;
|
||||
if (talkSound_) // Only once line at a time, please :)
|
||||
shutUp();
|
||||
std::string msgId(msg + 1, secondSlash);
|
||||
std::string msgText = Localizer::instance()->localize(secondSlash + 1);
|
||||
std::string msgId(msg + 1, secondSlash);
|
||||
talkSound_ = ResourceLoader::instance()->loadSound((msgId + ".wav").c_str());
|
||||
if (talkSound_ != NULL)
|
||||
Mixer::instance()->playVoice(talkSound_);
|
||||
|
Loading…
Reference in New Issue
Block a user