~hristoast/openmw-validator

de50c0182233ec78a37e58b28d590bb3c6fd3f1e — Hristos N. Triantafillou 28 days ago b17a081
Equality is the right test for this
1 files changed, 1 insertions(+), 6 deletions(-)

M files.go
M files.go => files.go +1 -6
@@ 12,10 12,6 @@ type contentFile struct {
	order int
}

//TODO: plugin file validation is broken, it didn't notice when
//TODO: Ports Of Vvardenfell V1.6.ESP was configured and didn't exist.
//TODO: Clean_Ports Of Vvardenfell V1.6.ESP did exist.

// Represent a data file and the associated data path, "local path"
// (e.g. meshes/x/foo.nif), and the type of file it is (directory, file).
type dataFile struct {


@@ 64,9 60,8 @@ func checkContentFile(cf string, order int, gc *gameConfig) bool {
	// Verify that the content file exists...
	var exists bool
	for _, content := range gc.foundPlugins {
		if strings.HasSuffix(content, c) {
		if content == c {
			exists = true
			//TODO: Check if it already exists, register a replacement if so
			break
		}
	}