Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] What is the correct path to save data in tier2 (windows10)

Author
Message
spasski
AGK Backer
11
Years of Service
User Offline
Joined: 2nd Jan 2013
Location: Amsterdam
Posted: 9th May 2020 07:27
The template.h has default this line of code:


// used to make a more unique folder for the write path
#define COMPANY_NAME "My Company"


It seems that "My Company" is a folder created within the AGKApps folder (AppData/Local). Is this a bug or the idea?

The author of this post has marked a post as an answer.

Go to answer

Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 9th May 2020 12:26 Edited at: 9th May 2020 12:28
This post has been marked by the post author as the answer.
Thats the idea really. You are guaranteed to be able to write to that location and its unique to your company name

See the documentation for SetFolder()

https://www.appgamekit.com/documentation/Reference/File/SetFolder.htm


Theres nothing to stop you from attempting to write elsewhere and even to the media folder if you wanted to using the raw functions but you are not always guaranteed to have write access.
spasski
AGK Backer
11
Years of Service
User Offline
Joined: 2nd Jan 2013
Location: Amsterdam
Posted: 10th May 2020 11:22
Thanks!!!

Login to post a reply

Server time is: 2024-11-22 05:17:26
Your offset time is: 2024-11-22 05:17:26