| 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(¶ms)) |
| 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 | |
| 282 | static S32 RenderWareExit() |
| 283 | { |
| 284 | RwEngineStop(); |
| 285 | RwEngineClose(); |
| 286 | return RwEngineTerm(); |
| 287 | } |
| 288 | |
| 289 | extern U32 _RwGameCubeRasterExtOffset; |
| 290 | struct RwGameCubeRasterExt |
| 291 | { |
| 292 | U8 pad[0xc]; |
no test coverage detected