Some functions of the game require that it be run with administrator rights, but need to make sure that it always requests them automatically and does not start without them, because some part of the game stops working because of this

I'm sure it's platform-dependent. But why would a game need administrator rights?

    AnatoliyV brugh, nobody will install game that ask for root pass... that is just wrong.

    Better emulate files, take a snapshot of file structure or something and recreate what you want to do.

    AnatoliyV A horror game for Windows, need to interact with files and scare players

    Not this again 😮‍💨

    AnatoliyV A horror game for Windows, need to interact with files and scare players

    Ransomware virus?

    AnatoliyV need to interact with files and scare players

    Like this?

    All your files are belong to us.