mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 12:12:25 +01:00
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…
x
Reference in New Issue
Block a user