Shwoomple
63e1749ad1
lib/file: fix cutByte filesize bug
2022-10-31 17:23:02 +01:00
Shwoomple
ea8e806366
lib/file.cpp: Implement cutByte function
2022-10-31 17:23:02 +01:00
Shwoomple
8dea1f2d31
lib/file: Implement modify functions
2022-10-20 15:12:15 +05:30
Shwoomple
c825c73afd
lib/file: Implement insertByte function
2022-10-20 13:02:15 +05:30
Shwoomple
e7ce6f5cd4
lib/file: Fix write function bugs
2022-10-20 10:27:00 +05:30
Shwoomple
6e57a86338
lib/file: Implement write functions
2022-10-19 10:43:23 +05:30
Shwoomple
c54eb48887
lib/file: Implement writeByte function
2022-10-18 20:57:02 +05:30
BodgeMaster
4cb1206839
lib/file: Fix isOpen not being set properly when closing and reopening; add destructor
2022-10-05 05:02:58 +02:00
BodgeMaster
39c5940200
lib/file: Fix a potential memory leak created by yours truly
2022-10-05 04:50:41 +02:00
BodgeMaster
f3e03710f6
lib/file: Ensure a file is actually open before attempting to read
2022-10-05 04:07:46 +02:00
BodgeMaster
5059bd0193
lib/file: change File::eof to a function
...
This is just way easier to implement and less messy.
2022-10-05 04:01:18 +02:00
BodgeMaster
8bb633f118
lib/error and lib/file: reassign code 9 to FILE_NOT_OPEN
...
These are not exceptions so we don’t need multiple variants of
generic error in case someone wants to catch it somewhere
up the call stack.
It’s okay to use UNKNOWN for generic errors where we don’t know
exactly what happened.
2022-10-05 03:48:05 +02:00
BodgeMaster
ec44ac9531
lib/file: Check if there are enough bytes left to read
2022-10-05 03:46:42 +02:00
BodgeMaster
341b4c187e
lib/file: Fix (potential) memory leaks
2022-10-05 03:30:01 +02:00
Shwoomple
056c1e6b11
lib/file.cpp: fix read fubctions.
2022-10-02 08:38:39 +05:30
BodgeMaster
89baeebc65
lib/file: Switch to using pointers for passing File objects around
2022-09-30 20:10:28 +02:00
Shwoomple
c204aa7d76
lib/file.cpp:Fix exception warnings
2022-09-30 22:41:55 +05:30
BodgeMaster
09503d3dc7
lib/file: Remove accidentally included C header
2022-09-30 18:31:49 +02:00
Shwoomple
3449e3b9c4
lib/file: Implement broken file functions
2022-09-30 11:02:46 +05:30
Shwoomple
9610f4a4a2
lib/file: implement open function
2022-09-28 08:21:39 +05:30
BodgeMaster
ab1164557d
lib/file: Write header
...
I hope I didn’t forget anything. Not exactly capable of thinking rn.
2022-08-24 01:27:34 +02:00