Skip to content
Repos

DevPlaceApp

C++ 324 B17 lines Opens in site

Directory Raw Download

#include "core/AppPaths.hpp"

#include <SDL3/SDL.h>

#include "spec/StoreKeys.hpp"

namespace dp {

std::string AppPaths::prefDirectory() {
  char* raw = SDL_GetPrefPath(spec::AppIdentity::kOrg, spec::AppIdentity::kApp);
  if (!raw) return {};
  std::string path = raw;
  SDL_free(raw);
  return path;
}

}  // namespace dp
20.6ms