Updated Fex header

This commit is contained in:
Alex 2022-12-16 03:07:55 +02:00
parent b4cb49e696
commit e930e02752
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

18
Fex.hpp
View File

@ -48,7 +48,7 @@ struct Fex
char Magic[4]; char Magic[4];
enum FexFormatType Type : 4; enum FexFormatType Type : 4;
enum FexOSType OS : 4; enum FexOSType OS : 4;
int (*Pointer)(void *); int (*EntryPoint)(void *);
} __attribute__((packed)); } __attribute__((packed));
struct KernelCallback; struct KernelCallback;
@ -90,8 +90,8 @@ struct FexExtended
struct struct
{ {
bool AttachToMouse; char AttachToMouse;
bool AttachToKeyboard; char AttachToKeyboard;
} Input; } Input;
} Bind; } Bind;
} Driver; } Driver;
@ -102,15 +102,15 @@ struct FexExtended
* *
* @param FormatType FexFormatType * @param FormatType FexFormatType
* @param OperatingSystem FexOSType * @param OperatingSystem FexOSType
* @param Address Pointer to the start function * @param Address EntryPoint to the start function
* *
* @note Must include ".header : { *(.header .header.*) }" in linker script * @note Must include ".header : { *(.header .header.*) }" in linker script
*/ */
#define HEAD(FormatType, OperatingSystem, Address) \ #define HEAD(FormatType, OperatingSystem, Address) \
__attribute__((section(".header"))) struct Fex FexHeader = { \ __attribute__((section(".header"))) struct Fex FexHeader = { \
.Magic = {'F', 'E', 'X', '\0'}, \ .Magic = {'F', 'E', 'X', '\0'}, \
.Type = FormatType, \ .Type = FormatType, \
.OS = OperatingSystem, \ .OS = OperatingSystem, \
.Pointer = Address} .EntryPoint = Address}
#endif // !__FENNIX_FILE_FEX_H__ #endif // !__FENNIX_FILE_FEX_H__