mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-21 19:50:54 +00:00
Locate resources automatically if the map file is in a maps folder inside the resources folder
This commit is contained in:
parent
a6e4290431
commit
ea222f8ec2
1 changed files with 5 additions and 1 deletions
|
@ -57,6 +57,7 @@
|
||||||
|
|
||||||
#include "framework/zdray.h"
|
#include "framework/zdray.h"
|
||||||
#include "framework/filesystem.h"
|
#include "framework/filesystem.h"
|
||||||
|
#include "framework/file.h"
|
||||||
#include "wad/wad.h"
|
#include "wad/wad.h"
|
||||||
#include "level/level.h"
|
#include "level/level.h"
|
||||||
#include "commandline/getopt.h"
|
#include "commandline/getopt.h"
|
||||||
|
@ -234,7 +235,10 @@ int main(int argc, char **argv)
|
||||||
fixSame = true;
|
fixSame = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// fileSystem.AddFolderSource("C:\\Development\\VkDoom\\build\\RelWithDebInfo\\ElderJamReignited");
|
// Search for texture resources with the assumption that the map is in a maps folder and the textures folder is next to it.
|
||||||
|
// To do: allow specifying the path via commandline
|
||||||
|
FString inResourceFolder = FilePath::combine(FilePath::remove_last_component(InName), "..").c_str();
|
||||||
|
fileSystem.AddFolderSource(inResourceFolder);
|
||||||
|
|
||||||
{
|
{
|
||||||
FWadReader inwad(InName);
|
FWadReader inwad(InName);
|
||||||
|
|
Loading…
Reference in a new issue