Hello
I have a small problem with the media folder. I try to store the contents of this folder to another folder, where it is the executable of the game. To explain more easily, I paste the code (test code) below.:
// Project: TestMediaFolder
// Created: 2016-05-25
// set window properties
SetWindowTitle( "TestMediaFolder" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
// Path of the fodler data (F:\Dev\agk_project\TestMediaFolder\data)
pathData$ = GetReadPath() + "data"
// Set the media folder (in AppData/Local/AGKApps/TestMediaFolder/) to F:\Dev\agk_project\TestMediaFolder\data
SetRawWritePath(pathData$)
// Write simple text to create a file in media folder
fileID = OpenToWrite("hello.txt")
WriteLine(fileID, "Hello World")
CloseFile(fileID)
do
Print(GetWritePath())
Sync()
loop
After creating the data directory, I run the program and the file "hello.txt" well appears in the data / media directory. But, at the launch of the program, a folder is created in "AppData / Local / AGKApps / TestMediaFolder /" with as content :
- A folder media
- Arial.png
- Avenir.png
- Button.png
- ButtonDown.png
- interpreter-backdrop.png
- interpreter-logo.png
- interpreter-power.png
- interpreter-spinner.png
- JoystickInner.png
- JoystickOuter.png
- Missing.png
Is there a way that does not create this directory ? or that copy what he needs in my data folder ?
I'm on the 2.0.19 version of agk2 (steam version). My system is Windows 10.
I have a little trouble with that, thank you.