Skip to content

Instantly share code, notes, and snippets.

@ChunChunMorning
Last active December 11, 2015 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChunChunMorning/cdcbe053691f4f4794f5 to your computer and use it in GitHub Desktop.
Save ChunChunMorning/cdcbe053691f4f4794f5 to your computer and use it in GitHub Desktop.
Siv3Dでセーブデータ的なサムシングを作る No3
# include <shlobj.h>
wchar_t appdataPath[MAX_PATH];
FilePath savedataPath;
if (SHGetSpecialFolderPath(NULL, appdataPath, CSIDL_APPDATA, true))
{
savedataPath = Format(appdataPath, L"/Asablo/Savedata.csv");
}
else
{
Println(L"ファイルパスの取得に失敗");
}
CSVReader reader(savedataPath);
// セーブデータを完全に削除できるようにする
FileSystem::Remove(FileSystem::ParentPath(savedataPath));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment