repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
Tiltification/sonic-tilt | pd-for-ios/WaveTables/OtherSources/Common.h | <reponame>Tiltification/sonic-tilt<filename>pd-for-ios/WaveTables/OtherSources/Common.h
/*
* Common.h
* SlidePad
*
* Created by <NAME> on 22/12/10.
* Copyright 2010 <NAME>. All rights reserved.
*
*/
// debug macros from: http://www.cimgf.com/2010/05/02/my-current-prefix-pch-file/
// I modified DLog to use p... |
Tiltification/sonic-tilt | ios/Runner/MethodChannelHandler.h | //
// MethodChannelHandler.h
// Runner
//
// Created by Fida on 12.01.21.
//
#import <Flutter/Flutter.h>
#import <Foundation/Foundation.h>
#import "PureDataController.h"
#import "SimpleUtils.h"
#import "UserPreference.h"
NS_ASSUME_NONNULL_BEGIN
@interface MethodChannelHandler : NSObject
- (void) configureMethodC... |
Tiltification/sonic-tilt | pd-for-ios/PdLinkSample/PdLinkSample/ViewController.h | /*
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*
*/
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@property (weak, nonatomic) IBOutlet UILabel *tempoLabel;
@property (weak, nonatomic) IBOutlet... |
Tiltification/sonic-tilt | android/PdCore/src/main/jni/libpd/samples/objc/ios/pdtest/pdtest/ViewController.h | //
// ViewController.h
// pdtest
//
// Created by <NAME> on 1/16/13.
// Copyright (c) 2013 libpd. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PdBase.h"
@interface ViewController : UIViewController <PdReceiverDelegate, PdMidiReceiverDelegate>
// setup the Pd audio controller, etc
- (void)setupPd;
/... |
Tiltification/sonic-tilt | pd-for-ios/abl_link/ios/PdLinkAudioUnit.h | <reponame>Tiltification/sonic-tilt<filename>pd-for-ios/abl_link/ios/PdLinkAudioUnit.h
/*
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*
*/
#import "PdAudioUnit.h"
#include "ABLLink.h"
@interface PdLinkAudioUnit : PdA... |
Tiltification/sonic-tilt | pd-for-ios/PdSettings/PdSettings/RDebug.h | //
// WDebug.h
// Wombat
//
// Created by <NAME> on 1/08/11.
// Copyright 2011 <NAME>. All rights reserved.
//
//////////////////////////////////////////////////////////////////////
#ifdef R_DEBUG
//////////////////// Debug Mode //////////////////////////////////////
#include <assert.h>
#include <stdbool.h>
#incl... |
Tiltification/sonic-tilt | pd-for-ios/PolyPatch/RCommon.h | <filename>pd-for-ios/PolyPatch/RCommon.h<gh_stars>1-10
#if defined(R_DEBUG)
#define RLog(nslog_string, ...) printf("%s\t", __PRETTY_FUNCTION__); printf("%s", [[NSString stringWithFormat:nslog_string, ##__VA_ARGS__] UTF8String]); printf("\n");
#else
#define RLog(nslog_string, ...)
#endif
|
Tiltification/sonic-tilt | android/PdCore/src/main/jni/libpd/samples/c/pdtest_thread/pdtest_thread.c | <filename>android/PdCore/src/main/jni/libpd/samples/c/pdtest_thread/pdtest_thread.c
/*
this tests pd's currently *experimental* multi instance support
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <pthread.h>
#include "z_libpd.h"
#define LIBPD_TEST_NINSTANCES 4
#define... |
Tiltification/sonic-tilt | pd-for-ios/SlidePad/Classes/Controllers/PolyPatchController.h | /*
Copyright (c) 2012, <NAME>
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and
the following disclaimer.
* Redistribu... |
Tiltification/sonic-tilt | ios/Runner/UserPreference.h | //
// UserPreference.h
// Runner
//
// Created by Fida on 13.01.21.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface UserPreference : NSObject
@property BOOL playOnBoot;
@property float defaultVolume;
@property BOOL oneDimensionalMode;
@property BOOL twoDimensionalMode;
+ (void) setPlayInB... |
Tiltification/sonic-tilt | pd-for-ios/abl_link/ios/abl_link.h | /*
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*
*/
#ifndef __ABL_LINK_H__
#define __ABL_LINK_H__
#include "ABLLink.h"
void abl_link_tilde_setup(void);
void abl_link_set_link_ref(ABLLinkRef ref);
void abl_link_set_t... |
Tiltification/sonic-tilt | ios/Runner/SimpleUtils.h | //
// SimpleUtils2.m
// Runner
//
// Created by Fida on 08.02.21.
//
#import <Foundation/Foundation.h>
@interface SimpleUtils : NSObject
+ (BOOL) stringToBool: (NSString *) myString;
@end
|
Tiltification/sonic-tilt | pd-for-ios/DispatcherSample/DispatcherSample/DispatcherSampleAppDelegate.h | <reponame>Tiltification/sonic-tilt
//
// DispatcherSampleAppDelegate.h
// DispatcherSample
//
// Copyright (c) 2011 <NAME> (<EMAIL>)
//
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
//
#import <UIKit/UIKit.h>
#import "... |
Tiltification/sonic-tilt | pd-for-ios/DispatcherSample/DispatcherSample/SampleListener.h | <filename>pd-for-ios/DispatcherSample/DispatcherSample/SampleListener.h
//
// SampleListener.h
// DispatcherSample
//
// Copyright (c) 2011 <NAME> (<EMAIL>)
//
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
//
#import <... |
ajamato/grpc | src/core/ext/filters/client_channel/client_channel_channelz.h | /*
*
* Copyright 2018 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
ajamato/grpc | src/core/lib/channel/channelz.h | <gh_stars>0
/*
*
* Copyright 2018 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
squat/darkweb | src/queue.h | <reponame>squat/darkweb<gh_stars>1-10
#include <pthread.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*queue_data_free)(void *);
struct queue_item {
void *data;
queue_data_free f;
struct queue_item *next;
};
struct queue {
pthread_cond_t c;
int cap;
queue_data_... |
squat/darkweb | src/detect.h | <reponame>squat/darkweb<gh_stars>1-10
#include "darknet.h"
char *analyze_image(unsigned char *buffer, int len, network *net, char **labels, float threshold);
|
squat/darkweb | src/util.h | <filename>src/util.h
#include "mongoose.h"
char *make_str(const char *fmt, ...);
int has_prefix(const struct mg_str *uri, const struct mg_str *prefix);
int is_equal(const struct mg_str *s1, const struct mg_str *s2);
void free_string_array(char **ca, const int n);
|
squat/darkweb | src/handlers.h | <reponame>squat/darkweb
#include "darknet.h"
#include "mongoose.h"
struct context {
unsigned char *buffer;
char **labels;
size_t len;
network *net;
float threshold;
};
struct net_context {
char **labels_coco;
char **labels_imagenet;
network *tiny;
network *yolo;
network *yolo_9... |
squat/darkweb | src/handlers.c | #include "handlers.h"
#include "darknet.h"
#include "detect.h"
#include "mongoose.h"
#include "util.h"
#include <stdio.h>
#include <stdlib.h>
#define IMAGE_BUFFER_LENGTH 1024
// https://github.com/pjreddie/darknet/blob/master/examples/darknet.c#L418
#define YOLO_THRESHOLD .25
static const struct mg_str s_post_method =... |
squat/darkweb | src/queue.c | #include "queue.h"
#include <stdbool.h>
#include <stdlib.h>
struct queue *new_queue(int cap, queue_data_free f) {
struct queue *q = (struct queue *)malloc(sizeof(struct queue));
pthread_cond_init(&q->c, NULL);
q->cap = cap;
q->f = f;
q->head = NULL;
pthread_mutex_init(&q->m, NULL);
q->n = 0... |
squat/darkweb | src/detect.c | <filename>src/detect.c<gh_stars>1-10
#include "darknet.h"
#include "util.h"
// https://github.com/pjreddie/darknet/blob/508381b37fe75e0e1a01bcb2941cb0b31eb0e4c9/examples/darknet.c#L440
#define YOLO_HIER_THRESHOLD .5
// https://github.com/pjreddie/darknet/blob/508381b37fe75e0e1a01bcb2941cb0b31eb0e4c9/examples/detector.c... |
squat/darkweb | src/darkapi.c | #include "darknet.h"
#include "handlers.h"
#include "mongoose.h"
#include "util.h"
#include <signal.h>
#include <stdio.h>
static const char *s_signal = "";
static void signal_handler(int s) {
switch (s) {
case SIGINT:
s_signal = "SIGINT";
break;
case SIGTERM:
s_... |
squat/darkweb | src/client.c | <gh_stars>1-10
#include "json.h"
#include "queue.h"
#include <argp.h>
#include <curl/curl.h>
#include <cv.h>
#include <highgui.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avfor... |
squat/darkweb | src/util.c | #include "mongoose.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
char *make_str(const char *fmt, ...) {
char *p;
char *np;
int n, size = 64;
va_list ap;
if ((p = malloc(size)) == NULL) {
return NULL;
};
while (1) {
va_start(ap, fmt);
n = vsnprintf(p... |
max-t-wheeler/cpp-libraries | graph_theory.h | #include "numerical_integration.h"
template <class T>
class vertex {
private:
public:
unsigned int sid; //vertex species id
unsigned int id; //vertex id
unsigned int index; //vertex index
double r; //vertex radius... |
max-t-wheeler/cpp-libraries | visual/OpenGL/Graph_Theory/graph_renderer.h | #include "../../../graph_theory.h"
#include "../OpenGL_Utils.h"
void render_graph(graph G, std::string animation_type, std::string vertex_type, float &dphi) {
if (animation_type != "static" && animation_type != "dynamic") {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glColor3f(1... |
max-t-wheeler/cpp-libraries | visual/Gnuplot/to_gnuplot.h | #include <iostream>
#include <stdlib.h>
//plots function using gnuplot
void plot(){
const char* create_file_chars;
std::string create_file = "gnome-terminal -x sh -c 'gnuplot -e \"set terminal pngcairo; set output 'output.png'; set title 'test'; set xlabel 'x'; set ylabel 'y'; set xzeroaxis; set yzeroaxis;... |
max-t-wheeler/cpp-libraries | numerical_integration.h | #include "algorithms.h"
////////////////////methods based on interpolation////////////////////////
//numerical integration using the composite midpoint rule (Holmes Chapter 6.2.1)
double composite_midpoint_integration(const double a, const double b, const int n, arma::vec (*f)(arma::vec)) {
if (a >= b) {
if (log... |
max-t-wheeler/cpp-libraries | visual/OpenGL/OpenGL_Utils.h | #define GLEW_STATIC
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <GL/glut.h>
#include <GL/glext.h>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/matrix_transform.hpp>
void keyboard(unsigned char c, int x, int y) {
if ( c == 27){
glutLeaveMainLoop();
}
}
void mouse(... |
max-t-wheeler/cpp-libraries | abstract/numbers_package.h | <reponame>max-t-wheeler/cpp-libraries<gh_stars>0
#include "../io.h"
#include <typeinfo>
//base number class
//defined as a single value or an ordered pair
class number {
private:
double a, b;
public:
double x, y;
number(double a): x(a) {}
number(double a, double b) : x(a), y(b) {}
};
... |
max-t-wheeler/cpp-libraries | scientific_computing.h | #include "math_package.h"
//machine epsilon (Holmes Table 1.2)
double eps(const std::string precision) {
if (precision == "single") {
return 1/(pow(2, 23));
}
else if (precision == "double") {
return 1/(pow(2, 52));
}
else if (precision == "quadruple") {
return 1/(pow(2, 112));
}
else {
... |
max-t-wheeler/cpp-libraries | visual/OpenGL/ioGL.h | #include <iostream>
#include <glm/glm.hpp>
void output_vec3(glm::vec3 v) {
for (int i = 0; i < 3; ++i) {
std::cout << v[i] << ' ';
}
std::cout << '\n';
}
void output_vec4(glm::vec4 v) {
for (int i = 0; i < 4; ++i) {
std::cout << v[i] << ' ';
}
std::cout << '\n';
... |
max-t-wheeler/cpp-libraries | algorithms.h | <filename>algorithms.h
#include "interpolation.h"
#include <string.h>
//parsing algorithms
//convert string to integer
int string_to_int(std::string str) {
std::string::size_type size;
return std::stoi(str, &size);
}
//convert string to double
int string_to_double(std::string str) {
std::s... |
max-t-wheeler/cpp-libraries | math_package.h | #include <cstdlib>
#include <cmath>
#include <armadillo>
#include "io.h"
//#define pi 3.141592653589793238462643383279502884L
//return index of value in regspace space
template <class S>
int get_ID(S input, const double val, const double precision) {
if (input.is_empty()) {
if (logging) {
out... |
max-t-wheeler/cpp-libraries | abstract/numbers_operations_package.h | #include "numbers_package.h"
//sum of two numbers
template <class set>
set add(set a, set b) {
if (typeid(set).name() == typeid(integer).name()) {
set ans((a.x + b.x), (a.y + b.y));
return ans;
}
else if (typeid(set).name() == typeid(rational).name()) {
set ans((a.x * b.y + b.x * a.y... |
max-t-wheeler/cpp-libraries | io.h | #include <iostream>
#include <fstream>
#include <vector>
bool logging = 0;
//set logging to 1
bool log() {
logging = 1;
}
//input a value
template <class S>
void input(S &entry) {
std::cin >> entry;
}
//print single value
template <class S>
void output(const S entry) {
std::cout << entr... |
max-t-wheeler/cpp-libraries | interpolation.h | #include "linear_algebra.h"
//interpolation using a global interpolation polynomial (Holmes Chapter 5.2)
//Note: Requires unique x(i) values
arma::vec global_interpolation_poly(const arma::vec x, const arma::vec y, arma::vec& D, const double range, const double precision) {
if (x.empty() || y.empty()) {
if(loggin... |
max-t-wheeler/cpp-libraries | linear_algebra.h | <reponame>max-t-wheeler/cpp-libraries
#include "scientific_computing.h"
//matrices
//determine if matrix can be factored using LU decomposition (Holmes Chapter 3.2.1)
template <class S>
bool is_LU(S A) {
if (A.empty()) {
if (logging) {
output("Matrix entered in is_LU has not been initialized");
... |
in1tiate/OoT3D_Randomizer | code/src/graveyard_objects.h | <filename>code/src/graveyard_objects.h
#ifndef _GRAVEYARD_OBJECTS_H_
#define _GRAVEYARD_OBJECTS_H_
#include "z3D/z3D.h"
void BgSpot02Objects_rUpdate(Actor* thisx, GlobalContext* globalCtx);
#endif //_GRAVEYARD_OBJECTS_H_
|
in1tiate/OoT3D_Randomizer | code/src/dungeon_rewards.h | #ifndef _DUNGEON_REWARDS_H_
#define _DUNGEON_REWARDS_H_
#include "z3D/z3D.h"
#include <stddef.h>
typedef enum {
/* 0x00 */ KOKIRI_EMERALD,
/* 0x01 */ GORON_RUBY,
/* 0x02 */ ZORA_SAPPHIRE,
/* 0x03 */ FOREST_MEDALLION,
/* 0x04 */ FIRE_MEDALLION,
/* 0x05 */ WATER_MEDALLION,
/* 0x... |
in1tiate/OoT3D_Randomizer | code/src/token.c | #include "z3D/z3D.h"
#include "z3D/actors/z_en_si.h"
#include "models.h"
#define EnSi_Init_addr 0x168A90
#define EnSi_Init ((ActorFunc)EnSi_Init_addr)
#define EnSi_Destroy_addr 0x168C3C
#define EnSi_Destroy ((ActorFunc)EnSi_Destroy_addr)
#define EnSi_Draw_addr 0x1BA050
#define EnSi_Draw ((ActorFunc)EnSi_Draw_addr)
... |
in1tiate/OoT3D_Randomizer | code/src/obj_switch.h | #ifndef _OBJSWITCH_H_
#define _OBJSWITCH_H_
#include "z3D/z3D.h"
void ObjSwitch_rInit(Actor* thisx, GlobalContext* globalCtx);
#endif //_OBJSWITCH_H_
|
in1tiate/OoT3D_Randomizer | code/src/icons.h | <gh_stars>0
#pragma once
#define ICON_WIDTH 8
#define ICON_HEIGHT 8
static const unsigned char rIcons[][ICON_HEIGHT] = {
{ /* Small Key */
0x18, /* 00011000 */
0x24, /* 00100100 */
0x24, /* 00100100 */
0x18, /* 00011000 */
0x08, /* 00001000 */
0x18, /* 00011000 */... |
in1tiate/OoT3D_Randomizer | code/src/shops.h | #include "z3D/z3D.h"
#include "settings.h"
#include "item_override.h"
#include "item_table.h"
typedef enum {
SHOP_BAZAAR,
SHOP_KOKIRI,
SHOP_GORON,
SHOP_ZORA,
SHOP_KAKARIKO_POTION,
SHOP_MARKET_POTION,
SHOP_BOMBCHU,
SHOP_HAPPY_MASK,
} Shops;
#define SHOP_MARKET_BAZAAR SHOP_BAZAAR
#define... |
in1tiate/OoT3D_Randomizer | code/src/fs.c | /* Edited from https://github.com/devkitPro/libctru/blob/6360f4bdb1ca5f8131ffc92640c1dd16afb63083/libctru/source/services/fs.c */
#include <string.h>
#include "3ds/types.h"
#include "3ds/result.h"
#include "3ds/svc.h"
#include "3ds/srv.h"
#include "3ds/synchronization.h"
#include "3ds/services/fs.h"
#include "3ds/ipc.... |
in1tiate/OoT3D_Randomizer | code/include/z3D/actors/z_en_box.h | #ifndef _EN_BOX_H_
#define _EN_BOX_H_
#include "z3D/z3D.h"
typedef struct EnBox {
/* 0x000 */ Actor actor;
/* 0x1A4 */ char unk_1A4[0x1F4];
} EnBox; // size 0x398
#endif //_EN_BOX_H_
|
in1tiate/OoT3D_Randomizer | code/include/3ds/services/gspgpu.h | <reponame>in1tiate/OoT3D_Randomizer
/**
* @file gspgpu.h
* @brief GSPGPU service.
*/
#pragma once
#define GSPGPU_REBASE_REG(r) ((r)-0x1EB00000)
/// Framebuffer information.
typedef struct
{
u32 active_framebuf; ///< Active framebuffer. (0 = first, 1 = second)
u32 *framebuf0_vaddr; ///< Framebuffer v... |
in1tiate/OoT3D_Randomizer | code/src/well_water.c | <filename>code/src/well_water.c<gh_stars>100-1000
#include "well_water.h"
#include "settings.h"
//This actor is the water that blocks getting into Bottom of the Well as child
#define BgSpot01Idomizu_Init_addr 0x2AC704
#define BgSpot01Idomizu_Init ((ActorFunc)BgSpot01Idomizu_Init_addr)
void BgSpot01Idomizu_rInit(Actor... |
in1tiate/OoT3D_Randomizer | code/src/ganondorf_organ.c | #include "z3D/z3D.h"
#define EnGanonOrgan_Init_addr 0x280E0C
#define EnGanonOrgan_Init ((ActorFunc)EnGanonOrgan_Init_addr)
void EnGanonOrgan_rInit(Actor* organ, GlobalContext* globalCtx) {
gSaveContext.eventChkInf[12] &= ~0x80;
EnGanonOrgan_Init(organ, globalCtx);
}
|
in1tiate/OoT3D_Randomizer | code/src/owl.h | <reponame>in1tiate/OoT3D_Randomizer
#ifndef _OWL_H_
#define _OWL_H_
#include "z3D/z3D.h"
void EnOwl_DespawnInit(Actor* owl, GlobalContext* globalCtx);
void EnOwl_rUpdate(Actor* owl, GlobalContext* globalCtx);
void EnOwl_FastCutscene(GlobalContext* globalCtx);
#endif //_OWL_H_
|
in1tiate/OoT3D_Randomizer | code/include/z3D/actors/z_bg_dy_yoseizo.h | #ifndef _BG_DY_YOSEIZO_H_
#define _BG_DY_YOSEIZO_H_
#include "z3D/z3D.h"
typedef struct BgDyYoseizo {
/* 0x000 */ Actor actor;
/* 0x1A4 */ char unk_1A4[0x0B88];
/* 0xD2C */ s16 unk_D2C;
/* 0xD2E */ char unk_D2E[0x3D46];
} BgDyYoseizo; // size 0x4A74
#endif //_BG_DY_YOSEIZO_H_
|
in1tiate/OoT3D_Randomizer | code/include/3ds/gfx.h | /**
* @file gfx.h
* @brief LCD Screens manipulation
*
* This header provides functions to configure and manipulate the two screens, including double buffering and 3D activation.
* It is mainly an abstraction over the gsp service.
*/
#pragma once
#include "types.h"
#include "services/gspgpu.h"
#define RGB8(r,g,b... |
in1tiate/OoT3D_Randomizer | code/src/kak_gate.c | #include "z3D/z3D.h"
#include "settings.h"
//There is a bug that ties opening of kak gate to pulling the master sword for the first time
//This bug is fixed if kak gate is set to closed- If open the bug is allowed to exist so the gate
// can be opened without also opening the mask shop.
u32 KakGate_CheckToFixBug(void... |
in1tiate/OoT3D_Randomizer | code/src/lab_scientist.c | <reponame>in1tiate/OoT3D_Randomizer
#include "z3D/z3D.h"
void EnMk_SetTradedEyeballFrogFlag(void) {
gSaveContext.itemGetInf[3] |= 0x20;
}
|
in1tiate/OoT3D_Randomizer | code/include/input.h | #include "z3D/z3D.h"
#include "hid.h"
typedef struct {
btn_t cur;
btn_t up;
btn_t pressed;
btn_t old;
} InputContext;
void Input_Update(void);
u32 Input_WaitWithTimeout(u32 msec, u32 closingButton);
u32 Input_Wait(void);
extern InputContext rInputCtx;
|
in1tiate/OoT3D_Randomizer | code/src/fog.h | #ifndef _FOG_H_
#define _FOG_H_
void Fog_OverrideState(void);
#endif //_FOG_H_
|
in1tiate/OoT3D_Randomizer | code/src/rHeap.h | #ifndef _RHEAP_H_
#define _RHEAP_H_
#include "z3D/z3D.h"
#define ARR_SIZE(a) (sizeof(a) / sizeof(a[0]))
void rHeap_Init(void);
void* rHeap_Alloc(u32 bytes);
#endif //_RHEAP_H_
|
in1tiate/OoT3D_Randomizer | code/src/windmill_man.h | #ifndef _WINDMILL_MAN_H_
#define _WINDMILL_MAN_H_
#include "z3D/z3D.h"
void EnFu_rUpdate(Actor* thisx, GlobalContext* globalCtx);
#endif //_WINDMILL_MAN_H_
|
in1tiate/OoT3D_Randomizer | code/src/heart_container.h | #ifndef _HEART_CONTAINER_H_
#define _HEART_CONTAINER_H_
#include "z3D/z3D.h"
#include "z3D/actors/z_item_b_heart.h"
void ItemBHeart_rInit(Actor* thisx, GlobalContext* globalCtx);
void ItemBHeart_rDestroy(Actor* thisx, GlobalContext* globalCtx);
void ItemBHeart_rDraw(Actor* thisx, GlobalContext* globalCtX);
... |
in1tiate/OoT3D_Randomizer | code/include/advance.h | <gh_stars>100-1000
/*
* This comes from a file originally written by n3rdswithgame
*/
#ifndef ADVANCE_H
#define ADVANCE_H
#include <stdint.h>
#include "hid.h"
#include "z3D/z3D.h"
typedef enum {
NORMAL = 0,
PAUSED,
STEP,
LATCHED
} frame_state_t;
typedef struct{
frame_state_t advance_state;
... |
in1tiate/OoT3D_Randomizer | code/src/cutscenes.c | #include "z3D/z3D.h"
#include "item_override.h"
#include "settings.h"
#include "savefile.h"
#include "entrance.h"
#include "z3D/actors/z_bg_dy_yoseizo.h"
#include <stddef.h>
// Patched over call to Item_Give
void Cutscene_OverrideOcarinaSongs(GlobalContext* GlobalContext, ItemID songId) {
ItemOverride_PushDelayedO... |
in1tiate/OoT3D_Randomizer | code/src/well_stone.c | #include "well_stone.h"
#include "settings.h"
//This actor is the stone blocking bottom of the well as adult Link. This is
//different from the stone blocking child Link from getting into the well
//early during the day before the well water has been drained.
#define BgSpot01Idosoko_Init_addr 0x2AC7C8
#define BgSpot0... |
in1tiate/OoT3D_Randomizer | code/src/fog.c | #include "fog.h"
#include "settings.h"
#include "z3D/z3D.h"
#define z3D_Fog_State_addr 0x531EB4
#define z3D_Fog_State (*(u8*) z3D_Fog_State_addr)
//Override glitchy fog state when going through Market Entrance -> Hyrule Field
//exit during entrance randomizer
void Fog_OverrideState(void) {
if (gSettingsContext.s... |
in1tiate/OoT3D_Randomizer | code/src/fire_arrow.c | <reponame>in1tiate/OoT3D_Randomizer
#include "z3D/z3D.h"
// Checks a chest flag for spawning the fire arrows
// Replaces a check for fire arrows in the inventory
u32 ShotSun_CheckChestFlag(void) {
return ((gGlobalContext->actorCtx.flags.chest & 0x1) != 0);
}
|
in1tiate/OoT3D_Randomizer | code/src/sfx.c | #include "z3D/z3D.h"
#include "settings.h"
#include "sfx.h"
#include "savefile.h"
#include "common.h"
SFXData rSfxData = {0};
u32 SetSFX(u32 original) {
u16 sfxID = original - SFX_BASE;
SeqType type = rSfxData.rSeqTypesSFX[sfxID];
static const u16 GET_BOXITEM_ID = 1205; // Treat GET_BOXITEM as a fanfare
... |
in1tiate/OoT3D_Randomizer | code/src/rupee_trap.c | #include "z3D/z3D.h"
#include "settings.h"
#define EnExRuppy_Update_addr 0x2689B8
#define EnExRuppy_Update ((ActorFunc)EnExRuppy_Update_addr)
void EnExRuppy_rUpdate(Actor* thisx, GlobalContext* globalCtx) {
if (thisx->params == 0x2 && thisx->xzDistToPlayer < 30.0f) {
PLAYER->actor.colChkInfo.damage = (gSe... |
in1tiate/OoT3D_Randomizer | code/src/bgm.c | <reponame>in1tiate/OoT3D_Randomizer<filename>code/src/bgm.c
#include "z3D/z3D.h"
#include "bgm.h"
#include "savefile.h"
#include "common.h"
static u32 rBGMOverrides[128] = {0};
u32 SetBGM(u32 original) {
if (!gExtSaveData.option_EnableBGM && IsInGame()) {
return SEQ_AUDIO_BLANK;
}
s32 i = origina... |
in1tiate/OoT3D_Randomizer | code/src/shooting_gallery_man.c | <reponame>in1tiate/OoT3D_Randomizer
#include "shooting_gallery_man.h"
#include "entrance.h"
#include "settings.h"
#define EnSyatekiMan_Init_addr 0x283F94
#define EnSyatekiMan_Init ((ActorFunc)EnSyatekiMan_Init_addr)
void EnSyatekiMan_rInit(Actor* thisx, GlobalContext* globalCtx) {
//If child is in the adult shoot... |
in1tiate/OoT3D_Randomizer | code/src/hints.c | #include "z3D/z3D.h"
#include "settings.h"
#define MASK_OF_TRUTH_ID 8
#define MAX_SARIAS_SONG_HINTS 64
#define SCENE_YDAN_BOSS 17
#define Player_GetMaskFunc_addr 0x36EF98
u8 (*Player_GetMask)(GlobalContext*) = (void*)Player_GetMaskFunc_addr;
#define ElfMessage_GetSariaText_addr 0x31C698
u16 (*ElfMessage_GetSariaTex... |
in1tiate/OoT3D_Randomizer | code/src/savefile.h | #ifndef _SAVEFILE_H_
#define _SAVEFILE_H_
#include "z3D/z3D.h"
#define SAVEFILE_SCENES_DISCOVERED_IDX_COUNT 4
#define SAVEFILE_ENTRANCES_DISCOVERED_IDX_COUNT 258
u8 SaveFile_GetMedallionCount(void);
u8 SaveFile_GetStoneCount(void);
u8 SaveFile_GetDungeonCount(void);
u8 SaveFile_GetIsSceneDiscovered(u8 sceneNum);
voi... |
in1tiate/OoT3D_Randomizer | code/src/nabooru.h | <reponame>in1tiate/OoT3D_Randomizer<gh_stars>100-1000
#ifndef _NABOORU_H_
#define _NABOORU_H_
#include "z3D/z3D.h"
void EnNb_rDraw(Actor* thisx, GlobalContext* globalCtx);
#endif //_NABOORU_H_
|
in1tiate/OoT3D_Randomizer | code/src/frog.c | #include "z3D/z3D.h"
#include "z3D/actors/z_en_fr.h"
#include "settings.h"
void EnFr_rSetReward(EnFr* frog) {
if (frog->songIndex == FROG_STORMS) {
frog->reward = GI_HEART_PIECE;
} else {
frog->reward = GI_HEART_PIECE_WIN;
}
}
|
in1tiate/OoT3D_Randomizer | code/src/gtg_gate.h | <reponame>in1tiate/OoT3D_Randomizer
#ifndef _GTG_GATE_H_
#define _GTG_GATE_H_
#include "z3D/z3D.h"
void BgSpot12Saku_rUpdate(Actor* thisx, GlobalContext* globalCtx);
void BgSpot12Saku_rInit(Actor* thisx, GlobalContext* globalCtx);
#endif //_GTG_GATE_H_
|
in1tiate/OoT3D_Randomizer | code/include/z3D/actors/z_en_fr.h | <filename>code/include/z3D/actors/z_en_fr.h
#ifndef _EN_FR_H_
#define _EN_FR_H_
#include "z3D/z3D.h"
typedef enum {
/* 00 */ FROG_ZL,
/* 01 */ FROG_EPONA,
/* 02 */ FROG_SARIA,
/* 03 */ FROG_SUNS,
/* 04 */ FROG_SOT,
/* 05 */ FROG_STORMS,
/* 06 */ FROG_CHOIR_SONG,
/* 07 */ FROG_NO_SONG
... |
in1tiate/OoT3D_Randomizer | code/src/gorons.c | #include "z3D/z3D.h"
#include "settings.h"
#include "savefile.h"
#include "gorons.h"
#define EnGo2_SetGetItem ((EnGo2_ActionFunc)0x133EBC)
void EnGo2_rBiggoronSetTextId(EnGo2* self) {
Player* player = PLAYER;
if (player->exchangeItemId == EXCH_ITEM_CLAIM_CHECK) {
if (gExtSaveData.biggoronTrades & BIG... |
in1tiate/OoT3D_Randomizer | code/src/gfx_options.h | #ifndef _GFX_OPTIONS_H_
#define _GFX_OPTIONS_H_
#include "gfx.h"
void InitOptions(void);
void Gfx_DrawOptions(void);
void Gfx_OptionsUpdate(void);
#endif //_GFX_OPTIONS_H_
|
in1tiate/OoT3D_Randomizer | code/include/z3D/z3Dequipment.h | #ifndef _Z3DEQUIPMENT_H_
#define _Z3DEQUIPMENT_H_
enum {
NO_BULLET_BAG = 0,
BULLET_BAG_30 = 1,
BULLET_BAG_40 = 2,
BULLET_BAG_50 = 3,
} BulletBag;
enum {
NO_QUIVER = 0,
QUIVER_30 = 1,
QUIVER_40 = 2,
QUIVER_50 = 3,
} Quiver;
enum {
NO_BOMB_BAG = 0,
BOMB_BAG_20 = 1,
BOMB_BAG_... |
in1tiate/OoT3D_Randomizer | code/src/item00.c | #include "z3D/z3D.h"
#include "z3D/actors/z_en_item00.h"
#include "models.h"
#include "settings.h"
#define EnItem00_Init_addr 0x1F69B4
#define EnItem00_Init ((ActorFunc)EnItem00_Init_addr)
#define EnItem00_Destroy_addr 0x1F706C
#define EnItem00_Destroy ((ActorFunc)EnItem00_Destroy_addr)
#define EnItem00_Draw_addr 0x... |
in1tiate/OoT3D_Randomizer | code/src/windmill_man.c | <filename>code/src/windmill_man.c
#include "z3D/z3D.h"
#include "windmill_man.h"
#define CsTimer (gGlobalContext->csCtx.frames)
#define EnFu_Update_addr 0x1B1328
#define EnFu_Update ((ActorFunc)EnFu_Update_addr)
void EnFu_rUpdate(Actor* thisx, GlobalContext* globalCtx) {
EnFu_Update(thisx, globalCtx);
if (C... |
in1tiate/OoT3D_Randomizer | code/src/collapsing_castle.h | <reponame>in1tiate/OoT3D_Randomizer
#ifndef _COLLAPSING_CASTLE_H_
#define _COLLAPSING_CASTLE_H_
#include "z3D/z3D.h"
void DemoGt_rUpdate(Actor* thisx, GlobalContext* globalCtx);
#endif //_COLLAPSING_CASTLE_H_
|
in1tiate/OoT3D_Randomizer | code/src/gorons.h | #ifndef _GORONS_H_
#define _GORONS_H_
#include "z3D/z3D.h"
struct EnGo2;
typedef void (*EnGo2_ActionFunc)(struct EnGo2* self, GlobalContext* globalCtx);
#define BIGGORON_TRADED_CLAIM_CHECK (1 << 0)
#define BIGGORON_TRADED_EYEDROPS (1 << 1)
#define BIGGORON_TRADED_BROKEN_SWORD (1 << 2)
typedef struct EnGo2 {
/*... |
in1tiate/OoT3D_Randomizer | code/src/lake_hylia_objects.h | <reponame>in1tiate/OoT3D_Randomizer<filename>code/src/lake_hylia_objects.h
#ifndef _LAKE_HYLIA_OBJECTS_H_
#define _LAKE_HYLIA_OBJECTS_H_
#include "z3D/z3D.h"
void BgSpot06Objects_rUpdate(Actor* thisx, GlobalContext* globalCtx);
void BgSpot06Objects_rDestroy(Actor* thisx, GlobalContext* globalCtx);
#endif //_LAKE_HYL... |
in1tiate/OoT3D_Randomizer | code/src/dampe.c | <gh_stars>0
#include "dampe.h"
#define EnTk_Update_addr 0x1BC088
#define EnTk_Update ((ActorFunc)EnTk_Update_addr)
void EnTk_rUpdate(Actor* thisx, GlobalContext* globalCtx) {
// Custom collectible flag for the heart piece
if (gGlobalContext->actorCtx.flags.collect & 0x100) {
// Sets the flag f... |
in1tiate/OoT3D_Randomizer | code/src/extdata.c | <reponame>in1tiate/OoT3D_Randomizer
#include "3ds/extdata.h"
#include "3ds/result.h"
#include "3ds/services/fs.h"
#include "3ds/srv.h"
#include "3ds/svc.h"
static u8 icn[14016];
Result extDataInit() {
Result res;
if(R_FAILED(res = srvInit())) {
return res;
}
return fsInit();
}
Result extData... |
in1tiate/OoT3D_Randomizer | code/src/checkable_spot.h | #ifndef _CHECKABLE_SPOT_H_
#define _CHECKABLE_SPOT_H_
#include "z3D/z3D.h"
void EnWonderTalk2_rUpdate(Actor* thisx, GlobalContext* globalCtx);
#endif //_CHECKABLE_SPOT_H_
|
in1tiate/OoT3D_Randomizer | code/src/gspgpu.c | #include "3ds/types.h"
#include "3ds/result.h"
#include "3ds/svc.h"
#include "3ds/srv.h"
#include "3ds/synchronization.h"
#include "3ds/services/gspgpu.h"
#include "3ds/ipc.h"
#include <string.h>
#define GSP_EVENT_STACK_SIZE 0x1000
Handle gspGpuHandle;
static int gspRefCount;
Result gspInit(void)
{
Result res=0;
i... |
in1tiate/OoT3D_Randomizer | code/src/player.c | #include "z3D/z3D.h"
#include "objects.h"
#include "custom_models.h"
#include "player.h"
#include "settings.h"
#define PlayerActor_Update_addr 0x1E1B54
#define PlayerActor_Update ((ActorFunc)PlayerActor_Update_addr)
u16 healthDecrement = 0;
void* Player_EditAndRetrieveCMB(ZARInfo* zarInfo, u32 objModelIdx) {
voi... |
in1tiate/OoT3D_Randomizer | code/src/player.h | <reponame>in1tiate/OoT3D_Randomizer<gh_stars>100-1000
#ifndef _PLAYER_H_
#define _PLAYER_H_
#include "z3D/z3D.h"
extern u16 healthDecrement;
void PlayerActor_rUpdate(Actor* thisx, GlobalContext* globalCtx);
#endif //_PLAYER_H_
|
in1tiate/OoT3D_Randomizer | code/src/sfx.h | <filename>code/src/sfx.h
#ifndef _SFX_H_
#define _SFX_H_
#define SFX_BASE 0x1000001
#define SFX_COUNT 1388
#define SFX_COUNT_TRIMMED (1388 - 233)
typedef enum {
// Movement
SEQ_WALK,
SEQ_WALK_LOUD,
SEQ_JUMP,
SEQ_LAND,
SEQ_SLIP,
SEQ_SLIP_LOOP,
SEQ_BOUND,
SEQ_CRAWL,
SEQ_MOVE_LOOP... |
in1tiate/OoT3D_Randomizer | code/src/main.c | #include "rHeap.h"
#include "item_override.h"
#include "actor.h"
#include "input.h"
#include "models.h"
#include "entrance.h"
#include "settings.h"
#include "title_screen.h"
#include "draw.h"
#include "common.h"
#include "z3D/z3D.h"
#include "3ds/extdata.h"
GlobalContext* gGlobalContext;
static u8 rRan... |
in1tiate/OoT3D_Randomizer | code/src/custom_models.h | <gh_stars>100-1000
#ifndef _CUSTOM_MODELS_H_
#define _CUSTOM_MODELS_H_
void CustomModel_EditLinkToCustomTunic(void* linkCMB);
void CustomModel_EditChildLinkToCustomTunic(void* linkCMB);
void CustomModel_EditHeartContainerToDoubleDefense(void* heartContainerCMB);
void CustomModel_ApplyColorEditsToSmallKey(void* smallKe... |
in1tiate/OoT3D_Randomizer | code/include/3ds/os.h | <filename>code/include/3ds/os.h<gh_stars>100-1000
/**
* @file os.h
* @brief OS related stuff.
*/
#pragma once
#include "svc.h"
#define SYSCLOCK_SOC (16756991)
#define SYSCLOCK_ARM9 (SYSCLOCK_SOC * 8)
#define SYSCLOCK_ARM11 (SYSCLOCK_ARM9 * 2)
#define SYSCLOCK_ARM11_NEW (SYSCLOCK_ARM11 * 3)
#define C... |
in1tiate/OoT3D_Randomizer | code/include/3ds/extdata.h | <reponame>in1tiate/OoT3D_Randomizer
#ifndef _EXTDATA_H_
#define _EXTDATA_H_
#include "3ds/result.h"
#include "3ds/services/fs.h"
#define EXTDATA_MAXFILESIZE (1 << 20)
/**
* @brief Initializes the fs and srvpm services.
*/
Result extDataInit();
/**
* @brief Mounts the extData archive. Creates it first if it does ... |
in1tiate/OoT3D_Randomizer | code/src/ocarina.h | #ifndef _OCARINA_H_
#define _OCARINA_H_
#include "z3D/z3D.h"
#include "z3D/actors/z_item_ocarina.h"
void ItemOcarina_rInit(Actor* ocarina, GlobalContext* globalCtx);
void ItemOcarina_rDestroy(Actor* ocarina, GlobalContext* globalCtx);
void ItemOcarina_rDraw(Actor* ocarina, GlobalContext* globalCtx);
#endif //_OCARIN... |
in1tiate/OoT3D_Randomizer | code/src/darunia.c | <filename>code/src/darunia.c<gh_stars>100-1000
#include "z3D/z3D.h"
u32 EnDu_CheckRewardFlag(void) {
u32 flag = ((gSaveContext.eventChkInf[3] & 0x40) != 0);
gSaveContext.eventChkInf[3] |= 0x40;
return flag;
}
|
in1tiate/OoT3D_Randomizer | code/src/item00.h | #ifndef _ITEM00_H_
#define _ITEM00_H_
#include "z3D/z3D.h"
#include "z3D/actors/z_en_item00.h"
void EnItem00_rInit(Actor* item, GlobalContext* globalCtx);
void EnItem00_rDestroy(Actor* item, GlobalContext* globalCtx);
void EnItem00_rDraw(Actor* item, GlobalContext* globalCtx);
#endif //_ITEM00_H_
|
in1tiate/OoT3D_Randomizer | code/src/dungeon_rewards.c | <reponame>in1tiate/OoT3D_Randomizer<filename>code/src/dungeon_rewards.c
#include "z3D/z3D.h"
#include "dungeon_rewards.h"
u32 rDungeonRewardOverrides[LIGHT_MEDALLION + 1] = {
KOKIRI_EMERALD,
GORON_RUBY,
ZORA_SAPPHIRE,
FOREST_MEDALLION,
FIRE_MEDALLION,
WATER_MEDALLION,
SPIRIT_MEDAL... |
in1tiate/OoT3D_Randomizer | code/src/newcodeinfo.h | <reponame>in1tiate/OoT3D_Randomizer<filename>code/src/newcodeinfo.h
/*
* This file will (eventually) be automatically generated, following
* the method used by RicBent in the program Magikoopa
*/
#ifndef _NEWCODEINFO_H_
#define _NEWCODEINFO_H_
#define NEWCODE_OFFSET 0x005C7000 //TODO: this
#define NEWCODE_SIZE ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.