ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

ps3-main.cpp

Go to the documentation of this file.
00001 /* ScummVM - Graphic Adventure Engine
00002  *
00003  * ScummVM is the legal property of its developers, whose names
00004  * are too numerous to list here. Please refer to the COPYRIGHT
00005  * file distributed with this source distribution.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020  *
00021  */
00022 
00023 #define FORBIDDEN_SYMBOL_ALLOW_ALL
00024 #include "common/scummsys.h"
00025 
00026 #include "backends/platform/sdl/ps3/ps3.h"
00027 #include "backends/plugins/sdl/sdl-provider.h"
00028 #include "base/main.h"
00029 
00030 #include <net/net.h>
00031 
00032 int main(int argc, char *argv[]) {
00033 
00034 #ifdef USE_LIBCURL
00035     netInitialize();
00036 #endif
00037 
00038     // Create our OSystem instance
00039     g_system = new OSystem_PS3();
00040     assert(g_system);
00041 
00042     // Pre initialize the backend
00043     ((OSystem_PS3 *)g_system)->init();
00044 
00045 #ifdef DYNAMIC_MODULES
00046     PluginManager::instance().addPluginProvider(new SDLPluginProvider());
00047 #endif
00048 
00049     // Invoke the actual ScummVM main entry point:
00050     int res = scummvm_main(argc, argv);
00051 
00052     // Free OSystem
00053     g_system->destroy();
00054 
00055 #ifdef USE_LIBCURL
00056     netDeinitialize();
00057 #endif
00058 
00059     return res;
00060 }


Generated on Sat Jun 27 2020 05:00:31 for ResidualVM by doxygen 1.7.1
curved edge   curved edge