• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ sceKernelExitGame函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中sceKernelExitGame函数的典型用法代码示例。如果您正苦于以下问题:C++ sceKernelExitGame函数的具体用法?C++ sceKernelExitGame怎么用?C++ sceKernelExitGame使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了sceKernelExitGame函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: ExitCallback

int ExitCallback (void)
{
	S9xShutdownPSP ();

	if (g_bFatalError)
		sceKernelExitGame ();
	
	return 1;
}
开发者ID:joshdekock,项目名称:jim-pspware,代码行数:9,代码来源:psp2.cpp


示例17: frontend_psp_shutdown

static void frontend_psp_shutdown(bool unused)
{
   (void)unused;
#ifdef VITA
   return;
#else
   sceKernelExitGame();
#endif
}
开发者ID:slotek,项目名称:RetroArch,代码行数:9,代码来源:platform_psp.c


示例18: main

int main(int argc, char **argv)
{
    xSetupCallbacks();
    remove("./xlog.txt");
    X_LOG("Logging started.",0);
    xMain();
    X_LOG("Logging finished.",0);
    sceKernelExitGame();
    return 0;
}
开发者ID:Falaina,项目名称:cspspemu,代码行数:10,代码来源:xlib.c


示例19: ErrorExit

void ErrorExit(int milisecs, char *fmt, ...) 
{
	va_list list;
	va_start(list, fmt);
	vsprintf(msg, fmt, list);
	va_end(list);
	printf(msg);
	sceKernelDelayThread(milisecs*1000);
	sceKernelExitGame(); 
}
开发者ID:sseary,项目名称:procfw-chn,代码行数:10,代码来源:main(backup).c


示例20: App_Shutdown

void App_Shutdown(void)
{
	// Free Memory
	free( dList );
	free( sceneList );
	free( fbp0 );
	
	sceGuTerm();			// Terminating the Graphics System
 
	sceKernelExitGame();
}
开发者ID:Arcanixus,项目名称:PVZ-PSP-Game,代码行数:11,代码来源:main.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ sceKernelSleepThreadCB函数代码示例发布时间:2022-05-30
下一篇:
C++ sceKernelDelayThread函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap