mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
Import list-mode saving fix.
This commit is contained in:
parent
8b4e8b0a91
commit
cf7dfeb26b
@ -204,7 +204,13 @@ void _SaveBackupToFile()
|
|||||||
FILE *savingFile = fopen("tempIPLst.bk", "w");
|
FILE *savingFile = fopen("tempIPLst.bk", "w");
|
||||||
if (savingFile != NULL)
|
if (savingFile != NULL)
|
||||||
{
|
{
|
||||||
for(int tCounter = gC; tCounter < flCounter; ++tCounter)
|
sprintf(ipRange, "%s-%d.%d.%d.%d\n",
|
||||||
|
currentIP,
|
||||||
|
ipsendfl[gC][0], ipsendfl[gC][1], ipsendfl[gC][2], ipsendfl[gC][3]);
|
||||||
|
fputs(ipRange, savingFile);
|
||||||
|
|
||||||
|
ZeroMemory(ipRange, sizeof(ipRange));
|
||||||
|
for(int tCounter = gC + 1; tCounter < flCounter; ++tCounter)
|
||||||
{
|
{
|
||||||
sprintf(ipRange, "%d.%d.%d.%d-%d.%d.%d.%d\n",
|
sprintf(ipRange, "%d.%d.%d.%d-%d.%d.%d.%d\n",
|
||||||
ipsstartfl[tCounter][0], ipsstartfl[tCounter][1], ipsstartfl[tCounter][2], ipsstartfl[tCounter][3],
|
ipsstartfl[tCounter][0], ipsstartfl[tCounter][1], ipsstartfl[tCounter][2], ipsstartfl[tCounter][3],
|
||||||
|
Loading…
Reference in New Issue
Block a user