mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-18 20:57:46 -04:00
a6f059827b
* Game ABI / headers refactoring * Delete dusk/imgui.h
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
|