This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 92e89e25fb077a0389e86740879bdd7bbb99a3b8 Mon Sep 17 00:00:00 2001 | |
From: ITotalJustice <[email protected]> | |
Date: Mon, 25 Nov 2024 21:03:43 +0000 | |
Subject: [PATCH] fix wps | |
--- | |
source/wfc.c | 5 +++-- | |
1 file changed, 3 insertions(+), 2 deletions(-) | |
diff --git a/source/wfc.c b/source/wfc.c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct BufferedFileData { | |
u8 data[1024 * 64]; // configure size here. | |
s64 off; | |
s64 size; | |
}; | |
static BufferedFileData buffered; | |
size_t Source::ReadFile(void *_buffer, size_t read_size) { | |
auto dst = static_cast<u8*>(_buffer); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2008 Dolphin Emulator Project | |
// SPDX-License-Identifier: GPL-2.0-or-later | |
// based on: https://github.com/dolphin-emu/dolphin/blob/8d2a15be3f8f9e3f5bc1620cf11603b2a910bd56/Source/Core/AudioCommon/Mixer.cpp | |
#include "Mixer.h" | |
#include <algorithm> | |
#include <array> | |
#include <bit> | |
#include <cmath> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from ftplib import FTP | |
from io import BytesIO | |
# pip install python-slugify | |
from slugify import slugify | |
import argparse | |
import time | |
parser = argparse.ArgumentParser() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "png.h" | |
#include <stdbool.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <zlib.h> | |
static void crc32_to_buf(uint8_t* buf, const uint8_t* in, size_t len) { | |
const uint32_t c = crc32(0, in, len); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SDL_memory_map.h" | |
#include <SDL3/SDL.h> | |
// #include "SDL_internal.h" | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <errno.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct RingBuf | |
{ | |
uint32_t buf[8]; | |
uint32_t r_index; | |
uint32_t w_index; | |
}; | |
static void ringbuf_reset(struct RingBuf* ring) | |
{ | |
ring->r_index = ring->w_index; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "scheduler.h" | |
#include <stdbool.h> | |
#include <assert.h> | |
#ifndef SCHEDULER_UNUSED | |
#define SCHEDULER_UNUSED(x) (void)(x) | |
#endif // SCHEDULER_UNUSED | |
// this is the value that events are set to when disabled | |
enum { SCHEDULER_DISABLE_VALUE = INT_MAX }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-----------------------------------------------------------------------*/ | |
/* Low level disk I/O module SKELETON for FatFs (C)ChaN, 2019 */ | |
/*-----------------------------------------------------------------------*/ | |
/* If a working storage control module is available, it should be */ | |
/* attached to the FatFs via a glue function rather than modifying it. */ | |
/* This is an example of glue functions to attach various exsisting */ | |
/* storage control modules to the FatFs module with a defined API. */ | |
/*-----------------------------------------------------------------------*/ | |
#include "ff.h" /* Obtains integer types */ |
NewerOlder