summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fmt.rs1
-rw-r--r--src/main.rs61
2 files changed, 0 insertions, 62 deletions
diff --git a/src/fmt.rs b/src/fmt.rs
index 61f53eb..2ce342e 100644
--- a/src/fmt.rs
+++ b/src/fmt.rs
@@ -8,7 +8,6 @@ use std::io::Read;
use self::byteorder::{ByteOrder, LittleEndian};
-
// The ".grp" file format is just a collection of a lot of files stored into 1 big
// one. I tried to make the format as simple as possible: The first 12 bytes
// contains my name, "KenSilverman". The next 4 bytes is the number of files that
diff --git a/src/main.rs b/src/main.rs
index 0c48e53..7bfdd82 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,67 +5,6 @@ use std::process;
mod fmt;
-// initgroupfile(char *filename)
-// {
-// char buf[16];
-// long i, j, k;
-
-// if (numgroupfiles >= MAXGROUPFILES) return(-1);
-
-// groupfil[numgroupfiles] = open(filename,O_BINARY|O_RDWR,S_IREAD);
-// if (groupfil[numgroupfiles] != -1)
-// {
-// groupfilpos[numgroupfiles] = 0;
-// read(groupfil[numgroupfiles],buf,16);
-// if ((buf[0] != 'K') || (buf[1] != 'e') || (buf[2] != 'n') ||
-// (buf[3] != 'S') || (buf[4] != 'i') || (buf[5] != 'l') ||
-// (buf[6] != 'v') || (buf[7] != 'e') || (buf[8] != 'r') ||
-// (buf[9] != 'm') || (buf[10] != 'a') || (buf[11] != 'n'))
-// {
-// close(groupfil[numgroupfiles]);
-// groupfil[numgroupfiles] = -1;
-// return(-1);
-// }
-// gnumfiles[numgroupfiles] = *((long *)&buf[12]);
-
-// if ((gfilelist[numgroupfiles] = (char *)kmalloc(gnumfiles[numgroupfiles]<<4)) == 0)
-// { printf("Not enough memory for file grouping system\n"); exit(0); }
-// if ((gfileoffs[numgroupfiles] = (long *)kmalloc((gnumfiles[numgroupfiles]+1)<<2)) == 0)
-// { printf("Not enough memory for file grouping system\n"); exit(0); }
-
-// read(groupfil[numgroupfiles],gfilelist[numgroupfiles],gnumfiles[numgroupfiles]<<4);
-
-// j = 0;
-// for(i=0;i<gnumfiles[numgroupfiles];i++)
-// {
-// k = *((long *)&gfilelist[numgroupfiles][(i<<4)+12]);
-// gfilelist[numgroupfiles][(i<<4)+12] = 0;
-// gfileoffs[numgroupfiles][i] = j;
-// j += k;
-// }
-// gfileoffs[numgroupfiles][gnumfiles[numgroupfiles]] = j;
-// }
-// numgroupfiles++;
-// return(groupfil[numgroupfiles-1]);
-// }
-
-
-// High-level description:
-// - Caches group files into an array with a rolling index.
-// - Keeps track of group file positions (pointer?) starts as 0.
-// - Keeps track of number of files in another array (gnumfiles)
-//
-// - Check header for "KenSilverman", invalidate entry in cache if bad.
-// - kmalloc 16 * number of files (for storing table)
-// - kmalloc 4 * (number of files + 1) (for storing individual file offsets)
-// - Read in table
-// - For every entry, read in the file size, and invalidate the entry.
-
-
-
-
-// -------
-
// void printstr(short x, short y, char string[81], char attribute)
// {
// char character;