mirror of
https://github.com/seriocomedy/ShiftOS-C-.git
synced 2025-01-22 17:22:14 +00:00
More hacking fixes, httpget() lua function.
Implements aren-cllc's httpget() lua method. Works perfectly.
This commit is contained in:
parent
20fcece26d
commit
5be773d4f0
2 changed files with 8 additions and 1 deletions
|
@ -111,6 +111,13 @@ public LuaInterpreter()
|
|||
/// </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) =>
|
||||
{
|
||||
|
|
|
@ -1168,7 +1168,7 @@ private void HackUI_Load(object sender, EventArgs e)
|
|||
tmrvisualizer.Start();
|
||||
}
|
||||
|
||||
#region ENEMY
|
||||
#region ENEMY
|
||||
private EnemyHacker ThisEnemyHacker { get; set; }
|
||||
public List<Computer> AllEnemyComputers = null;
|
||||
public Computer ThisEnemyPC { get; set; }
|
||||
|
|
Loading…
Reference in a new issue