Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New syntax #29

Merged
merged 5 commits into from Jul 2, 2017

Conversation

@Sigma88
Copy link
Contributor

commented Jul 2, 2017

This is not complete yet, DO NOT MERGE THIS PULL REQUEST

So, this is the first attempt to define a better syntax.

For now I have changed how the paths to "Default" and "EnvMap" folders are defined

here you can find a simple mod example NewSyntaxMMTest.zip

how does the new syntax work:

Old Syntax

This 3 cfgs would have defined 6 custom folders to be considered as "Default" TR folders
No custom "EnvMap" folders were allowed

TextureReplacer
{
    paths = folder1/ folder2/
}
TextureReplacer
{
    paths = folder3/ folder4/ folder5/
}
TextureReplacer
{
    paths = folder6/
}

New Syntax

This 3 cfgs will define 6 custom folders to be considered as "Default" TRR folders
Custom "EnvMap" folders are now allowed (2 are added in this example)

TextureReplacer
{
    Folders
    {
        Default = folder1/
        Default = folder2/
        EnvMap = CustomEnvMap1/
    }
}
TextureReplacer
{
    Folders
    {
        Default = folder3/
        Default = folder4/
        Default = folder5/
    }
}
TextureReplacer
{
    Folders
    {
        Default = folder6/
        EnvMap = CustomEnvMap2/
    }
}

@HaArLiNsH HaArLiNsH merged commit 9680753 into HaArLiNsH:master Jul 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.