Browse Source

Fixed path to media dir

GLScene 5 years ago
parent
commit
d114d37b4e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/GLUtils.pas

+ 1 - 1
Source/GLUtils.pas

@@ -627,7 +627,7 @@ begin
    path := ParamStr(0);
    path := LowerCase(ExtractFilePath(path));
    p := Pos('demos', path);
-   Delete(path, p+7, Length(path));
+   Delete(path, p+5, Length(path));
    path := IncludeTrailingPathDelimiter(path) + 'media';
    SetCurrentDir(path);
 end;