Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/indigoparadox/maug
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoparadox committed Feb 18, 2024
2 parents 0501b19 + 4c9a909 commit 7360db5
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 35 deletions.
6 changes: 4 additions & 2 deletions dosstubs/mfmt.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

#define MFMT_C
#include <maug.h>
#ifndef MAUG_NO_MFMT
# define MFMT_C
# include <maug.h>
#endif /* !MAUG_NO_MFMT */

8 changes: 5 additions & 3 deletions dosstubs/mhtml.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

#define MHTML_C
#include <maug.h>
#include <mhtml.h>
#ifndef MAUG_NO_MHTML
# define MHTML_C
# include <maug.h>
# include <mhtml.h>
#endif /* !MAUG_NO_MHTML */

10 changes: 6 additions & 4 deletions dosstubs/mhtmr.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

#define MHTMR_C
#include <maug.h>
#include <mhtml.h>
#include <mhtmr.h>
#ifndef MAUG_NO_MHTML
# define MHTMR_C
# include <maug.h>
# include <mhtml.h>
# include <mhtmr.h>
#endif /* !MAUG_NO_MHTML */

8 changes: 5 additions & 3 deletions dosstubs/mjson.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

#define MJSON_C
#include <maug.h>
#include <mjson.h>
#ifndef MAUG_NO_MJSON
# define MJSON_C
# include <maug.h>
# include <mjson.h>
#endif /* !MAUG_NO_MJSON */

6 changes: 4 additions & 2 deletions dosstubs/mplug.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

#define MPLUG_C
#include <maug.h>
#ifndef MAUG_NO_MPLUG
# define MPLUG_C
# include <maug.h>
#endif /* !MAUG_NO_MPLUG */

12 changes: 7 additions & 5 deletions dosstubs/retrogui.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

#define MAUG_NO_RETRO
#include <maug.h>
#include <retroflt.h>
#define RETROGUI_C
#include <retrogui.h>
#ifndef RETROFLAT_NO_RETROGUI
# define MAUG_NO_RETRO
# include <maug.h>
# include <retroflt.h>
# define RETROGUI_C
# include <retrogui.h>
#endif /* !RETROFLAT_NO_RETROGUI */

13 changes: 7 additions & 6 deletions dosstubs/retrogxc.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

#define MAUG_NO_RETRO
#include <maug.h>
#include <mjson.h>
#include <retroflt.h>
#define RETROGXC_C
#include <retrogxc.h>
#ifndef RETROFLAT_NO_RETROGXC
# define MAUG_NO_RETRO
# include <maug.h>
# include <retroflt.h>
# define RETROGXC_C
# include <retrogxc.h>
#endif /* !RETROFLAT_NO_RETROGXC */

16 changes: 9 additions & 7 deletions dosstubs/retrotil.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@

#define MAUG_NO_RETRO
#include <maug.h>
#include <mjson.h>
#include <retroflt.h>
#define RETROTIL_C
#include <retrotil.h>
#include <retropth.h>
#ifndef RETROFLAT_NO_RETROTILE
# define MAUG_NO_RETRO
# include <maug.h>
# include <mjson.h>
# include <retroflt.h>
# define RETROTIL_C
# include <retrotil.h>
# include <retropth.h>
#endif /*! RETROFLAT_NO_RETROTILE */

5 changes: 4 additions & 1 deletion src/retroflt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,6 @@ struct RETROFLAT_BITMAP {
};

LPSTR* retroflat_win_cli( LPSTR cmd_line, int* argc_out );
char retroflat_vk_to_ascii( RETROFLAT_IN_KEY k, uint8_t flags );

# ifdef RETROFLAT_OPENGL

Expand Down Expand Up @@ -2328,6 +2327,10 @@ retroflat_ms_t retroflat_get_ms();

uint32_t retroflat_get_rand();

# if !defined( RETROFLAT_NO_KEYBOARD )
char retroflat_vk_to_ascii( RETROFLAT_IN_KEY k, uint8_t flags );
# endif /* !RETROFLAT_NO_KEYBOARD */

/**
* \addtogroup maug_retroflt_bitmap
* \{
Expand Down
5 changes: 3 additions & 2 deletions src/retrosnd.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void retrosnd_shutdown();

#ifdef RETROSND_C

MAUG_CONST uint8_t adlib_ch[] = {0, 1, 2, 8, 9, 10, 16, 17, 18};
MAUG_CONST uint8_t SEG_MCONST adlib_ch[] = {0, 1, 2, 8, 9, 10, 16, 17, 18};

struct RETROSND_STATE g_retrosnd_state;

Expand Down Expand Up @@ -555,7 +555,8 @@ void retrosnd_midi_set_voice( uint8_t channel, uint8_t voice ) {
}

debug_printf(
RETROSND_TRACE_LVL, "channel: %d, reg: %d", channel, adlib_ch[channel] );
RETROSND_TRACE_LVL, "channel: %d, reg: %d", channel,
adlib_ch[channel] );

/* TODO: Decouple voices so we can have 10/12 channels? */

Expand Down

0 comments on commit 7360db5

Please sign in to comment.