diff --git a/Adventures in Lestoria/C++/scripts/build.sh b/Adventures in Lestoria/C++/scripts/build.sh old mode 100644 new mode 100755 index 17ade89d..51f04f56 --- a/Adventures in Lestoria/C++/scripts/build.sh +++ b/Adventures in Lestoria/C++/scripts/build.sh @@ -15,20 +15,20 @@ if [ "$1" = "test" ] then printf "Running tests...\n" echo "#define TEST_SUITE" > ./test/test.h - if g++ $(find . -type f -name "*.cpp" -not -name "pixelGameEngine.cpp") pixelGameEngine.o ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then - ./${PROJECT_NAME} "$@" + if g++ $(find . -type f -name "*.cpp" -not -name "pixelGameEngine.cpp") pixelGameEngine.o ${CUSTOM_PARAMS} -o "${PROJECT_NAME}"; then + "./${PROJECT_NAME}" "$@" fi elif [ "$1" = "full" ] then echo "" > ./test/test.h g++ ${CUSTOM_PARAMS} -c pixelGameEngine.cpp - if g++ $(find . -type f -name "*.cpp" -not -path "./test/*" -not -name "pixelGameEngine.cpp") pixelGameEngine.o ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then - ./${PROJECT_NAME} "$@" + if g++ $(find . -type f -name "*.cpp" -not -path "./test/*" -not -name "pixelGameEngine.cpp") pixelGameEngine.o ${CUSTOM_PARAMS} -o "${PROJECT_NAME}"; then + "./${PROJECT_NAME}" "$@" fi else echo "" > ./test/test.h - if g++ $(find . -type f -name "*.cpp" -not -path "./test/*" -not -name "pixelGameEngine.cpp") pixelGameEngine.o ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then - ./${PROJECT_NAME} "$@" + if g++ $(find . -type f -name "*.cpp" -not -path "./test/*" -not -name "pixelGameEngine.cpp") pixelGameEngine.o ${CUSTOM_PARAMS} -o "${PROJECT_NAME}"; then + "./${PROJECT_NAME}" "$@" fi fi printf "\n\n" diff --git a/Adventures in Lestoria/C++/scripts/commit.sh b/Adventures in Lestoria/C++/scripts/commit.sh old mode 100644 new mode 100755 diff --git a/Adventures in Lestoria/C++/scripts/debug.sh b/Adventures in Lestoria/C++/scripts/debug.sh old mode 100644 new mode 100755 diff --git a/Adventures in Lestoria/C++/scripts/lines.sh b/Adventures in Lestoria/C++/scripts/lines.sh old mode 100644 new mode 100755 diff --git a/Adventures in Lestoria/C++/scripts/release.sh b/Adventures in Lestoria/C++/scripts/release.sh old mode 100644 new mode 100755 diff --git a/Adventures in Lestoria/C++/scripts/temp b/Adventures in Lestoria/C++/scripts/temp old mode 100644 new mode 100755 diff --git a/Adventures in Lestoria/C++/scripts/web.sh b/Adventures in Lestoria/C++/scripts/web.sh old mode 100644 new mode 100755 diff --git a/Adventures in Lestoria/SaveFile.cpp b/Adventures in Lestoria/SaveFile.cpp index eb4ef523..df178431 100644 --- a/Adventures in Lestoria/SaveFile.cpp +++ b/Adventures in Lestoria/SaveFile.cpp @@ -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 � 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(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='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; diff --git a/Adventures in Lestoria/sig b/Adventures in Lestoria/sig old mode 100644 new mode 100755 index 525a60fd..301b939b --- a/Adventures in Lestoria/sig +++ b/Adventures in Lestoria/sig @@ -1,4 +1,4 @@ -export AUTO_UPDATE=true +export AUTO_UPDATE=false source utils/define.sh