Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
4b7700d5
Commit
4b7700d5
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Fix up the registration stuff. Just need to enter the "Registered To"
parent
2543b3eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/doors/smurfcombat/regsmurf.c
+0
-28
0 additions, 28 deletions
src/doors/smurfcombat/regsmurf.c
src/doors/smurfcombat/smurfreg.c
+13
-0
13 additions, 0 deletions
src/doors/smurfcombat/smurfreg.c
with
13 additions
and
28 deletions
src/doors/smurfcombat/regsmurf.c
deleted
100644 → 0
+
0
−
28
View file @
2543b3eb
#include
<stdio.h>
#include
<ciolib.h>
#ifdef TODO_HEADERS
#include
<dos.h>
#endif
int
c_break
(
void
){
return
(
1
);
}
void
main
(
void
)
{
int
x
=
0
;
char
stringz
[
2
];
directvideo
=
0
;
#ifdef TODO_DOSWRAP
ctrlbrk
(
c_break
);
#endif
textcolor
(
15
);
cprintf
(
"
\n\r
Smurf crack courtesy of [JuSTice]
\n\r
"
);
textcolor
(
7
);
cprintf
(
"Enter name to register under: "
);
do
{
gets
(
stringz
);
}
while
(
x
==
0
);
}
This diff is collapsed.
Click to expand it.
src/doors/smurfcombat/smurfreg.c
+
13
−
0
View file @
4b7700d5
...
...
@@ -29,8 +29,11 @@ __REG__main(void)
char
code
[
40
],
name
[
80
],
cod
;
FILE
*
stream
;
printf
(
"
\n\r
"
);
#if TODO_REGISTRATION
printf
(
"Enter Registration Code: "
);
gets
(
code
);
#endif
printf
(
"Enter Registration Name: "
);
gets
(
name
);
/* printf("Enter Intermediate Code: "); cin >> name[0];cod=atoi(name[0]);
...
...
@@ -39,7 +42,9 @@ __REG__main(void)
* if(cod>1)for(cyc=1;cyc<cod;cyc++) fprintf(stream," %s",name[cyc]); */
stream
=
fopen
(
"smurfreg.nfo"
,
"w+"
);
fprintf
(
stream
,
"%s"
,
name
);
#if TODO_REGISTRATION
fprintf
(
stream
,
"
\n\r
%s
\n\r
"
,
code
);
#endif
fclose
(
stream
);
}
...
...
@@ -103,7 +108,12 @@ checkkey(void)
fgets
(
registered_name
,
200
,
fp
);
/* read name from file */
if
(
registered_name
[
strlen
(
registered_name
)
-
1
]
==
'\n'
)
registered_name
[
strlen
(
registered_name
)
-
1
]
=
'\0'
;
if
(
registered_name
[
strlen
(
registered_name
)
-
1
]
==
'\r'
)
registered_name
[
strlen
(
registered_name
)
-
1
]
=
'\0'
;
if
(
registered_name
[
strlen
(
registered_name
)
-
1
]
==
'\n'
)
registered_name
[
strlen
(
registered_name
)
-
1
]
=
'\0'
;
#if TODO_REGISTRATION
fscanf
(
fp
,
"%lu"
,
&
supplied_key
);
/* read key from file */
fclose
(
fp
);
/* Close file */
...
...
@@ -116,6 +126,9 @@ checkkey(void)
registeredxx
=
1
;
/* Then switch program into registered
* mode */
}
#else
registeredxx
=
1
;
#endif
}
if
(
registeredxx
==
1
)
statis
=
1
;
/* If registered mode */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment