mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-04 01:51:25 +00:00
1149b4f4aa
* saving of demos and savegames no longer mindlessly writes to the mod directory. All such access is now being rerouted through the special paths interface so that the game data can reside in write protected locations. * refactored all occurences of klistpath except fnlist_getnames. * do not allow CON scripts to write to arbitrary files. This is a massive exploit and can be used to cause real damage if someone knows how to play this thing - it's far easier than people may think! It will now write any such data to a special section in the main config which is safe and cannot be manipulated to write to random locations on the hard drive.
20 lines
531 B
C
20 lines
531 B
C
#pragma once
|
|
|
|
#include "zstring.h"
|
|
|
|
#ifdef __unix__
|
|
FString GetUserFile (const char *path);
|
|
#endif
|
|
FString M_GetAppDataPath(bool create);
|
|
FString M_GetAutoexecPath();
|
|
FString M_GetConfigPath(bool for_reading);
|
|
FString M_GetScreenshotsPath();
|
|
FString M_GetSavegamesPath();
|
|
FString M_GetDocumentsPath();
|
|
FString M_GetDemoPath();
|
|
|
|
|
|
#ifdef __APPLE__
|
|
FString M_GetMacAppSupportPath(const bool create = true);
|
|
void M_GetMacSearchDirectories(FString& user_docs, FString& user_app_support, FString& local_app_support);
|
|
#endif // __APPLE__
|