Fixed compilation warnings/errors
This commit is contained in:
parent
002cda8cf6
commit
069c8dc42d
3 changed files with 5 additions and 3 deletions
|
@ -85,6 +85,8 @@ void Console::Stop()
|
||||||
debugger->Run();
|
debugger->Run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_debugger.reset();
|
||||||
|
|
||||||
_runLock.WaitForRelease();
|
_runLock.WaitForRelease();
|
||||||
|
|
||||||
_cpu.reset();
|
_cpu.reset();
|
||||||
|
@ -122,7 +124,7 @@ void Console::LoadRom(VirtualFile romFile, VirtualFile patchFile)
|
||||||
_cart = cart;
|
_cart = cart;
|
||||||
_controlManager.reset(new ControlManager(shared_from_this()));
|
_controlManager.reset(new ControlManager(shared_from_this()));
|
||||||
_memoryManager.reset(new MemoryManager());
|
_memoryManager.reset(new MemoryManager());
|
||||||
_dmaController.reset(new DmaController(shared_from_this()));
|
_dmaController.reset(new DmaController(_memoryManager.get()));
|
||||||
|
|
||||||
_memoryManager->Initialize(shared_from_this());
|
_memoryManager->Initialize(shared_from_this());
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ void DefaultVideoFilter::ApplyFilter(uint16_t *ppuOutputBuffer)
|
||||||
{
|
{
|
||||||
uint32_t *out = GetOutputBuffer();
|
uint32_t *out = GetOutputBuffer();
|
||||||
uint32_t pixelCount = GetFrameInfo().Width * GetFrameInfo().Height;
|
uint32_t pixelCount = GetFrameInfo().Width * GetFrameInfo().Height;
|
||||||
for(int i = 0; i < pixelCount; i++) {
|
for(uint32_t i = 0; i < pixelCount; i++) {
|
||||||
uint16_t rgb555 = ppuOutputBuffer[i];
|
uint16_t rgb555 = ppuOutputBuffer[i];
|
||||||
uint8_t b = (rgb555 >> 10) * 256 / 32;
|
uint8_t b = (rgb555 >> 10) * 256 / 32;
|
||||||
uint8_t g = ((rgb555 >> 5) & 0x1F) * 256 / 32;
|
uint8_t g = ((rgb555 >> 5) & 0x1F) * 256 / 32;
|
||||||
|
|
|
@ -304,7 +304,7 @@ void SNES_SPC::set_output( sample_t* out, int size )
|
||||||
assert( out <= out_end );
|
assert( out <= out_end );
|
||||||
}
|
}
|
||||||
|
|
||||||
dsp.set_output( out, out_end - out );
|
dsp.set_output( out, (int)(out_end - out) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue