Offically support Sony VAG because we have no own conversion

This commit is contained in:
2024-09-28 13:21:32 +02:00
parent c7da035725
commit 9f3e911513
4 changed files with 1 additions and 11 deletions

View File

@@ -10,9 +10,7 @@ namespace JabyEngine {
enum struct CDFileType : CDFileType_t {
CopyTo = 0,
SimpleTIM,
#ifdef __SUPPORT_VAG__
SonyVAG,
#endif // __SUPPORT_VAG__
Custom,
};
@@ -51,11 +49,9 @@ namespace JabyEngine {
return CDFile{.rel_lba_idx = rel_lba_idx, .type = CDFileType::SimpleTIM, .payload = {.simple_tim = simple_tim}};
}
#ifdef __SUPPORT_VAG__
static constexpr CDFile sony_vag(uint8_t lba_idx, VAG vag) {
return CDFile{.rel_lba_idx = lba_idx, .type = CDFileType::SonyVAG, .payload = {.vag = vag}};
}
#endif //__SUPPORT_VAG__
static constexpr CDFile overlay(uint8_t rel_lba_idx, uint32_t* overlay_dst) {
return CDFile{.rel_lba_idx = rel_lba_idx, .type = CDFileType::CopyTo, .payload = {.overlay = Overlay{overlay_dst}}};

View File

@@ -31,8 +31,6 @@ namespace JabyEngine {
using Configuration = CustomConfiguration;
#else
using Configuration = DefaultConfiguration;
// TODO: v Turn off when this is supported
#define __SUPPORT_VAG__
#define __SUPPORT_PS3__
#endif // has jabyengine_custom_config
}