Grafx2 now disables safety backups (and warns the user on startup) if another instance is running or if its configuration directory is read-only. Implemented separately on Linux and Windows, tested only on Windows
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1343 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
9
io.h
9
io.h
@@ -94,3 +94,12 @@ void For_each_file(const char * directory_name, void Callback(const char *));
|
||||
/// Creates a fully qualified name from a directory and filename.
|
||||
/// The point is simply to insert a PATH_SEPARATOR when needed.
|
||||
void Get_full_filename(char * output_name, char * file_name, char * directory_name);
|
||||
|
||||
///
|
||||
/// Creates a lock file, to check if an other instance of Grafx2 is running.
|
||||
/// @return 0 on success (first instance), -1 on failure (others are running)
|
||||
byte Create_lock_file(const char *file_directory);
|
||||
|
||||
///
|
||||
/// Release a lock file created by ::Create_Lock_file
|
||||
void Release_lock_file(const char *file_directory);
|
||||
Reference in New Issue
Block a user