From 0e52c378658391af2363ac73f6f529770e9d582c Mon Sep 17 00:00:00 2001 From: Mikkel Hjortshoej Date: Wed, 8 Jan 2020 21:29:46 +0100 Subject: Don't change delimiter as location has changed to be unified no matter the platform --- core/log/file_console_logger.odin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/log/file_console_logger.odin b/core/log/file_console_logger.odin index 6bddf7ffb..0f44347f9 100644 --- a/core/log/file_console_logger.odin +++ b/core/log/file_console_logger.odin @@ -121,9 +121,8 @@ do_location_header :: proc(opts : Options, buf : ^strings.Builder, location := # file := location.file_path; if .Short_File_Path in opts { - when os.OS == "windows" do delimiter := '\\'; else do delimiter := '/'; last := 0; - for r, i in location.file_path do if r == delimiter do last = i+1; + for r, i in location.file_path do if r == '/' do last = i+1; file = location.file_path[last:]; } -- cgit v1.2.3