Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coenen, Joachim
Frida
Commits
add03a46
Commit
add03a46
authored
15 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
read i96 samples from Sebastian
parent
f8058864
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pub/src/file_io.cpp
+8
-16
8 additions, 16 deletions
pub/src/file_io.cpp
with
8 additions
and
16 deletions
pub/src/file_io.cpp
+
8
−
16
View file @
add03a46
...
@@ -349,25 +349,17 @@ void NFileIO::Load_96( FILE *F_in, string flong )
...
@@ -349,25 +349,17 @@ void NFileIO::Load_96( FILE *F_in, string flong )
if
(
lin
.
substr
(
0
,
3
)
!=
string
(
"dir"
)
)
if
(
lin
.
substr
(
0
,
3
)
!=
string
(
"dir"
)
)
throw
string
(
"tag 'dir' not found in block 2"
);
throw
string
(
"tag 'dir' not found in block 2"
);
if
(
mystd
::
freadln
(
F_in
,
&
lin
)
<=
0
||
lin
.
length
()
<
6
||
while
(
mystd
::
freadln
(
F_in
,
&
lin
)
>
0
&&
lin
.
substr
(
0
,
6
)
!=
string
(
"&eob 2"
)
)
!
(
lin
.
length
()
>=
6
&&
throw
string
(
"no valid eob 2"
);
lin
.
substr
(
0
,
6
)
==
string
(
"&eob 2"
)
)
)
;
if
(
mystd
::
freadln
(
F_in
,
&
lin
)
<=
0
)
throw
string
(
"missed &eob 3"
);
if
(
mystd
::
freadln
(
F_in
,
&
lin
)
<=
0
||
lin
.
length
()
<
9
||
if
(
lin
.
length
()
<
9
||
lin
.
substr
(
0
,
9
)
!=
string
(
"(a24,i16)"
)
)
lin
.
substr
(
0
,
9
)
!=
string
(
"(a24,i16)"
)
)
throw
string
(
"no valid intro to block 3"
);
throw
string
(
"no valid intro to block 3"
);
if
(
mystd
::
freadln
(
F_in
,
&
lin
)
<=
0
||
lin
.
length
()
<
24
||
lin
.
substr
(
0
,
3
)
!=
string
(
"?cu"
)
)
throw
string
(
"entry ?cu not found in block 3"
);
// if( lin.substr(24,1)!=string("0") )
// throw BadData( "invalid ?cu value" );
// do not check cu=0, because a24 is not respected
if
(
mystd
::
freadln
(
F_in
,
&
lin
)
<=
0
||
lin
.
length
()
<
24
||
lin
.
substr
(
0
,
6
)
!=
string
(
"@fixed"
)
)
throw
string
(
"entry '@fixed' not found in block 3"
);
while
(
mystd
::
freadln
(
F_in
,
&
lin
)
>
0
&&
while
(
mystd
::
freadln
(
F_in
,
&
lin
)
>
0
&&
!
(
lin
.
length
()
>=
6
&&
!
(
lin
.
length
()
>=
6
&&
lin
.
substr
(
0
,
6
)
==
string
(
"&eob 3"
)
)
)
lin
.
substr
(
0
,
6
)
==
string
(
"&eob 3"
)
)
)
...
...
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