Skip to content

Commit

Permalink
Win32 Parallel port code upgraded to work better on machines without …
Browse files Browse the repository at this point in the history
…built-in parallel ports. (thanks Brad Oldham)

git-svn-id: https://www.daphne-emu.com:9443/daphnesvn/branches/v_1_0@3012 c98d566b-fa28-4d4c-8a7b-932307ef5c1a
  • Loading branch information
matt committed Feb 20, 2009
1 parent 935b66f commit 777120a
Show file tree
Hide file tree
Showing 17 changed files with 112 additions and 264 deletions.
3 changes: 3 additions & 0 deletions daphne-changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Daphne Changelog
-------------------------

v1.0.4
- Changed parallel port code so that any address can be used for the parallel port (Brad Oldham).

v1.0.3
- Fixed linux hardware queries (especially video card query).
- Changed linux .so loader so that libvldp2.so can be in /usr/lib or some other place (Arnaud Gibert)
Expand Down
Binary file added inpout32.dll
Binary file not shown.
Binary file removed par-io.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion src/DaphneManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<version>
<major>1</major>
<minor>0</minor>
<build>3</build>
<build>4</build>
</version>
</manifest>
10 changes: 7 additions & 3 deletions src/clear_hw_scoreboard/clear_hw_scoreboard.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@
<File
RelativePath="..\io\logger.cpp">
</File>
<File
RelativePath="..\io\par-io.cpp">
</File>
<File
RelativePath="..\io\parallel.cpp">
</File>
Expand All @@ -144,6 +141,13 @@
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
</Filter>
<Filter
Name="lib"
Filter="">
<File
RelativePath="..\lib\inpout32.lib">
</File>
</Filter>
</Files>
<Globals>
</Globals>
Expand Down
6 changes: 3 additions & 3 deletions src/daphne.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ using namespace std;

const char *get_daphne_version()
{
return "1.0.3";
return "1.0.4";
}

unsigned char get_filename(char *s, unsigned char n)
Expand Down Expand Up @@ -351,12 +351,12 @@ unsigned char get_scoreboard()
return (realscoreboard);
}

void set_scoreboard_port(unsigned char value)
void set_scoreboard_port(unsigned int value)
{
rsb_port = value;
}

unsigned char get_scoreboard_port()
unsigned int get_scoreboard_port()
{
return(rsb_port);
}
Expand Down
4 changes: 2 additions & 2 deletions src/daphne.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ unsigned char get_frame_modifier();
void set_frame_modifier(unsigned char value);
void set_scoreboard(unsigned char value);
unsigned char get_scoreboard();
void set_scoreboard_port(unsigned char value);
unsigned char get_scoreboard_port();
void set_scoreboard_port(unsigned int value);
unsigned int get_scoreboard_port();
void reset_logfile(int argc, char **argv);
void set_scoreboard_text(char sb_text[]);

Expand Down
13 changes: 7 additions & 6 deletions src/daphne_vs2003.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -536,12 +536,6 @@
<File
RelativePath="io\numstr.h">
</File>
<File
RelativePath="io\par-io.cpp">
</File>
<File
RelativePath="io\par-io.h">
</File>
<File
RelativePath=".\io\parallel.cpp">
</File>
Expand Down Expand Up @@ -941,6 +935,13 @@
Name="Resource Files"
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
</Filter>
<Filter
Name="lib"
Filter="">
<File
RelativePath=".\lib\inpout32.lib">
</File>
</Filter>
<File
RelativePath="..\daphne-changelog.txt">
</File>
Expand Down
2 changes: 1 addition & 1 deletion src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Uint8 frame_modifier = 0; // what type of frame modifications to be used
Uint8 joystick_detected = 0; // 0 = no joystick, 1 = joystick present

Uint8 realscoreboard = 0; // 1 = external scoreboard is attached
Uint8 rsb_port = 0; // 0 = LPT1, 1 = LPT2 for real scoreboard
unsigned int rsb_port = 0; // 0 = LPT1, 1 = LPT2 or address of real scoreboard

unsigned int idleexit; // added by JFA for -idleexit
unsigned char startsilent = 0;
Expand Down
6 changes: 3 additions & 3 deletions src/io/cmdline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "numstr.h"
#include "homedir.h"
#include "input.h" // to disable joystick use
#include "../io/numstr.h"
#include "../video/video.h"
#include "../video/led.h"
#include "../daphne.h"
Expand Down Expand Up @@ -75,7 +76,7 @@
#include "../ldp-out/ldp-combo.h"
#include "../ldp-out/ldp-vldp.h"
#include "../ldp-out/framemod.h"

#ifdef UNIX
#include <unistd.h> // for unlink
#endif
Expand Down Expand Up @@ -810,8 +811,7 @@ bool parse_cmd_line(int argc, char **argv)
else if (strcasecmp(s, "-scoreport")==0)
{
get_next_word(s, sizeof(s));
i = atoi(s);
set_scoreboard_port((unsigned char) i);
set_scoreboard_port((unsigned int)numstr::ToUint32(s, 16));
sprintf(s, "Setting scoreboard port to %d", i);
printline(s);
}
Expand Down
84 changes: 0 additions & 84 deletions src/io/par-io.cpp

This file was deleted.

58 changes: 0 additions & 58 deletions src/io/par-io.h

This file was deleted.

Loading

0 comments on commit 777120a

Please sign in to comment.