refactored to match latest libpacket2 api

This commit is contained in:
h4570
2020-11-21 13:59:56 +01:00
parent 5e811b78cd
commit 82cab6f78b
7 changed files with 59 additions and 46 deletions
-10
View File
@@ -15,15 +15,8 @@
#include <sifrpc.h>
#include <time.h>
#include <cstdlib>
#include <vu.h>
#include <dma.h>
#include "include/utils/debug.hpp"
// VU1 micro program
extern u32 VU1Draw3D_CodeStart __attribute__((section(".vudata")));
extern u32 VU1Draw3D_CodeEnd __attribute__((section(".vudata")));
//
// ----
// Constructors/Destructors
// ----
@@ -84,9 +77,6 @@ void Engine::firePS2()
{
SifInitRpc(0);
srand(time(NULL));
dma_channel_initialize(DMA_CHANNEL_VIF1, NULL, 0);
dma_channel_fast_waits(DMA_CHANNEL_VIF1);
vu_upload_program(0, &VU1Draw3D_CodeStart, &VU1Draw3D_CodeEnd, DMA_CHANNEL_VIF1);
fileService.startThread();
audio.startThread(&fileService);
isInitialized = 0;