Taking a screenshot with Controlled folder access on crashes the game

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Taking a screenshot with Controlled folder access on crashes the game

Re: Taking a screenshot with Controlled folder access on crashes the game

by Chris » Tue Jun 10, 2025 6:32 pm

Kappes Buur wrote: Mon Jun 09, 2025 9:01 pm It seems to me that you are going to a lot of trouble for little benefit.
You could simply specify a folder in the ini file where to save a screenshot.
eg: screenshot_dir=D:\SCREENSHOTS\SCREENSHOTS_GZDOOM
I think the concern is more about the crash when it couldn't save the screenshot to the given folder due to inadvertently specifying a protected folder, that it should just give an error message but continue running.

Re: Taking a screenshot with Controlled folder access on crashes the game

by Kappes Buur » Mon Jun 09, 2025 9:01 pm

It seems to me that you are going to a lot of trouble for little benefit.
You could simply specify a folder in the ini file where to save a screenshot.
eg: screenshot_dir=D:\SCREENSHOTS\SCREENSHOTS_GZDOOM

To expand on that a bit, I use these settings in the autoexec.cfg file
bind h "wait 2; r_drawplayersprites 0; wait 2; screenshot; wait 2; r_drawplayersprites 1;"
bind j "wait 2; screenshot; wait 2;"

Taking a screenshot with Controlled folder access on crashes the game

by Ihavequestions » Mon Jun 09, 2025 5:21 am

I recently turned on Controlled folder access in the Windows security tab, and this leads to the game crashing when trying to take a screenshot via F12. The GZDoom version is g4.14.2.

The message displayed in the window is "Execution could not continue. Unable to retrieve known folder."

Solution: The game should be able to handle such things without crashing. It should instead give the user an in-game message that the screenshot could not be saved.

Top