summaryrefslogtreecommitdiff
path: root/src/rom_8080874.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-04-07 04:57:12 +0100
committerYamaArashi <YamaArashi@users.noreply.github.com>2017-04-06 23:50:08 -0700
commitd82d26c2b3b2b955d43f940ad007c0d839d8c89c (patch)
tree7f6a67ee1faa923347a805f1bfe7f90e9702ac6f /src/rom_8080874.c
parentf081eb66f69d054b48abb2cafeff2bfad8b16859 (diff)
split out field_doortransition.s
Diffstat (limited to 'src/rom_8080874.c')
-rw-r--r--src/rom_8080874.c97
1 files changed, 0 insertions, 97 deletions
diff --git a/src/rom_8080874.c b/src/rom_8080874.c
deleted file mode 100644
index 261ed46c9..000000000
--- a/src/rom_8080874.c
+++ /dev/null
@@ -1,97 +0,0 @@
-#include "global.h"
-#include "gba/syscall.h"
-#include "global.fieldmap.h"
-#include "script.h"
-#include "task.h"
-#include "weather.h"
-
-void palette_bg_fill_white(void);
-void palette_bg_fill_black(void);
-void pal_fill_black(void);
-void task0A_asap_script_env_2_enable_and_set_ctx_running(u8);
-
-extern u8 get_map_light_from_warp0(void);
-extern u8 sav1_map_get_light_level(void);
-extern u8 fade_type_for_given_maplight_pair(u8, u8);
-extern u16 gPlttBufferFaded[];
-extern struct MapHeader * warp1_get_mapheader(void);
-extern void sub_8059B88(u8);
-extern void sub_8053E90(void);
-
-extern u8 sub_810CDB8(u8, u8);
-extern int sub_8080E70(void);
-
-void palette_bg_fill_white(void)
-{
- u32 source_color = 0x7fff7fff;
- CpuFastSet(&source_color, gPlttBufferFaded, 0x100 | (1 << 24));
-}
-
-void palette_bg_fill_black(void)
-{
- u32 source_color = 0;
- CpuFastSet(&source_color, gPlttBufferFaded, 0x100 | (1 << 24));
-}
-
-void pal_fill_for_map_transition(void)
-{
- u8 map_light = get_map_light_from_warp0();
- switch (fade_type_for_given_maplight_pair(map_light, sav1_map_get_light_level()))
- {
- case 0:
- fade_screen(0, 0);
- palette_bg_fill_black();
- break;
- case 1:
- fade_screen(2, 0);
- palette_bg_fill_white();
- }
-}
-
-void pal_fill_black(void)
-{
- fade_screen(0, 0);
- palette_bg_fill_black();
-}
-
-void fade_8080918(void)
-{
- u8 light_level = sav1_map_get_light_level();
- switch (sub_810CDB8(light_level, warp1_get_mapheader()->mapType))
- {
- case 0:
- fade_screen(1, 0);
- break;
- case 1:
- fade_screen(3, 0);
- }
-}
-
-void sub_8080958(u8 arg)
-{
- sub_8059B88(!arg);
-}
-
-void task0A_asap_script_env_2_enable_and_set_ctx_running(u8 taskID)
-{
- if (sub_8080E70() == 1)
- {
- DestroyTask(taskID);
- EnableBothScriptContexts();
- }
-}
-
-void sub_8080990(void)
-{
- ScriptContext2_Enable();
- sub_8053E90();
- pal_fill_black();
- CreateTask(&task0A_asap_script_env_2_enable_and_set_ctx_running, 0x0a);
-}
-
-void sub_80809B0(void)
-{
- ScriptContext2_Enable();
- pal_fill_black();
- CreateTask(&task0A_asap_script_env_2_enable_and_set_ctx_running, 0x0a);
-}