Parcourir la source

storage: Declare a private bootstrap for NDA user storage

Ethan Lee il y a 1 mois
Parent
commit
5283f73748
2 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 3 0
      src/storage/SDL_storage.c
  2. 1 0
      src/storage/SDL_sysstorage.h

+ 3 - 0
src/storage/SDL_storage.c

@@ -34,6 +34,9 @@ static TitleStorageBootStrap *titlebootstrap[] = {
 static UserStorageBootStrap *userbootstrap[] = {
 #ifdef SDL_STORAGE_STEAM
     &STEAM_userbootstrap,
+#endif
+#ifdef SDL_STORAGE_PRIVATE
+    &PRIVATE_userbootstrap,
 #endif
     &GENERIC_userbootstrap,
     NULL

+ 1 - 0
src/storage/SDL_sysstorage.h

@@ -44,6 +44,7 @@ extern TitleStorageBootStrap GENERIC_titlebootstrap;
 // Steam does not have title storage APIs
 
 extern UserStorageBootStrap GENERIC_userbootstrap;
+extern UserStorageBootStrap PRIVATE_userbootstrap;
 extern UserStorageBootStrap STEAM_userbootstrap;
 
 extern SDL_Storage *GENERIC_OpenFileStorage(const char *path);