Cast is needed, sadly
| 421 | // Cast is needed, sadly |
| 422 | const void *JAUSection::loadDVDFile(const char *path, bool defaultAlignment, JKRExpandSwitch expSwitch) |
| 423 | { |
| 424 | #line 500 |
| 425 | JUT_ASSERT(isOpen()); |
| 426 | JUT_ASSERT(isBuilding()); |
| 427 | |
| 428 | void *ret; |
| 429 | { |
| 430 | TPushCurrentHeap pushHeap(getHeap_()); |
| 431 | ret = (u8*)JKRDvdToMainRam(path, NULL, expSwitch, 0, getHeap_(), defaultAlignment ? JKRDvdRipper::ALLOC_DIR_BOTTOM : JKRDvdRipper::ALLOC_DIR_TOP, 0, NULL, NULL); |
| 432 | } |
| 433 | return ret; |
| 434 | } |
| 435 | |
| 436 | |
| 437 | void* JAUSection::newCopy(const void *src, u32 n, s32 alignment) |
| 438 | { |