Skip to content

Commit

Permalink
0.3a-8fd480f
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtBagXon committed Sep 22, 2024
1 parent 6305d63 commit a94e36d
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Src/Graphics/New3D/PolyHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ xxxxxxxx xxxxxxxx xxxxxxxx-------- Polygon normal X coordinate(2.22 fixed point
-------- -------- -------- ----x--- 1 = smooth shading, 0 = flat shading
-------- -------- -------- -----x-- If set, this is the last polygon
-------- -------- -------- ------x- Poly color, 1 = RGB, 0 = color table
-------- -------- -------- -------x No los return ?
-------- -------- -------- -------x No los return (line of sight)
0x02:
xxxxxxxx xxxxxxxx xxxxxxxx -------- Polygon normal Y coordinate(2.22 fixed point)
Expand All @@ -50,7 +50,7 @@ xxxxxxxx xxxxxxxx xxxxxxxx -------- Polygon normal Z coordinate(2.22 fixed poin
0x04:
xxxxxxxx xxxxxxxx xxxxxxxx -------- Color (RGB888 or two 12-bit indexes, sensor color and color)
-------- -------- -------- x------- Translator map enable ? (Seems to be some 4/5bit colour format. Max observed value=16)
-------- -------- -------- x------- Translator map enable (multiplies colour values by 16)
-------- -------- -------- -x------ Texture page
-------- -------- -------- ---xxxxx Upper 5 bits of texture U coordinate
Expand Down
4 changes: 3 additions & 1 deletion Src/Model3/IRQ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ void CIRQ::Init(void)
// this function really only exists for consistency with other device classes
}

CIRQ::CIRQ(void)
CIRQ::CIRQ(void) :
irqEnable(0),
irqState(0)
{
DebugLog("Built IRQ controller\n");
}
Expand Down
17 changes: 9 additions & 8 deletions Src/Model3/MPC10x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,15 @@ void CMPC10x::Init(void)
*
* Constructor.
*/
CMPC10x::CMPC10x(void)
CMPC10x::CMPC10x(void) :
regs{},
PCIBus(nullptr),
model(0x105), // default to MPC105
pciBus(0),
pciDevice(0),
pciFunction(0),
pciReg(0)
{
PCIBus = NULL;
model = 0x105; // default to MPC105
pciBus = 0;
pciDevice = 0;
pciFunction = 0;
pciReg = 0;
DebugLog("Built MPC10x\n");
}

Expand All @@ -364,6 +365,6 @@ CMPC10x::CMPC10x(void)
*/
CMPC10x::~CMPC10x(void)
{
PCIBus = NULL;
PCIBus = nullptr;
DebugLog("Destroyed MPC10x\n");
}
25 changes: 24 additions & 1 deletion Src/Model3/Real3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,30 @@ Result CReal3D::Init(const uint8_t *vromPtr, IBus *BusObjectPtr, CIRQ *IRQObject

CReal3D::CReal3D(const Util::Config::Node &config)
: m_config(config),
m_gpuMultiThreaded(config["GPUMultiThreaded"].ValueAs<bool>())
m_gpuMultiThreaded(config["GPUMultiThreaded"].ValueAs<bool>()),
Bus(nullptr),
IRQ(nullptr),
commandPortWritten(false),
commandPortWrittenRO(false),
cullingRAMHi(nullptr),
cullingRAMHiDirty(nullptr),
cullingRAMHiRO(nullptr),
dmaConfig(0),
dmaData(0),
dmaDest(0),
dmaIRQ(0),
dmaLength(0),
dmaSrc(0),
dmaStatus(0),
dmaUnknownReg(0),
m_modeword{},
m_pingPong(0),
pciID(0),
polyRAMDirty(nullptr),
polyRAMRO(nullptr),
step(0),
textureRAMDirty(nullptr),
textureRAMRO(nullptr)
{
Render3D = NULL;
memoryPool = NULL;
Expand Down
2 changes: 1 addition & 1 deletion Src/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define INCLUDED_VERSION_H

#ifndef SUPERMODEL_VERSION
#define SUPERMODEL_VERSION "0.3a-905bfa2-mm DirtBagXon (Sinden)"
#define SUPERMODEL_VERSION "0.3a-8fd480f-mm DirtBagXon (Sinden)"
#endif

#endif // INCLUDED_VERSION_H

0 comments on commit a94e36d

Please sign in to comment.