Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcce9558

Browse files
committed
Merge branch 'develop'
2 parents3b1f501 +47ca683 commitcce9558

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

‎Quick.SysInfo.pas‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Author : Kike Pérez
88
Version : 1.2
99
Created : 17/05/2018
10-
Modified :21/01/2019
10+
Modified :11/09/2019
1111
1212
This file is part of QuickLib: https://github.com/exilon/QuickLib
1313
@@ -86,7 +86,8 @@ implementation
8686
procedureTSystemInfo.GetInfo;
8787
begin
8888
{$IFNDEF NEXTGEN}
89-
fAppName := ExtractFilenameWithoutExt(ParamStr(0));
89+
if IsLibrarythen fAppName := ExtractFileNameWithoutExt(GetModuleName(0))
90+
else fAppName := ExtractFilenameWithoutExt(ParamStr(0));
9091
{$ELSE}
9192
{$IFDEF ANDROID}
9293
fAppName := JStringToString(SharedActivityContext.getPackageName);
@@ -96,15 +97,16 @@ procedure TSystemInfo.GetInfo;
9697
{$ENDIF}
9798
fAppVersion := GetAppVersionFullStr;
9899
{$IFNDEF NEXTGEN}
99-
fAppPath := ExtractFilePath(ParamStr(0));
100+
if IsLibrarythen fAppPath := ExtractFilePath(GetModuleName(0))
101+
else fAppPath := ExtractFilePath(ParamStr(0));
100102
{$ELSE}
101103
fAppPath := TPath.GetDocumentsPath;
102104
{$ENDIf}
103-
{$IFDEF DELPHILINUX}
104-
fUserName := GetLoggedUserName;
105-
{$ELSE}
106-
fUserName := Trim(GetLoggedUserName);
107-
{$ENDIF}
105+
{$IFDEF DELPHILINUX}
106+
fUserName :=String.Copy(GetLoggedUserName);
107+
{$ELSE}
108+
fUserName := Trim(GetLoggedUserName);
109+
{$ENDIF}
108110
fHostName := GetComputerName;
109111
fOSVersion := GetOSVersion;
110112
fCPUCores := CPUCount;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp