fix stress cartridge generation without legacy empty assets.pa
This commit is contained in:
parent
4b31248dff
commit
f4540fc803
@ -89,8 +89,9 @@ pub fn generate() -> Result<()> {
|
||||
out_dir.push("stress-console");
|
||||
fs::create_dir_all(&out_dir)?;
|
||||
fs::write(out_dir.join("program.pbx"), bytes)?;
|
||||
if !out_dir.join("assets.pa").exists() {
|
||||
fs::write(out_dir.join("assets.pa"), &[] as &[u8])?;
|
||||
let assets_pa_path = out_dir.join("assets.pa");
|
||||
if assets_pa_path.exists() {
|
||||
fs::remove_file(&assets_pa_path)?;
|
||||
}
|
||||
fs::write(out_dir.join("manifest.json"), b"{\n \"magic\": \"PMTU\",\n \"cartridge_version\": 1,\n \"app_id\": 1,\n \"title\": \"Stress Console\",\n \"app_version\": \"0.1.0\",\n \"app_mode\": \"Game\",\n \"entrypoint\": \"main\",\n \"capabilities\": [\"gfx\", \"log\"]\n}\n")?;
|
||||
Ok(())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user