👷 Fixing build script

This commit is contained in:
C-3PO 2018-07-18 03:40:11 +02:00
parent d390e0affe
commit 6327e24191
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
5 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,6 @@
{
"files.associations": {
"filereader.h": "c"
"filereader.h": "c",
"decrypt.h": "c"
}
}

View file

@ -1 +1 @@
gcc -m64 -o patcher-installer src/main.c && chmod +x patcher-installer
gcc -m64 -o patcher-installer lib/miniz/*.c src/*.c && chmod +x patcher-installer

View file

@ -7,7 +7,7 @@
#include "fileReader.h"
void initFileReader(unsigned char path[], unsigned long offset, unsigned long length) {
void initFileReader(char path[], unsigned long offset, unsigned long length) {
//Opens the given file at the given address
//Returns a function that will read into memory and return that memory.

View file

@ -1,5 +1,5 @@
#pragma once
void initFileReader(unsigned char path[], unsigned long offset, unsigned long length);
void initFileReader(char path[], unsigned long offset, unsigned long length);
unsigned char* readBytes(unsigned long numBytes);

View file

@ -13,10 +13,10 @@ int main(int argc, unsigned char *argv[]) {
printf("Hello World!\n");
//Initialise file reader
initFileReader("1234", 0, 10);
initFileReader("1234", 0UL, 10UL);
//Skip header (30 bytes + additional length)
readBytes(30);
readBytes(30UL);
//Initialise decryption (pass decryption keys)