当前位置: 首页>>代码示例>>C++>>正文


C++ sceKernelExitGame函数代码示例

本文整理汇总了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();
}
开发者ID:omarmc9203,项目名称:CyanogenPSP,代码行数:7,代码来源:common.c

示例2: MemoryError

static void MemoryError()
{
	pspIoLock();
	pspIoCloseAllAlive();

	sceKernelExitGame();
}
开发者ID:Fighter19,项目名称:PSPMania,代码行数:7,代码来源:Memory.cpp

示例3: nge_debug_quitgame

void nge_debug_quitgame()
{
#if defined NGE_PSP
	sceKernelExitGame();
#endif
	exit(-1);
}
开发者ID:doorxp,项目名称:libnge2,代码行数:7,代码来源:nge_debug_log.c

示例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;
}
开发者ID:mrcmunir,项目名称:cspspemu,代码行数:34,代码来源:malloc.c

示例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;
}
开发者ID:StephenThomasUWTSD,项目名称:gLib2D,代码行数:29,代码来源:main.c

示例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;
}
开发者ID:SamRH,项目名称:openTRI,代码行数:36,代码来源:gameMain.c

示例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();
}
开发者ID:AnnaKozlowska,项目名称:procfw,代码行数:28,代码来源:main.c

示例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
}
开发者ID:Guthius,项目名称:gs2emu-googlecode,代码行数:34,代码来源:main.cpp

示例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;
}
开发者ID:ThePhoenixRises,项目名称:daedalus,代码行数:47,代码来源:main.cpp

示例10: psp_finish

void psp_finish(void)
{
	lprintf("psp_finish..\n");
	sceGuTerm();

	//sceKernelSleepThread();
	sceKernelExitGame();
}
开发者ID:DSJim,项目名称:genesis4iphone,代码行数:8,代码来源:psp.c

示例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;
}
开发者ID:0nza1101,项目名称:PSP-libpmfplayer,代码行数:8,代码来源:main.cpp

示例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;
}
开发者ID:ThePhoenixRises,项目名称:daedalus,代码行数:11,代码来源:main.cpp

示例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;
}
开发者ID:Falaina,项目名称:cspspemu,代码行数:9,代码来源:xlib.c

示例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;
}
开发者ID:esxgx,项目名称:hidmouse,代码行数:10,代码来源:main.c

示例15: exit_callback

/* Exit callback */
int exit_callback(void) {

#ifdef ENABLE_PROFILING
	gprof_cleanup();
#endif

	sceKernelExitGame();
	return 0;
}
开发者ID:AdamRi,项目名称:scummvm-pink,代码行数:10,代码来源:psp_main.cpp


注:本文中的sceKernelExitGame函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。