~hristoast/openmw-validator

9410c95b8afd4797bc94db5c36e455ddaa80bcd8 — Hristos N. Triantafillou 28 days ago de50c01
A better way, I think
1 files changed, 8 insertions(+), 7 deletions(-)

M files.go
M files.go => files.go +8 -7
@@ 66,13 66,7 @@ func checkContentFile(cf string, order int, gc *gameConfig) bool {
		}
	}

	if !exists {
		if !gc.runCfg.quiet {
			log.Printf("The content file \"%s\" doesn't exist in any configured data path!", c)
		}
		gc.bunkContent = append(gc.bunkContent, c)
		return false
	} else {
	if exists {
		gc.contentFiles = append(gc.contentFiles, &contentFile{
			file: &dataFile{
				dDir:      &dataDir{},


@@ 80,6 74,13 @@ func checkContentFile(cf string, order int, gc *gameConfig) bool {
			},
			order: 0,
		})

	} else {
		if !gc.runCfg.quiet {
			log.Printf("The content file \"%s\" doesn't exist in any configured data path!", c)
		}
		gc.bunkContent = append(gc.bunkContent, c)
		return false
	}
	return true
}