mirror of
https://github.com/seriocomedy/ShiftOS-C-.git
synced 2025-04-19 23:20:24 +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 @@ namespace ShiftOS
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void RegisterCore()
|
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
|
//Shifter Extension API
|
||||||
mod.shifter_add_category = new Action<string>((name) =>
|
mod.shifter_add_category = new Action<string>((name) =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -1168,7 +1168,7 @@ namespace ShiftOS
|
||||||
tmrvisualizer.Start();
|
tmrvisualizer.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
#region ENEMY
|
#region ENEMY
|
||||||
private EnemyHacker ThisEnemyHacker { get; set; }
|
private EnemyHacker ThisEnemyHacker { get; set; }
|
||||||
public List<Computer> AllEnemyComputers = null;
|
public List<Computer> AllEnemyComputers = null;
|
||||||
public Computer ThisEnemyPC { get; set; }
|
public Computer ThisEnemyPC { get; set; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue