mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-30 10:58:07 +03:00
- Invalid game id -> sys_error() in GameId::GameId() - Unknown crc32 -> SDL_ShowSimpleMessageBox() in GameId::GameId() - Cannot open ADISK.DAT -> sys_error() in NACT::NACT()
30 lines
448 B
C++
30 lines
448 B
C++
/*
|
|
ALICE SOFT SYSTEM 3 for Win32
|
|
|
|
[ DRI ]
|
|
*/
|
|
|
|
#ifndef _DRI_H_
|
|
#define _DRI_H_
|
|
|
|
#include <string>
|
|
#include <stdint.h>
|
|
#include <vector>
|
|
|
|
struct GameId;
|
|
|
|
class Dri {
|
|
public:
|
|
void open(const char* file_name);
|
|
std::vector<uint8_t> load(int page);
|
|
bool loaded() const { return !link_table.empty(); }
|
|
|
|
static std::vector<uint8_t> load_mda(const GameId& game_id, int page);
|
|
|
|
private:
|
|
std::string fname;
|
|
std::vector<uint8_t> link_table;
|
|
};
|
|
|
|
#endif
|