-
Notifications
You must be signed in to change notification settings - Fork 69
/
buildS3Complete.lua
32 lines (23 loc) · 1011 Bytes
/
buildS3Complete.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env lua
--------------
-- Settings --
--------------
-- Set this to true to use a better compression algorithm for the sound driver.
-- Having this set to false will use an inferior compression algorithm that
-- results in an accurate ROM being produced.
local improved_sound_driver_compression = false
---------------------
-- End of settings --
---------------------
local common = require "build_tools.lua.common"
local compression = improved_sound_driver_compression and "kosinski-optimised" or "kosinski"
local message, abort = common.build_rom("sonic3k", "sonic3k", "-D Sonic3_Complete=1", "-p=FF -z=0," .. compression .. ",Size_of_Snd_driver_guess,before -z=1300," .. compression .. ",Size_of_Snd_driver2_guess,before", false, "https://github.com/sonicretro/skdisasm")
if message then
exit_code = false
end
if abort then
os.exit(exit_code, true)
end
-- Correct the ROM's header with a proper checksum and end-of-ROM value.
common.fix_header("sonic3k.bin")
os.exit(exit_code, false)