Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ jobs:
with:
submodules: recursive
- name: set up packages
run: sudo apt install meson ninja-build gcc libsdl2-dev libxxhash-dev
run: |
sudo apt-get update
sudo apt install meson ninja-build gcc libsdl2-dev libxxhash-dev
- name: build release
run: |
meson setup build
meson compile -C build
- name: upload build
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sleepdart-linux
path: sleepdart
Expand Down Expand Up @@ -50,7 +52,7 @@ jobs:
meson setup build
meson compile -C build
- name: upload build
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sleepdart-windows
path: sleepdart.exe
Expand Down
3 changes: 0 additions & 3 deletions src/argparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include <stdbool.h>
#include <stdint.h>

typedef void (*ArgCallback_t)(void *value);

enum ArgumentType
{
ARG_STRING = 0,
Expand All @@ -23,7 +21,6 @@ struct Argument
bool positional;
const char *help;
void *result;
ArgCallback_t callback;
};

typedef struct ArgParser {
Expand Down
2 changes: 1 addition & 1 deletion src/config_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ int config_get_float(CfgData_t *cfg, const char *key, float *dest)
return 0;
}

void config_set_str(CfgData_t *cfg, const char *key, char *value)
void config_set_str(CfgData_t *cfg, const char *key, const char *value)
{
if (value == NULL) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/config_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ int config_get_int(CfgData_t *cfg, const char *key, int *dest);
* config value gets copied to dest */
int config_get_float(CfgData_t *cfg, const char *key, float *dest);

void config_set_str(CfgData_t *cfg, const char *key, char *value);
void config_set_str(CfgData_t *cfg, const char *key, const char *value);
void config_set_int(CfgData_t *cfg, const char *key, int value);
void config_set_float(CfgData_t *cfg, const char *key, float value);
2 changes: 1 addition & 1 deletion src/machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ int machine_do_cycles()

audio_sdl_queue(m_cur->ay->buf, m_cur->ay->buf_len * sizeof(float));

ula_draw_frame(m_cur);
ula_draw_frame();

video_sdl_draw_rgb24_buffer(ula_buffer, sizeof(ula_buffer));

Expand Down
4 changes: 2 additions & 2 deletions src/machine_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ static void test_finish(struct Machine *m) {
}
}

int machine_test_iterate(struct Machine *m)
void machine_test_iterate(struct Machine *m)
{
if (!test_running) return 0;
if (!test_running) return;

if (test.cycles) {
XXH64_update(test.cycles, &m->cpu.cycles, sizeof(m->cpu.cycles));
Expand Down
2 changes: 1 addition & 1 deletion src/machine_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
struct Machine;

int machine_test_open(const char *path);
int machine_test_iterate(struct Machine *m);
void machine_test_iterate(struct Machine *m);
void machine_test_close();
Loading