Remove unused files. This reduces the plugin's size by 214 KB.

unicode.c, unicode.h, charsets.c, charsets.h: UTF-8 is universally used in CATSFC. Drop unused support for GBK/SJIS encodings.
This commit is contained in:
Nebuleon Fumika 2013-01-01 21:31:25 -05:00
parent 3cd20e203f
commit c43b58481f
6 changed files with 2 additions and 14260 deletions

View File

@ -31,10 +31,9 @@ NM = $(CROSS)nm
OBJDUMP = $(CROSS)objdump
# - - - Sources and objects - - -
C_SOURCES = source/unicode.c \
source/unzip/explode.c source/unzip/unreduce.c \
C_SOURCES = source/unzip/explode.c source/unzip/unreduce.c \
source/unzip/unshrink.c source/unzip/unzip.c \
source/nds/bdf_font.c source/nds/bitmap.c source/nds/charsets.c \
source/nds/bdf_font.c source/nds/bitmap.c \
source/nds/draw.c source/nds/ds2_main.c source/nds/gcheat.c \
source/nds/gui.c
CPP_SOURCES = source/apu.cpp source/apudebug.cpp source/c4.cpp \

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +0,0 @@
#ifndef __CHARSETS_H__
#define __CHARSETS_H__
extern unsigned int charsets_utf32_conv(const unsigned char * ucs, unsigned char * cjk);
extern unsigned int charsets_ucs_conv(const unsigned char * uni, unsigned char * cjk);
extern void charsets_big5_conv(const unsigned char * big5, unsigned char * cjk);
extern void charsets_sjis_conv(const unsigned char * jis, unsigned char ** cjk, unsigned int * newsize);
extern unsigned int charsets_utf8_conv(const unsigned char * ucs, unsigned char * cjk);
extern unsigned int charsets_utf16_conv(const unsigned char * ucs, unsigned char * cjk);
extern unsigned int charsets_utf16be_conv(const unsigned char * ucs, unsigned char * cjk);
extern unsigned short charsets_gbk_to_ucs(const unsigned char * cjk);
#endif //__CHARSETS_H__

View File

@ -22,7 +22,6 @@
#include "fs_api.h"
#include "ds2_malloc.h"
#include "gcheat.h"
#include "charsets.h"
#include "cheats.h"
extern struct SCheatData Cheat;

File diff suppressed because it is too large Load Diff

View File

@ -1,44 +0,0 @@
/* unofficial gameplaySP kai
*
* Copyright (C) 2007 NJ
* Copyright (C) 2007 takka <takka@tfact.net>
*
* This program 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.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef UNICODE_H
#define UNICODE_H
// 関数宣言
// UTF-8 -> Shift_JIS
int utf8_to_sjis(const void *utf8_text, void *buf);
// UTF-16 -> Shift_JIS
int utf16_to_sjis(const void *utf16_text, void *buf);
// Shift_JIS -> UTF-8
int sjis_to_utf8(const void *sjis_text, void *buf);
// Shift_JIS -> UTF-16LE
int sjis_to_utf16le(const void *sjis_text, void *buf);
// Shift_JIS -> UTF-16BE
int sjis_to_utf16be(const void *sjis_text, void *buf);
unsigned short sjis_to_ucs2(unsigned short sjis);
int sjis_to_cut(void *buf, const void *sjis_text, int len);
#endif