Last active
December 11, 2015 06:28
-
-
Save ChunChunMorning/cdcbe053691f4f4794f5 to your computer and use it in GitHub Desktop.
Siv3Dでセーブデータ的なサムシングを作る No3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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