http://wiki.webos-internals.org/api.php?action=feedcontributions&user=Dave55&feedformat=atomWebOS Internals - User contributions [en]2024-03-29T13:34:30ZUser contributionsMediaWiki 1.35.1http://wiki.webos-internals.org/index.php?title=Nintendo&diff=6380Nintendo2009-10-08T15:58:31Z<p>Dave55: </p>
<hr />
<div>[[Image:Nintendo.png|right]]<br />
<br />
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)<br />
<br />
Nintendo emulation is now possible without having to run "Classic" for WebOS. Simply compile [http://fceux.com/web/htdocs/download.php FCEUltra] from within a Debian chroot.<br />
<br />
= Demos=<br />
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]<br />
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]<br />
* [http://www.bestessays.ca/custom_research_paper.php research paper]<br />
<br />
= Installation=<br />
<br />
1. Type the following in a [[Debian]] chroot, as root:<br />
<br />
<pre><nowiki><br />
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity<br />
</nowiki></pre><br />
<br />
2. Extract the bz2 using bunzip2, then extract the tar by typing the following:<br />
<br />
<pre><nowiki><br />
bunzip2 fceux-2.1.0a.src.tar.bz2<br />
tar xvf fceux-2.1.0a.src.tar<br />
</nowiki></pre><br />
<br />
3. Switch to the source path:<br />
<br />
<pre><nowiki><br />
cd /fceu<br />
</nowiki></pre><br />
<br />
4. Compile the program from source by typing the following:<br />
<br />
<pre><nowiki><br />
scons install<br />
</nowiki></pre><br />
<br />
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.<br />
http://www.bestessays.ca/custom_research_paper.php<br />
5. Using the instructions [[directfb | here]], install and configure directfb.<br />
<br />
Add autoflip-window to the directfbrc file, so it looks like the following:<br />
<br />
<pre><nowiki><br />
mode=320x480<br />
scaled=320x480<br />
primary-layer=00<br />
pixelformat=ARGB<br />
no-vt<br />
no-cursor<br />
bg-color=00000000<br />
hardware<br />
autoflip-window<br />
</nowiki></pre><br />
<br />
6. Run the following command:<br />
<br />
<pre><nowiki><br />
export SDL_VIDEODRIVER='directfb'<br />
</nowiki></pre><br />
<br />
7. Run the following command to configure the key mappings:<br />
<br />
<pre><nowiki><br />
fceux --inputcfg gamepad /usr/games/<insert favorite nes.rom><br />
</nowiki></pre><br />
<br />
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:<br />
<br />
<pre><nowiki><br />
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.<br />
</nowiki></pre><br />
<br />
9. Play your favorite games by typing the following command:<br />
<br />
<pre><nowiki><br />
fceux --sound 0 --bpp 8 /usr/games/<insert favorite nes.rom><br />
</nowiki></pre><br />
<br />
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:<br />
<br />
<pre><nowiki><br />
/sbin/initctl start LunaSysMgr<br />
</nowiki></pre></div>Dave55