Initial commit to populate projects.

This commit is contained in:
2023-06-14 15:24:34 -05:00
commit 1a1dedacdd
11 changed files with 1099 additions and 0 deletions

40
bss2bs/bss2bs.cpp Normal file
View File

@ -0,0 +1,40 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
// Project: biotools
// Program: bss2bs
// Purpose: Splitting Biohazard/Resident Evil BSS file into individual BS files.
#include <stdio.h>
///////////////////////////////////////////////////////////////////////////////////////////////////
// Function: main
// Purpose: n/a
int main(int arg_count, char* p_arg_array[])
{
//Local variables
char* p_buffer = NULL;
printf("\nbss2bs\n\n");
//Process filename
//Check if file exists.
//Load file into memory.
//Generate output filenames
for (int a = 0; a < arg_count; a++)
{
//Validate file exists.
//Check file size.
//If at or under limit, load into memory
//Prepare outgoing filenames
//Copy memory chunks into new outgoing buffer
//Write buffer to disk.
}
//Something went wrong spot
return 0;
}