👷 Fixing build script
This commit is contained in:
parent
d390e0affe
commit
6327e24191
5 changed files with 7 additions and 6 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"filereader.h": "c"
|
"filereader.h": "c",
|
||||||
|
"decrypt.h": "c"
|
||||||
}
|
}
|
||||||
}
|
}
|
2
build.sh
2
build.sh
|
@ -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
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#include "fileReader.h"
|
#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
|
//Opens the given file at the given address
|
||||||
//Returns a function that will read into memory and return that memory.
|
//Returns a function that will read into memory and return that memory.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#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);
|
unsigned char* readBytes(unsigned long numBytes);
|
||||||
|
|
|
@ -13,10 +13,10 @@ int main(int argc, unsigned char *argv[]) {
|
||||||
printf("Hello World!\n");
|
printf("Hello World!\n");
|
||||||
|
|
||||||
//Initialise file reader
|
//Initialise file reader
|
||||||
initFileReader("1234", 0, 10);
|
initFileReader("1234", 0UL, 10UL);
|
||||||
|
|
||||||
//Skip header (30 bytes + additional length)
|
//Skip header (30 bytes + additional length)
|
||||||
readBytes(30);
|
readBytes(30UL);
|
||||||
|
|
||||||
//Initialise decryption (pass decryption keys)
|
//Initialise decryption (pass decryption keys)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue