1
0
Fork 0
dosbox-staging/include
krcroft c730e5d70a
Permit the use of protected game data files
Many DOS games open all their files in write-mode regardless if the
game actually intends to write to them or not.

This can result the files' metadata being updated (lossing the
original date-stamp) as well as putting the file at-risk of
corruption if the game crashes with the file open for writing.

Under the existing DOSBox implementation, if a user attempts to
write-protect their data files then DOSBox will quit with an error in
the above scenario.

This commit allows the use of write-protected files (similar to
running a game from CDROM) and indicates which files are being
actively protected against modification.

Typically the only files that need to be left writable are those that
the game actually changes, such as: save-game files, highscore
files, in-game settings, and so on.  If these are also protected,
then the game will quit/crash immediately after the protected message
is printed, and thus indicate which file require write-allowance.
2020-02-23 21:45:20 -08:00
..
.gitignore Import svn:ignore props to .gitignore files 2019-09-15 20:34:57 +02:00
bios.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
bios_disk.h Remove extern global variable from bios_disk.h 2019-12-18 23:56:28 +01:00
callback.h Acknowledge mouse interrupt before entering user routine; fixes sound stutter during mouse movement in Eye of the Beholder III and Casino Tournament of Champions. Clear button counters in the mouse driver reset function; prevents unintended skipping of intro in MechWarrior and others. 2019-02-04 15:15:58 +00:00
compiler.h Move GCC_ATTRIBUTE out of autoconf 2019-12-29 20:04:39 +01:00
control.h Stop silencing disabled C4786 MSVC warning 2019-12-29 20:04:39 +01:00
cpu.h Improve prefetch and simple cores to not switch to normal core on trap execution. Fixes the demo version of Prehistorik 2 and similar cases that use the trap flag and prefetch tricks. Thanks NewRisingSun. 2019-04-01 22:06:11 +00:00
cross.h Redefine fileno for Windows 2020-01-11 17:50:28 +01:00
debug.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
dma.h remove unused variable 2020-02-15 17:21:22 +00:00
dos_inc.h Fix unsafe memory operations and warnings in the fatDrive class 2019-12-09 08:19:26 +01:00
dos_system.h Use unsigned for numbers in shortened filenames 2020-02-06 09:24:05 +01:00
dosbox.h Add cga_mono machine 2020-01-29 13:46:23 +01:00
drives.h Permit the use of protected game data files 2020-02-23 21:45:20 -08:00
fpu.h Refine stack overflow and underflow for the fpu a bit. 2019-04-01 14:32:18 +00:00
hardware.h Revert "Enhance capturing to handle unchanged screens (…)" r4329 2020-02-22 20:59:59 +01:00
inout.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
ipx.h Indicate system includes for relevant SDL headers 2019-12-26 03:23:19 +01:00
ipxserver.h Indicate system includes for relevant SDL headers 2019-12-26 03:23:19 +01:00
joystick.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
keyboard.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
logging.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
Makefile.am Move drives.h to common include dir 2020-01-04 08:26:22 +01:00
mapper.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
mem.h Avoid buffer underflow by copying all fields 2020-02-23 01:13:11 +01:00
midi.h Make it possible to compile without CoreMIDI and CoreAudio on Mac OS X using a non-Apple compiler. Give some feedback to user in this case. (modified version of patch by krcroft with input from jmarsh, Dominus and Qbix) 2019-11-10 14:50:11 +00:00
mixer.h Refactor CD-DA flow by removing intermediate buffers and loops 2019-11-12 08:16:53 +01:00
mouse.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
paging.h Store whether generated code is 16 or 32 bit, so this information can be used when checking for self modifying code. Some code is identical except for being 32 or 16 bit. Fixes some hard to reproduce problems (with small codeblocks). Thanks jmarsh! 2019-04-19 12:16:14 +00:00
pci_bus.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
pic.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
programs.h Fix unsafe memory operations and warnings in the fatDrive class 2019-12-09 08:19:26 +01:00
regs.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
render.h Add OpenGL shader support. (patch by ny00123 and refined by jmarsh). Add several builtin ones that mimic the scalers and some extra. Thanks jmarsh 2020-02-10 18:59:01 +00:00
serialport.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
setup.h Stop silencing disabled C4786 MSVC warning 2019-12-29 20:04:39 +01:00
shell.h Fix unsafe memory operations and warnings in the fatDrive class 2019-12-09 08:19:26 +01:00
support.h Cleanup ifdef guards in serialport misc util 2020-02-19 19:25:47 +01:00
timer.h Update year and address of FSF 2019-01-25 14:09:58 +00:00
types.h Use PRIuPTR and define it for Windows GCC 64-bit 2019-12-03 05:12:28 +01:00
vga.h Add cga_mono machine 2020-01-29 13:46:23 +01:00
video.h Merge branch 'svn/trunk' r4319 2020-02-12 08:39:40 +01:00