Skip to content

Instantly share code, notes, and snippets.

View H0neyCake's full-sized avatar
🙈
Hard and pink.

Dmitry Kriazhkov H0neyCake

🙈
Hard and pink.
View GitHub Profile
/*
pbo is the pbo pointer from the pbo list (eg. 'Mem.ReadPtr(pboList + 0 * 0x8);' gets the first pbo)
*/
public string GetPboName(ulong pbo)
{
int aStrPtr = Mem.ReadPtr(pbo + 0x20); // not sure if changed, find on reclass
string path = Mem.ReadArmaString(aStrPtr);
return Path.GetFileName(path);
}
@H0neyCake
H0neyCake / GeoData.cs
Created March 27, 2021 13:29
Load geo data
using System;
using UnityEngine;
using UnityEngine.UI;
[Serializable]
public class GeoCountry
{
public string status;
public string country;
}