本文整理汇总了C++中sceKernelExitGame函数的典型用法代码示例。如果您正苦于以下问题:C++ sceKernelExitGame函数的具体用法?C++ sceKernelExitGame怎么用?C++ sceKernelExitGame使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sceKernelExitGame函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: exitToXMB
void exitToXMB()
{
sceIoRemove("ipl_update.prx");
sceIoRemove("batman.prx");
sceIoRemove("kuman.prx");
sceKernelExitGame();
}
示例2: MemoryError
static void MemoryError()
{
pspIoLock();
pspIoCloseAllAlive();
sceKernelExitGame();
}
示例3: nge_debug_quitgame
void nge_debug_quitgame()
{
#if defined NGE_PSP
sceKernelExitGame();
#endif
exit(-1);
}
示例4: main
// 24MB to use
int main(int argc, char** argv) {
unsigned int sum;
int n, m;
unsigned int *buffers[NUM_BUFFERS];
unsigned int *buffer;
char *temp;
Kprintf("STARTED\n");
{
for (n = 0; n < NUM_BUFFERS; n++) {
buffers[n] = calloc(BUFFER_SIZE, sizeof(unsigned int));
buffer = buffers[n];
Kprintf("%s\n", (buffer == NULL) ? "NULL" : "NOT NULL");
for (m = 0; m < BUFFER_SIZE; m++) buffer[m] = n;
}
for (n = 0; n < NUM_BUFFERS; n++) {
sum = 0;
buffer = buffers[n];
for (m = 0; m < BUFFER_SIZE; m++) sum += buffer[m];
Kprintf("%d: %d\n", n, sum);
}
temp = malloc(10 * 1024 * 1024);
Kprintf("%s\n", (temp == NULL) ? "NULL" : "NOT NULL");
for (n = 0; n < NUM_BUFFERS; n++) {
free(buffers[n]);
}
temp = malloc(10 * 1024 * 1024);
Kprintf("%s\n", (temp == NULL) ? "NULL" : "NOT NULL");
}
Kprintf("ENDED\n");
sceKernelExitGame();
return 0;
}
示例5: main
int main()
{
callbacks_setup();
int size = 42, x=0, y=0, dx=2, dy=2;
while (1)
{
x += dx;
y += dy;
if (x < 0 || x+size > G2D_SCR_W) dx = -dx;
if (y < 0 || y+size > G2D_SCR_H) dy = -dy;
g2dClear(WHITE);
g2dBeginRects(NULL); // No texture
g2dSetColor(AZURE);
g2dSetScaleWH(size,size);
g2dSetCoordXY(x,y);
g2dSetAlpha(x*255/G2D_SCR_W); // Useless alpha effect ;)
g2dAdd();
g2dEnd();
g2dFlip(G2D_VSYNC);
}
sceKernelExitGame();
return 0;
}
示例6: main
/* Entry point */
int main(int argc, char **argv)
{
if(!triAt3Init()) triError("Error starting atrac3 playback");
if(!triNetInit()) triError("Error starting net");
// Set up callbacks
SetupCallbacks();
// Game inits
if(!triLogInit()) triError("Error starting Logging");
triInit( GU_PSM_8888 );
tri3dInit();
if(!triInputInit()) triError("Error starting input");
triModelManagerInit();
if(!triWavInit()) triError("Error starting WAV playback");
if(!gameLoadModels()) triError("Error loading models");
while (gameRunning)
{
// Game state stuff
}
// Game shutdown
triModelManagerFreeAll();
triInputShutdown();
triClose();
tri3dClose();
triMemoryShutdown();
sceKernelExitGame();
return 0;
}
示例7: start_reboot
/**
* mode: 0 - OFW mode, 1 - CFW mode
*/
void start_reboot(int mode)
{
int modid, ret;
int delay = 0;
char modpath[80];
sprintf(modpath, "rebootex.prx");
modid = kuKernelLoadModule(modpath, 0, 0);
if (modid >= 0) {
ret = sceKernelStartModule(modid, sizeof(mode), &mode, 0, NULL);
if (ret < 0) {
printf("start module error 0x%08x\n", ret);
delay = 5000000;
}
} else {
printf("load module error 0x%08x\n", modid);
delay = 5000000;
}
cleanup_exit();
sceKernelDelayThread(delay);
sceKernelExitGame();
}
示例8: shutdownServer
void shutdownServer( int signal )
{
if(hasShutdown)
return;
hasShutdown = true;
serverRunning = false;
serverSock.disconnect();
saveWeapons("weapons.txt");
serverFlags.save("serverflags.txt");
for(int i = playerList.count()-1; i >= 0; i--)
delete ((CPlayer*)playerList[i]);
if(lsConnected)
ListServer_End();
for(int i = 0; i < levelList.count(); i++)
{
CLevel* level = (CLevel*)levelList[i];
level->saveNpcs();
delete level;
}
for(int i = 0; i < CMap::mapList.count(); i++)
delete((CMap*)CMap::mapList[i]);
for(int i = 0; i < weaponList.count(); i++)
delete ((CWeapon*)weaponList[i]);
errorOut("serverlog.txt", "Server shutdown.");
#ifdef PSPSDK
sceKernelExitGame();
#endif
}
示例9: main
int main(int argc, char* argv[])
{
if( Initialize() )
{
#ifdef DAEDALUS_BATCH_TEST_ENABLED
if( argc > 1 )
{
BatchTestMain( argc, argv );
}
#else
//Makes it possible to load a ROM directly without using the GUI
//There are no checks for wrong file name so be careful!!!
//Ex. from PSPLink -> ./Daedalus.prx "Roms/StarFox 64.v64" //Corn
if( argc > 1 )
{
printf("Loading %s\n", argv[1] );
System_Open( argv[1] );
CPU_Run();
System_Close();
Finalise();
sceKernelExitGame();
return 0;
}
#endif
//Translate_Init();
bool show_splash = true;
for(;;)
{
DisplayRomsAndChoose( show_splash );
show_splash = false;
//
// Commit the preferences and roms databases before starting to run
//
CRomDB::Get()->Commit();
CPreferences::Get()->Commit();
CPU_Run();
System_Close();
}
Finalise();
}
sceKernelExitGame();
return 0;
}
示例10: psp_finish
void psp_finish(void)
{
lprintf("psp_finish..\n");
sceGuTerm();
//sceKernelSleepThread();
sceKernelExitGame();
}
示例11: main
int main (void)
{
play_pmf("./data/INTRO.pmf");//To play a .pmf, locate the directory of the .pmf file.
stop_pmf();//This function stop the video lecture by pressing whatever button.
sceKernelExitGame();//Exit the Game.
return 0;
}
示例12: ExitCallback
//*************************************************************************************
//Set up the Exit Callback (Used to allow the Home Button to work)
//*************************************************************************************
static int ExitCallback( int arg1, int arg2, void * common )
{
#ifdef DAEDALUS_PSP_GPROF
gprof_cleanup();
#endif
sceKernelExitGame();
return 0;
}
示例13: xUserThread
static int xUserThread(SceSize args, void* argp)
{
remove("./xlog.txt");
X_LOG("Logging started.",0);
xMain();
X_LOG("Logging finished.",0);
sceKernelExitGame();
return 0;
}
示例14: exit_callback
/* Exit callback */
int exit_callback (int arg1, int arg2, void *common)
{
int status;
printf ("Stopping modules...\n");
sceKernelStopModule (modid, 0, NULL, &status, NULL);
sceKernelUnloadModule (modid);
sceKernelExitGame ();
return 0;
}
示例15: exit_callback
/* Exit callback */
int exit_callback(void) {
#ifdef ENABLE_PROFILING
gprof_cleanup();
#endif
sceKernelExitGame();
return 0;
}