2022-03-10 02:01:03 +00:00
|
|
|
#ifndef DYNOS_H
|
|
|
|
#define DYNOS_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <limits.h>
|
|
|
|
#include <dirent.h>
|
2022-03-13 21:10:24 +00:00
|
|
|
#ifdef HAVE_SDL2
|
2022-03-10 02:01:03 +00:00
|
|
|
#include <SDL2/SDL.h>
|
2022-03-13 21:10:24 +00:00
|
|
|
#endif
|
2022-03-10 02:01:03 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <new>
|
|
|
|
#include <utility>
|
|
|
|
#include <string>
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#include "config.h"
|
|
|
|
#include "pc/fs/fs.h"
|
2022-03-13 08:17:10 +00:00
|
|
|
#include "sounds.h"
|
2022-03-10 02:01:03 +00:00
|
|
|
#undef STB_IMAGE_IMPLEMENTATION
|
|
|
|
#include "stb/stb_image.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DYNOS_VERSION "1.0"
|
|
|
|
#define DYNOS_EXE_FOLDER sys_exe_path()
|
|
|
|
#define DYNOS_USER_FOLDER sys_user_path()
|
|
|
|
#define DYNOS_RES_FOLDER "dynos"
|
|
|
|
#define DYNOS_PACKS_FOLDER DYNOS_RES_FOLDER "/packs"
|
|
|
|
#define DYNOS_CONFIG_FILENAME "DynOS." DYNOS_VERSION ".config.txt"
|
|
|
|
#define DYNOS_AT_STARTUP __attribute__((constructor))
|
|
|
|
#define DYNOS_AT_EXIT __attribute__((destructor))
|
|
|
|
|
2023-05-12 23:15:35 +00:00
|
|
|
enum ModelPool {
|
|
|
|
MODEL_POOL_PERMANENT,
|
|
|
|
MODEL_POOL_SESSION,
|
|
|
|
MODEL_POOL_LEVEL,
|
|
|
|
MODEL_POOL_MAX,
|
|
|
|
};
|
|
|
|
|
2022-03-13 21:10:24 +00:00
|
|
|
#endif
|