|
|
|
@ -30,7 +30,7 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
|
|
|
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
|
|
|
SUCH DAMAGE. |
|
|
|
|
|
|
|
|
|
Portions of this software are copyright © 2023 The FreeType |
|
|
|
|
Portions of this software are copyright <EFBFBD> 2023 The FreeType |
|
|
|
|
Project (www.freetype.org). Please see LICENSE_FT.txt for more information. |
|
|
|
|
All rights reserved. |
|
|
|
|
*/ |
|
|
|
@ -210,11 +210,15 @@ const void SaveFile::SetSaveFileID(size_t saveFileID){ |
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const void SaveFile::UpdateSaveGameData(){ |
|
|
|
|
std::filesystem::create_directories("save_file_path"_S); |
|
|
|
|
auto LoadMetadataFile=[](){ |
|
|
|
|
auto gameFilesList=Component<ScrollableWindowComponent>(LOAD_GAME,"Game Files List"); |
|
|
|
|
gameFilesList->RemoveAllComponents(); |
|
|
|
|
const size_t saveFileCount=GetSaveFileCount(); |
|
|
|
|
utils::datafile metadata; |
|
|
|
|
if(!std::filesystem::exists("save_file_path"_S+"metadata.dat")){ |
|
|
|
|
utils::datafile::Write(metadata,"save_file_path"_S+"metadata.dat"); |
|
|
|
|
} |
|
|
|
|
utils::datafile::Read(metadata,"save_file_path"_S+"metadata.dat"); |
|
|
|
|
float offsetY=0; |
|
|
|
|
for(size_t i=0;i<saveFileCount;i++){ |
|
|
|
@ -257,7 +261,7 @@ const std::string SaveFile::CreateServerRequest(const SaveFileOperation::Operati |
|
|
|
|
; / ? : @ & = + $ , |
|
|
|
|
uriMark ::: one of |
|
|
|
|
- _ . ! ~ * ' ( ) |
|
|
|
|
Let unescapedURISet be a String containing one instance of each character valid in uriReserved and uriUnescaped plus “#”. |
|
|
|
|
Let unescapedURISet be a String containing one instance of each character valid in uriReserved and uriUnescaped plus <EFBFBD>#<EFBFBD>. |
|
|
|
|
*/ |
|
|
|
|
const std::array uriReserved={';','/','?',':','@','&','=','+','$',',','-','_','.','!','~','*','\'','(',')','#'}; |
|
|
|
|
if(c>='A'&&c<='Z'||c>='a'&&c<='z'||c>='0'&&c<='9'||std::find(uriReserved.begin(),uriReserved.end(),c)!=uriReserved.end())return std::move(str)+c; |
|
|
|
|