fivem icon indicating copy to clipboard operation
fivem copied to clipboard

fix(rage-device/five): Error out on cloud files

Open 4mmonium opened this issue 3 years ago • 0 comments

The issue: The application seems to get stuck in a loop when cloud files are accessed, this is caused by users installing their GTA on the cloud, causing the game to neither load, nor 'gracefully' exit.

The solution: To correct this, we simply get the file attributes and check if the following flag is set: FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS. If it's set, we return an invalid handle, so it's passed down the stack. Once this errors, FatalError under OpenArchiveWrap will be triggered. I have modified the message so any affected clients are notified in the event this occurs.

4mmonium avatar Jan 16 '22 14:01 4mmonium