forked from liliambean/s3unlocked
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.lua
32 lines (23 loc) · 930 Bytes
/
build.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 = true
---------------------
-- End of settings --
---------------------
local common = require "build_tools.lua.common"
local compression = improved_sound_driver_compression and "kosinski-optimised" or "kosinski"
local success, continue = common.build_rom("sonic3k", "s3unlocked", "", "-p=FF -z=0," .. compression .. ",Size_of_Snd_driver_guess,before", false, "https://github.com/sonicretro/skdisasm")
if not success then
exit_code = false
end
if not continue then
os.exit(false)
end
-- Correct the ROM's header with a proper checksum and end-of-ROM value.
common.fix_header("s3unlocked.bin")
os.exit(exit_code)