aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1
diff options
context:
space:
mode:
Diffstat (limited to 'source/WindowsFormsApplication1')
-rw-r--r--source/WindowsFormsApplication1/Engine/Lua_Interp.cs7
-rw-r--r--source/WindowsFormsApplication1/Gameplay/HackUI.cs2
2 files changed, 8 insertions, 1 deletions
diff --git a/source/WindowsFormsApplication1/Engine/Lua_Interp.cs b/source/WindowsFormsApplication1/Engine/Lua_Interp.cs
index c4a9162..ed9c31f 100644
--- a/source/WindowsFormsApplication1/Engine/Lua_Interp.cs
+++ b/source/WindowsFormsApplication1/Engine/Lua_Interp.cs
@@ -111,6 +111,13 @@ namespace ShiftOS
/// </summary>
public void RegisterCore()
{
+ mod.httpget = new Func<string, string>((url) =>
+ {
+ WebRequest request = WebRequest.Create(url);
+ Stream requestStream = request.GetResponse().GetResponseStream();
+ StreamReader requestRead = new StreamReader(requestStream);
+ return requestRead.ReadToEnd();
+ });
//Shifter Extension API
mod.shifter_add_category = new Action<string>((name) =>
{
diff --git a/source/WindowsFormsApplication1/Gameplay/HackUI.cs b/source/WindowsFormsApplication1/Gameplay/HackUI.cs
index efafb25..a1c1555 100644
--- a/source/WindowsFormsApplication1/Gameplay/HackUI.cs
+++ b/source/WindowsFormsApplication1/Gameplay/HackUI.cs
@@ -1168,7 +1168,7 @@ namespace ShiftOS
tmrvisualizer.Start();
}
- #region ENEMY
+ #region ENEMY
private EnemyHacker ThisEnemyHacker { get; set; }
public List<Computer> AllEnemyComputers = null;
public Computer ThisEnemyPC { get; set; }