Skip to content

Commit 88f247b

Browse files
committed
[atari][network] add support for NTRANS 255 to ignore translation.
1 parent dbec091 commit 88f247b

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

lib/device/sio/network.cpp

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,22 @@ void sioNetwork::sio_open()
122122

123123
// persist aux1/aux2 values - NOTHING USES THEM!
124124
open_aux1 = cmdFrame.aux1;
125-
open_aux2 = cmdFrame.aux2;
126-
open_aux2 |= trans_aux2;
127-
cmdFrame.aux2 |= trans_aux2;
125+
126+
// Ignore aux2 value if NTRANS set 0xFF, for ACTION!
127+
if (trans_aux2 == 0xFF)
128+
{
129+
open_aux2 = cmdFrame.aux2 = 0;
130+
}
131+
else if (cmdFrame.aux1 == 6) // don't xlate dir listings.
132+
{
133+
open_aux2 = cmdFrame.aux2;
134+
}
135+
else
136+
{
137+
open_aux2 = cmdFrame.aux2;
138+
open_aux2 |= trans_aux2;
139+
cmdFrame.aux2 |= trans_aux2;
140+
}
128141

129142
// Shut down protocol if we are sending another open before we close.
130143
if (protocol != nullptr)

0 commit comments

Comments
 (0)