mirror of
https://github.com/paleotronic/microm8-gui.git
synced 2025-01-28 08:33:23 +00:00
roll back net check
This commit is contained in:
parent
56fcb060fb
commit
63181240c5
@ -2078,6 +2078,10 @@ end;
|
||||
|
||||
procedure TGUIForm.SimpleGetStream(url:string; var S: TMemoryStream);
|
||||
begin
|
||||
|
||||
if not MicroM8Process.Active then
|
||||
exit;
|
||||
|
||||
try
|
||||
self.httpc.Get(url, S)
|
||||
except
|
||||
@ -2090,6 +2094,8 @@ end;
|
||||
|
||||
procedure TGUIForm.SimpleFormPost( url: string; body: string; var resp: TStringStream );
|
||||
begin
|
||||
if not MicroM8Process.Active then
|
||||
exit;
|
||||
try
|
||||
self.httpc.SimpleFormPost(url,body,resp)
|
||||
except
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
14
main.pas
14
main.pas
@ -2047,10 +2047,6 @@ end;
|
||||
function TGUIForm.SimpleGet(url:string): string;
|
||||
begin
|
||||
result := '0';
|
||||
|
||||
if not MicroM8Process.Active then
|
||||
exit;
|
||||
|
||||
try
|
||||
result := self.httpc.Get(url)
|
||||
except
|
||||
@ -2063,10 +2059,6 @@ end;
|
||||
function TGUIForm.SimpleGetInt(url:string): integer;
|
||||
begin
|
||||
result := 0;
|
||||
|
||||
if not MicroM8Process.Active then
|
||||
exit;
|
||||
|
||||
try
|
||||
result := StrToInt(self.httpc.Get(url))
|
||||
except
|
||||
@ -2078,10 +2070,6 @@ end;
|
||||
|
||||
procedure TGUIForm.SimpleGetStream(url:string; var S: TMemoryStream);
|
||||
begin
|
||||
|
||||
if not MicroM8Process.Active then
|
||||
exit;
|
||||
|
||||
try
|
||||
self.httpc.Get(url, S)
|
||||
except
|
||||
@ -2094,8 +2082,6 @@ end;
|
||||
|
||||
procedure TGUIForm.SimpleFormPost( url: string; body: string; var resp: TStringStream );
|
||||
begin
|
||||
if not MicroM8Process.Active then
|
||||
exit;
|
||||
try
|
||||
self.httpc.SimpleFormPost(url,body,resp)
|
||||
except
|
||||
|
Loading…
x
Reference in New Issue
Block a user