Load TIM files (broken currently)
This commit is contained in:
@@ -30,7 +30,7 @@ namespace JabyEngine {
|
||||
LZ4Decompressor lz4_decomp;
|
||||
JobArray jobs;
|
||||
const AutoLBAEntry* lba = nullptr;
|
||||
uint32_t*const tmp_area = nullptr; //< The start of the area to copy data to for the file processor
|
||||
uint32_t* tmp_area = nullptr;
|
||||
|
||||
void start_cur_job();
|
||||
bool process_data();
|
||||
@@ -38,8 +38,15 @@ namespace JabyEngine {
|
||||
public:
|
||||
CDFileProcessor() = default;
|
||||
|
||||
void setup(const volatile AutoLBAEntry* lba, JobArray jobs, uint32_t* tmp_area = &__heap_base);
|
||||
void setup(const volatile AutoLBAEntry* lba, JobArray jobs, uint32_t* tmp_area = &__heap_base);
|
||||
|
||||
template<size_t N>
|
||||
void setup(const volatile AutoLBAEntry* lba, const CDFile (&file_array)[N], uint32_t* tmp_area = &__heap_base) {
|
||||
CDFileProcessor::setup(lba, JobArray{file_array, N}, tmp_area);
|
||||
}
|
||||
|
||||
Progress process();
|
||||
|
||||
bool next() {
|
||||
if(this->jobs.next()) {
|
||||
CDFileProcessor::start_cur_job();
|
||||
|
Reference in New Issue
Block a user