open_toontown_panda3d/direct/src/plugin_standalone/p3dEmbedMain.cxx

36 lines
789 B
C++

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file p3dEmbedMain.cxx
* @author drose
* @date 2010-01-04
*/
#include "p3dEmbed.h"
#ifdef P3DEMBEDW
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
#endif
#ifdef _WIN32
volatile unsigned __int32 p3d_offset = 0xFF3D3D00;
#else
#include <stdint.h>
volatile uint32_t p3d_offset = 0xFF3D3D00;
#endif
int
main(int argc, char *argv[]) {
#ifdef P3DEMBEDW
P3DEmbed program(false);
#else
P3DEmbed program(true);
#endif
return program.run_embedded(p3d_offset, argc, argv);
}