rolandshacks / vs64

C64 Development Environment for Visual Studio Code
Other
102 stars 18 forks source link

"args" ignored, trying to add a custom cc65 system config #42

Closed bastetfurry closed 1 year ago

bastetfurry commented 1 year ago

Trying to add a custom system config, ie. "c64.cfg", to my project inside the project-config.json's args list and, well, the args won't get added to the ld65 call.

I am importing an older project to test the extension, so don't mind the year.

{
    "name": "Partygames",
    "description": "Partygames for Bunkerparty 2017",
    "toolkit": "cc65",
    "sources": [
        "src/main.c",
        "src/asteroidrun.c",
        "src/supplyrun.c",
        "src/helper.c",
        "src/charset.s",
        "src/irq.s"
    ],
    "build": "debug",
    "definitions": [],
    "includes": [
    ],
    "args": ["-C c64.cfg"],
    "compiler": ""
}
rolandshacks commented 1 year ago

Hi. "args" is a list of strings. So, maybe this could work:

"args": ["-C", "c64.cfg"],

rolandshacks commented 1 year ago

I need to check, you intend to set a linker config file, correct?

rolandshacks commented 1 year ago

Found it. It's both a bug and a bit of missing functionality.

Next release will fix it and add the following config parameters:

rolandshacks commented 1 year ago

Please download and manually install the new release: https://github.com/rolandshacks/vs64/releases Thanks for reporting!

bastetfurry commented 1 year ago

Thanks for fixing this, will do tomorrow as today is a holiday over here and i am with family. :)