MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / RenderWareInit

Function RenderWareInit

src/SB/Core/gc/iSystem.cpp:252–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250 RwResourcesSetArenaSize(0x60000);
251 if (!DolphinInstallFileSystem())
252 {
253 return TRUE;
254 }
255 if (RWAttachPlugins())
256 {
257 return TRUE;
258 }
259 RwEngineOpenParams params;
260 params.displayID = &deviceConfig;
261 if (!RwEngineOpen(&params))
262 {
263 RwEngineTerm();
264 return TRUE;
265 }
266 RwEngineGetVideoModeInfo(&sVideoMode, RwEngineGetCurrentVideoMode());
267 if (!RwEngineStart())
268 {
269 RwEngineClose();
270 RwEngineTerm();
271 return TRUE;
272 }
273 RwTextureSetReadCallBack(TextureRead);
274 RwRenderStateSet(rwRENDERSTATECULLMODE, (void*)rwCULLMODECULLBACK);
275 xShadowInit();
276 xFXInit();
277 RwTextureSetMipmapping(TRUE);
278 RwTextureSetAutoMipmapping(TRUE);
279 return FALSE;
280}
281
282static S32 RenderWareExit()
283{
284 RwEngineStop();
285 RwEngineClose();
286 return RwEngineTerm();
287}
288
289extern U32 _RwGameCubeRasterExtOffset;
290struct RwGameCubeRasterExt
291{
292 U8 pad[0xc];

Callers 1

iSystemInitFunction · 0.85

Calls 4

psGetMemoryFunctionsFunction · 0.85
RWAttachPluginsFunction · 0.70
xShadowInitFunction · 0.50
xFXInitFunction · 0.50

Tested by

no test coverage detected