Skip to content

Commit

Permalink
-added LZO compression when using HaxxStation to make things send ove…
Browse files Browse the repository at this point in the history
…r quicker

-added program init prints to easily debug any issues with it
-added GameYob and nesDS emulators with dummy ROMs so you can directly send over .nes/.gb/.gbc files directly
  • Loading branch information
FIX94 committed Jun 24, 2017
1 parent bd717c4 commit 843d3e2
Show file tree
Hide file tree
Showing 25 changed files with 5,236 additions and 58 deletions.
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ include $(DEVKITPPC)/wii_rules
#---------------------------------------------------------------------------------
TARGET := boot
BUILD := build
SOURCES := source
SOURCES := source source/minilzo
DATA := data
INCLUDES := source
INCLUDES := source include

#---------------------------------------------------------------------------------
# options for code generation
Expand All @@ -33,14 +33,14 @@ LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
LIBS := -lfat -lwiiuse -lm -lbte -logc
LIBS := -llzo2 -lfat -lwiiuse -lm -lbte -logc


#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS := $(DEVKITPPC)/lib $(CURDIR)
LIBDIRS := $(DEVKITPPC)/lib $(CURDIR) $(CURDIR)/lib

#---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# wii-ds-rom-sender
This application will allow you to send NDS ROMs via a Wii to a DS using Download Play.
This application will allow you to send NDS ROMs (and emulated NES/GB/GBC ROMs) via a Wii to a DS using Download Play.
Please note that if your DS is not patched with FlashMe and you dont use HaxxStation then you can only send over Official Demo ROMs.
To make use of HaxxStation, get the US version of "DS Download Station - Volume 1" renamed to "haxxstation.nds" on the root of your sd card.
All you have to do is put your .nds/.srl files into a "srl" folder on your sd card,
All you have to do is put your .nds/.srl/.nes/.gb/.gbc files into a "srl" folder on your sd card,
get the current version of this program from the "releases" tab and start it via the homebrew channel.
After it loaded up just select the file you want, download it on your DS and play it!
If you happen to have trouble getting the file sent over then change the delay timing to a higher value.
Note that .nes files are emulated using nesDS and .gb/.gbc files are emulated using GameYob.

This Application uses/includes:
Parts of the HaxxStation code from https://github.com/Gericom/dspatch
GameYob Binary with 2MB Dummy ROM from https://github.com/FIX94/GameYob
nesDS Binary with 2MB Dummy ROM from https://github.com/ApacheThunder/NesDS/tree/master/NesDS_Singles
DOL Application compressed with dolxz from https://github.com/FIX94/dolxz
NDS Files compressed with the LZO Library by Markus F.X.J. Oberhumer
6 changes: 3 additions & 3 deletions apps/wii-ds-rom-sender/meta.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<app version="v1.1">
<app version="v3.0">
<name>Wii DS ROM Sender</name>
<coder>FIX94</coder>
<version>v2.0</version>
<release_date>20170622000000</release_date>
<version>v3.0</version>
<release_date>20170624000000</release_date>
<short_description>Send NDS ROMs to a DS using DLP.</short_description>
</app>
Binary file added data/gameyob.bin
Binary file not shown.
Binary file added data/nesds.bin
Binary file not shown.
84 changes: 84 additions & 0 deletions include/lzo/lzo1.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/* lzo1.h -- public interface of the LZO1 compression algorithm
This file is part of the LZO real-time data compression library.
Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
The LZO library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with the LZO library; see the file COPYING.
If not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Markus F.X.J. Oberhumer
<[email protected]>
http://www.oberhumer.com/opensource/lzo/
*/


#ifndef __LZO1_H_INCLUDED
#define __LZO1_H_INCLUDED 1

#ifndef __LZOCONF_H_INCLUDED
#include <lzo/lzoconf.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif


/***********************************************************************
//
************************************************************************/

/* Memory required for the wrkmem parameter.
* When the required size is 0, you can also pass a NULL pointer.
*/

#define LZO1_MEM_COMPRESS ((lzo_uint32_t) (8192L * lzo_sizeof_dict_t))
#define LZO1_MEM_DECOMPRESS (0)


LZO_EXTERN(int)
lzo1_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );

LZO_EXTERN(int)
lzo1_decompress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem /* NOT USED */ );


/***********************************************************************
// better compression ratio at the cost of more memory and time
************************************************************************/

