Finish detecting BIOS type
This commit is contained in:
@@ -83,6 +83,14 @@ namespace JabyEngine {
|
||||
static constexpr T Yellow(uint8_t base = 0xFF) {
|
||||
return T::from_rgb(base, base, 0x0);
|
||||
}
|
||||
|
||||
static constexpr T Purple(uint8_t base = 0xFF) {
|
||||
return T::from_rgb(base, 0x0, base);
|
||||
}
|
||||
|
||||
static constexpr T Turquoise(uint8_t base = 0xFF) {
|
||||
return T::from_rgb(0x0, base, base);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
@@ -19,30 +19,30 @@ R31 ra Return address (set by function call)
|
||||
namespace JabyEngine {
|
||||
namespace BIOS {
|
||||
struct Version {
|
||||
enum Type {
|
||||
Unkown,
|
||||
Devboard,
|
||||
PS1,
|
||||
PS2,
|
||||
PS3,
|
||||
PSCompatible, // internal usage only
|
||||
No$psx,
|
||||
XEBRA
|
||||
};
|
||||
|
||||
struct {
|
||||
uint8_t day;
|
||||
uint8_t month;
|
||||
uint16_t year;
|
||||
} date;
|
||||
Type type;
|
||||
const char* kernel_maker;
|
||||
const char* version_str;
|
||||
const char* gui_version;
|
||||
const char* copyright;
|
||||
};
|
||||
|
||||
enum struct Type {
|
||||
Devboard,
|
||||
PS1,
|
||||
PS2,
|
||||
PS3,
|
||||
PSCompatible, // internal usage only
|
||||
No$psx,
|
||||
XEBRA,
|
||||
Unkown
|
||||
};
|
||||
|
||||
Version get_bios_version();
|
||||
extern Type type;
|
||||
extern const Version version;
|
||||
}
|
||||
|
||||
namespace SysCall {
|
||||
|
Reference in New Issue
Block a user