BrettMayson / HEMTT

Build System for Arma 3
https://brettmayson.github.io/HEMTT
GNU General Public License v2.0
109 stars 40 forks source link

Remove leading '_' sign on PBOs if prefix parameter is empty in JSON config. #71

Closed severgun closed 5 years ago

severgun commented 5 years ago

HEMTT Version: 0.5.1 (stable) Project: None

Description:

Remove leading '_' sign if prefix parameter is empty in JSON config. This will allow using HEMTT to build repo of mixed addons without prefexing each pbo.

Steps to reproduce:

jonpas commented 5 years ago

What's your prefix inside the PBO then? This doesn't look safe.

severgun commented 5 years ago

defined in $PBOPREFIX$ file

BrettMayson commented 5 years ago

This should at least be a warning, but no prefix seems unusual and isn't good practice. I don't think it shouldn't be allowed with HEMTT, but we should definitely yell at them.

severgun commented 5 years ago

May be you should not allow that and throw ERROR. Then I will use makefile+armake2 (even if makefile syntax was made by aliens for predators) Current silent behavior looks bad.

BrettMayson commented 5 years ago

I don't think it should be prohibited and result in an error. There is nothing about it that would cause it not to work, it is just highly unusual and bad practice.

I think an unsilenceable big warning basically saying "this is bad and you should really not be doing this! go to [link] to learn why and how to fix this error"