doc/classes/AppleDos.src/M000297.html in ripxplore-0.16.1 vs doc/classes/AppleDos.src/M000297.html in ripxplore-0.17.0

- old
+ new

@@ -3,25 +3,26 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>get_track_sector_list (AppleDos)</title> + <title>catalog_filename (AppleDos)</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/AppleDos.rb, line 336</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get_track_sector_list</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">ts_list_track_no</span>,<span class="ruby-identifier">ts_list_sector_no</span>) - <span class="ruby-identifier">ts_list_sector</span>=<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">get_sector</span>(<span class="ruby-identifier">ts_list_track_no</span>,<span class="ruby-identifier">ts_list_sector_no</span>) - <span class="ruby-identifier">ts_list</span>=[] - <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">entry_number</span> <span class="ruby-keyword kw">in</span> <span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">121</span> - <span class="ruby-identifier">data_track_no</span>=<span class="ruby-identifier">ts_list_sector</span>[<span class="ruby-identifier">entry_number</span><span class="ruby-operator">*</span><span class="ruby-value">2</span><span class="ruby-operator">+</span><span class="ruby-value">0x0</span><span class="ruby-constant">C</span>] - <span class="ruby-identifier">data_sector_no</span>=<span class="ruby-identifier">ts_list_sector</span>[<span class="ruby-identifier">entry_number</span><span class="ruby-operator">*</span><span class="ruby-value">2</span><span class="ruby-operator">+</span><span class="ruby-value">0x0</span><span class="ruby-constant">D</span>] - <span class="ruby-keyword kw">if</span>( (<span class="ruby-identifier">data_track_no!</span>=<span class="ruby-value">0</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">data_sector_no!</span>=<span class="ruby-value">0</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">data_track_no</span><span class="ruby-operator">&lt;</span><span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">track_count</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">data_sector_no</span><span class="ruby-operator">&lt;=</span><span class="ruby-value">0x0f</span>) <span class="ruby-keyword kw">then</span> - <span class="ruby-identifier">ts_list</span><span class="ruby-operator">&lt;&lt;</span>[<span class="ruby-identifier">data_track_no</span>,<span class="ruby-identifier">data_sector_no</span>] + <pre><span class="ruby-comment cmt"># File lib/file_systems/AppleDos.rb, line 258</span> +<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">catalog_filename</span>(<span class="ruby-identifier">filename</span>) + <span class="ruby-identifier">s</span>=<span class="ruby-value str">&quot;&quot;</span> + <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword kw">in</span> <span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">29</span> + <span class="ruby-identifier">c</span>=(<span class="ruby-identifier">filename</span>[<span class="ruby-identifier">i</span>]) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span> + <span class="ruby-identifier">c</span>=<span class="ruby-value">0x</span><span class="ruby-constant">A0</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-identifier">c</span>=(<span class="ruby-identifier">c</span><span class="ruby-operator">|</span><span class="ruby-value">0x80</span>) <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-identifier">c</span>.<span class="ruby-identifier">chr</span> <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">ts_list</span> - <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-identifier">s</span> +<span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file