<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.webtv.zone/mediawiki/index.php?action=history&amp;feed=atom&amp;title=ROM_String_Files</id>
	<title>ROM String Files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.webtv.zone/mediawiki/index.php?action=history&amp;feed=atom&amp;title=ROM_String_Files"/>
	<link rel="alternate" type="text/html" href="https://wiki.webtv.zone/mediawiki/index.php?title=ROM_String_Files&amp;action=history"/>
	<updated>2026-05-24T18:34:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.webtv.zone/mediawiki/index.php?title=ROM_String_Files&amp;diff=52&amp;oldid=prev</id>
		<title>imported&gt;Admin at 22:05, 27 June 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.webtv.zone/mediawiki/index.php?title=ROM_String_Files&amp;diff=52&amp;oldid=prev"/>
		<updated>2021-06-27T22:05:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;All first-gen WebTV/MSN TV clients store text strings and fragments of HTML used to compose some panels in proprietary file pairs contained in a [[ROMFS]] container. This pair consists of two files with specific extensions: a named &amp;lt;code&amp;gt;.dat&amp;lt;/code&amp;gt; file that stores the actual string data, and a companion &amp;lt;code&amp;gt;.dir&amp;lt;/code&amp;gt; file with the same name as the &amp;lt;code&amp;gt;.dat&amp;lt;/code&amp;gt;, which contains pointers to each string in that file. These file pairs are usually stored under the ROMFS directory &amp;lt;code&amp;gt;/ROM/Local/&amp;lt;/code&amp;gt;, and both files in each pair are either named &amp;lt;code&amp;gt;US&amp;#039;&amp;#039;NNN&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;WW&amp;#039;&amp;#039;NNN&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; (only seen with [[WebTV for Dreamcast]]), &amp;#039;&amp;#039;NNN&amp;#039;&amp;#039; being a padded number sequence. For simplicity, we will simply refer to the entire format as &amp;#039;&amp;#039;&amp;#039;ROM string files&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;.dat&amp;lt;/code&amp;gt; files used for ROM string files store strings by simply storing the raw data sequentially, adding a NUL byte to the end of each string. &amp;lt;code&amp;gt;.dir&amp;lt;/code&amp;gt; files store pointers to the start of each string in its corresponding &amp;lt;code&amp;gt;.dat&amp;lt;/code&amp;gt; file as a sequence of packed 32-bit integers in big endian format. The &amp;lt;code&amp;gt;.dir&amp;lt;/code&amp;gt; files are used to properly read the &amp;lt;code&amp;gt;.dat&amp;lt;/code&amp;gt; strings, where they are read from each pointer until a NUL byte is reached.&lt;br /&gt;
&lt;br /&gt;
== Caveats ==&lt;br /&gt;
ROM string files do not have any standard for newlines or any way to specify what newline format is used in a set of strings, and as observed in several WebTV/MSN TV builds, the newline format used can vary between builds/releases and is not guaranteed to be consistent. For example, the WebTV Classic builds and WebTV for Dreamcast usually store line-separated text in ROM string files with the line feed terminator, while the 2.9 MSN TV builds for some reason use carriage return (CR) for line-separated text in its ROM string files.&lt;br /&gt;
&lt;br /&gt;
Text encoding is also not explicitly defined for strings stored in ROM string files, expecting the WebTV/MSN TV client to use its own set encoding for rendering the text. English WebTV/MSN TV box builds appear to use standard ASCII for ROM strings, while WebTV for Dreamcast uses Shift-JIS encoding for all of its ROM strings.&lt;/div&gt;</summary>
		<author><name>imported&gt;Admin</name></author>
	</entry>
</feed>