Commit graph

1335 commits

Author SHA1 Message Date
lambertjamesd b0c02a33f7
Merge pull request #591 from mwpenny/save-fix
Do not save partial savefile on first boot (fixes #583)
2024-01-07 13:53:42 -07:00
Matt Penny 3d5b1b860f Do not save partial savefile on first boot (fixes #583)
With the implementation of save file deletion, I refactored
savefileNew() to re-use the common save file deletion code.

However, savefileDeleteGame() has the side effect of writing
the save back to SRAM. Since the rest of savefileNew() does
not write to SRAM, this means that on first boot it was
possible to get a partially-written save file if the game
was powered off before the first real save (some options had
zero/null values).

To fix this, I created a helper function to update a save file
in memory without writing it back to SRAM. This has the added
benefit of not unnecessarily re-ordering the slots in savefileNew().

I chose not to add a savefileSave() to the end of savefileNew()
since it is called from savefileLoad(), and saving while loading
doesn't seem intuitive. I also don't think it's a good idea to save
in the middle of initialization, in case a user is able to cut
power at the (im)perfect time. The operation should be atomic.
2024-01-07 14:03:31 -05:00
James Lambert 8d7d047415 Add some more materials 2024-01-06 21:10:31 -07:00
James Lambert 6f1834f742 Touch up some test chambers 2024-01-06 20:55:35 -07:00
James Lambert 33c80b25ee Add lighten material variants 2024-01-06 19:42:24 -07:00
James Lambert 61d225e9a4 Increase max render distance 2024-01-03 21:42:33 -07:00
James Lambert 4ddf568628 Use correct starting scene 2024-01-03 19:18:09 -07:00
James Lambert 95ca05b846 Build out much of test chamber 09 2024-01-02 21:36:53 -07:00
James Lambert dba8b5d415 Build out static content for test chamber 09 2024-01-01 21:49:21 -07:00
James Lambert 0f4877553c Start on test chamber 09 2023-12-30 21:50:15 -07:00
James Lambert 49ab59dc5b Updates menus to include new test chamber 2023-12-29 21:48:16 -07:00
James Lambert 0c1795485c Fix bug where cubes slide off of moving platforms 2023-12-29 21:48:16 -07:00
James Lambert ee42238411 Work on test chamber 08 2023-12-29 21:48:16 -07:00
lambertjamesd bee8411ca5
Merge pull request #582 from alanjaouen/patch-1
fix french translation
2023-12-29 19:51:53 -07:00
Alan Jaouen 653dc3e77c
fix french translation 2023-12-30 01:42:02 +01:00
James Lambert c4d0804cdf Update readme for first slice 2023-12-29 14:17:15 -07:00
James Lambert 5961a8474c Create script to simplify building a release 2023-12-29 13:40:23 -07:00
lambertjamesd 18730b7f12
Merge pull request #580 from VanGorkum/Gorky/options_menu_highlighted
Introduced highlighted options menu similar to Portal Switch version
2023-12-29 10:22:41 -07:00
James Lambert e01fa284b7 First draft of test chamber 13 2023-12-28 21:32:03 -07:00
James Lambert a7261cf132 Build out static content for test_chamber_08 2023-12-28 21:32:03 -07:00
lambertjamesd cfd50df93f
Merge pull request #577 from VanGorkum/Gorky/portal
Introduce Portal UI look from Switch version
2023-12-28 20:54:39 -07:00
VanGorkum 9e84e92a87 Repositioned code to draw orange rectangle in landing menu 2023-12-29 00:05:07 +01:00
VanGorkum e9b21e0d38 Updated implementation to use max text width property 2023-12-28 23:56:37 +01:00
VanGorkum c1d4ea5314 Introduced highlighted options menu similar to Portal Switch version 2023-12-28 19:37:49 +01:00
VanGorkum 3c5b8c9e7c Used option text properties for x and y coordinates 2023-12-28 18:40:08 +01:00
VanGorkum 6da067113e Increased highlight width to support all languages 2023-12-28 08:34:28 +01:00
VanGorkum 8d9f001ffd Added packed menu threshold constant for UI, minor cleanup 2023-12-27 10:38:30 +01:00
lambertjamesd c6fb48cf15
Merge pull request #572 from Jgoodwin64/another_readme_update
Another readme update
2023-12-26 09:43:05 -07:00
lambertjamesd 61ed827764
Merge pull request #573 from mwpenny/save-deletion
Support save file deletion (#412)
2023-12-26 09:42:27 -07:00
VanGorkum 03a6395dce Introduced Portal UI look from Switch version 2023-12-26 16:48:09 +01:00
Matt Penny 4f1a322c46 Confirm before deleting or overwriting save 2023-12-24 13:35:39 -05:00
Matt Penny 4e4a5e6ed0 Add menu icons and text for save/load/delete 2023-12-24 11:40:59 -05:00
Joseph 785a0e6f39
docker_setup.md
Typo in the link again but I tested it and it works now.
2023-12-23 22:31:52 -05:00
Joseph 050401d304
Update docker_setup.md
Updating link in Docker instructions,
2023-12-23 22:27:56 -05:00
Joseph 32adee7542
Update README.md
I changed where it implied that you can just download the release of the ROM and play it with no further action.
2023-12-23 22:09:13 -05:00
Joseph dd87cac1a8
Update README.md
https://github.com/lambertjamesd/portal64/discussions/395#discussioncomment-7462499
Changed how long it has been in development in readme as per comments.
2023-12-23 22:00:16 -05:00
James Lambert 9c6e54112d fix sparks from balls passing through portals 2023-12-23 19:39:38 -07:00
James Lambert 0c141a9cff more profile work 2023-12-23 18:15:51 -07:00
James Lambert 7c2c1a62d5 Fix profiler 2023-12-23 13:46:00 -07:00
lambertjamesd e9eeb07e42
Merge pull request #570 from theGoodwins/re-organize_portal_repo1
reorganized the readme and move files.
2023-12-23 13:34:44 -07:00
Joseph 77903a9395 reorganized the readme and move files.
I move contributing.md to the documentation folder.
I moved setup.sh to the tools folder.
I renamed contributing.md from all caps to lowercase to match other files.
I moved docker setup to it's own file.
I moved some instructions to the  add_vpk_here.md file.
2023-12-21 18:22:06 -05:00
lambertjamesd ff3f2b7ff2
Merge pull request #569 from MateusSilvaFreitas/master
Brazilian translations Fix
2023-12-21 15:24:56 -07:00
Matt Penny 5036b40505 Support save file deletion on load/save menus with Z trigger 2023-12-21 12:10:27 -05:00
lambertjamesd 84e71f7a78
Merge pull request #568 from theGoodwins/readme-reformat
Readme reformat
2023-12-20 19:39:20 -07:00
Mateus Silva Freitas 93aa8bea04
Brazilian translations Fix
Fix of brazilian translation
2023-12-20 13:31:03 -03:00
Joseph 8af17e8514
Update README.md
I had a tiny typo and it bugged me. Maybe not worth a whole commit over.
2023-12-20 01:34:07 -05:00
Joseph 8105ddedc9
Merge branch 'master' into readme-reformat 2023-12-20 01:21:22 -05:00
Joseph 1afccf121e
Update setup.sh
Updated the script to auto install some packages that Ubuntu needs in WSL.
2023-12-20 01:03:32 -05:00
lambertjamesd fbfa70638b
Merge pull request #567 from theGoodwins/no-wine-no-fix
Make fix be auto.
2023-12-19 22:23:43 -07:00
Joseph 227a76229b
Update Makefile
Removed:
chmod +x tools/romfix64.sh
chmod +x skelatool64/setup_dependencies.sh
because they are no longer needed.
2023-12-19 20:38:48 -05:00