bconf_splash.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --The bios configuration file.
  2. --per ,err = P(peripheral,mountedName,configTable)
  3. --Create a new cpu mounted as "CPU"
  4. local CPU, yCPU, CPUKit = PA("CPU")
  5. --Create a new gpu mounted as "GPU"
  6. local GPU, yGPU, GPUKit = PA("GPU","GPU",{
  7. _ColorSet = Build.Palette or { --The P8 Pallete
  8. {0,0,0,255}, --Black 1
  9. {28,43,83,255}, --Dark Blue 2
  10. {127,36,84,255}, --Dark Red 3
  11. {0,135,81,255}, --Dark Green 4
  12. {171,82,54,255}, --Brown 5
  13. {96,88,79,255}, --Dark Gray 6
  14. {195,195,198,255}, --Gray 7
  15. {255,241,233,255}, --White 8
  16. {237,27,81,255}, --Red 9
  17. {250,162,27,255}, --Orange 10
  18. {247,236,47,255}, --Yellow 11
  19. {93,187,77,255}, --Green 12
  20. {81,166,220,255}, --Blue 13
  21. {131,118,156,255}, --Purple 14
  22. {241,118,166,255}, --Pink 15
  23. {252,204,171,255} --Human Skin 16
  24. },
  25. _ClearOnRender = true, --Speeds up rendering, but may cause glitches on some devices !
  26. CPUKit = CPUKit,
  27. title = Build.Title
  28. })
  29. local LIKO_W, LIKO_H = GPUKit._LIKO_W, GPUKit._LIKO_H
  30. local ScreenSize = (LIKO_W/2)*LIKO_H
  31. --Create Audio peripheral
  32. PA("Audio")
  33. --Create gamepad contols
  34. PA("Gamepad","Gamepad",{CPUKit = CPUKit})
  35. --Create Touch Controls
  36. PA("TouchControls","TC",{CPUKit = CPUKit, GPUKit = GPUKit})
  37. --Create a new keyboard api mounted as "KB"
  38. PA("Keyboard","Keyboard",{CPUKit = CPUKit, GPUKit = GPUKit,_Android = (_OS == "Android"),_EXKB = false})
  39. --Create a new virtual hdd system mounted as "HDD"
  40. PA("HDD","HDD",{
  41. Drives = {
  42. GameDiskOS = 1024*1024 * 50, --Measured in bytes, equals 25 megabytes
  43. },
  44. RootDir = "/OS/"
  45. })
  46. local KB = function(v) return v*1024 end
  47. local RAMConfig = {
  48. layout = {
  49. {ScreenSize,GPUKit.VRAMHandler}, --0x0 -> 0x2FFF - The Video ram
  50. {ScreenSize,GPUKit.LIMGHandler}, --0x3000 -> 0x5FFF - The Label image
  51. {KB(64)} --0x6000 -> 0x15FFF - The floppy RAM
  52. }
  53. }
  54. local RAM, yRAM, RAMKit = PA("RAM","RAM",RAMConfig)
  55. PA("FDD","FDD",{
  56. GPUKit = GPUKit,
  57. RAM = RAM,
  58. DiskSize = KB(64),
  59. FRAMAddress = 0x6000
  60. })