#define LZO1_99_MEM_COMPRESS ((lzo_uint32_t) (65536L * lzo_sizeof_dict_t))

LZO_EXTERN(int)
lzo1_99_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );



#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* already included */


/* vim:set ts=4 sw=4 et: */
84 changes: 84 additions & 0 deletions include/lzo/lzo1a.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/* lzo1a.h -- public interface of the LZO1A compression algorithm
This file is part of the LZO real-time data compression library.
Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
The LZO library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with the LZO library; see the file COPYING.
If not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Markus F.X.J. Oberhumer
<[email protected]>
http://www.oberhumer.com/opensource/lzo/
*/


#ifndef __LZO1A_H_INCLUDED
#define __LZO1A_H_INCLUDED 1

#ifndef __LZOCONF_H_INCLUDED
#include <lzo/lzoconf.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif


/***********************************************************************
//
************************************************************************/

/* Memory required for the wrkmem parameter.
* When the required size is 0, you can also pass a NULL pointer.
*/

#define LZO1A_MEM_COMPRESS ((lzo_uint32_t) (8192L * lzo_sizeof_dict_t))
#define LZO1A_MEM_DECOMPRESS (0)


LZO_EXTERN(int)
lzo1a_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );

LZO_EXTERN(int)
lzo1a_decompress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem /* NOT USED */ );


/***********************************************************************
// better compression ratio at the cost of more memory and time
************************************************************************/

#define LZO1A_99_MEM_COMPRESS ((lzo_uint32_t) (65536L * lzo_sizeof_dict_t))

LZO_EXTERN(int)
lzo1a_99_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );



#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* already included */


/* vim:set ts=4 sw=4 et: */
148 changes: 148 additions & 0 deletions include/lzo/lzo1b.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
/* lzo1b.h -- public interface of the LZO1B compression algorithm
This file is part of the LZO real-time data compression library.
Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
The LZO library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with the LZO library; see the file COPYING.
If not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Markus F.X.J. Oberhumer
<[email protected]>
http://www.oberhumer.com/opensource/lzo/
*/


#ifndef __LZO1B_H_INCLUDED
#define __LZO1B_H_INCLUDED 1

#ifndef __LZOCONF_H_INCLUDED
#include <lzo/lzoconf.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif


/***********************************************************************
//
************************************************************************/

/* Memory required for the wrkmem parameter.
* When the required size is 0, you can also pass a NULL pointer.
*/

#define LZO1B_MEM_COMPRESS ((lzo_uint32_t) (16384L * lzo_sizeof_dict_t))
#define LZO1B_MEM_DECOMPRESS (0)


/* compression levels */
#define LZO1B_BEST_SPEED 1
#define LZO1B_BEST_COMPRESSION 9
#define LZO1B_DEFAULT_COMPRESSION (-1) /* fastest by default */


LZO_EXTERN(int)
lzo1b_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem,
int compression_level );

/* decompression */
LZO_EXTERN(int)
lzo1b_decompress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem /* NOT USED */ );

/* safe decompression with overrun testing */
LZO_EXTERN(int)
lzo1b_decompress_safe ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem /* NOT USED */ );


/***********************************************************************
//
************************************************************************/

LZO_EXTERN(int)
lzo1b_1_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );
LZO_EXTERN(int)
lzo1b_2_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );
LZO_EXTERN(int)
lzo1b_3_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );
LZO_EXTERN(int)
lzo1b_4_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );
LZO_EXTERN(int)
lzo1b_5_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );
LZO_EXTERN(int)
lzo1b_6_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );
LZO_EXTERN(int)
lzo1b_7_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );
LZO_EXTERN(int)
lzo1b_8_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );
LZO_EXTERN(int)
lzo1b_9_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );


/***********************************************************************
// better compression ratio at the cost of more memory and time
************************************************************************/

#define LZO1B_99_MEM_COMPRESS ((lzo_uint32_t) (65536L * lzo_sizeof_dict_t))

LZO_EXTERN(int)
lzo1b_99_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );


#define LZO1B_999_MEM_COMPRESS ((lzo_uint32_t) (3 * 65536L * sizeof(lzo_xint)))

LZO_EXTERN(int)
lzo1b_999_compress ( const lzo_bytep src, lzo_uint src_len,
lzo_bytep dst, lzo_uintp dst_len,
lzo_voidp wrkmem );



#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* already included */


/* vim:set ts=4 sw=4 et: */
Loading

0 comments on commit 843d3e2

Please sign in to comment.