diff options
| author | San Jacobs | 2025-12-21 08:30:16 +0100 |
|---|---|---|
| committer | San Jacobs | 2025-12-21 08:30:16 +0100 |
| commit | 593ae691f6f1dd077f13e5bac225a9255a254514 (patch) | |
| tree | 3216ab05ff569a8d69214688f2221714c0e666db /src/main.odin | |
| parent | b9aa6214ec795ddf07542ba5490396f54f3c7dbb (diff) | |
| download | better-report-593ae691f6f1dd077f13e5bac225a9255a254514.tar.gz better-report-593ae691f6f1dd077f13e5bac225a9255a254514.tar.bz2 better-report-593ae691f6f1dd077f13e5bac225a9255a254514.zip | |
Diffstat (limited to 'src/main.odin')
| -rw-r--r-- | src/main.odin | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main.odin b/src/main.odin index fe9aaa1..baf12d2 100644 --- a/src/main.odin +++ b/src/main.odin @@ -22,7 +22,7 @@ when ODIN_OS == .Windows { SEPARATOR :: "/" } -VERSION :: "1.6" +VERSION :: "1.7" BRANDING : Brand = .NONE @@ -143,6 +143,19 @@ main :: proc() { if os.is_file(exe_local_fields_file) { header_fields_file = exe_local_fields_file + + info_txt, info_txt_ok := os.read_entire_file(header_fields_file, context.temp_allocator) + if info_txt_ok { + it := string(info_txt) + for line in strings.split_lines_iterator(&it) { + if len(line)==len("KNEKT") { + if line=="KNEKT" { + BRANDING=.KNEKT + break + } + } + } + } } if len(instant_run_paths)>0 { |