Browse Source

system: try to autodetect the data directory from the executable path;

currently works for images (SDL and GDI+ loaders) and sound samples.
master
Sam Hocevar 12 years ago
parent
commit
27e5ce7bef
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      neercs/neercs.cpp

+ 3
- 1
neercs/neercs.cpp View File

@@ -1,7 +1,7 @@
//
// Neercs
//
// Copyright: (c) 2012 Sam Hocevar <sam@hocevar.net>
// Copyright: (c) 2012-2013 Sam Hocevar <sam@hocevar.net>
//

#if defined HAVE_CONFIG_H
@@ -70,6 +70,8 @@ Neercs::~Neercs()

int main(int argc, char **argv)
{
System::Init(argc, argv);

Application app("Neercs", ivec2(800, 600), 60.0f);

#if defined _MSC_VER && !defined _XBOX


Loading…
Cancel
Save