Introduce the JabyEngine namespace to all files

This commit is contained in:
2022-12-23 21:18:25 +01:00
parent 791fe85ab8
commit def6c6d3b9
27 changed files with 1320 additions and 1282 deletions

View File

@@ -3,30 +3,32 @@
#include "../cd_file_types.hpp"
#include "file_processor.hpp"
namespace CDFileProcessor {
class State {
private:
FileProcessor::State file_processor_state;
const uint32_t* data_adr;
namespace JabyEngine {
namespace CDFileProcessor {
class State {
private:
FileProcessor::State file_processor_state;
const uint32_t* data_adr;
public:
State() = default;
public:
State() = default;
void setup(uint16_t lba, uint16_t size, const CDFile::Payload& payload);
bool process();
};
void setup(uint16_t lba, uint16_t size, const CDFile::Payload& payload);
bool process();
};
template<size_t Size>
static void load_from_cd(const OverlayLBA* overlay_lbas, const CDFile (&cd_files)[Size]) {
State state;
template<size_t Size>
static void load_from_cd(const OverlayLBA* overlay_lbas, const CDFile (&cd_files)[Size]) {
State state;
for(const auto& file : cd_files) {
const auto& lba_info = overlay_lbas[file.rel_lba_idx];
for(const auto& file : cd_files) {
const auto& lba_info = overlay_lbas[file.rel_lba_idx];
state.setup(lba_info.lba, lba_info.size, file.payload);
//while(state.process());???
}
}
state.setup(lba_info.lba, lba_info.size, file.payload);
//while(state.process());???
}
}
}
}
// This will be used as the file processor but will work on cd types