Polyphase Game Engine
Loading...
Searching...
No Matches
CiaPackager.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
6
7#include <string>
8#include <cstdint>
9
24namespace CiaPackager
25{
26 extern const char* const kTargetId;
27
29 void FillDesc(PolyphaseBuildTargetDesc& outDesc);
30
31 enum class Tool
32 {
33 Makerom,
34 Bannertool,
35 Cwavtool, // optional DSP-ADPCM banner tune encoder (PCM16 via bannertool is the proven default)
36 Python,
37 Pycgfx,
38
39 Count
40 };
41
48 std::string ResolveTool(Tool tool);
49
51 void InvalidateToolCache();
52
54 void SetToolOverride(Tool tool, const std::string& path);
55
57 std::string GetToolsDirectory();
58
65 bool WriteSmdhIcon(const std::string& source, const std::string& projectDir, const std::string& outPng);
66
67 enum ToolInstallMask : uint32_t
68 {
69 ToolInstall_Makerom = 1u << 0,
70 ToolInstall_Bannertool = 1u << 1,
71 ToolInstall_Pycgfx = 1u << 2,
72 ToolInstall_Cwavtool = 1u << 3,
73 };
74
76 void StartToolInstall(uint32_t mask);
77 bool IsToolInstallRunning();
78 std::string GetToolInstallStatus();
79}
80
81#endif /* EDITOR */
Stable C ABI header for native build-target addons.