Merge pull request #6 from Clownacy/master

Merge Clownacy/master into master
This commit is contained in:
Gabriel Ravier 2019-05-05 15:08:07 +02:00 committed by GitHub
commit 74f8a12632
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
140 changed files with 1413 additions and 1777 deletions

10
.gitattributes vendored Normal file
View file

@ -0,0 +1,10 @@
# Automatically normalize line endings.
* text=auto
# MSVC files have to be CRLF
*.vcproj text eol=crlf
*.sln text eol=crlf
# Do not change external files
external/** -text
DoConfig/fltk/** -text

View file

@ -160,78 +160,78 @@ add_executable(CSE2
)
set(RESOURCES
BITMAP/CREDIT01.bmp
BITMAP/CREDIT02.bmp
BITMAP/CREDIT03.bmp
BITMAP/CREDIT04.bmp
BITMAP/CREDIT05.bmp
BITMAP/CREDIT06.bmp
BITMAP/CREDIT07.bmp
BITMAP/CREDIT08.bmp
BITMAP/CREDIT09.bmp
BITMAP/CREDIT10.bmp
BITMAP/CREDIT11.bmp
BITMAP/CREDIT12.bmp
BITMAP/CREDIT14.bmp
BITMAP/CREDIT15.bmp
BITMAP/CREDIT16.bmp
BITMAP/CREDIT17.bmp
BITMAP/CREDIT18.bmp
BITMAP/Credit01.bmp
BITMAP/Credit02.bmp
BITMAP/Credit03.bmp
BITMAP/Credit04.bmp
BITMAP/Credit05.bmp
BITMAP/Credit06.bmp
BITMAP/Credit07.bmp
BITMAP/Credit08.bmp
BITMAP/Credit09.bmp
BITMAP/Credit10.bmp
BITMAP/Credit11.bmp
BITMAP/Credit12.bmp
BITMAP/Credit14.bmp
BITMAP/Credit15.bmp
BITMAP/Credit16.bmp
BITMAP/Credit17.bmp
BITMAP/Credit18.bmp
CURSOR/CURSOR_IKA.bmp
CURSOR/CURSOR_NORMAL.bmp
ORG/ACCESS.org
ORG/ANZEN.org
ORG/BALCONY.org
ORG/BALLOS.org
ORG/BDOWN.org
ORG/CEMETERY.org
ORG/CURLY.org
ORG/DR.org
ORG/ENDING.org
ORG/ESCAPE.org
ORG/FANFALE1.org
ORG/FANFALE2.org
ORG/FANFALE3.org
ORG/FIREEYE.org
ORG/GAMEOVER.org
ORG/GINSUKE.org
ORG/GRAND.org
ORG/GRAVITY.org
ORG/HELL.org
ORG/IRONH.org
ORG/JENKA.org
ORG/JENKA2.org
ORG/KODOU.org
ORG/LASTBT3.org
ORG/LASTBTL.org
ORG/LASTCAVE.org
ORG/MARINE.org
ORG/MAZE.org
ORG/MDOWN2.org
ORG/MURA.org
ORG/OSIDE.org
ORG/PLANT.org
ORG/QUIET.org
ORG/REQUIEM.org
ORG/TOROKO.org
ORG/VIVI.org
ORG/WANPAK2.org
ORG/WANPAKU.org
ORG/WEED.org
ORG/WHITE.org
ORG/Access.org
ORG/Anzen.org
ORG/Balcony.org
ORG/Ballos.org
ORG/BreakDown.org
ORG/Cemetery.org
ORG/Curly.org
ORG/Dr.org
ORG/Ending.org
ORG/Escape.org
ORG/Fanfale1.org
ORG/Fanfale2.org
ORG/Fanfale3.org
ORG/FireEye.org
ORG/Gameover.org
ORG/Ginsuke.org
ORG/Grand.org
ORG/Gravity.org
ORG/Hell.org
ORG/ironH.org
ORG/Jenka.org
ORG/Jenka2.org
ORG/Kodou.org
ORG/LastBtl3.org
ORG/LastBtl.org
ORG/LastCave.org
ORG/Marine.org
ORG/Maze.org
ORG/MDown2.org
ORG/Mura.org
ORG/Oside.org
ORG/Plant.org
ORG/quiet.org
ORG/Requiem.org
ORG/Toroko.org
ORG/Vivi.org
ORG/Wanpak2.org
ORG/Wanpaku.org
ORG/Weed.org
ORG/White.org
ORG/XXXX.org
ORG/ZONBIE.org
WAVE/WAVE100
ORG/Zonbie.org
WAVE/Wave.dat
)
# Handle options
if(JAPANESE)
set(BUILD_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/build_jp")
list(APPEND RESOURCES "BITMAP/PIXEL_JP.bmp")
list(APPEND RESOURCES "BITMAP/pixel_jp.bmp")
target_compile_definitions(CSE2 PRIVATE JAPANESE)
else()
set(BUILD_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/build_en")
list(APPEND RESOURCES "BITMAP/PIXEL.bmp")
list(APPEND RESOURCES "BITMAP/pixel.bmp")
endif()
if(FIX_BUGS)

486
Makefile
View file

@ -1,243 +1,243 @@
ifeq ($(RELEASE), 1)
CXXFLAGS = -O3 -flto
LDFLAGS = -s
FILENAME_DEF = release
else
CXXFLAGS = -O0 -g
FILENAME_DEF = debug
endif
ifeq ($(JAPANESE), 1)
BUILD_DIR = build_jp
CXXFLAGS += -DJAPANESE
ifeq ($(RELEASE), 1)
FILENAME_DEF = releasejp
else
FILENAME_DEF = debugjp
endif
else
BUILD_DIR = build_en
endif
FILENAME ?= $(FILENAME_DEF)
ifeq ($(FIX_BUGS), 1)
CXXFLAGS += -DFIX_BUGS
endif
ifeq ($(WINDOWS), 1)
ifeq ($(CONSOLE), 1)
CXXFLAGS += -mconsole
endif
CXXFLAGS += -DWINDOWS
LIBS += -lkernel32
endif
ifeq ($(RASPBERRY_PI), 1)
CXXFLAGS += -DRASPBERRY_PI
endif
CXXFLAGS += -std=c++98 `pkg-config sdl2 --cflags` `pkg-config freetype2 --cflags` -MMD -MP -MF $@.d
ifeq ($(STATIC), 1)
LDFLAGS += -static
LIBS += `pkg-config sdl2 --libs --static` `pkg-config freetype2 --libs --static` -lfreetype
else
LIBS += `pkg-config sdl2 --libs` `pkg-config freetype2 --libs`
endif
# For an accurate result to the original's code, compile in alphabetical order
SOURCES = \
ArmsItem \
Back \
Boss \
BossAlmo1 \
BossAlmo2 \
BossBallos \
BossFrog \
BossIronH \
BossLife \
BossOhm \
BossPress \
BossTwinD \
BossX \
BulHit \
Bullet \
Caret \
Config \
Draw \
Ending \
Escape \
Fade \
File \
Flags \
Flash \
Font \
Frame \
Game \
Generic \
GenericLoad \
Input \
KeyControl \
Main \
Map \
MapName \
MiniMap \
MyChar \
MycHit \
MycParam \
NpcAct000 \
NpcAct020 \
NpcAct040 \
NpcAct060 \
NpcAct080 \
NpcAct100 \
NpcAct120 \
NpcAct140 \
NpcAct160 \
NpcAct180 \
NpcAct200 \
NpcAct220 \
NpcAct240 \
NpcAct260 \
NpcAct280 \
NpcAct300 \
NpcAct320 \
NpcAct340 \
NpChar \
NpcHit \
NpcTbl \
Organya \
PixTone \
Profile \
Resource \
SelStage \
Shoot \
Sound \
Stage \
Star \
TextScr \
Triangle \
ValueView
RESOURCES = \
BITMAP/CREDIT01.bmp \
BITMAP/CREDIT02.bmp \
BITMAP/CREDIT03.bmp \
BITMAP/CREDIT04.bmp \
BITMAP/CREDIT05.bmp \
BITMAP/CREDIT06.bmp \
BITMAP/CREDIT07.bmp \
BITMAP/CREDIT08.bmp \
BITMAP/CREDIT09.bmp \
BITMAP/CREDIT10.bmp \
BITMAP/CREDIT11.bmp \
BITMAP/CREDIT12.bmp \
BITMAP/CREDIT14.bmp \
BITMAP/CREDIT15.bmp \
BITMAP/CREDIT16.bmp \
BITMAP/CREDIT17.bmp \
BITMAP/CREDIT18.bmp \
CURSOR/CURSOR_IKA.bmp \
CURSOR/CURSOR_NORMAL.bmp \
ORG/ACCESS.org \
ORG/ANZEN.org \
ORG/BALCONY.org \
ORG/BALLOS.org \
ORG/BDOWN.org \
ORG/CEMETERY.org \
ORG/CURLY.org \
ORG/DR.org \
ORG/ENDING.org \
ORG/ESCAPE.org \
ORG/FANFALE1.org \
ORG/FANFALE2.org \
ORG/FANFALE3.org \
ORG/FIREEYE.org \
ORG/GAMEOVER.org \
ORG/GINSUKE.org \
ORG/GRAND.org \
ORG/GRAVITY.org \
ORG/HELL.org \
ORG/IRONH.org \
ORG/JENKA.org \
ORG/JENKA2.org \
ORG/KODOU.org \
ORG/LASTBT3.org \
ORG/LASTBTL.org \
ORG/LASTCAVE.org \
ORG/MARINE.org \
ORG/MAZE.org \
ORG/MDOWN2.org \
ORG/MURA.org \
ORG/OSIDE.org \
ORG/PLANT.org \
ORG/QUIET.org \
ORG/REQUIEM.org \
ORG/TOROKO.org \
ORG/VIVI.org \
ORG/WANPAK2.org \
ORG/WANPAKU.org \
ORG/WEED.org \
ORG/WHITE.org \
ORG/XXXX.org \
ORG/ZONBIE.org \
WAVE/WAVE100
ifeq ($(JAPANESE), 1)
RESOURCES += BITMAP/PIXEL_JP.bmp
else
RESOURCES += BITMAP/PIXEL.bmp
endif
ifneq ($(WINDOWS), 1)
RESOURCES += ICON/ICON_MINI.bmp
endif
OBJECTS = $(addprefix obj/$(FILENAME)/, $(addsuffix .o, $(SOURCES)))
DEPENDENCIES = $(addprefix obj/$(FILENAME)/, $(addsuffix .o.d, $(SOURCES)))
ifeq ($(WINDOWS), 1)
OBJECTS += obj/$(FILENAME)/win_icon.o
endif
all: $(BUILD_DIR)/$(FILENAME)
$(BUILD_DIR)/$(FILENAME): $(OBJECTS)
@mkdir -p $(@D)
@echo Linking
@$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
@echo Finished compiling: $@
obj/$(FILENAME)/%.o: src/%.cpp
@mkdir -p $(@D)
@echo Compiling $<
@$(CXX) $(CXXFLAGS) $< -o $@ -c
obj/$(FILENAME)/Resource.o: src/Resource.cpp $(addprefix src/Resource/, $(addsuffix .h, $(RESOURCES)))
@mkdir -p $(@D)
@echo Compiling $<
@$(CXX) $(CXXFLAGS) $< -o $@ -c
src/Resource/%.h: res/% obj/bin2h
@mkdir -p $(@D)
@echo Converting $<
@obj/bin2h $< $@
obj/bin2h: src/misc/bin2h.c
@mkdir -p $(@D)
@echo Compiling $^
@$(CC) -O3 -s -std=c90 $^ -o $@
include $(wildcard $(DEPENDENCIES))
obj/$(FILENAME)/win_icon.o: res/ICON/ICON.rc res/ICON/0.ico res/ICON/ICON_MINI.ico
@mkdir -p $(@D)
@windres $< $@
# TODO
clean:
@rm -rf obj
ifeq ($(RELEASE), 1)
CXXFLAGS = -O3 -flto
LDFLAGS = -s
FILENAME_DEF = release
else
CXXFLAGS = -O0 -g
FILENAME_DEF = debug
endif
ifeq ($(JAPANESE), 1)
BUILD_DIR = build_jp
CXXFLAGS += -DJAPANESE
ifeq ($(RELEASE), 1)
FILENAME_DEF = releasejp
else
FILENAME_DEF = debugjp
endif
else
BUILD_DIR = build_en
endif
FILENAME ?= $(FILENAME_DEF)
ifeq ($(FIX_BUGS), 1)
CXXFLAGS += -DFIX_BUGS
endif
ifeq ($(WINDOWS), 1)
ifeq ($(CONSOLE), 1)
CXXFLAGS += -mconsole
endif
CXXFLAGS += -DWINDOWS
LIBS += -lkernel32
endif
ifeq ($(RASPBERRY_PI), 1)
CXXFLAGS += -DRASPBERRY_PI
endif
CXXFLAGS += -std=c++98 `pkg-config sdl2 --cflags` `pkg-config freetype2 --cflags` -MMD -MP -MF $@.d
ifeq ($(STATIC), 1)
LDFLAGS += -static
LIBS += `pkg-config sdl2 --libs --static` `pkg-config freetype2 --libs --static` -lfreetype
else
LIBS += `pkg-config sdl2 --libs` `pkg-config freetype2 --libs`
endif
# For an accurate result to the original's code, compile in alphabetical order
SOURCES = \
ArmsItem \
Back \
Boss \
BossAlmo1 \
BossAlmo2 \
BossBallos \
BossFrog \
BossIronH \
BossLife \
BossOhm \
BossPress \
BossTwinD \
BossX \
BulHit \
Bullet \
Caret \
Config \
Draw \
Ending \
Escape \
Fade \
File \
Flags \
Flash \
Font \
Frame \
Game \
Generic \
GenericLoad \
Input \
KeyControl \
Main \
Map \
MapName \
MiniMap \
MyChar \
MycHit \
MycParam \
NpcAct000 \
NpcAct020 \
NpcAct040 \
NpcAct060 \
NpcAct080 \
NpcAct100 \
NpcAct120 \
NpcAct140 \
NpcAct160 \
NpcAct180 \
NpcAct200 \
NpcAct220 \
NpcAct240 \
NpcAct260 \
NpcAct280 \
NpcAct300 \
NpcAct320 \
NpcAct340 \
NpChar \
NpcHit \
NpcTbl \
Organya \
PixTone \
Profile \
Resource \
SelStage \
Shoot \
Sound \
Stage \
Star \
TextScr \
Triangle \
ValueView
RESOURCES = \
BITMAP/Credit01.bmp \
BITMAP/Credit02.bmp \
BITMAP/Credit03.bmp \
BITMAP/Credit04.bmp \
BITMAP/Credit05.bmp \
BITMAP/Credit06.bmp \
BITMAP/Credit07.bmp \
BITMAP/Credit08.bmp \
BITMAP/Credit09.bmp \
BITMAP/Credit10.bmp \
BITMAP/Credit11.bmp \
BITMAP/Credit12.bmp \
BITMAP/Credit14.bmp \
BITMAP/Credit15.bmp \
BITMAP/Credit16.bmp \
BITMAP/Credit17.bmp \
BITMAP/Credit18.bmp \
CURSOR/CURSOR_IKA.bmp \
CURSOR/CURSOR_NORMAL.bmp \
ORG/Access.org \
ORG/Anzen.org \
ORG/Balcony.org \
ORG/Ballos.org \
ORG/BreakDown.org \
ORG/Cemetery.org \
ORG/Curly.org \
ORG/Dr.org \
ORG/Ending.org \
ORG/Escape.org \
ORG/Fanfale1.org \
ORG/Fanfale2.org \
ORG/Fanfale3.org \
ORG/FireEye.org \
ORG/Gameover.org \
ORG/Ginsuke.org \
ORG/Grand.org \
ORG/Gravity.org \
ORG/Hell.org \
ORG/ironH.org \
ORG/Jenka.org \
ORG/Jenka2.org \
ORG/Kodou.org \
ORG/LastBtl3.org \
ORG/LastBtl.org \
ORG/LastCave.org \
ORG/Marine.org \
ORG/Maze.org \
ORG/MDown2.org \
ORG/Mura.org \
ORG/Oside.org \
ORG/Plant.org \
ORG/quiet.org \
ORG/Requiem.org \
ORG/Toroko.org \
ORG/Vivi.org \
ORG/Wanpak2.org \
ORG/Wanpaku.org \
ORG/Weed.org \
ORG/White.org \
ORG/XXXX.org \
ORG/Zonbie.org \
WAVE/Wave.dat \
ifeq ($(JAPANESE), 1)
RESOURCES += BITMAP/pixel_jp.bmp
else
RESOURCES += BITMAP/pixel.bmp
endif
ifneq ($(WINDOWS), 1)
RESOURCES += ICON/ICON_MINI.bmp
endif
OBJECTS = $(addprefix obj/$(FILENAME)/, $(addsuffix .o, $(SOURCES)))
DEPENDENCIES = $(addprefix obj/$(FILENAME)/, $(addsuffix .o.d, $(SOURCES)))
ifeq ($(WINDOWS), 1)
OBJECTS += obj/$(FILENAME)/win_icon.o
endif
all: $(BUILD_DIR)/$(FILENAME)
$(BUILD_DIR)/$(FILENAME): $(OBJECTS)
@mkdir -p $(@D)
@echo Linking
@$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
@echo Finished compiling: $@
obj/$(FILENAME)/%.o: src/%.cpp
@mkdir -p $(@D)
@echo Compiling $<
@$(CXX) $(CXXFLAGS) $< -o $@ -c
obj/$(FILENAME)/Resource.o: src/Resource.cpp $(addprefix src/Resource/, $(addsuffix .h, $(RESOURCES)))
@mkdir -p $(@D)
@echo Compiling $<
@$(CXX) $(CXXFLAGS) $< -o $@ -c
src/Resource/%.h: res/% obj/bin2h
@mkdir -p $(@D)
@echo Converting $<
@obj/bin2h $< $@
obj/bin2h: src/misc/bin2h.c
@mkdir -p $(@D)
@echo Compiling $^
@$(CC) -O3 -s -std=c90 $^ -o $@
include $(wildcard $(DEPENDENCIES))
obj/$(FILENAME)/win_icon.o: res/ICON/ICON.rc res/ICON/0.ico res/ICON/ICON_MINI.ico
@mkdir -p $(@D)
@windres $< $@
# TODO
clean:
@rm -rf obj

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -1,6 +1,6 @@
#pragma once
#define PATH_LENGTH 260 //Pixel had the path size locked to 260 (dangerously low), if you tried to open the executable in a path with more than around 220 characters, it'd crash.
#define WINDOW_WIDTH 320
#define WINDOW_HEIGHT 240
#pragma once
#define PATH_LENGTH 260 //Pixel had the path size locked to 260 (dangerously low), if you tried to open the executable in a path with more than around 220 characters, it'd crash.
#define WINDOW_WIDTH 320
#define WINDOW_HEIGHT 240

View file

@ -1,72 +1,72 @@
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "WindowsWrapper.h"
#include "CommonDefines.h"
#include "Config.h"
#include "File.h"
#include "Tags.h"
#include "Types.h"
bool LoadConfigData(CONFIG *conf)
{
//Clear old config data
memset(conf, 0, sizeof(CONFIG));
//Get path
char path[PATH_LENGTH];
sprintf(path, "%s/%s", gModulePath, "Config.dat");
//Open file
FILE *fp = fopen(path, "rb");
if (fp == NULL)
return false;
//Read data
//Read the version id and font name
fread(conf->proof, sizeof(conf->proof), 1, fp);
fread(conf->font_name, sizeof(conf->font_name), 1, fp);
//Read control settings
conf->move_button_mode = File_ReadLE32(fp);
conf->attack_button_mode = File_ReadLE32(fp);
conf->ok_button_mode = File_ReadLE32(fp);
//Read display mode (320x240, 640x480, 24-bit fullscreen, 32-bit fullscreen) TODO: add more things?
conf->display_mode = File_ReadLE32(fp);
//Read joystick configuration (if enabled, and mappings)
conf->bJoystick = File_ReadLE32(fp);
for (int button = 0; button < 8; button++)
conf->joystick_button[button] = File_ReadLE32(fp);
//Close file
fclose(fp);
//Check if version is correct, return that it succeeded
if (!strcmp(conf->proof, "DOUKUTSU20041206"))
return true;
//If not, return that it failed
return false;
}
void DefaultConfigData(CONFIG *conf)
{
//Claer old config data
memset(conf, 0, sizeof(CONFIG));
//Reset joystick settings (as these can't simply be set to 0)
conf->bJoystick = 1;
conf->joystick_button[0] = 2;
conf->joystick_button[1] = 1;
conf->joystick_button[2] = 5;
conf->joystick_button[3] = 6;
conf->joystick_button[4] = 3;
conf->joystick_button[5] = 4;
conf->joystick_button[6] = 6;
conf->joystick_button[7] = 3;
}
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "WindowsWrapper.h"
#include "CommonDefines.h"
#include "Config.h"
#include "File.h"
#include "Tags.h"
#include "Types.h"
bool LoadConfigData(CONFIG *conf)
{
//Clear old config data
memset(conf, 0, sizeof(CONFIG));
//Get path
char path[PATH_LENGTH];
sprintf(path, "%s/%s", gModulePath, "Config.dat");
//Open file
FILE *fp = fopen(path, "rb");
if (fp == NULL)
return false;
//Read data
//Read the version id and font name
fread(conf->proof, sizeof(conf->proof), 1, fp);
fread(conf->font_name, sizeof(conf->font_name), 1, fp);
//Read control settings
conf->move_button_mode = File_ReadLE32(fp);
conf->attack_button_mode = File_ReadLE32(fp);
conf->ok_button_mode = File_ReadLE32(fp);
//Read display mode (320x240, 640x480, 24-bit fullscreen, 32-bit fullscreen) TODO: add more things?
conf->display_mode = File_ReadLE32(fp);
//Read joystick configuration (if enabled, and mappings)
conf->bJoystick = File_ReadLE32(fp);
for (int button = 0; button < 8; button++)
conf->joystick_button[button] = File_ReadLE32(fp);
//Close file
fclose(fp);
//Check if version is correct, return that it succeeded
if (!strcmp(conf->proof, "DOUKUTSU20041206"))
return true;
//If not, return that it failed
return false;
}
void DefaultConfigData(CONFIG *conf)
{
//Claer old config data
memset(conf, 0, sizeof(CONFIG));
//Reset joystick settings (as these can't simply be set to 0)
conf->bJoystick = 1;
conf->joystick_button[0] = 2;
conf->joystick_button[1] = 1;
conf->joystick_button[2] = 5;
conf->joystick_button[3] = 6;
conf->joystick_button[4] = 3;
conf->joystick_button[5] = 4;
conf->joystick_button[6] = 6;
conf->joystick_button[7] = 3;
}

View file

@ -1,18 +1,18 @@
#pragma once
#include <stdint.h>
struct CONFIG
{
char proof[0x20];
char font_name[0x40];
int32_t move_button_mode;
int32_t attack_button_mode;
int32_t ok_button_mode;
int32_t display_mode;
int32_t bJoystick;
int32_t joystick_button[8];
};
bool LoadConfigData(CONFIG *conf);
void DefaultConfigData(CONFIG *conf);
#pragma once
#include <stdint.h>
struct CONFIG
{
char proof[0x20];
char font_name[0x40];
int32_t move_button_mode;
int32_t attack_button_mode;
int32_t ok_button_mode;
int32_t display_mode;
int32_t bJoystick;
int32_t joystick_button[8];
};
bool LoadConfigData(CONFIG *conf);
void DefaultConfigData(CONFIG *conf);

View file

@ -354,10 +354,13 @@ static BOOL LoadBitmap_File(const char *name, Surface_Ids surf_no, bool create_s
static BOOL LoadBitmap_Resource(const char *res, Surface_Ids surf_no, bool create_surface)
{
SDL_RWops *fp = FindResource(res);
size_t size;
const unsigned char *data = FindResource(res, "BITMAP", &size);
if (fp)
if (data)
{
SDL_RWops *fp = SDL_RWFromConstMem(data, size);
printf("Loading surface from resource %s for surface id %d\n", res, surf_no);
if (LoadBitmap(fp, surf_no, create_surface))
return TRUE;

View file

@ -1,24 +1,24 @@
#include "KeyControl.h"
int gKey;
int gKeyTrg;
int gKeyJump = KEY_Z;
int gKeyShot = KEY_X;
int gKeyArms = KEY_ARMS;
int gKeyArmsRev = KEY_ARMSREV;
int gKeyItem = KEY_ITEM;
int gKeyMap = KEY_MAP;
int gKeyOk = KEY_Z;
int gKeyCancel = KEY_X;
int gKeyLeft = KEY_LEFT;
int gKeyUp = KEY_UP;
int gKeyRight = KEY_RIGHT;
int gKeyDown = KEY_DOWN;
void GetTrg()
{
static int key_old;
gKeyTrg = gKey & (gKey ^ key_old);
key_old = gKey;
}
#include "KeyControl.h"
int gKey;
int gKeyTrg;
int gKeyJump = KEY_Z;
int gKeyShot = KEY_X;
int gKeyArms = KEY_ARMS;
int gKeyArmsRev = KEY_ARMSREV;
int gKeyItem = KEY_ITEM;
int gKeyMap = KEY_MAP;
int gKeyOk = KEY_Z;
int gKeyCancel = KEY_X;
int gKeyLeft = KEY_LEFT;
int gKeyUp = KEY_UP;
int gKeyRight = KEY_RIGHT;
int gKeyDown = KEY_DOWN;
void GetTrg()
{
static int key_old;
gKeyTrg = gKey & (gKey ^ key_old);
key_old = gKey;
}

View file

@ -1,53 +1,53 @@
#pragma once
enum KEYBIND
{
//The movement keys go in the order of left, right, up and down
KEY_LEFT = 0x00000001,
KEY_RIGHT = 0x00000002,
KEY_UP = 0x00000004,
KEY_DOWN = 0x00000008,
//Map key
KEY_MAP = 0x00000010,
//Okay and cancel / Jump and Shoot keys
KEY_X = 0x00000020,
KEY_Z = 0x00000040,
//Left and right weapon switch keys
KEY_ARMS = 0x00000080,
KEY_ARMSREV = 0x00000100,
//Unused?
KEY_SHIFT = 0x00000200,
//Function keys
KEY_F1 = 0x00000400,
KEY_F2 = 0x00000800,
//Inventory
KEY_ITEM = 0x00001000,
//Escape key
KEY_ESCAPE = 0x00008000,
//The alt movement keys go in the order of left, up, right and down
KEY_ALT_LEFT = 0x00010000,
KEY_ALT_DOWN = 0x00020000,
KEY_ALT_RIGHT = 0x00040000,
KEY_ALT_UP = 0x00180000,
//Alt up actually has 2 seperate keys, but they're kind of merged together (and also for some reason the second one is +/=)
KEY_L = 0x00080000,
KEY_PLUS = 0x00100000
};
extern int gKey;
extern int gKeyTrg;
extern int gKeyJump;
extern int gKeyShot;
extern int gKeyArms;
extern int gKeyArmsRev;
extern int gKeyItem;
extern int gKeyMap;
extern int gKeyOk;
extern int gKeyCancel;
extern int gKeyLeft;
extern int gKeyUp;
extern int gKeyRight;
extern int gKeyDown;
void GetTrg();
#pragma once
enum KEYBIND
{
//The movement keys go in the order of left, right, up and down
KEY_LEFT = 0x00000001,
KEY_RIGHT = 0x00000002,
KEY_UP = 0x00000004,
KEY_DOWN = 0x00000008,
//Map key
KEY_MAP = 0x00000010,
//Okay and cancel / Jump and Shoot keys
KEY_X = 0x00000020,
KEY_Z = 0x00000040,
//Left and right weapon switch keys
KEY_ARMS = 0x00000080,
KEY_ARMSREV = 0x00000100,
//Unused?
KEY_SHIFT = 0x00000200,
//Function keys
KEY_F1 = 0x00000400,
KEY_F2 = 0x00000800,
//Inventory
KEY_ITEM = 0x00001000,
//Escape key
KEY_ESCAPE = 0x00008000,
//The alt movement keys go in the order of left, up, right and down
KEY_ALT_LEFT = 0x00010000,
KEY_ALT_DOWN = 0x00020000,
KEY_ALT_RIGHT = 0x00040000,
KEY_ALT_UP = 0x00180000,
//Alt up actually has 2 seperate keys, but they're kind of merged together (and also for some reason the second one is +/=)
KEY_L = 0x00080000,
KEY_PLUS = 0x00100000
};
extern int gKey;
extern int gKeyTrg;
extern int gKeyJump;
extern int gKeyShot;
extern int gKeyArms;
extern int gKeyArmsRev;
extern int gKeyItem;
extern int gKeyMap;
extern int gKeyOk;
extern int gKeyCancel;
extern int gKeyLeft;
extern int gKeyUp;
extern int gKeyRight;
extern int gKeyDown;
void GetTrg();

File diff suppressed because it is too large Load diff

View file

@ -261,19 +261,16 @@ void ReleaseOrganyaObject(int8_t track)
//Handling WAVE100
int8_t wave_data[100][0x100];
bool InitWaveData100()
BOOL InitWaveData100()
{
SDL_RWops *fp = FindResource("WAVE100");
if (fp == NULL)
{
printf("Failed to open WAVE100\n");
return false;
}
const unsigned char *data = FindResource("WAVE100", "WAVE", NULL);
fp->read(fp, wave_data, 1, 100 * 0x100);
if (data == NULL)
return FALSE;
SDL_RWclose(fp);
return true;
memcpy(wave_data, data, 100 * 0x100);
return TRUE;
}
//Create org wave
@ -409,6 +406,9 @@ void SetPlayPointer(int32_t x)
play_p = x;
}
#define READ_LE16(pointer) pointer[0] | (pointer[1] << 8); pointer += 2;
#define READ_LE32(pointer) pointer[0] | (pointer[1] << 8) | (pointer[2] << 16) | (pointer[3] << 24); pointer += 4;
//Load organya file
void LoadOrganya(const char *name)
{
@ -426,19 +426,14 @@ void LoadOrganya(const char *name)
//Open file
printf("Loading org %s\n", name);
SDL_RWops *fp = FindResource(name);
if (!fp)
{
printf("Failed to open %s\n", name);
return;
}
const unsigned char *p = FindResource(name, "ORG", NULL);
//Version Check
uint8_t ver = 0;
char pass_check[6];
SDL_RWread(fp, &pass_check[0], sizeof(char), 6);
memcpy(pass_check, p, 6);
p += 6;
if (!memcmp(pass_check, "Org-01", 6))ver = 1;
if (!memcmp(pass_check, "Org-02", 6))ver = 2;
@ -446,23 +441,23 @@ void LoadOrganya(const char *name)
if (!ver)
{
printf("Failed to open.org, invalid version %s", pass_check);
printf("Failed to open .org, invalid version %s", pass_check);
return;
}
//Set song information
info.wait = SDL_ReadLE16(fp);
info.line = SDL_ReadU8(fp);
info.dot = SDL_ReadU8(fp);
info.repeat_x = SDL_ReadLE32(fp);
info.end_x = SDL_ReadLE32(fp);
info.wait = READ_LE16(p);
info.line = *p++;
info.dot = *p++;
info.repeat_x = READ_LE32(p);
info.end_x = READ_LE32(p);
for (int i = 0; i < 16; i++) {
info.tdata[i].freq = SDL_ReadLE16(fp);
info.tdata[i].wave_no = SDL_ReadU8(fp);
const int8_t pipi = SDL_ReadU8(fp);
info.tdata[i].freq = READ_LE16(p);
info.tdata[i].wave_no = *p++;
const int8_t pipi = *p++;
info.tdata[i].pipi = ver == 1 ? 0 : pipi;
info.tdata[i].note_num = SDL_ReadLE16(fp);
info.tdata[i].note_num = READ_LE16(p);
}
//Load notes
@ -495,37 +490,35 @@ void LoadOrganya(const char *name)
//Set note properties
np = info.tdata[j].note_p; //X position
for (int i = 0; i < info.tdata[j].note_num; i++) {
np->x = SDL_ReadLE32(fp);
np->x = READ_LE32(p);
np++;
}
np = info.tdata[j].note_p; //Y position
for (int i = 0; i < info.tdata[j].note_num; i++) {
np->y = SDL_ReadU8(fp);
np->y = *p++;
np++;
}
np = info.tdata[j].note_p; //Length
for (int i = 0; i < info.tdata[j].note_num; i++) {
np->length = SDL_ReadU8(fp);
np->length = *p++;
np++;
}
np = info.tdata[j].note_p; //Volume
for (int i = 0; i < info.tdata[j].note_num; i++) {
np->volume = SDL_ReadU8(fp);
np->volume = *p++;
np++;
}
np = info.tdata[j].note_p; //Pan
for (int i = 0; i < info.tdata[j].note_num; i++) {
np->pan = SDL_ReadU8(fp);
np->pan = *p++;
np++;
}
}
SDL_RWclose(fp);
//Create waves
for (int j = 0; j < 8; j++)
MakeOrganyaWave(j, info.tdata[j].wave_no, info.tdata[j].pipi);

View file

@ -1,77 +1,72 @@
#include "Resource.h"
#include <stdint.h>
#include <stdio.h>
#include <stddef.h>
#include <string.h>
#include <SDL_rwops.h>
#include "WindowsWrapper.h"
#include "Resource/ORG/ACCESS.org.h"
#include "Resource/ORG/ANZEN.org.h"
#include "Resource/ORG/BALCONY.org.h"
#include "Resource/ORG/BALLOS.org.h"
#include "Resource/ORG/BDOWN.org.h"
#include "Resource/ORG/CEMETERY.org.h"
#include "Resource/ORG/CURLY.org.h"
#include "Resource/ORG/DR.org.h"
#include "Resource/ORG/ENDING.org.h"
#include "Resource/ORG/ESCAPE.org.h"
#include "Resource/ORG/FANFALE1.org.h"
#include "Resource/ORG/FANFALE2.org.h"
#include "Resource/ORG/FANFALE3.org.h"
#include "Resource/ORG/FIREEYE.org.h"
#include "Resource/ORG/GAMEOVER.org.h"
#include "Resource/ORG/GINSUKE.org.h"
#include "Resource/ORG/GRAND.org.h"
#include "Resource/ORG/GRAVITY.org.h"
#include "Resource/ORG/HELL.org.h"
#include "Resource/ORG/IRONH.org.h"
#include "Resource/ORG/JENKA.org.h"
#include "Resource/ORG/JENKA2.org.h"
#include "Resource/ORG/KODOU.org.h"
#include "Resource/ORG/LASTBT3.org.h"
#include "Resource/ORG/LASTBTL.org.h"
#include "Resource/ORG/LASTCAVE.org.h"
#include "Resource/ORG/MARINE.org.h"
#include "Resource/ORG/MAZE.org.h"
#include "Resource/ORG/MDOWN2.org.h"
#include "Resource/ORG/MURA.org.h"
#include "Resource/ORG/OSIDE.org.h"
#include "Resource/ORG/PLANT.org.h"
#include "Resource/ORG/QUIET.org.h"
#include "Resource/ORG/REQUIEM.org.h"
#include "Resource/ORG/TOROKO.org.h"
#include "Resource/ORG/VIVI.org.h"
#include "Resource/ORG/WANPAK2.org.h"
#include "Resource/ORG/WANPAKU.org.h"
#include "Resource/ORG/WEED.org.h"
#include "Resource/ORG/WHITE.org.h"
#include "Resource/ORG/Access.org.h"
#include "Resource/ORG/Anzen.org.h"
#include "Resource/ORG/Balcony.org.h"
#include "Resource/ORG/Ballos.org.h"
#include "Resource/ORG/BreakDown.org.h"
#include "Resource/ORG/Cemetery.org.h"
#include "Resource/ORG/Curly.org.h"
#include "Resource/ORG/Dr.org.h"
#include "Resource/ORG/Ending.org.h"
#include "Resource/ORG/Escape.org.h"
#include "Resource/ORG/Fanfale1.org.h"
#include "Resource/ORG/Fanfale2.org.h"
#include "Resource/ORG/Fanfale3.org.h"
#include "Resource/ORG/FireEye.org.h"
#include "Resource/ORG/Gameover.org.h"
#include "Resource/ORG/Ginsuke.org.h"
#include "Resource/ORG/Grand.org.h"
#include "Resource/ORG/Gravity.org.h"
#include "Resource/ORG/Hell.org.h"
#include "Resource/ORG/ironH.org.h"
#include "Resource/ORG/Jenka.org.h"
#include "Resource/ORG/Jenka2.org.h"
#include "Resource/ORG/Kodou.org.h"
#include "Resource/ORG/LastBtl3.org.h"
#include "Resource/ORG/LastBtl.org.h"
#include "Resource/ORG/LastCave.org.h"
#include "Resource/ORG/Marine.org.h"
#include "Resource/ORG/Maze.org.h"
#include "Resource/ORG/MDown2.org.h"
#include "Resource/ORG/Mura.org.h"
#include "Resource/ORG/Oside.org.h"
#include "Resource/ORG/Plant.org.h"
#include "Resource/ORG/quiet.org.h"
#include "Resource/ORG/Requiem.org.h"
#include "Resource/ORG/Toroko.org.h"
#include "Resource/ORG/Vivi.org.h"
#include "Resource/ORG/Wanpak2.org.h"
#include "Resource/ORG/Wanpaku.org.h"
#include "Resource/ORG/Weed.org.h"
#include "Resource/ORG/White.org.h"
#include "Resource/ORG/XXXX.org.h"
#include "Resource/ORG/ZONBIE.org.h"
#include "Resource/WAVE/WAVE100.h"
#include "Resource/BITMAP/CREDIT01.bmp.h"
#include "Resource/BITMAP/CREDIT02.bmp.h"
#include "Resource/BITMAP/CREDIT03.bmp.h"
#include "Resource/BITMAP/CREDIT04.bmp.h"
#include "Resource/BITMAP/CREDIT05.bmp.h"
#include "Resource/BITMAP/CREDIT06.bmp.h"
#include "Resource/BITMAP/CREDIT07.bmp.h"
#include "Resource/BITMAP/CREDIT08.bmp.h"
#include "Resource/BITMAP/CREDIT09.bmp.h"
#include "Resource/BITMAP/CREDIT10.bmp.h"
#include "Resource/BITMAP/CREDIT11.bmp.h"
#include "Resource/BITMAP/CREDIT12.bmp.h"
#include "Resource/BITMAP/CREDIT14.bmp.h"
#include "Resource/BITMAP/CREDIT15.bmp.h"
#include "Resource/BITMAP/CREDIT16.bmp.h"
#include "Resource/BITMAP/CREDIT17.bmp.h"
#include "Resource/BITMAP/CREDIT18.bmp.h"
#include "Resource/ORG/Zonbie.org.h"
#include "Resource/WAVE/Wave.dat.h"
#include "Resource/BITMAP/Credit01.bmp.h"
#include "Resource/BITMAP/Credit02.bmp.h"
#include "Resource/BITMAP/Credit03.bmp.h"
#include "Resource/BITMAP/Credit04.bmp.h"
#include "Resource/BITMAP/Credit05.bmp.h"
#include "Resource/BITMAP/Credit06.bmp.h"
#include "Resource/BITMAP/Credit07.bmp.h"
#include "Resource/BITMAP/Credit08.bmp.h"
#include "Resource/BITMAP/Credit09.bmp.h"
#include "Resource/BITMAP/Credit10.bmp.h"
#include "Resource/BITMAP/Credit11.bmp.h"
#include "Resource/BITMAP/Credit12.bmp.h"
#include "Resource/BITMAP/Credit14.bmp.h"
#include "Resource/BITMAP/Credit15.bmp.h"
#include "Resource/BITMAP/Credit16.bmp.h"
#include "Resource/BITMAP/Credit17.bmp.h"
#include "Resource/BITMAP/Credit18.bmp.h"
#ifdef JAPANESE
#include "Resource/BITMAP/PIXEL_JP.bmp.h"
#include "Resource/BITMAP/pixel_jp.bmp.h"
#else
#include "Resource/BITMAP/PIXEL.bmp.h"
#include "Resource/BITMAP/pixel.bmp.h"
#endif
#ifndef WINDOWS
#include "Resource/ICON/ICON_MINI.bmp.h"
@ -79,362 +74,102 @@
#include "Resource/CURSOR/CURSOR_IKA.bmp.h"
#include "Resource/CURSOR/CURSOR_NORMAL.bmp.h"
const unsigned char* GetResource(const char *name, size_t *size)
static const struct
{
//ORG
if (!strcmp(name, "ACCESS"))
{
*size = sizeof(rACCESS);
return rACCESS;
}
if (!strcmp(name, "ANZEN"))
{
*size = sizeof(rANZEN);
return rANZEN;
}
if (!strcmp(name, "BALCONY"))
{
*size = sizeof(rBALCONY);
return rBALCONY;
}
if (!strcmp(name, "BALLOS"))
{
*size = sizeof(rBALLOS);
return rBALLOS;
}
if (!strcmp(name, "BDOWN"))
{
*size = sizeof(rBDOWN);
return rBDOWN;
}
if (!strcmp(name, "CEMETERY"))
{
*size = sizeof(rCEMETERY);
return rCEMETERY;
}
if (!strcmp(name, "CURLY"))
{
*size = sizeof(rCURLY);
return rCURLY;
}
if (!strcmp(name, "DR"))
{
*size = sizeof(rDR);
return rDR;
}
if (!strcmp(name, "ENDING"))
{
*size = sizeof(rENDING);
return rENDING;
}
if (!strcmp(name, "ESCAPE"))
{
*size = sizeof(rESCAPE);
return rESCAPE;
}
if (!strcmp(name, "FANFALE1"))
{
*size = sizeof(rFANFALE1);
return rFANFALE1;
}
if (!strcmp(name, "FANFALE2"))
{
*size = sizeof(rFANFALE2);
return rFANFALE2;
}
if (!strcmp(name, "FANFALE3"))
{
*size = sizeof(rFANFALE3);
return rFANFALE3;
}
if (!strcmp(name, "FIREEYE"))
{
*size = sizeof(rFIREEYE);
return rFIREEYE;
}
if (!strcmp(name, "GAMEOVER"))
{
*size = sizeof(rGAMEOVER);
return rGAMEOVER;
}
if (!strcmp(name, "GINSUKE"))
{
*size = sizeof(rGINSUKE);
return rGINSUKE;
}
if (!strcmp(name, "GRAND"))
{
*size = sizeof(rGRAND);
return rGRAND;
}
if (!strcmp(name, "GRAVITY"))
{
*size = sizeof(rGRAVITY);
return rGRAVITY;
}
if (!strcmp(name, "HELL"))
{
*size = sizeof(rHELL);
return rHELL;
}
if (!strcmp(name, "IRONH"))
{
*size = sizeof(rIRONH);
return rIRONH;
}
if (!strcmp(name, "JENKA"))
{
*size = sizeof(rJENKA);
return rJENKA;
}
if (!strcmp(name, "JENKA2"))
{
*size = sizeof(rJENKA2);
return rJENKA2;
}
if (!strcmp(name, "KODOU"))
{
*size = sizeof(rKODOU);
return rKODOU;
}
if (!strcmp(name, "LASTBT3"))
{
*size = sizeof(rLASTBT3);
return rLASTBT3;
}
if (!strcmp(name, "LASTBTL"))
{
*size = sizeof(rLASTBTL);
return rLASTBTL;
}
if (!strcmp(name, "LASTCAVE"))
{
*size = sizeof(rLASTCAVE);
return rLASTCAVE;
}
if (!strcmp(name, "MARINE"))
{
*size = sizeof(rMARINE);
return rMARINE;
}
if (!strcmp(name, "MAZE"))
{
*size = sizeof(rMAZE);
return rMAZE;
}
if (!strcmp(name, "MDOWN2"))
{
*size = sizeof(rMDOWN2);
return rMDOWN2;
}
if (!strcmp(name, "MURA"))
{
*size = sizeof(rMURA);
return rMURA;
}
if (!strcmp(name, "OSIDE"))
{
*size = sizeof(rOSIDE);
return rOSIDE;
}
if (!strcmp(name, "PLANT"))
{
*size = sizeof(rPLANT);
return rPLANT;
}
if (!strcmp(name, "QUIET"))
{
*size = sizeof(rQUIET);
return rQUIET;
}
if (!strcmp(name, "REQUIEM"))
{
*size = sizeof(rREQUIEM);
return rREQUIEM;
}
if (!strcmp(name, "TOROKO"))
{
*size = sizeof(rTOROKO);
return rTOROKO;
}
if (!strcmp(name, "VIVI"))
{
*size = sizeof(rVIVI);
return rVIVI;
}
if (!strcmp(name, "WANPAK2"))
{
*size = sizeof(rWANPAK2);
return rWANPAK2;
}
if (!strcmp(name, "WANPAKU"))
{
*size = sizeof(rWANPAKU);
return rWANPAKU;
}
if (!strcmp(name, "WEED"))
{
*size = sizeof(rWEED);
return rWEED;
}
if (!strcmp(name, "WHITE"))
{
*size = sizeof(rWHITE);
return rWHITE;
}
if (!strcmp(name, "XXXX"))
{
*size = sizeof(rXXXX);
return rXXXX;
}
if (!strcmp(name, "ZONBIE"))
{
*size = sizeof(rZONBIE);
return rZONBIE;
}
//WAVE
if (!strcmp(name, "WAVE100"))
{
*size = sizeof(rWAVE100);
return rWAVE100;
}
//Bitmap
if (!strcmp(name, "CREDIT01"))
{
*size = sizeof(rCREDIT01);
return rCREDIT01;
}
if (!strcmp(name, "CREDIT02"))
{
*size = sizeof(rCREDIT02);
return rCREDIT02;
}
if (!strcmp(name, "CREDIT03"))
{
*size = sizeof(rCREDIT03);
return rCREDIT03;
}
if (!strcmp(name, "CREDIT04"))
{
*size = sizeof(rCREDIT04);
return rCREDIT04;
}
if (!strcmp(name, "CREDIT05"))
{
*size = sizeof(rCREDIT05);
return rCREDIT05;
}
if (!strcmp(name, "CREDIT06"))
{
*size = sizeof(rCREDIT06);
return rCREDIT06;
}
if (!strcmp(name, "CREDIT07"))
{
*size = sizeof(rCREDIT07);
return rCREDIT07;
}
if (!strcmp(name, "CREDIT08"))
{
*size = sizeof(rCREDIT08);
return rCREDIT08;
}
if (!strcmp(name, "CREDIT09"))
{
*size = sizeof(rCREDIT09);
return rCREDIT09;
}
if (!strcmp(name, "CREDIT10"))
{
*size = sizeof(rCREDIT10);
return rCREDIT10;
}
if (!strcmp(name, "CREDIT11"))
{
*size = sizeof(rCREDIT11);
return rCREDIT11;
}
if (!strcmp(name, "CREDIT12"))
{
*size = sizeof(rCREDIT12);
return rCREDIT12;
}
if (!strcmp(name, "CREDIT14"))
{
*size = sizeof(rCREDIT14);
return rCREDIT14;
}
if (!strcmp(name, "CREDIT15"))
{
*size = sizeof(rCREDIT15);
return rCREDIT15;
}
if (!strcmp(name, "CREDIT16"))
{
*size = sizeof(rCREDIT16);
return rCREDIT16;
}
if (!strcmp(name, "CREDIT17"))
{
*size = sizeof(rCREDIT17);
return rCREDIT17;
}
if (!strcmp(name, "CREDIT18"))
{
*size = sizeof(rCREDIT18);
return rCREDIT18;
}
if (!strcmp(name, "PIXEL"))
{
const char *type;
const char *name;
const unsigned char *data;
size_t size;
} resources[] = {
{"ORG", "ACCESS", rAccess, sizeof(rAccess)},
{"ORG", "ANZEN", rAnzen, sizeof(rAnzen)},
{"ORG", "BALCONY", rBalcony, sizeof(rBalcony)},
{"ORG", "BALLOS", rBallos, sizeof(rBallos)},
{"ORG", "BDOWN", rBreakDown, sizeof(rBreakDown)},
{"ORG", "CEMETERY", rCemetery, sizeof(rCemetery)},
{"ORG", "CURLY", rCurly, sizeof(rCurly)},
{"ORG", "DR", rDr, sizeof(rDr)},
{"ORG", "ENDING", rEnding, sizeof(rEnding)},
{"ORG", "ESCAPE", rEscape, sizeof(rEscape)},
{"ORG", "FANFALE1", rFanfale1, sizeof(rFanfale1)},
{"ORG", "FANFALE2", rFanfale2, sizeof(rFanfale2)},
{"ORG", "FANFALE3", rFanfale3, sizeof(rFanfale3)},
{"ORG", "FIREEYE", rFireEye, sizeof(rFireEye)},
{"ORG", "GAMEOVER", rGameover, sizeof(rGameover)},
{"ORG", "GINSUKE", rGinsuke, sizeof(rGinsuke)},
{"ORG", "GRAND", rGrand, sizeof(rGrand)},
{"ORG", "GRAVITY", rGravity, sizeof(rGravity)},
{"ORG", "HELL", rHell, sizeof(rHell)},
{"ORG", "IRONH", rironH, sizeof(rironH)},
{"ORG", "JENKA", rJenka, sizeof(rJenka)},
{"ORG", "JENKA2", rJenka2, sizeof(rJenka2)},
{"ORG", "KODOU", rKodou, sizeof(rKodou)},
{"ORG", "LASTBT3", rLastBtl3, sizeof(rLastBtl3)},
{"ORG", "LASTBTL", rLastBtl, sizeof(rLastBtl)},
{"ORG", "LASTCAVE", rLastCave, sizeof(rLastCave)},
{"ORG", "MARINE", rMarine, sizeof(rMarine)},
{"ORG", "MAZE", rMaze, sizeof(rMaze)},
{"ORG", "MDOWN2", rMDown2, sizeof(rMDown2)},
{"ORG", "MURA", rMura, sizeof(rMura)},
{"ORG", "OSIDE", rOside, sizeof(rOside)},
{"ORG", "PLANT", rPlant, sizeof(rPlant)},
{"ORG", "QUIET", rquiet, sizeof(rquiet)},
{"ORG", "REQUIEM", rRequiem, sizeof(rRequiem)},
{"ORG", "TOROKO", rToroko, sizeof(rToroko)},
{"ORG", "VIVI", rVivi, sizeof(rVivi)},
{"ORG", "WANPAK2", rWanpak2, sizeof(rWanpak2)},
{"ORG", "WANPAKU", rWanpaku, sizeof(rWanpaku)},
{"ORG", "WEED", rWeed, sizeof(rWeed)},
{"ORG", "WHITE", rWhite, sizeof(rWhite)},
{"ORG", "XXXX", rXXXX, sizeof(rXXXX)},
{"ORG", "ZONBIE", rZonbie, sizeof(rZonbie)},
{"WAVE", "WAVE100", rWave, sizeof(rWave)},
{"BITMAP", "CREDIT01", rCredit01, sizeof(rCredit01)},
{"BITMAP", "CREDIT02", rCredit02, sizeof(rCredit02)},
{"BITMAP", "CREDIT03", rCredit03, sizeof(rCredit03)},
{"BITMAP", "CREDIT04", rCredit04, sizeof(rCredit04)},
{"BITMAP", "CREDIT05", rCredit05, sizeof(rCredit05)},
{"BITMAP", "CREDIT06", rCredit06, sizeof(rCredit06)},
{"BITMAP", "CREDIT07", rCredit07, sizeof(rCredit07)},
{"BITMAP", "CREDIT08", rCredit08, sizeof(rCredit08)},
{"BITMAP", "CREDIT09", rCredit09, sizeof(rCredit09)},
{"BITMAP", "CREDIT10", rCredit10, sizeof(rCredit10)},
{"BITMAP", "CREDIT11", rCredit11, sizeof(rCredit11)},
{"BITMAP", "CREDIT12", rCredit12, sizeof(rCredit12)},
{"BITMAP", "CREDIT14", rCredit14, sizeof(rCredit14)},
{"BITMAP", "CREDIT15", rCredit15, sizeof(rCredit15)},
{"BITMAP", "CREDIT16", rCredit16, sizeof(rCredit16)},
{"BITMAP", "CREDIT17", rCredit17, sizeof(rCredit17)},
{"BITMAP", "CREDIT18", rCredit18, sizeof(rCredit18)},
#ifdef JAPANESE
*size = sizeof(rPIXEL_JP);
return rPIXEL_JP;
{"BITMAP", "PIXEL", rpixel_jp, sizeof(rpixel_jp)},
#else
*size = sizeof(rPIXEL);
return rPIXEL;
#endif
}
#ifndef WINDOWS
//ICON
if (!strcmp(name, "ICON_MINI"))
{
*size = sizeof(rICON_MINI);
return rICON_MINI;
}
{"BITMAP", "PIXEL", rpixel, sizeof(rpixel)},
#endif
//CURSOR
if (!strcmp(name, "CURSOR_NORMAL"))
#ifndef WINDOWS
{"ICON", "ICON_MINI", rICON_MINI, sizeof(rICON_MINI)},
#endif
{"CURSOR", "CURSOR_NORMAL", rCURSOR_NORMAL, sizeof(rCURSOR_NORMAL)},
{"CURSOR", "CURSOR_IKA", rCURSOR_IKA, sizeof(rCURSOR_IKA)},
};
const unsigned char* FindResource(const char *name, const char *type, size_t *size)
{
for (unsigned int i = 0; i < sizeof(resources) / sizeof(resources[0]); ++i)
{
*size = sizeof(rCURSOR_NORMAL);
return rCURSOR_NORMAL;
}
if (!strcmp(name, "CURSOR_IKA"))
{
*size = sizeof(rCURSOR_IKA);
return rCURSOR_IKA;
if (!strcmp(name, resources[i].name) && !strcmp(type, resources[i].type))
{
if (size)
*size = resources[i].size;
return resources[i].data;
}
}
return NULL;
}
SDL_RWops* FindResource(const char *name)
{
size_t resSize;
const unsigned char* resource = GetResource(name, &resSize);
if (!resource)
return NULL;
SDL_RWops *fp = SDL_RWFromConstMem(resource, (int)resSize);
if (!fp)
{
printf("Couldn't open resource %s\nSDL Error: %s\n", name, SDL_GetError());
return NULL;
}
return fp;
}

View file

@ -1,5 +1,5 @@
#pragma once
#include <SDL_rwops.h>
#include <stddef.h>
SDL_RWops* FindResource(const char *name);
const unsigned char* FindResource(const char *name, const char *type, size_t *size);

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT01[0x4B76] = {
const unsigned char rCredit01[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT02[0x4B76] = {
const unsigned char rCredit02[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT03[0x4B76] = {
const unsigned char rCredit03[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT04[0x4B76] = {
const unsigned char rCredit04[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT05[0x4B76] = {
const unsigned char rCredit05[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT06[0x4B76] = {
const unsigned char rCredit06[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT07[0x4B76] = {
const unsigned char rCredit07[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT08[0x4B76] = {
const unsigned char rCredit08[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT09[0x4B76] = {
const unsigned char rCredit09[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT10[0x4B76] = {
const unsigned char rCredit10[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT11[0x4B76] = {
const unsigned char rCredit11[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT12[0x4B76] = {
const unsigned char rCredit12[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT14[0x4B76] = {
const unsigned char rCredit14[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT15[0x4B76] = {
const unsigned char rCredit15[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT16[0x4B76] = {
const unsigned char rCredit16[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT17[0x4B76] = {
const unsigned char rCredit17[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCREDIT18[0x4B76] = {
const unsigned char rCredit18[0x4B76] = {
0x42, 0x4D, 0x76, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,

View file

@ -1,92 +0,0 @@
#pragma once
const unsigned char rPIXEL_JP[0x576] = {
0x42, 0x4D, 0x76, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x98, 0xE2, 0xF3, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00,
0x10, 0x01, 0x10, 0x11, 0x00, 0x00, 0x11, 0x11, 0x10, 0x11, 0x11, 0x11, 0x11, 0x11, 0x10, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x11, 0x11, 0x00, 0x11, 0x10, 0x00, 0x11, 0x10, 0x00, 0x00, 0x10, 0x00, 0x01, 0x00, 0x00,
0x01, 0x00, 0x01, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10,
0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x10, 0x01, 0x11, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x11,
0x11, 0x00, 0x10, 0x00, 0x01, 0x00, 0x10, 0x00, 0x00, 0x01, 0x11, 0x11, 0x11, 0x11, 0x00, 0x01,
0x00, 0x00, 0x00, 0x10, 0x01, 0x01, 0x00, 0x10, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x10, 0x00, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10,
0x10, 0x00, 0x10, 0x01, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x11,
0x11, 0x00, 0x10, 0x00, 0x01, 0x00, 0x10, 0x00, 0x00, 0x01, 0x11, 0x11, 0x11, 0x01, 0x00, 0x01,
0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x11, 0x11, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x10, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
0x00, 0x00, 0x10, 0x10, 0x01, 0x00, 0x10, 0x00, 0x10, 0x00, 0x01, 0x00, 0x00, 0x10, 0x00, 0x01,
0x11, 0x10, 0x00, 0x10, 0x01, 0x01, 0x00, 0x10, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x11, 0x10,
0x11, 0x11, 0x10, 0x01, 0x11, 0x11, 0x11, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01,
0x00, 0x01, 0x00, 0x10, 0x10, 0x00, 0x10, 0x01, 0x11, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10,
0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x01, 0x10, 0x00, 0x01, 0x11, 0x11, 0x11, 0x11, 0x00, 0x01,
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x01,
0x11, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x11, 0x10,
0x11, 0x11, 0x10, 0x01, 0x01, 0x00, 0x10, 0x01, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01,
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x11, 0x10, 0x00, 0x11, 0x10, 0x00, 0x11, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x11, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10,
0x10, 0x00, 0x10, 0x10, 0x00, 0x10, 0x11, 0x00, 0x10, 0x11, 0x11, 0x11, 0x11, 0x11, 0x10, 0x01,
0x11, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x11, 0x10,
0x11, 0x11, 0x10, 0x01, 0x11, 0x11, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rPIXEL[0x576] = {
const unsigned char rpixel[0x576] = {
0x42, 0x4D, 0x76, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0xC2, 0x1E, 0x00, 0x00, 0xC2, 0x1E, 0x00, 0x00, 0x00, 0x00,

View file

@ -1,22 +0,0 @@
#pragma once
const unsigned char rICON_MINI[0x11A] = {
0x42, 0x4D, 0x1A, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x00, 0x6C, 0x00,
0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x23, 0x2E, 0x00, 0x00, 0x23, 0x2E, 0x00, 0x00, 0x08, 0x00,
0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x42, 0x47, 0x52, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xC0, 0xC0,
0xC0, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x33, 0x33, 0x33, 0x00, 0x00, 0x03,
0x33, 0x33, 0x33, 0x33, 0x33, 0x22, 0x23, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x32, 0x22, 0x33,
0x33, 0x33, 0x33, 0x33, 0x33, 0x77, 0x22, 0x73, 0x33, 0x33, 0x33, 0x33, 0x33, 0x70, 0x00, 0x33,
0x33, 0x33, 0x33, 0x33, 0x33, 0x70, 0x00, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x37, 0x05, 0x33,
0x33, 0x33, 0x33, 0x33, 0x00, 0x00, 0x50, 0x00, 0x33, 0x33, 0x33, 0x30, 0x77, 0x77, 0x77, 0x77,
0x03, 0x33, 0x33, 0x40, 0x71, 0x77, 0x77, 0x71, 0x74, 0x33, 0x33, 0x40, 0x71, 0x77, 0x77, 0x71,
0x54, 0x33, 0x34, 0x30, 0x51, 0x77, 0x77, 0x51, 0x53, 0x33, 0x36, 0x32, 0x00, 0x00, 0x55, 0x55,
0x23, 0x33, 0x33, 0x32, 0x22, 0x22, 0x22, 0x22, 0x22, 0x23, 0x33, 0x33, 0x27, 0x77, 0x77, 0x77,
0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33
};

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rACCESS[0x472] = {
const unsigned char rAccess[0x472] = {
0x4F, 0x72, 0x67, 0x2D, 0x30, 0x32, 0x64, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
0x00, 0x00, 0xE8, 0x03, 0x46, 0x00, 0x00, 0x00, 0xE8, 0x03, 0x46, 0x00, 0x31, 0x00, 0xE8, 0x03,
0x20, 0x00, 0x00, 0x00, 0xE8, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x03, 0x00, 0x00, 0x00, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rANZEN[0x23EA] = {
const unsigned char rAnzen[0x23EA] = {
0x4F, 0x72, 0x67, 0x2D, 0x30, 0x32, 0x6E, 0x00, 0x04, 0x03, 0x30, 0x00, 0x00, 0x00, 0xA0, 0x02,
0x00, 0x00, 0xE8, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x03, 0x3C, 0x00, 0xC9, 0x00, 0xE8, 0x03,
0x5C, 0x00, 0x7D, 0x00, 0xE8, 0x03, 0x2E, 0x00, 0x7A, 0x00, 0xE8, 0x03, 0x0A, 0x00, 0xFB, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rBALCONY[0xC0A] = {
const unsigned char rBalcony[0xC0A] = {
0x4F, 0x72, 0x67, 0x2D, 0x30, 0x32, 0xA0, 0x00, 0x04, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01,
0x00, 0x00, 0xE8, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x03, 0x3C, 0x00, 0xE0, 0x00, 0xE8, 0x03,
0x2F, 0x00, 0x00, 0x00, 0xE8, 0x03, 0x5C, 0x00, 0x20, 0x00, 0xE8, 0x03, 0x42, 0x00, 0x00, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rBALLOS[0xDF2] = {
const unsigned char rBallos[0xDF2] = {
0x4F, 0x72, 0x67, 0x2D, 0x30, 0x32, 0x6E, 0x00, 0x04, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01,
0x00, 0x00, 0xE8, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x03, 0x21, 0x00, 0x00, 0x01, 0xE8, 0x03,
0x00, 0x00, 0x10, 0x00, 0xE8, 0x03, 0x5C, 0x00, 0x08, 0x00, 0xE8, 0x03, 0x00, 0x00, 0x00, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rBDOWN[0xA0A] = {
const unsigned char rBreakDown[0xA0A] = {
0x4F, 0x72, 0x67, 0x2D, 0x30, 0x32, 0x6E, 0x00, 0x04, 0x04, 0xC0, 0x00, 0x00, 0x00, 0x40, 0x01,
0x00, 0x00, 0xE8, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x03, 0x42, 0x00, 0xA0, 0x00, 0xE8, 0x03,
0x3F, 0x00, 0x2D, 0x00, 0xE8, 0x03, 0x00, 0x00, 0x26, 0x00, 0xE8, 0x03, 0x5C, 0x00, 0x40, 0x00,

View file

@ -1,6 +1,6 @@
#pragma once
const unsigned char rCEMETERY[0x11E2] = {
const unsigned char rCemetery[0x11E2] = {
0x4F, 0x72, 0x67, 0x2D, 0x30, 0x32, 0xB4, 0x00, 0x04, 0x03, 0x30, 0x00, 0x00, 0x00, 0xF0, 0x00,
0x00, 0x00, 0xE8, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x03, 0x0A, 0x00, 0x76, 0x00, 0xE8, 0x03,
0x3C, 0x00, 0x30, 0x00, 0xE8, 0x03, 0x02, 0x00, 0x16, 0x00, 0x20, 0x03, 0x00, 0x00, 0x77, 0x00,

Some files were not shown because too many files have changed in this diff Show more