Browse Source

Merge pull request #534 from ThisDrunkDane/fix-log-mistake

Fix mistake in .Short_File_Path option in file_console_logger.odin
Mikkel Hjortshøj 5 years ago
parent
commit
3e67ae7339
1 changed files with 1 additions and 2 deletions
  1. 1 2
      core/log/file_console_logger.odin

+ 1 - 2
core/log/file_console_logger.odin

@@ -121,9 +121,8 @@ do_location_header :: proc(opts : Options, buf : ^strings.Builder, location := #
 
 
     file := location.file_path;
     file := location.file_path;
     if .Short_File_Path in opts {
     if .Short_File_Path in opts {
-        when os.OS == "windows" do delimiter := '\\'; else do delimiter := '/';
         last := 0;
         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:];
         file = location.file_path[last:];
     }
     }