Skip to content

Instantly share code, notes, and snippets.

View EatonZ's full-sized avatar

Eaton Zveare EatonZ

View GitHub Profile
@EatonZ
EatonZ / MainForm.cs
Created November 11, 2023 16:25
Camera image stream parsing code.
//https://eaton-works.com/2023/11/14/telecom-camera-hack/
using ServiceStack.Text;
namespace CameraStreamApp;
public sealed partial class MainForm : Form
{
private readonly Dictionary<string, PictureBox> cameras = new();
@EatonZ
EatonZ / DashBenchmark.cpp
Created January 9, 2023 16:44
Benchmark code for testing Xbox 360 dash.xex loading speeds.
//https://eaton-works.com/2023/01/09/how-microsoft-attempted-to-make-the-xbox-360-dashboard-load-faster/
DbgPrint("[Benchmark] Benchmark begin.\n");
//Use a 1 MB buffer. This results in the best performance for both devices.
DWORD readBufferSize = 1048576;
//FLASH symbolically linked to: \\Device\\Flash
HANDLE hFlash = CreateFile("FLASH:\\dash.xex", GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
//HDDSYSEXT symbolically linked to: \\Device\\Harddisk0\\SystemExtPartition
HANDLE hExt = CreateFile("HDDSYSEXT:\\20449700\\dash.xex", GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (hFlash == INVALID_HANDLE_VALUE || hExt == INVALID_HANDLE_VALUE)