Adding support for disc images.

With this, games can now be loaded! Of course, prep fails.
This commit is contained in:
Ben Vanik
2013-01-31 20:11:13 -08:00
parent f78fdba9c3
commit 7f846afdfc
9 changed files with 452 additions and 7 deletions

View File

@@ -92,8 +92,8 @@ void xe_mmap_release(xe_mmap_ref mmap) {
xe_ref_release((xe_ref)mmap, (xe_ref_dealloc_t)xe_mmap_dealloc);
}
void* xe_mmap_get_addr(xe_mmap_ref mmap) {
return mmap->addr;
uint8_t* xe_mmap_get_addr(xe_mmap_ref mmap) {
return (uint8_t*)mmap->addr;
}
size_t xe_mmap_get_length(xe_mmap_ref mmap) {

View File

@@ -89,7 +89,7 @@ xe_mmap_ref xe_mmap_open(xe_pal_ref pal, const xe_file_mode mode,
size_t map_length = GetFileSize(file_handle, NULL);
mmap->length = map_length;
}
return mmap;
XECLEANUP:
@@ -123,7 +123,7 @@ void xe_mmap_release(xe_mmap_ref mmap) {
xe_ref_release((xe_ref)mmap, (xe_ref_dealloc_t)xe_mmap_dealloc);
}
void* xe_mmap_get_addr(xe_mmap_ref mmap) {
uint8_t* xe_mmap_get_addr(xe_mmap_ref mmap) {
return mmap->addr;
}