Writing files with sandbox disabled inside the program directory

Discussion in 'Programming' started by Goldoche, Sep 13, 2019.

  1. Goldoche

    Goldoche Member

    Dec 30, 2016
    I'm trying to write some files in the program directory. I've noticed I can create a test file on my desktop just fine both in a compiled version of my game and from running inside the editor.

    I have a compiled version of my game I just extracted sitting inside a folder on my desktop. It has the same code as inside the editor.
    From running the game inside the editor, if I'm using the absolute path to the game's folder on my desktop the test file will be created just fine too.

    example of absolute path
    However, if I the exact same code is used when running the compiled version of the game, the file will be created in AppData/local/myGame.

    I'm wondering if this is an oversight from YoYo when they added the option to disable the sandbox. Windows obviously doesn't have an issue writing in that folder if I can do it when running the same code from inside the editor.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice