Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Added the capability to load a save file as a command line argument. #23

Merged
merged 1 commit into from
Jan 22, 2016

Conversation

superxkooda
Copy link
Contributor

I think there may be a few things that will need to be adjusted before this gets merged. These changes only take effect for the curses version. While dos and the sdl variants of these functions should not be broken.

…Now you don't need to load the game and issue the restore command to load a file. Everything else still works as one would think.

I these changes are only going to effect the curses version for now. I do not have a proper enviroment setup to test out dos.

Example:
frotz file.zblorb -R save.qzl
@@ -1,3 +1,13 @@
Summary of changes between Frotz 2.44 and Frotz 2.45:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be changed. I wasn't sure what to put here.

@DavidGriffith
Copy link
Owner

This is going to need a lot of work. You used strcpy(), on user-supplied text. This is something that's a common source of exploits. Supplying a filename for a file that does not exist crashes the VM. I'm not sure I feel safe about what you're doing with f_setup.tmp_save_name.

@DavidGriffith DavidGriffith merged commit f7ad62f into DavidGriffith:master Jan 22, 2016
@DavidGriffith DavidGriffith self-assigned this Jan 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants