]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/porting.h
lava!
[dragonfireclient.git] / src / porting.h
index 3133fcc804e275b6fb81b21e88b72b092dc18932..3f9486b63fb1fda9b14afafe5e8e2347e99f17a1 100644 (file)
@@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define PORTING_HEADER
 
 #include <string>
-// Included for u64 and such
+// Included for u32 and such
 #include "common_irrlicht.h"
 #include "debug.h"
 #include "constants.h"
@@ -47,6 +47,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 namespace porting
 {
 
+/*
+       Signal handler (grabs Ctrl-C on POSIX systems)
+*/
+
+void signal_handler_init(void);
+// Returns a pointer to a bool.
+// When the bool is true, program should quit.
+bool * signal_handler_killstatus(void);
+
 /*
        Path of static data directory.
 */
@@ -54,9 +63,9 @@ extern std::string path_data;
 
 /*
        Directory for storing user data. Examples:
-       Windows: "C:\Documents and Settings\user\Application Data\<APPNAME>"
-       Linux: "~/.<APPNAME>"
-       Mac: "~/Library/Application Support/<APPNAME>"
+       Windows: "C:\Documents and Settings\user\Application Data\<PROJECT_NAME>"
+       Linux: "~/.<PROJECT_NAME>"
+       Mac: "~/Library/Application Support/<PROJECT_NAME>"
 */
 extern std::string path_userdata;