Skip to content

Commit

Permalink
FF8: Allow more external texture replacement for battle effects
Browse files Browse the repository at this point in the history
  • Loading branch information
myst6re committed Mar 9, 2024
1 parent 1e8b467 commit 8d01dc8
Show file tree
Hide file tree
Showing 5 changed files with 421 additions and 25 deletions.
16 changes: 15 additions & 1 deletion src/ff8.h
Original file line number Diff line number Diff line change
Expand Up @@ -1455,15 +1455,17 @@ struct ff8_externals
uint32_t sub_50A9A0;
uint32_t battle_read_effect_sub_50AF20;
DWORD* func_off_battle_effects_C81774;
int* battle_magic_id;
uint32_t sub_571870;
DWORD* func_off_battle_effect_textures_50AF93;
uint32_t battle_effect_quezacotl_sub_6C3550;
uint32_t sub_6C3640;
uint32_t sub_6C3760;
uint8_t **vibrate_data_summon_quezacotl;
uint32_t load_magic_data_sub_571B80;
uint32_t load_magic_data_sub_5718E0;
uint32_t load_magic_data_sub_571900;
uint32_t sub_47D890;
uint32_t sub_505DF0;
uint32_t sub_4A94D0;
uint32_t sub_4BCBE0;
uint32_t sub_4C8B10;
Expand All @@ -1473,6 +1475,18 @@ struct ff8_externals
void *battle_menu_state;
uint32_t battle_pause_window_sub_4CD350;
uint32_t sub_4A7210;
uint32_t sub_B586F0;
uint32_t sub_B64B80;
DWORD* leviathan_funcs_B64C3C;
uint32_t mag_data_palette_sub_B66560;
DWORD** effect_struct_27973EC;
uint8_t** mag_data_dword_2798A68;
DWORD** effect_struct_2797624;
uint32_t sub_B63230;
uint32_t mag_data_texture_sub_B66560;
BYTE** dword_27973E8;
uint32_t battle_set_action_upload_raw_palette_sub_B666F0;
uint32_t battle_set_action_upload_raw_palette_sub_B66400;
};

void ff8gl_field_78(struct ff8_polygon_set *polygon_set, struct ff8_game_obj *game_object);
Expand Down
38 changes: 38 additions & 0 deletions src/ff8/battle/effects.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/****************************************************************************/
// Copyright (C) 2009 Aali132 //
// Copyright (C) 2018 quantumpencil //
// Copyright (C) 2018 Maxime Bacoux //
// Copyright (C) 2020 Chris Rizzitello //
// Copyright (C) 2020 John Pritchard //
// Copyright (C) 2024 myst6re //
// Copyright (C) 2024 Julian Xhokaxhiu //
// Copyright (C) 2023 Cosmos //
// Copyright (C) 2023 Tang-Tang Zhou //
// //
// This file is part of FFNx //
// //
// FFNx 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 3 of the License //
// //
// FFNx 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. //
/****************************************************************************/

#pragma once

namespace FF8BattleEffect {
enum Effect {
Leviathan = 5,
Quezacotl = 115
};
}

namespace FF8BattleEffectOpcode {
enum Opcode {
UploadTexture39 = 39,
UploadPalette75 = 75
};
}
Loading

0 comments on commit 8d01dc8

Please sign in to comment.