Skip to content

Instantly share code, notes, and snippets.

View Traderain's full-sized avatar
:octocat:
Learning AI

Hambalkó Bence Traderain

:octocat:
Learning AI
View GitHub Profile
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Cache
{
@Traderain
Traderain / RedscriptParser.cs
Created March 14, 2017 21:06
Redscripts reader
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Windows.Forms;
namespace Redscript
{
class Program
{
Source engine save files: //Version 115
-----------------------------
struct Header
{
char[4] MagicWord == "J","S","A","V";
int SaveVersion; //int32
int TokenTableFileTableOffset; //int32
int TokenCount; //int32
int TokenTableSize; //int32