2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
 
 
 
 
 
 

35 lines
674 B

  1. #ifndef IZ_REPO_H
  2. #define IZ_REPO_H
  3. #include <sqlite3.h>
  4. #include <ini-config.h>
  5. #include <ini-config/source/types/string.h>
  6. #include <string.h>
  7. #include <SDL_filesystem.h>
  8. #include "../../common/IZ_common.h"
  9. #include "../../stdinc/IZ_string.h"
  10. typedef struct {
  11. char path[64];
  12. } IZ_RepoConfig;
  13. typedef struct {
  14. IZ_RepoConfig config;
  15. sqlite3* db;
  16. } IZ_RepoState;
  17. static IZ_RepoState IZ_REPO_DEFAULT_STATE = {
  18. .config = {
  19. .path = "server.sqlite",
  20. },
  21. .db = NULL,
  22. };
  23. IZ_ProcedureResult IZ_RepoSaveConfig(IZ_RepoState*, const char*);
  24. IZ_ProcedureResult IZ_RepoInitialize(IZ_RepoState*, const char*, u8, const char*[]);
  25. void IZ_RepoTeardown(IZ_RepoState*);
  26. #endif