doc/classes/NADOLDos.src/M000156.html in ripxplore-0.8.0 vs doc/classes/NADOLDos.src/M000156.html in ripxplore-0.11.0
- old
+ new
@@ -1,31 +1,31 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>files (NADOLDos)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/file_systems/NADOLDos.rb, line 46</span>
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>files (NADOLDos)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/file_systems/NADOLDos.rb, line 46</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">NADOLDos</span>.<span class="ruby-identifier">files</span>(<span class="ruby-identifier">file_system_image</span>)
<span class="ruby-identifier">files</span>=<span class="ruby-constant">FileContainer</span>.<span class="ruby-identifier">new</span>
<span class="ruby-identifier">track</span>=<span class="ruby-value">0</span>
<span class="ruby-identifier">sector</span>=<span class="ruby-value">3</span>
<span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">sector</span><span class="ruby-operator"><=</span><span class="ruby-value">9</span>) <span class="ruby-keyword kw">do</span>
<span class="ruby-identifier">sector_data</span>=<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">get_sector</span>(<span class="ruby-identifier">track</span>,<span class="ruby-identifier">sector</span>)
(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">15</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">slot_no</span><span class="ruby-operator">|</span>
<span class="ruby-identifier">slot_offset</span>=<span class="ruby-identifier">slot_no</span><span class="ruby-operator">*</span><span class="ruby-value">0x10</span>
<span class="ruby-identifier">file_descriptive_entry</span>=<span class="ruby-identifier">sector_data</span>[<span class="ruby-identifier">slot_offset</span><span class="ruby-operator">..</span><span class="ruby-identifier">slot_offset</span><span class="ruby-operator">+</span><span class="ruby-value">0x10</span>]
- <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">!=</span><span class="ruby-value">0x</span><span class="ruby-constant">FF</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">!=</span><span class="ruby-value">0x00</span>) <span class="ruby-keyword kw">then</span> <span class="ruby-comment cmt"># skip deleted /empty files</span>
+ <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">!=</span><span class="ruby-value">0x</span><span class="ruby-constant">FF</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">!=</span><span class="ruby-value">0x00</span>) <span class="ruby-keyword kw">then</span> <span class="ruby-comment cmt"># skip deleted /empty files
</span>
<span class="ruby-identifier">filename</span>=<span class="ruby-value str">""</span>
- <span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">11</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">each_byte</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filename</span><span class="ruby-operator">+=</span>(<span class="ruby-identifier">b</span>.<span class="ruby-operator">%</span><span class="ruby-value">128</span>).<span class="ruby-identifier">chr</span>} <span class="ruby-comment cmt">#strip off high bit</span>
- <span class="ruby-identifier">filename</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/ *$/</span>,<span class="ruby-value str">""</span>) <span class="ruby-comment cmt">#strip off trailing spaces</span>
+ <span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">11</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">each_byte</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filename</span><span class="ruby-operator">+=</span>(<span class="ruby-identifier">b</span>.<span class="ruby-operator">%</span><span class="ruby-value">128</span>).<span class="ruby-identifier">chr</span>} <span class="ruby-comment cmt">#strip off high bit
</span>
+ <span class="ruby-identifier">filename</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/ *$/</span>,<span class="ruby-value str">""</span>) <span class="ruby-comment cmt">#strip off trailing spaces
</span>
<span class="ruby-identifier">file_size</span>=<span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0x0</span><span class="ruby-constant">D</span>]<span class="ruby-operator">*</span><span class="ruby-value">256</span><span class="ruby-operator">+</span><span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0x0</span><span class="ruby-constant">C</span>]
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">file_size</span><span class="ruby-operator">></span><span class="ruby-value">0</span>) <span class="ruby-keyword kw">then</span>
<span class="ruby-identifier">contents</span>=<span class="ruby-value str">""</span>
<span class="ruby-identifier">ts_list_track_no</span>=<span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0x0</span><span class="ruby-constant">E</span>]
<span class="ruby-identifier">ts_list_sector_no</span>=<span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0x0</span><span class="ruby-constant">F</span>]
@@ -45,8 +45,8 @@
<span class="ruby-keyword kw">end</span>
<span class="ruby-identifier">sector</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span>
<span class="ruby-keyword kw">end</span>
<span class="ruby-identifier">files</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
</html>
\ No newline at end of file