Skip to content

Commit

Permalink
show warnings right when they happen
Browse files Browse the repository at this point in the history
  • Loading branch information
pancelor committed Mar 25, 2024
1 parent a42c133 commit 6b69e74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The goal here is NOT perfect emulation of pico8 -- instead, the tool attempts to
- drag mygame.p8 from your picotron desktop
- to get a game from your host OS into picotron, type `folder` in the terminal and copy the file using your host OS
- press the export button
- this will probably generate warnings; `load mygame.p64` to view the warnings in detail
- this will probably generate warnings; a notepad will open showing you the warnings. Manually change your p8 file, reimport and export until there are no warnings when exported
- double-click the exported cart to run it

## compatibility
Expand All @@ -41,7 +41,7 @@ Modified [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) - p8x8
- [ ] tline emulation -- see [baked/polyfill/draw.lua](./baked/polyfill/draw.lua#L17)

## TODO
- [ ] show lint errors easier
- [x] show lint errors easier
- [ ] set better scope expectations. how much emulation accuracy are we shooting for (not much)
- [ ] make CONTRIBUTORS.md
- [ ] put list of chars that need replacing in docs somewhere, for easy searching: `[█▒🐱⬇️░✽●♥☉웃⌂⬅️😐♪🅾️◆…➡️★⧗⬆️ˇ∧❎▤▥あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをんっゃゅょアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンッャュョ◜◝]`
Expand Down
3 changes: 2 additions & 1 deletion src/export.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ function export_p64(path)
add(meta.workspaces, {location = fname, workspace_index=1})
end

if cartdata.lua_warn then
if cartdata.lua_warn then
store(path.."/warning.txt",cartdata.lua_warn)
add(meta.workspaces, {location = "warning.txt", workspace_index=1})
create_process("/system/util/open.lua", {argv = {path.."/warning.txt"}})
end

store_metadata(path,meta)
Expand Down

0 comments on commit 6b69e74

Please sign in to comment.