Explorar o código

Fixed path to media dir

GLScene %!s(int64=5) %!d(string=hai) anos
pai
achega
d114d37b4e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;