bot: added support for loading from custom folders (ref #498)
This commit is contained in:
parent
835c9fc4ed
commit
a904f49231
7 changed files with 59 additions and 19 deletions
|
|
@ -807,8 +807,8 @@ bool Game::postload () {
|
|||
game.print (msg);
|
||||
});
|
||||
|
||||
auto ensureBotPathExists = [this] (StringRef dir1, StringRef dir2) {
|
||||
File::makePath (strings.joinPath (getRunningModName (), folders.addons, folders.bot, dir1, dir2).chars ());
|
||||
auto ensureBotPathExists = [] (StringRef dir1, StringRef dir2) {
|
||||
File::makePath (strings.joinPath (bstor.getRunningPath (), dir1, dir2).chars ());
|
||||
};
|
||||
|
||||
// ensure we're have all needed directories
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue