Explorar el Código

Fixed path to media dir

GLScene hace 5 años
padre
commit
d114d37b4e
Se han modificado 1 ficheros con 1 adiciones y 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;