CPCWiki forum

General Category => Programming => Topic started by: johnlobo on 10:46, 21 October 23

Title: running from a dsk or a cdt??
Post by: johnlobo on 10:46, 21 October 23
Hi all,

I'm finishing a game that saves the hi score table on disk. But I would like it to run if it's loaded from a cdt too. So I would like to skip the disk saving routine in case the game is loaded from a cdt. 

Is there a way to identify if the game has been loaded from a dsk file or a cdt file once it's running??

The game it's made in assembler.

Thanks in advance,
John.
Title: Re: running from a dsk or a cdt??
Post by: Jean-Marie on 12:33, 21 October 23
Hello,
Check out this thread :
How to check if program was launched from disk or tape? (cpcwiki.eu) (https://www.cpcwiki.eu/forum/programming/how-to-check-if-program-was-launched-from-disk-or-tape/msg228058/#msg228058)
Title: Re: running from a dsk or a cdt??
Post by: johnlobo on 10:17, 22 October 23
Thank you very much. I'll try with A70A.

Powered by SMFPacks Menu Editor Mod