freemyipod r185 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r184‎ | r185 | r186 >
Date:23:59, 30 August 2010
Author:farthen
Status:new
Tags:
Comment:
I am an idiot...
Modified paths:
  • /apps/installer-nano2g/Makefile (modified) (history)
  • /apps/installer-nano2g/flashfiles (added) (history)
  • /apps/installer-nano2g/flashfiles/iloader.conf (added) (history)

Diff [purge]

Index: apps/installer-nano2g/flashfiles/iloader.conf
@@ -0,0 +1,45 @@
 2+# nothing center right center+right left center+left left+right center+left+right
 3+.word(notheme) .word(notheme) .word(notheme) .word(quit) .word(notheme) .word(diagmode) .word(notheme) .word(notheme)
 4+.word(diskmode) .word(diskmode) .word(notheme) .word(notheme) .word(notheme) .word(notheme) .word(notheme) .word(notheme) # +play
 5+.word(notheme) .word(notheme) .word(notheme) .word(notheme) .word(notheme) .word(notheme) .word(notheme) .word(notheme) # +menu
 6+.word(notheme) .word(notheme) .word(notheme) .word(notheme) .word(notheme) .word(notheme) .word(notheme) .word(notheme) # +play+menu
 7+
 8+# error handler
 9+.word(0xffffffff)
 10+
 11+notheme:
 12+ fillrect(0, 0, 176, 132, 0xffff)
 13+ text(16, 16, 0x0000, 0xffff, "Could not load iLoader\0")
 14+ text(16, 24, 0x0000, 0xffff, "theme. It was probably\0")
 15+ text(16, 32, 0x0000, 0xffff, "deleted. Please choose\0")
 16+ text(16, 40, 0x0000, 0xffff, "an option below:\0")
 17+ blit()
 18+ backlight(1, 55, 10)
 19+ menu(nothememenu, 0, 0xffffffff, 0xfffffffe, 0xffffffff, 0xfffffffe, 0)
 20+
 21+nothememenu:
 22+ .menuentry(" Uninstall iLoader \0", 16, 56, 0x0000, 0xffff, 0xffff, 0x1f00, uninstall)
 23+ .menuentry(" Enter disk mode \0", 16, 64, 0x0000, 0xffff, 0xffff, 0x1f00, diskmode)
 24+ .menuentry(" Quit iLoader \0", 16, 72, 0x0000, 0xffff, 0xffff, 0x1f00, quit)
 25+ .menuentry(" Power off \0", 16, 80, 0x0000, 0xffff, 0xffff, 0x1f00, off)
 26+ .word(0)
 27+
 28+diskmode:
 29+ readflash(0x08000000, "diskmode")
 30+ backlight(1, 10, 10)
 31+ exec(0x08000000)
 32+
 33+quit:
 34+ terminate()
 35+
 36+diagmode:
 37+ readflash(0x08000000, "diagmode")
 38+ backlight(1, 177, 32)
 39+ exec(0x08000000)
 40+
 41+uninstall:
 42+ readflash(0x08800000, "uninst ")
 43+ execembiosapp(0x08800000, 1)
 44+
 45+off:
 46+ poweroff()
Index: apps/installer-nano2g/Makefile
@@ -163,10 +163,6 @@
164164 @echo [COMCFG] $@
165165 @$(COMPILECONFIG) $< $@
166166
167 -flashfiles/iloader.conf:
168 - @echo [CP] $@
169 - @cp $(ILOADERDIR)/themes/default/source/iloader.conf flashfiles/iloader.conf
170 -
171167 flashfiles/iloader.cfg.ucl: flashfiles/iloader.cfg
172168 @echo [UCL] $<
173169 @$(UCLPACK) $< $@
@@ -208,6 +204,5 @@
209205
210206 clean:
211207 @rm -rf build
212 - @rm -rf flashfiles
213208
214209 .PHONY: all clean uninstaller-nano2g iloader embios embiosldr-ipodnano2g libucl flashfiles $(NAME)