40 lines
879 B
C++
40 lines
879 B
C++
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||
|
// 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;
|
||
|
}
|