bizswan: update mingw solution and do a bit of warnings cleanup; still use msvs solution because it makes FASTER DULLS
This commit is contained in:
parent
095f16baef
commit
f73b4b5b77
Binary file not shown.
|
@ -30,7 +30,7 @@ Blip_Buffer::Blip_Buffer()
|
|||
{
|
||||
factor_ = (blip_u64)ULLONG_MAX;
|
||||
offset_ = 0;
|
||||
buffer_ = 0;
|
||||
buffer_ = nullptr;
|
||||
buffer_size_ = 0;
|
||||
sample_rate_ = 0;
|
||||
reader_accum_ = 0;
|
||||
|
@ -127,7 +127,7 @@ Blip_Buffer::blargg_err_t Blip_Buffer::set_sample_rate( long new_rate, int msec
|
|||
|
||||
clear();
|
||||
|
||||
return 0; // success
|
||||
return nullptr; // success
|
||||
}
|
||||
|
||||
blip_resampled_time_t Blip_Buffer::clock_rate_factor( long rate ) const
|
||||
|
@ -202,7 +202,7 @@ void Blip_Buffer::remove_samples( long count )
|
|||
|
||||
Blip_Synth_Fast_::Blip_Synth_Fast_()
|
||||
{
|
||||
buf = 0;
|
||||
buf = nullptr;
|
||||
last_amp = 0;
|
||||
delta_factor = 0;
|
||||
}
|
||||
|
@ -220,7 +220,7 @@ Blip_Synth_::Blip_Synth_( short* p, int w ) :
|
|||
{
|
||||
volume_unit_ = 0.0;
|
||||
kernel_unit = 0;
|
||||
buf = 0;
|
||||
buf = nullptr;
|
||||
last_amp = 0;
|
||||
delta_factor = 0;
|
||||
}
|
||||
|
|
|
@ -280,12 +280,12 @@ namespace MDFN_IEN_WSWAN
|
|||
if (wsCartROM)
|
||||
{
|
||||
std::free(wsCartROM);
|
||||
wsCartROM = 0;
|
||||
wsCartROM = nullptr;
|
||||
}
|
||||
if (wsSRAM)
|
||||
{
|
||||
std::free(wsSRAM);
|
||||
wsSRAM = 0;
|
||||
wsSRAM = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
CXX = g++
|
||||
CXXFLAGS = -Wall -DLSB_FIRST -I.. -Wno-multichar -O3
|
||||
CXXFLAGS = -Wall -DLSB_FIRST -I.. -Wno-multichar -O3 -Wzero-as-null-pointer-constant -std=gnu++11 -fomit-frame-pointer -fno-exceptions
|
||||
TARGET = bizswan.dll
|
||||
LDFLAGS = -shared -static-libgcc -static-libstdc++
|
||||
LDFLAGS = -shared -static-libgcc -static-libstdc++ $(CXXFLAGS)
|
||||
RM = rm
|
||||
CP = cp
|
||||
|
||||
|
@ -9,14 +9,13 @@ SRCS = \
|
|||
../eeprom.cpp \
|
||||
../gfx.cpp \
|
||||
../interrupt.cpp \
|
||||
../main.cpp \
|
||||
../memory.cpp \
|
||||
../newstate.cpp \
|
||||
../rtc.cpp \
|
||||
../sound.cpp \
|
||||
../system.cpp \
|
||||
../tcache.cpp \
|
||||
../v30mz.cpp \
|
||||
../newstate.cpp \
|
||||
../Blip/Blip_Buffer.cpp
|
||||
|
||||
OBJS = $(SRCS:.cpp=.o)
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace MDFN_IEN_WSWAN
|
|||
if(Command == 0x15)
|
||||
{
|
||||
tm newtime;
|
||||
uint64 now = userealtime ? time(0) : CurrentTime;
|
||||
uint64 now = userealtime ? time(nullptr) : CurrentTime;
|
||||
GMTime(now, newtime);
|
||||
|
||||
switch(wsCA15)
|
||||
|
@ -87,7 +87,7 @@ namespace MDFN_IEN_WSWAN
|
|||
if (realtime)
|
||||
{
|
||||
userealtime = true;
|
||||
CurrentTime = time(0);
|
||||
CurrentTime = time(nullptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -336,7 +336,7 @@ namespace MDFN_IEN_WSWAN
|
|||
if(sbuf[i])
|
||||
{
|
||||
delete sbuf[i];
|
||||
sbuf[i] = 0;
|
||||
sbuf[i] = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -465,6 +465,7 @@ namespace MDFN_IEN_WSWAN
|
|||
POP(I.regs.w[CW]);
|
||||
POP(I.regs.w[AW]);
|
||||
CLK(8);
|
||||
(void)tmp;
|
||||
} OP_EPILOGUE;
|
||||
|
||||
OP( 0x62, i_chkind )
|
||||
|
|
Loading…
Reference in New Issue