source: trunk/src/lol/sys/init.h @ 2259

Last change on this file since 2259 was 2259, checked in by sam, 7 years ago

sys: retrieve executable path if available.

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://www.wtfpl.net/ for more details.
9//
10
11//
12// Various system helper functions
13// -------------------------------
14//
15
16#if !defined __LOL_SYS_INIT_H__
17#define __LOL_SYS_INIT_H__
18
19#include <stdint.h>
20
21namespace lol
22{
23
24/*
25 * Module-specific macros. These can be overridden by the build process,
26 * typically with compiler command-line flags.
27 */
28
29#if !defined LOL_CONFIG_PROJECTDIR
30#   define LOL_CONFIG_PROJECTDIR ""
31#endif
32
33#if !defined LOL_CONFIG_SOLUTIONDIR
34#   define LOL_CONFIG_SOLUTIONDIR ""
35#endif
36
37/*
38 * System namespace. The platform-specific stuff in there makes the API
39 * not as clean as the rest of the framework.
40 */
41
42namespace System
43{
44
45extern void Init(int argc, char *argv[],
46                 String const projectdir = LOL_CONFIG_PROJECTDIR,
47                 String const solutiondir = LOL_CONFIG_SOLUTIONDIR);
48
49extern void SetDataDir(char const *dir);
50extern char const *GetDataDir();
51
52} /* namespace System */
53
54} /* namespace lol */
55
56#endif // __LOL_SYS_INIT_H__
57
Note: See TracBrowser for help on using the repository browser.