Skip to content

romcopy: Add new tool for interleaving and bitswapping binary data files #13791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/source/tools/othertools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ romcmp
This tool is used to perform basic data comparisons and integrity checks on binary dumps. With the -h switch, it can also be used to calculate hash functions.


romcopy
-------

This tool is used to interleave and bitswap binary data files.


unidasm
-------

Expand Down
41 changes: 41 additions & 0 deletions scripts/src/tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -837,3 +837,44 @@ if (_OPTIONS["osd"] == "sdl") then

strip()
end

--------------------------------------------------
-- romcopy
--------------------------------------------------

project("romcopy")
--uuid ("01234567-89ab-cdef-0123-456789abcdef01") -- TODO: add a real UUID here
kind "ConsoleApp"

flags {
"Symbols", -- always include minimum symbols for executables
}

if _OPTIONS["SEPARATE_BIN"]~="1" then
targetdir(MAME_DIR)
end

links {
"utils",
"7z",
"ocore_" .. _OPTIONS["osd"],
ext_lib("zlib"),
ext_lib("zstd"),
ext_lib("utf8proc"),
}

includedirs {
MAME_DIR .. "src/osd",
MAME_DIR .. "src/lib/util",
}

files {
MAME_DIR .. "src/tools/romcopy.cpp",
}

configuration { "mingw*" or "vs*" }
targetextension ".exe"

configuration { }

strip()
Loading
Loading