This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Imports | |
const { readFileSync, writeFileSync, watchFile } = require('fs') | |
const { gunzipSync, gzipSync } = require('zlib') | |
// Constants | |
const dir = "/home/benjamin/.pcsxr/sstates" | |
const src = "MEGAMAN_LEGENDS2-SLUS01140.002" | |
const dst = "MEGAMAN_LEGENDS2-SLUS01140.004" | |
const memPath = "./mem.bin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const fs = require("fs"); | |
const fp = fs.readFileSync("hwram.bin"); | |
const xpdata = { | |
offset: 0x056424, | |
vlist_offset: 0x60561cc, | |
vlist_count: 0x000010, | |
plist_offset: 0x605628c, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const fs = require("fs"); | |
const fp = fs.readFileSync("hwram.bin"); | |
const ptr_keys = [ | |
"vlist_offset", | |
"plist_offset", | |
"attr_offset", | |
"vntbl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const fs = require("fs"); | |
const src = fs.readFileSync("hwram.bin"); | |
const dst = fs.readFileSync("hwram_sho.bin"); | |
let key; | |
let chain = 0; | |
let changes = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
struct MeshHeader { | |
uint8_t tri_count; | |
uint8_t quad_count; | |
uint8_t vertex_count; | |
uint8_t nop; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void open_export(GApplication *app, gpointer user_data) { | |
GtkWidget *dialog; | |
gint res; | |
dialog = gtk_file_chooser_dialog_new ( | |
"Save Texture (.png)", | |
GTK_WINDOW(user_data), | |
GTK_FILE_CHOOSER_ACTION_SAVE, | |
"Cancel", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This file is part of Dash Graphics Library | |
Copyright 2017 Benjamin Collins | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
software and associated documentation files (the "Software"), to deal in the Software | |
without restriction, including without limitation the rights to use, copy, modify, merge, | |
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
to whom the Software is furnished to do so, subject to the following conditions: | |