2016-02-11 17:17:52 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 09.02.2016
|
|
|
|
*
|
|
|
|
* Shared system functions
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
2017-03-23 19:16:39 +00:00
|
|
|
// NOTE(allen): This serves as a list of functions to implement
|
|
|
|
// in addition to those in 4ed_system.h These are not exposed to
|
|
|
|
// the application code, but system_shared.cpp
|
|
|
|
// rely on the functions listed here.
|
2016-02-11 17:17:52 +00:00
|
|
|
|
2017-03-19 18:25:12 +00:00
|
|
|
#if !defined(FRED_SYSTEM_SHARED_H)
|
|
|
|
#define FRED_SYSTEM_SHARED_H
|
|
|
|
|
2016-05-11 20:40:53 +00:00
|
|
|
struct File_Data{
|
2016-08-29 02:14:02 +00:00
|
|
|
char *data;
|
|
|
|
u32 size;
|
2016-05-11 20:40:53 +00:00
|
|
|
b32 got_file;
|
|
|
|
};
|
2018-11-20 08:18:54 +00:00
|
|
|
global File_Data null_file_data = {};
|
2016-05-11 20:40:53 +00:00
|
|
|
|
2017-03-23 22:45:32 +00:00
|
|
|
#define Sys_File_Can_Be_Made_Sig(name) b32 name(u8 *filename)
|
2017-03-23 19:16:39 +00:00
|
|
|
internal Sys_File_Can_Be_Made_Sig(system_file_can_be_made);
|
2017-06-30 22:54:06 +00:00
|
|
|
|
2017-03-23 23:40:16 +00:00
|
|
|
struct Shared_Vars{
|
|
|
|
Partition scratch;
|
2017-11-17 19:22:12 +00:00
|
|
|
Partition font_scratch;
|
2017-11-21 19:48:04 +00:00
|
|
|
Partition pixel_scratch;
|
2017-03-23 23:40:16 +00:00
|
|
|
};
|
|
|
|
global Shared_Vars shared_vars;
|
|
|
|
|
2017-03-19 18:25:12 +00:00
|
|
|
#endif
|
|
|
|
|
2016-02-11 17:17:52 +00:00
|
|
|
// BOTTOM
|
|
|
|
|