mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 19:44:15 +01:00
Merge remote-tracking branch 'upstream/miami' into miami
This commit is contained in:
commit
5c8888d2ed
36
premake5.lua
36
premake5.lua
@ -23,6 +23,22 @@ else
|
|||||||
Librw = os.getenv("LIBRW") or "librw"
|
Librw = os.getenv("LIBRW") or "librw"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function getsys(a)
|
||||||
|
if a == 'windows' then
|
||||||
|
return 'win'
|
||||||
|
end
|
||||||
|
return a
|
||||||
|
end
|
||||||
|
|
||||||
|
function getarch(a)
|
||||||
|
if a == 'x86_64' then
|
||||||
|
return 'amd64'
|
||||||
|
elseif a == 'ARM' then
|
||||||
|
return 'arm'
|
||||||
|
end
|
||||||
|
return a
|
||||||
|
end
|
||||||
|
|
||||||
workspace "reVC"
|
workspace "reVC"
|
||||||
language "C++"
|
language "C++"
|
||||||
configurations { "Debug", "Release" }
|
configurations { "Debug", "Release" }
|
||||||
@ -40,6 +56,8 @@ workspace "reVC"
|
|||||||
filter { "system:linux" }
|
filter { "system:linux" }
|
||||||
platforms {
|
platforms {
|
||||||
"linux-x86-librw_gl3_glfw-oal",
|
"linux-x86-librw_gl3_glfw-oal",
|
||||||
|
"linux-amd64-librw_gl3_glfw-oal",
|
||||||
|
"linux-arm-librw_gl3_glfw-oal",
|
||||||
}
|
}
|
||||||
|
|
||||||
filter "configurations:Debug"
|
filter "configurations:Debug"
|
||||||
@ -58,6 +76,12 @@ workspace "reVC"
|
|||||||
filter { "platforms:*x86*" }
|
filter { "platforms:*x86*" }
|
||||||
architecture "x86"
|
architecture "x86"
|
||||||
|
|
||||||
|
filter { "platforms:*amd64*" }
|
||||||
|
architecture "amd64"
|
||||||
|
|
||||||
|
filter { "platforms:*arm*" }
|
||||||
|
architecture "ARM"
|
||||||
|
|
||||||
filter { "platforms:*librw_d3d9*" }
|
filter { "platforms:*librw_d3d9*" }
|
||||||
defines { "RW_D3D9" }
|
defines { "RW_D3D9" }
|
||||||
if(not _OPTIONS["with-librw"]) then
|
if(not _OPTIONS["with-librw"]) then
|
||||||
@ -68,17 +92,12 @@ workspace "reVC"
|
|||||||
defines { "RW_GL3" }
|
defines { "RW_GL3" }
|
||||||
includedirs { path.join(_OPTIONS["glfwdir"], "include") }
|
includedirs { path.join(_OPTIONS["glfwdir"], "include") }
|
||||||
includedirs { path.join(_OPTIONS["glewdir"], "include") }
|
includedirs { path.join(_OPTIONS["glewdir"], "include") }
|
||||||
|
if(not _OPTIONS["with-librw"]) then
|
||||||
|
libdirs { path.join(Librw, "lib/%{getsys(cfg.system)}-%{getarch(cfg.architecture)}-gl3/%{cfg.buildcfg}") }
|
||||||
|
end
|
||||||
|
|
||||||
filter "platforms:win*librw_gl3_glfw*"
|
filter "platforms:win*librw_gl3_glfw*"
|
||||||
defines { "GLEW_STATIC" }
|
defines { "GLEW_STATIC" }
|
||||||
if(not _OPTIONS["with-librw"]) then
|
|
||||||
libdirs { path.join(Librw, "lib/win-x86-gl3/%{cfg.buildcfg}") }
|
|
||||||
end
|
|
||||||
|
|
||||||
filter "platforms:linux*librw_gl3_glfw*"
|
|
||||||
if(not _OPTIONS["with-librw"]) then
|
|
||||||
libdirs { path.join(Librw, "lib/linux-x86-gl3/%{cfg.buildcfg}") }
|
|
||||||
end
|
|
||||||
|
|
||||||
filter {}
|
filter {}
|
||||||
|
|
||||||
@ -182,7 +201,6 @@ project "reVC"
|
|||||||
targetextension ".exe"
|
targetextension ".exe"
|
||||||
|
|
||||||
filter "platforms:linux*"
|
filter "platforms:linux*"
|
||||||
targetextension ".elf"
|
|
||||||
defines { "OPENAL" }
|
defines { "OPENAL" }
|
||||||
links { "openal", "mpg123", "sndfile", "pthread" }
|
links { "openal", "mpg123", "sndfile", "pthread" }
|
||||||
|
|
||||||
|
@ -7459,7 +7459,7 @@ cAudioManager::ProcessPlayersVehicleEngine(cVehicleParams *params, CAutomobile *
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (processedAccelSampleStopped) {
|
if (processedAccelSampleStopped) {
|
||||||
if (!SampleManager.InitialiseChannel(m_nActiveSamples, soundOffset + 345, 0))
|
if (!SampleManager.InitialiseChannel(m_nActiveSamples, soundOffset + SFX_CAR_ACCEL_1, 0))
|
||||||
return;
|
return;
|
||||||
SampleManager.SetChannelLoopCount(m_nActiveSamples, 1);
|
SampleManager.SetChannelLoopCount(m_nActiveSamples, 1);
|
||||||
SampleManager.SetChannelLoopPoints(m_nActiveSamples, 0, -1);
|
SampleManager.SetChannelLoopPoints(m_nActiveSamples, 0, -1);
|
||||||
@ -7482,7 +7482,7 @@ cAudioManager::ProcessPlayersVehicleEngine(cVehicleParams *params, CAutomobile *
|
|||||||
}
|
}
|
||||||
if (CurrentPretendGear < params->m_pTransmission->nNumberOfGears - 1) {
|
if (CurrentPretendGear < params->m_pTransmission->nNumberOfGears - 1) {
|
||||||
++CurrentPretendGear;
|
++CurrentPretendGear;
|
||||||
if (!SampleManager.InitialiseChannel(m_nActiveSamples, soundOffset + 345, 0))
|
if (!SampleManager.InitialiseChannel(m_nActiveSamples, soundOffset + SFX_CAR_ACCEL_1, 0))
|
||||||
return;
|
return;
|
||||||
SampleManager.SetChannelLoopCount(m_nActiveSamples, 1);
|
SampleManager.SetChannelLoopCount(m_nActiveSamples, 1);
|
||||||
SampleManager.SetChannelLoopPoints(m_nActiveSamples, 0, -1);
|
SampleManager.SetChannelLoopPoints(m_nActiveSamples, 0, -1);
|
||||||
|
@ -470,7 +470,7 @@ RwBool RwRenderStateSet(RwRenderState state, void *value)
|
|||||||
uint32 uival = (uintptr)value;
|
uint32 uival = (uintptr)value;
|
||||||
uint32 fog;
|
uint32 fog;
|
||||||
switch(state){
|
switch(state){
|
||||||
case rwRENDERSTATETEXTURERASTER: SetRenderState(TEXTURERASTER, uival); return true;
|
case rwRENDERSTATETEXTURERASTER: SetRenderStatePtr(TEXTURERASTER, value); return true;
|
||||||
case rwRENDERSTATETEXTUREADDRESS: SetRenderState(TEXTUREADDRESS, uival); return true;
|
case rwRENDERSTATETEXTUREADDRESS: SetRenderState(TEXTUREADDRESS, uival); return true;
|
||||||
case rwRENDERSTATETEXTUREADDRESSU: SetRenderState(TEXTUREADDRESSU, uival); return true;
|
case rwRENDERSTATETEXTUREADDRESSU: SetRenderState(TEXTUREADDRESSU, uival); return true;
|
||||||
case rwRENDERSTATETEXTUREADDRESSV: SetRenderState(TEXTUREADDRESSV, uival); return true;
|
case rwRENDERSTATETEXTUREADDRESSV: SetRenderState(TEXTUREADDRESSV, uival); return true;
|
||||||
|
@ -60,6 +60,16 @@ void FlushObrsPrintfs()
|
|||||||
void *
|
void *
|
||||||
RwMallocAlign(RwUInt32 size, RwUInt32 align)
|
RwMallocAlign(RwUInt32 size, RwUInt32 align)
|
||||||
{
|
{
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
uintptr ptralign = align-1;
|
||||||
|
void *mem = (void *)malloc(size + sizeof(uintptr) + ptralign);
|
||||||
|
|
||||||
|
ASSERT(mem != nil);
|
||||||
|
|
||||||
|
void *addr = (void *)((((uintptr)mem) + sizeof(uintptr) + ptralign) & ~ptralign);
|
||||||
|
|
||||||
|
ASSERT(addr != nil);
|
||||||
|
#else
|
||||||
void *mem = (void *)malloc(size + align);
|
void *mem = (void *)malloc(size + align);
|
||||||
|
|
||||||
ASSERT(mem != nil);
|
ASSERT(mem != nil);
|
||||||
@ -67,6 +77,7 @@ RwMallocAlign(RwUInt32 size, RwUInt32 align)
|
|||||||
void *addr = (void *)((((uintptr)mem) + align) & ~(align - 1));
|
void *addr = (void *)((((uintptr)mem) + align) & ~(align - 1));
|
||||||
|
|
||||||
ASSERT(addr != nil);
|
ASSERT(addr != nil);
|
||||||
|
#endif
|
||||||
|
|
||||||
*(((void **)addr) - 1) = mem;
|
*(((void **)addr) - 1) = mem;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user