We can now open and read files on the harddisk through a messy virtual filesystem

The uri has to contain 8.3 filenames for now as I have not yet figured out
how to convert from that to regular filenaming for the name comparison.

reading files is still limited to 1 sector
This commit is contained in:
2023-02-26 13:44:41 +01:00
parent 61f1852420
commit e6901f0526
12 changed files with 310 additions and 385 deletions

12
CoreLib/List.h Normal file
View File

@ -0,0 +1,12 @@
//
// Created by nigel on 25/02/23.
//
#pragma once
class List {
public:
List* next;
void* data;
};

View File

@ -32,7 +32,7 @@ int memcmp( const void* ptr1, const void* ptr2, size_t num)
}
void memcpy (void* dest, const void* src, size_t count ){
[[maybe_unused]] void memcpy (void* dest, const void* src, size_t count ){
for( int i = 0; i < count; i++){
((char *)dest)[i] = ((const char*)src)[i];
}

View File

@ -7,7 +7,7 @@ void* memset (void* ptr, int value, size_t num);
int memcmp( const void* ptr1, const void* ptr2, size_t num);
void memcpy (void* dest, const void* src, size_t count );
[[maybe_unused]] void memcpy (void* dest, const void* src, size_t count );
size_t strlen(const char* str);