aboutsummaryrefslogtreecommitdiff
path: root/src/main.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.odin')
-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 {