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:
12
CoreLib/List.h
Normal file
12
CoreLib/List.h
Normal file
@ -0,0 +1,12 @@
|
||||
//
|
||||
// Created by nigel on 25/02/23.
|
||||
//
|
||||
#pragma once
|
||||
|
||||
|
||||
class List {
|
||||
public:
|
||||
List* next;
|
||||
void* data;
|
||||
};
|
||||
|
@ -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];
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user