mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-01 09:17:15 -04:00
977ad16806
* Basic PAL ISO & language support Probably still needs much more work * Add language selector to pre-launch * Store DVDDiskID in a global Can use this later for things * More version system API improvements * d_name mostly region switching fully JPN doesn't work yet cuz it'll be a nightmare, probably. * More version switching support * Mark GCN PAL as supported ROM * Fix remaining REL assets to have PAL offsets * d_a_mg_fish PAL * d_a_mg_fshop PAL * isRegionUsa helper * d_menu_fishing PAL * d_msg_class PAL * m_Do_MemCardRWmng PAL * Update CARDInit call & remove DUSK_TP_VERSION * Fix Ganon cape Missed this one. * Remove tp_version from Sentry --------- Co-authored-by: Luke Street <luke@street.dev>
32 lines
869 B
C++
32 lines
869 B
C++
#pragma once
|
|
|
|
#include "dolphin/types.h"
|
|
#include "version.hpp"
|
|
|
|
namespace dusk {
|
|
|
|
struct OffsetVersion {
|
|
version::GameVersion mGameVersion;
|
|
u32 mOffset;
|
|
|
|
constexpr OffsetVersion(const version::GameVersion gameVersion, const u32 offset)
|
|
: mGameVersion(gameVersion), mOffset(offset) {}
|
|
};
|
|
|
|
/**
|
|
* Load bytes from the main DOL by GameCube virtual address
|
|
*/
|
|
bool LoadDolAsset(void* dst, std::initializer_list<OffsetVersion> virtualAddress, s32 size);
|
|
|
|
/**
|
|
* Load bytes from a REL file in the ISO filesystem, dst must be 32-byte aligned
|
|
*/
|
|
bool LoadRelAsset(void* dst, const char* dvdPath, std::initializer_list<OffsetVersion> offset, s32 size);
|
|
|
|
/**
|
|
* Load bytes from a REL inside RELS.arc
|
|
*/
|
|
bool LoadArchivedRelAsset(void* dst, u32 memType, const char* relFileName, std::initializer_list<OffsetVersion> offset, s32 size);
|
|
|
|
} // namespace dusk
|