Resolve part of #3506
This commit is contained in:
parent
a2ff685fc1
commit
fcbc44b64f
|
@ -467,7 +467,9 @@ namespace BizHawk.Client.EmuHawk
|
||||||
if (lines.Length > 0)
|
if (lines.Length > 0)
|
||||||
{
|
{
|
||||||
_tasClipboard.Clear();
|
_tasClipboard.Clear();
|
||||||
for (int i = 0; i < lines.Length - 1; i++)
|
int linesToPaste = lines.Length;
|
||||||
|
if (lines[lines.Length - 1] == "") linesToPaste--;
|
||||||
|
for (int i = 0; i < linesToPaste; i++)
|
||||||
{
|
{
|
||||||
var line = ControllerFromMnemonicStr(lines[i]);
|
var line = ControllerFromMnemonicStr(lines[i]);
|
||||||
if (line == null)
|
if (line == null)
|
||||||
|
@ -507,7 +509,9 @@ namespace BizHawk.Client.EmuHawk
|
||||||
if (lines.Length > 0)
|
if (lines.Length > 0)
|
||||||
{
|
{
|
||||||
_tasClipboard.Clear();
|
_tasClipboard.Clear();
|
||||||
for (int i = 0; i < lines.Length - 1; i++)
|
int linesToPaste = lines.Length;
|
||||||
|
if (lines[lines.Length - 1] == "") linesToPaste--;
|
||||||
|
for (int i = 0; i < linesToPaste; i++)
|
||||||
{
|
{
|
||||||
var line = ControllerFromMnemonicStr(lines[i]);
|
var line = ControllerFromMnemonicStr(lines[i]);
|
||||||
if (line == null)
|
if (line == null)
|
||||||
|
|
Loading…
Reference in New Issue