aboutsummaryrefslogtreecommitdiff
path: root/assets/blender/mbb/prellbock.blend1
diff options
context:
space:
mode:
authorGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2018-02-21 19:58:45 +0100
committerorwell96 <orwell@bleipb.de>2018-02-21 20:03:34 +0100
commit481f6218a8b377a0826b7e080046b5a890702e12 (patch)
tree3baa24616afb8790eb16f882863241b9f7d91523 /assets/blender/mbb/prellbock.blend1
parent4c512f1dc5755efc7afd55b58078ec466442f648 (diff)
downloadadvtrains-481f6218a8b377a0826b7e080046b5a890702e12.tar.gz
advtrains-481f6218a8b377a0826b7e080046b5a890702e12.tar.bz2
advtrains-481f6218a8b377a0826b7e080046b5a890702e12.zip
Log certain events in a logfile in the world directory
(also fix the output of /at_sync_ndb)
Diffstat (limited to 'assets/blender/mbb/prellbock.blend1')
0 files changed, 0 insertions, 0 deletions
class="hl com">with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Random portability stuff */ #ifndef PORTING_HEADER #define PORTING_HEADER #include <string> // Included for u32 and such #include "common_irrlicht.h" #include "debug.h" #include "constants.h" #ifdef _MSC_VER #define SWPRINTF_CHARSTRING L"%S" #else #define SWPRINTF_CHARSTRING L"%s" #endif #ifdef _WIN32 #include <windows.h> #define sleep_ms(x) Sleep(x) #else #include <unistd.h> #define sleep_ms(x) usleep(x*1000) #endif 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. */ 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>" */ extern std::string path_userdata; /* Get full path of stuff in data directory. Example: "stone.png" -> "../data/stone.png" */ inline std::string getDataPath(const char *subpath) { return path_data + "/" + subpath; } /* Initialize path_data and path_userdata. */ void initializePaths(); /* Resolution is 10-20ms. Remember to check for overflows. Overflow can occur at any value higher than 10000000. */ #ifdef _WIN32 // Windows #include <windows.h> inline u32 getTimeMs() { return GetTickCount(); } #else // Posix #include <sys/time.h> inline u32 getTimeMs() { struct timeval tv; gettimeofday(&tv, NULL); return tv.tv_sec * 1000 + tv.tv_usec / 1000; } /*#include <sys/timeb.h> inline u32 getTimeMs() { struct timeb tb; ftime(&tb); return tb.time * 1000 + tb.millitm; }*/ #endif } // namespace porting #endif // PORTING_HEADER