Author Topic: Would disk access infringe on your system's security?  (Read 2646 times)

0 Members and 1 Guest are viewing this topic.

Offline Jaze

  • Newbie
  • Posts: 86
    • View Profile
Would disk access infringe on your system's security?
« on: March 01, 2021, 06:21:44 pm »
I'm making a game. When I'm finished I intend to post the code in the games forum. I was thinking of including a save / load feature as well as high scores. I don't know how people would feel allowing disk access to accomplish this. Yet since the code will be readily visible I don't think people would mind. Opinions?

Marked as best answer by Jaze on March 02, 2021, 08:48:15 am

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Would disk access infringe on your system's security?
« Reply #1 on: March 01, 2021, 06:43:57 pm »
Lots of programs perform file I/O to accomplish their tasks. I don't think people will care that your program will use the disk. Just make sure that your program doesn't create gigantic files and get stuck in a loop. That would make it appear slightly malicious
Shuwatch!

Offline Richard Frost

  • Seasoned Forum Regular
  • Posts: 316
  • Needle nardle noo. - Peter Sellers
    • View Profile
Re: Would disk access infringe on your system's security?
« Reply #2 on: March 01, 2021, 11:30:26 pm »
I've never thought it was an issue. 

It's common for advanced programs to have options, and to save any changes users make for the next
time the program is fired up.  Such options are colors, fullscreen or not, sound on or off, etc.

Also, a temporary file is often created when retrieving files, like "shell /c dir >temp.dir", unless
one uses the SpriggsySpriggs pipecom library. Some people think it's good manners for the program to
delete such temporary files, but I think it's nicer that the code never shells out a "del" command or
contains a KILL command. 

One has to eliminate all disk output if it's known that the code must run from a CD or write-protected
device, but that's a bit rare.

It works better if you plug it in.

Offline 191Brian

  • Newbie
  • Posts: 91
    • View Profile
    • My Itch page
Re: Would disk access infringe on your system's security?
« Reply #3 on: March 02, 2021, 04:05:19 am »
Hi

As already said most larger programs would do some file i/o so I never considered it an issue.  My tile map editor does lots and my invaders game has high scores loaded & saved to disk don't it worried anyone.

Note you can't post direct to the games board, need to post it to programs then a moderater will decide if it should go into games. Sadly none of mine made it yet but I'll keep trying to get better.

Look forward to seeing your game.
Brian ...

Offline Jaze

  • Newbie
  • Posts: 86
    • View Profile
Re: Would disk access infringe on your system's security?
« Reply #4 on: March 02, 2021, 02:09:16 pm »
Thank you. The program I'm writing is a relatively simple game in the old Atari 2600 style... bit more complex. I wanted to include a Save / Load for it and a high scores file. They're just going to be small text files. The save game will be a list of single or double digits. I have an array of the screen from 1 to 80, 1 to 45, 1 to 3. The first numbers is the ASCII code at that screen position, the color of said character and a double or single digit number related to said character.  I don't like random access files so I use text files. I plan on printing out a list of those numbers in a text file. The files should only be a few kilobytes. Thanks for getting back to me. I hope to finish the game by April 15th, my father's birthday. He got me started programming with an old Apple IIe. I can't say I've progressed beyond string manipulations but I do all right.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Would disk access infringe on your system's security?
« Reply #5 on: March 02, 2021, 03:22:38 pm »
Nice! good luck.