N
natahem
Guest
Does anyone knows if it's possible to read an ini file from another game? I'm trying, from "Game2", to access a save file from "Game1".
I did something like:
dir = environment_get_variable("LOCALAPPDATA");
if (file_exists(dir+"\Game1\"+"Save.sav")) {
check=true;
}
But it doesnt work.
I also tried with a path like:
dir = working_directory + "..\Game1\"
But the path is not working either.
So the question is, how to access a file not located in the current game directory?
And in a similar way, is it possible to read Steam achievements from another game?
(the idea being to give bonus to players who finished previous games....)
I did something like:
dir = environment_get_variable("LOCALAPPDATA");
if (file_exists(dir+"\Game1\"+"Save.sav")) {
check=true;
}
But it doesnt work.
I also tried with a path like:
dir = working_directory + "..\Game1\"
But the path is not working either.
So the question is, how to access a file not located in the current game directory?
And in a similar way, is it possible to read Steam achievements from another game?
(the idea being to give bonus to players who finished previous games....)