summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--public/tools/ld/src/CommandLine.cc8
-rw-r--r--public/tools/make_app/Steps.h1
-rw-r--r--public/tools/make_app/src/CommandLine.cc32
3 files changed, 23 insertions, 18 deletions
diff --git a/public/tools/ld/src/CommandLine.cc b/public/tools/ld/src/CommandLine.cc
index dfd5709f..6f2fc4a8 100644
--- a/public/tools/ld/src/CommandLine.cc
+++ b/public/tools/ld/src/CommandLine.cc
@@ -10,11 +10,7 @@
SInt32 main(SInt32 argc, Char* argv[])
{
- if (argc < 3)
- return ~0;
+ ConOut(nullptr, "LD: Either OpenCC or Aker's CC needs to be installed.\rLD: This program is present as a placeholder.");
- UIntPtr exit_code = RtlSpawnProcess(argv[1], argc - 2, argv + 2,
- nullptr, 0);
-
- return exit_code;
+ return EXIT_FAILURE;
}
diff --git a/public/tools/make_app/Steps.h b/public/tools/make_app/Steps.h
index 1aee1dfa..83962da0 100644
--- a/public/tools/make_app/Steps.h
+++ b/public/tools/make_app/Steps.h
@@ -14,6 +14,7 @@
struct STEPS_COMMON_RECORD final
{
+ SInt32 setup_magic;
Char setup_name[kStepsStrLen];
Char setup_company[kStepsStrLen];
Char setup_author[kStepsStrLen];
diff --git a/public/tools/make_app/src/CommandLine.cc b/public/tools/make_app/src/CommandLine.cc
index cb014842..984251a5 100644
--- a/public/tools/make_app/src/CommandLine.cc
+++ b/public/tools/make_app/src/CommandLine.cc
@@ -57,23 +57,31 @@ int main(int argc, char* argv[])
auto path = argv[1];
- else if (MmStrCmp(ext, kStepsExtension) == 0)
- {
- FsCreateFile(FsCreateDir(StrFmt("{}{}{}{}", path, kRootDirectory, "_setup", kStepsExtension)));
- auto handle = IoOpenFile(StrFmt("{}{}{}{}", path, kRootDirectory, "_setup", kStepsExtension), nullptr);
- struct STEPS_COMMON_RECORD record{};
-
- IoWriteFile(handle, (void*)&record, sizeof(STEPS_COMMON_RECORD));
- IoCloseFile(handle);
-
- handle = nullptr;
- }
-
if (FsCreateDir(path))
{
FsCreateDir(StrFmt("{}{}", path, kRootDirectory));
FsCreateDir(StrFmt("{}{}", path, kExecDirectory));
+ if (MmStrCmp(ext, kStepsExtension) == 0)
+ {
+ FsCreateFile(StrFmt("{}{}{}{}", path, kRootDirectory, "_setup"));
+
+ auto handle = IoOpenFile(StrFmt("{}{}{}{}", path, kRootDirectory, "_setup", kStepsExtension), nullptr);
+
+ struct STEPS_COMMON_RECORD record
+ {
+ 0
+ };
+
+ record.setup_magic = 0xAABB;
+ record.setup_version = 1;
+
+ IoWriteFile(handle, (void*)&record, sizeof(STEPS_COMMON_RECORD));
+ IoCloseFile(handle);
+
+ handle = nullptr;
+ }
+
for (SInt32 i = 0; i < files.Count(); ++i)
{
auto& file = files[i];