Skip to content

Commit

Permalink
Fixed linux build
Browse files Browse the repository at this point in the history
git-svn-id: https://www.daphne-emu.com:9443/daphnesvn/branches/v_1_0@3033 c98d566b-fa28-4d4c-8a7b-932307ef5c1a
  • Loading branch information
matt committed May 1, 2009
1 parent aad0cff commit d11cd8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
30 changes: 10 additions & 20 deletions src/io/parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void par::close(ILogger *pLogger)

// initializes the specified port (0 is LPT1)
// returns 1 if successful, 0 if failted
bool par_init (int port, ILogger *pLogger)
bool par::init(unsigned int port, ILogger *pLogger)
{

bool result = false;
Expand Down Expand Up @@ -134,27 +134,19 @@ bool par_init (int port, ILogger *pLogger)
}

// writes a byte to the port at base+0
int par_base0 (int port, unsigned char data)
void par::base0 (unsigned char data)
{
if ((m_uPortIdx >=0) && (m_uPortIdx <=1))
{
outb(data, par::m_base0[m_uPortIdx]);
}
return(1);
outb(data, par::m_base0[m_uPortIdx]);
}

// writes a byte to the port at base+2
int par_base2 (int port, unsigned char data)
void par::base2 (unsigned char data)
{
if ((m_uPortIdx >=0) && (m_uPortIdx <= 1))
{
outb(data, par::m_base2[m_uPortIdx]);
}
return(1);
outb(data, par::m_base2[m_uPortIdx]);
}

// closes parallel port
void par_close (ILogger *pLogger)
void par::close (ILogger *pLogger)
{
// we don't have to do anything here
}
Expand All @@ -163,22 +155,20 @@ void par_close (ILogger *pLogger)
#else // end NATIVE_CPU_X86

// here is the code for systems that have no parallel support
bool par_init (int port, ILogger *pLogger)
bool par::init (unsigned int port, ILogger *pLogger)
{
return false;
}

int par_base0(int port, unsigned char data)
void par::base0(unsigned char data)
{
return 0;
}

int par_base2(int port, unsigned char data)
void par::base2(unsigned char data)
{
return 0;
}

void par_close(ILogger *pLogger)
void par::close(ILogger *pLogger)
{
}
#endif
2 changes: 1 addition & 1 deletion src/scoreboard/hw_scoreboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bool HwScoreboard::set_digit(unsigned int uValue, WhichDigit which)

m_DigitValues[which] = uValue;
unsigned char rsb_value = 0;
int rsb_port = m_uParallelPort;
// int rsb_port = m_uParallelPort;
unsigned int digit = 0;

// this is a player digit
Expand Down

0 comments on commit d11cd8e

Please sign in to comment.