added ability to reference sound and videos in lua using variables: {TECHTREEPATH}, {SCENARIOPATH}, {TUTORIALPATH} example:
playStreamingSound('{SCENARIOPATH}/music/myambient.ogg')
This commit is contained in:
parent
72480bc576
commit
43d533aec3
|
@ -58,8 +58,8 @@ Checksum Scenario::load(const string &path) {
|
|||
|
||||
//Properties::setTechtreePath();
|
||||
|
||||
//printf("path [%s]\n",path.c_str());
|
||||
string scenarioFolder = cutLastFile(formatPath(path));
|
||||
scenarioFolder = cutLastFile(scenarioFolder);
|
||||
endPathWithSlash(scenarioFolder);
|
||||
|
||||
if(isTutorial == false) {
|
||||
|
|
Loading…
Reference in New Issue