aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSan Jacobs2025-12-21 08:30:16 +0100
committerSan Jacobs2025-12-21 08:30:16 +0100
commit593ae691f6f1dd077f13e5bac225a9255a254514 (patch)
tree3216ab05ff569a8d69214688f2221714c0e666db /src
parentb9aa6214ec795ddf07542ba5490396f54f3c7dbb (diff)
downloadbetter-report-593ae691f6f1dd077f13e5bac225a9255a254514.tar.gz
better-report-593ae691f6f1dd077f13e5bac225a9255a254514.tar.bz2
better-report-593ae691f6f1dd077f13e5bac225a9255a254514.zip
Branding works from first file.HEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/main.odin15
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 {