Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Add additional retain variables
Browse files Browse the repository at this point in the history
  • Loading branch information
OatmealDome committed Jun 11, 2017
1 parent 4f057da commit d688251
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/retain_vars.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "common/types.h"

int isSplatoon __attribute__((section(".data"))) = 0;
int drcMode __attribute__((section(".data"))) = 0;
int screenPressTimeout __attribute__((section(".data"))) = 0;
uint32_t* gamemode __attribute__((section(".data"))) = (uint32_t*)0;
11 changes: 11 additions & 0 deletions src/retain_vars.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef _RETAIN_VARS_H_
#define _RETAIN_VARS_H_

#include "common/types.h"

extern int isSplatoon;
extern int drcMode;
extern int screenPressTimeout;
extern uint32_t* gamemode;

#endif // _RETAIN_VARS_H_

0 comments on commit d688251

Please sign in to comment.