hexsha
stringlengths
40
40
size
int64
5
2.72M
ext
stringclasses
5 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
976
max_stars_repo_name
stringlengths
5
113
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringdate
2015-01-01 00:01:43
2022-03-31 23:59:48
max_stars_repo_stars_event_max_datetime
stringdate
2015-01-01 00:06:24
2022-03-31 23:59:53
max_issues_repo_path
stringlengths
3
976
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
float64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
976
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringdate
2015-01-01 00:01:19
2022-03-31 23:59:49
max_forks_repo_forks_event_max_datetime
stringdate
2015-01-03 12:00:57
2022-03-31 23:59:49
content
stringlengths
5
2.72M
avg_line_length
float64
1.38
573k
max_line_length
int64
2
1.01M
alphanum_fraction
float64
0
1
ebf7d17ded15a126048b2e25b54954756021a6ee
2,796
h
C
diagnostics/cros_healthd/network/network_health_adapter_impl.h
Toromino/chromiumos-platform2
97e6ba18f0e5ab6723f3448a66f82c1a07538d87
[ "BSD-3-Clause" ]
null
null
null
diagnostics/cros_healthd/network/network_health_adapter_impl.h
Toromino/chromiumos-platform2
97e6ba18f0e5ab6723f3448a66f82c1a07538d87
[ "BSD-3-Clause" ]
null
null
null
diagnostics/cros_healthd/network/network_health_adapter_impl.h
Toromino/chromiumos-platform2
97e6ba18f0e5ab6723f3448a66f82c1a07538d87
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2020 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef DIAGNOSTICS_CROS_HEALTHD_NETWORK_NETWORK_HEALTH_ADAPTER_IMPL_H_ #define DIAGNOSTICS_CROS_HEALTHD_NETWORK_NETWORK_HEALTH_ADAPTER_IMPL_H_ #include <string> #include <base/memory/weak_ptr.h> #include <mojo/public/cpp/bindings/pending_remote.h> #include <mojo/public/cpp/bindings/receiver.h> #include <mojo/public/cpp/bindings/remote.h> #include <mojo/public/cpp/bindings/remote_set.h> #include "diagnostics/cros_healthd/network/network_health_adapter.h" #include "diagnostics/mojom/external/network_health.mojom.h" namespace diagnostics { // Production implementation of the NetworkHealthAdapter. class NetworkHealthAdapterImpl final : public NetworkHealthAdapter, public chromeos::network_health::mojom::NetworkEventsObserver { public: NetworkHealthAdapterImpl(); NetworkHealthAdapterImpl(const NetworkHealthAdapterImpl&) = delete; NetworkHealthAdapterImpl& operator=(const NetworkHealthAdapterImpl&) = delete; ~NetworkHealthAdapterImpl() override; // NetworkHealthAdapterInterface overrides: void GetNetworkHealthState(FetchNetworkStateCallback callback) override; void SetServiceRemote( mojo::PendingRemote<chromeos::network_health::mojom::NetworkHealthService> remote) override; void AddObserver(mojo::PendingRemote< chromeos::network_health::mojom::NetworkEventsObserver> observer) override; bool ServiceRemoteBound() override; private: // network_health::mojom::NetworkEventsObserver overrides: void OnConnectionStateChanged( const std::string& guid, chromeos::network_health::mojom::NetworkState state) override; void OnSignalStrengthChanged( const std::string& guid, chromeos::network_health::mojom::UInt32ValuePtr signal_strength) override; // Each observer in |observers_| will be notified of any network event in // the chromeos::network_health::mojom::NetworkEventsObserver interface. // The RemoteSet manages the lifetime of the endpoints, which are // automatically destroyed and removed when the pipe they are bound to is // destroyed. mojo::RemoteSet<chromeos::network_health::mojom::NetworkEventsObserver> observers_; mojo::Remote<chromeos::network_health::mojom::NetworkHealthService> network_health_remote_; mojo::Receiver<chromeos::network_health::mojom::NetworkEventsObserver> network_events_observer_receiver_{this}; // Must be the last member of the class. base::WeakPtrFactory<NetworkHealthAdapterImpl> weak_factory_{this}; }; } // namespace diagnostics #endif // DIAGNOSTICS_CROS_HEALTHD_NETWORK_NETWORK_HEALTH_ADAPTER_IMPL_H_
39.942857
80
0.783619
ebfa2213b0acae50f2edb4a5b87fe4f673e7c7c1
1,918
c
C
web/charting/d3/d3ng/src/modules/hm/hmm.c
orri93/experimental
04a8000ec1f5d605651826fc399ba4354a1cdcdf
[ "Apache-2.0" ]
null
null
null
web/charting/d3/d3ng/src/modules/hm/hmm.c
orri93/experimental
04a8000ec1f5d605651826fc399ba4354a1cdcdf
[ "Apache-2.0" ]
null
null
null
web/charting/d3/d3ng/src/modules/hm/hmm.c
orri93/experimental
04a8000ec1f5d605651826fc399ba4354a1cdcdf
[ "Apache-2.0" ]
null
null
null
#include <assert.h> #include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <SDL.h> #include <SDL_main.h> #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif #include <modules/hm.h> #define GOS_D3NG_MD_HM_MESSAGE_SIZE 1024 #define GHM_DEMO_X 200 #define GHM_DEMO_Y 200 #define GHM_DEMO_WIDTH 600 #define GHM_DEMO_HEIGHT 400 #define GHM_DEMO_TITLE "GOS Heatmap" static goshm context; #ifdef __EMSCRIPTEN__ int main(int argc, char** argv) { printf("Initialize the GOS WASM Heatmap\n"); ghm_initialize(&context, GHM_DEMO_WIDTH, GHM_DEMO_HEIGHT); ghm_parse_argument(&context, argc, argv); if (ghm_create(&context, GHM_DEMO_X, GHM_DEMO_Y, GHM_DEMO_TITLE)) { if (ghm_create_texture(&context)) { if (!ghm_draw(&context)) { ghm_shutdown(&context); return EXIT_FAILURE; } } else { ghm_shutdown(&context); return EXIT_FAILURE; } } else { return EXIT_FAILURE; } return EXIT_SUCCESS; } EMSCRIPTEN_KEEPALIVE void shift() { printf("Shift the GOS WASM Heatmap\n"); if (ghm_shift(&context)) { ghm_draw(&context); } } EMSCRIPTEN_KEEPALIVE void shutdown() { printf("Shutting down the GOS WASM Heatmap\n"); ghm_shutdown(&context); } #else /* __EMSCRIPTEN__ */ int main(int argc, char** argv) { ghm_initialize(&context, GHM_DEMO_WIDTH, GHM_DEMO_HEIGHT); ghm_parse_argument(&context, argc, argv); if (ghm_create(&context, GHM_DEMO_X, GHM_DEMO_Y, GHM_DEMO_TITLE)) { if (ghm_create_texture(&context)) { if (!ghm_draw(&context)) { ghm_shutdown(&context); return EXIT_FAILURE; } } else { ghm_shutdown(&context); return EXIT_FAILURE; } if (!ghm_loop(&context)) { ghm_shutdown(&context); return EXIT_FAILURE; } ghm_shutdown(&context); return EXIT_SUCCESS; } else { return EXIT_FAILURE; } } #endif /* __EMSCRIPTEN__ */
20.623656
69
0.67414
ebfc1cb0c23819b40ac980fdf655eb7e1f2d44e1
10,542
c
C
rfs_server_src/rfs_transports.c
amit08thakare/Elua
e104a9adf3dcafe6f871191ac008cd438a189c0a
[ "MIT" ]
641
2015-01-02T04:41:47.000Z
2022-03-31T03:15:13.000Z
rfs_server_src/rfs_transports.c
amit08thakare/Elua
e104a9adf3dcafe6f871191ac008cd438a189c0a
[ "MIT" ]
58
2015-03-11T08:05:27.000Z
2021-12-31T11:49:55.000Z
rfs_server_src/rfs_transports.c
darren1713/elua
c280894885218858806b68cf04fbafa66a52c36a
[ "MIT" ]
237
2015-01-04T07:49:39.000Z
2022-03-11T03:31:35.000Z
// Remote FS server #include "net.h" #include "remotefs.h" #include "eluarpc.h" #include "rfs_serial.h" #include "server.h" #include "type.h" #include "log.h" #include "os_io.h" #include <stdio.h> #include <limits.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include "rfs.h" #include "deskutils.h" #include "rfs_transports.h" // **************************************************************************** // Local variables u8 rfs_buffer[ MAX_PACKET_SIZE + ELUARPC_WRITE_REQUEST_EXTRA ]; const RFS_TRANSPORT_DATA *p_transport_data; // **************************************************************************** // Serial transport implementation static ser_handler ser; static void flush_serial() { // Flush all data in serial port while( ser_read_byte( ser, SER_NO_TIMEOUT ) != -1 ); } // Read a packet from the serial port static void ser_read_request_packet() { u16 temp16; u32 readbytes; while( 1 ) { // First read the length if( ( readbytes = ser_read( ser, rfs_buffer, ELUARPC_START_OFFSET, SER_INF_TIMEOUT ) ) != ELUARPC_START_OFFSET ) { log_msg( "read_request_packet: ERROR reading packet length. Requested %d bytes, got %d bytes\n", ELUARPC_START_OFFSET, readbytes ); flush_serial(); continue; } if( eluarpc_get_packet_size( rfs_buffer, &temp16 ) == ELUARPC_ERR ) { log_msg( "read_request_packet: ERROR getting packet size.\n" ); flush_serial(); continue; } // Then the rest of the data if( ( readbytes = ser_read( ser, rfs_buffer + ELUARPC_START_OFFSET, temp16 - ELUARPC_START_OFFSET, SER_INF_TIMEOUT ) ) != temp16 - ELUARPC_START_OFFSET ) { log_msg( "read_request_packet: ERROR reading full packet, got %u bytes, expected %u bytes\n", ( unsigned )readbytes, ( unsigned )temp16 - ELUARPC_START_OFFSET ); flush_serial(); continue; } else break; } } // Send a packet to the serial port static void ser_send_response_packet() { u16 temp16; // Send request if( eluarpc_get_packet_size( rfs_buffer, &temp16 ) != ELUARPC_ERR ) { log_msg( "send_response_packet: sending response packet of %u bytes\n", ( unsigned )temp16 ); ser_write( ser, rfs_buffer, temp16 ); } } static int ser_server_init( const char *portname, int serspeed, int flow ) { // Setup serial port if( ( ser = ser_open( portname ) ) == SER_HANDLER_INVALID ) { log_err( "Cannot open port %s\n", portname ); return 0; } if( ser_setup( ser, ( u32 )serspeed, SER_DATABITS_8, SER_PARITY_NONE, SER_STOPBITS_1, flow ) != SER_OK ) { log_err( "Unable to initialize serial port\n" ); return 0; } flush_serial(); // User report log_msg( "Running RFS server on serial port %s (%u baud).\n", portname, ( unsigned )serspeed ); return 1; } static void ser_cleanup() { ser_close( ser ); } const RFS_TRANSPORT_DATA ser_transport_data = { ser_read_request_packet, ser_send_response_packet, ser_cleanup }; // **************************************************************************** // UDP transport implementation static NET_SOCKET trans_socket = INVALID_SOCKET_VALUE; static struct sockaddr_in trans_from; // Helper: read (blocking) the specified number of bytes static void udp_read_helper( u8 *dest, u32 size ) { socklen_t fromlen; int readbytes; while( size ) { fromlen = sizeof( trans_from ); readbytes = net_recvfrom( trans_socket, ( char* )dest, size, 0, ( struct sockaddr* )&trans_from, &fromlen, NET_INF_TIMEOUT ); size -= readbytes; if( size == 0 ) break; dest += readbytes; } } static void udp_read_request_packet() { u16 temp16; while( 1 ) { // First read the length udp_read_helper( rfs_buffer, ELUARPC_START_OFFSET ); if( eluarpc_get_packet_size( rfs_buffer, &temp16 ) == ELUARPC_ERR ) { log_msg( "read_request_packet: ERROR getting packet size.\n" ); continue; } // Then the rest of the data udp_read_helper( rfs_buffer + ELUARPC_START_OFFSET, temp16 - ELUARPC_START_OFFSET ); break; } } static void udp_send_response_packet() { u16 temp16; // Send request if( eluarpc_get_packet_size( rfs_buffer, &temp16 ) != ELUARPC_ERR ) { log_msg( "send_response_packet: sending response packet of %u bytes\n", ( unsigned )temp16 ); net_sendto( trans_socket, ( char* )rfs_buffer, temp16, 0, ( struct sockaddr* )&trans_from, sizeof( trans_from ) ); } } static int udp_server_init( unsigned server_port ) { int length; struct sockaddr_in server; if( ( trans_socket = net_create_socket( AF_INET, SOCK_DGRAM, 0 ) ) == INVALID_SOCKET_VALUE ) { log_err( "Unable to create socket\n" ); return 1; } length = sizeof( server ); memset( &server, 0, sizeof( server ) ); server.sin_family = AF_INET; server.sin_addr.s_addr = INADDR_ANY; server.sin_port = htons( server_port ); if( bind( net_socket( trans_socket ), ( struct sockaddr * )&server, length ) < 0 ) { log_err( "Unable to bind socket\n" ); return 0; } log_msg( "Running RFS server on UDP port %u.\n", ( unsigned )server_port ); return 1; } static void udp_cleanup() { net_close( trans_socket ); } const RFS_TRANSPORT_DATA udp_transport_data = { udp_read_request_packet, udp_send_response_packet, udp_cleanup }; // **************************************************************************** // Memory transport implementation // Read state machine enum { MEM_STATE_READ_LENGTH, MEM_STATE_READ_REQUEST, MEM_STATE_REQUEST_DONE }; static int mem_read_len; static int mem_expected_len; static int mem_read_state; static int mem_response_flag; void rfs_mem_start_request() { mem_read_state = MEM_STATE_READ_LENGTH; mem_read_len = mem_expected_len = 0; mem_response_flag = 0; } int rfs_mem_read_request_packet( int c ) { u16 temp16; int res = 1; if( c == -1 ) { rfs_mem_start_request(); return 0; } switch( mem_read_state ) { case MEM_STATE_READ_LENGTH: rfs_buffer[ mem_read_len ++ ] = c; if( mem_read_len == ELUARPC_START_OFFSET ) { mem_read_len = 0; if( eluarpc_get_packet_size( rfs_buffer, &temp16 ) == ELUARPC_ERR ) { log_msg( "RFS read_request_packet: ERROR getting packet size.\n" ); mem_read_state = MEM_STATE_REQUEST_DONE; res = 0; } else { mem_read_state = MEM_STATE_READ_REQUEST; mem_expected_len = temp16 - ELUARPC_START_OFFSET; } } break; case MEM_STATE_READ_REQUEST: rfs_buffer[ ELUARPC_START_OFFSET + mem_read_len ] = c; mem_read_len ++; if( mem_read_len == mem_expected_len ) { mem_read_state = MEM_STATE_REQUEST_DONE; mem_response_flag = 1; } break; } return res; } int rfs_mem_has_response() { return mem_response_flag; } void rfs_mem_write_response( u16 *plen, u8 **pdata ) { // Execute request server_execute_request( rfs_buffer ); // Send response if( eluarpc_get_packet_size( rfs_buffer, plen ) != ELUARPC_ERR ) { log_msg( "send_response_packet: sending response packet of %u bytes\n", ( unsigned )*plen ); *pdata = rfs_buffer; } else { log_msg( "ERROR in send_response_packet!\n" ); *plen = 0; } } static int mem_server_init() { rfs_mem_start_request(); log_msg( "RFS: using memory transport.\n" ); return 1; } const RFS_TRANSPORT_DATA mem_transport_data = { NULL, NULL, NULL }; // **************************************************************************** // Helper functions // Transport parser static int parse_transport_and_init( const char* s ) { const char *c, *c2; char *temps, *tempb; long tempi = 0; int flow; if( strstr( s, "ser:" ) == s ) { p_transport_data = &ser_transport_data; s += strlen( "ser:" ); if( ( c = strchr( s, ',' ) ) == NULL ) { log_err( "Invalid serial transport syntax\n" ); return 0; } temps = l_strndup( s, c - s ); if( ( c2 = strchr( c + 1, ',' ) ) == NULL ) { log_err( "Invalid serial transport syntax.\n" ); return 0; } tempb = l_strndup( c + 1, c2 - c - 1 ); if( secure_atoi( tempb, &tempi ) == 0 ) { log_err( "Invalid port speed\n" ); return 0; } free( tempb ); if( !strcmp( c2 + 1, "none" ) ) flow = SER_FLOW_NONE; else if( !strcmp( c2 + 1, "rtscts" ) ) flow = SER_FLOW_RTSCTS; else { log_err( "Invalid flow control type.\n" ); return 0; } tempi = ser_server_init( temps, tempi, flow ); free( temps ); return tempi; } else if( strstr( s, "udp:" ) == s ) { p_transport_data = &udp_transport_data; s += strlen( "udp:" ); if( secure_atoi( s, &tempi ) == 0 ) { log_err( "Invalid port number\n" ); return 0; } if( net_init() == 0 ) { log_err( "Unable to initialize network\n" ); return 0; } return udp_server_init( tempi ); } else if( !strcmp( s, "mem" ) ) { // Direct memory transport, only used with mux in rfsmux mode p_transport_data = &mem_transport_data; return mem_server_init( tempi ); } log_err( "Error: unsupported transport\n" ); return 0; } // ***************************************************************************** // Entry point #define TRANSPORT_ARG_IDX 1 #define DIRNAME_ARG_IDX 2 #define VERBOSE_ARG_IDX 3 #define MIN_ARGC_COUNT 3 #define VERBOSE_ARGC_COUNT 4 int rfs_init( int argc, const char **argv ) { setvbuf( stdout, NULL, _IONBF, 0 ); if( argc < MIN_ARGC_COUNT ) { log_err( "Usage: %s <transport> <dirname> [-v]\n", argv[ 0 ] ); log_err( " Serial transport: 'ser:<sername>,<serspeed>,<flow> ('flow' defines the flow control and can be either 'none' or 'rtscts')\n" ); log_err( " UDP transport: 'udp:<port>'\n" ); log_err( "Use -v for verbose output.\n" ); return 1; } if( ( argc >= VERBOSE_ARGC_COUNT ) && !strcmp( argv[ VERBOSE_ARG_IDX ], "-v" ) ) log_init( LOG_ALL ); else log_init( LOG_NONE ); if( !os_isdir( argv[ DIRNAME_ARG_IDX ] ) ) { log_err( "Invalid directory %s\n", argv[ DIRNAME_ARG_IDX ] ); return 1; } if( parse_transport_and_init( argv[ TRANSPORT_ARG_IDX ] ) == 0 ) return 1; // Setup RFS server server_setup( argv[ DIRNAME_ARG_IDX ] ); log_msg( "Sharing directory %s\n", argv[ DIRNAME_ARG_IDX ] ); return 0; }
25.463768
167
0.615538
ebfd4dcefc76bcdbceddab42136f8484c79ea047
1,019
c
C
runtime/rt_dttmqr.c
zhuangsc/Plasma-ompss1
bcc99c164a256bc7df7c936b9c43afd38c12aea2
[ "BSD-3-Clause" ]
null
null
null
runtime/rt_dttmqr.c
zhuangsc/Plasma-ompss1
bcc99c164a256bc7df7c936b9c43afd38c12aea2
[ "BSD-3-Clause" ]
null
null
null
runtime/rt_dttmqr.c
zhuangsc/Plasma-ompss1
bcc99c164a256bc7df7c936b9c43afd38c12aea2
[ "BSD-3-Clause" ]
null
null
null
#include "runtime.h" void RT_CORE_dttmqr(Quark *quark, Quark_Task_Flags *task_flags, PLASMA_enum side, PLASMA_enum trans, int m1, int n1, int m2, int n2, int k, int ib, int nb, double *A1, int lda1, double *A2, int lda2, const double *V, int ldv, const double *T, int ldt) { plasma_context_t *plasma; plasma = plasma_context_self(); if (plasma->runtime == PLASMA_QUARK) { QUARK_CORE_dttmqr( quark, task_flags, side, trans, m1, n1, m2, n2, k, ib, nb, A1, lda1, A2, lda2, V, ldv, T, ldt); } else if (plasma->runtime == PLASMA_OMPSS) { double *WORK = malloc(ib*nb*sizeof(double)); int ldwork; #pragma omp target device (smp) copy_deps #pragma omp task inout([nb*nb]A1, [nb*nb]A2) in([nb*nb]V, [ib*nb]T) label (dttmqr) CORE_dttmqr(side, trans, m1, n1, m2, n2, k, ib, A1, lda1, A2, lda2, V, ldv, T, ldt, WORK, ldwork); } }
30.878788
84
0.556428
ebfe421cda447dfe827a7c95ccdba957e50193de
6,691
c
C
src/mame/video/wiz.c
Zoltan45/Mame-mkp119
d219a3549eafb4215727c974e09e43b28d058328
[ "CC0-1.0" ]
null
null
null
src/mame/video/wiz.c
Zoltan45/Mame-mkp119
d219a3549eafb4215727c974e09e43b28d058328
[ "CC0-1.0" ]
null
null
null
src/mame/video/wiz.c
Zoltan45/Mame-mkp119
d219a3549eafb4215727c974e09e43b28d058328
[ "CC0-1.0" ]
null
null
null
/*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" static rectangle spritevisiblearea = { 2*8, 32*8-1, 2*8, 30*8-1 }; static rectangle spritevisibleareaflipx = { 0*8, 30*8-1, 2*8, 30*8-1 }; UINT8 *wiz_videoram2; UINT8 *wiz_colorram2; UINT8 *wiz_attributesram; UINT8 *wiz_attributesram2; static INT32 flipx, flipy; static INT32 bgpen; UINT8 *wiz_sprite_bank; static UINT8 char_bank[2]; static UINT8 palbank[2]; static int palette_bank; VIDEO_START( wiz ) { video_start_generic(machine); state_save_register_global_array(char_bank); state_save_register_global_array(palbank); state_save_register_global(flipx); state_save_register_global(flipy); state_save_register_global(bgpen); } /*************************************************************************** Convert the color PROMs into a more useable format. Stinger has three 256x4 palette PROMs (one per gun). The palette PROMs are connected to the RGB output this way: bit 3 -- 100 ohm resistor -- RED/GREEN/BLUE -- 220 ohm resistor -- RED/GREEN/BLUE -- 470 ohm resistor -- RED/GREEN/BLUE bit 0 -- 1 kohm resistor -- RED/GREEN/BLUE ***************************************************************************/ PALETTE_INIT( wiz ) { int i; for (i = 0;i < machine->drv->total_colors;i++) { int bit0,bit1,bit2,bit3,r,g,b; bit0 = (color_prom[0] >> 0) & 0x01; bit1 = (color_prom[0] >> 1) & 0x01; bit2 = (color_prom[0] >> 2) & 0x01; bit3 = (color_prom[0] >> 3) & 0x01; r = 0x0e * bit0 + 0x1f * bit1 + 0x42 * bit2 + 0x90 * bit3; bit0 = (color_prom[machine->drv->total_colors] >> 0) & 0x01; bit1 = (color_prom[machine->drv->total_colors] >> 1) & 0x01; bit2 = (color_prom[machine->drv->total_colors] >> 2) & 0x01; bit3 = (color_prom[machine->drv->total_colors] >> 3) & 0x01; g = 0x0e * bit0 + 0x1f * bit1 + 0x42 * bit2 + 0x90 * bit3; bit0 = (color_prom[2*machine->drv->total_colors] >> 0) & 0x01; bit1 = (color_prom[2*machine->drv->total_colors] >> 1) & 0x01; bit2 = (color_prom[2*machine->drv->total_colors] >> 2) & 0x01; bit3 = (color_prom[2*machine->drv->total_colors] >> 3) & 0x01; b = 0x0e * bit0 + 0x1f * bit1 + 0x42 * bit2 + 0x90 * bit3; palette_set_color(machine,i,MAKE_RGB(r,g,b)); color_prom++; } } WRITE8_HANDLER( wiz_attributes_w ) { if ((offset & 1) && wiz_attributesram[offset] != data) { int i; for (i = offset / 2;i < videoram_size;i += 32) { dirtybuffer[i] = 1; } } wiz_attributesram[offset] = data; } WRITE8_HANDLER( wiz_palettebank_w ) { if (palbank[offset] != (data & 1)) { palbank[offset] = data & 1; palette_bank = palbank[0] + 2 * palbank[1]; memset(dirtybuffer,1,videoram_size); } } WRITE8_HANDLER( wiz_bgcolor_w ) { bgpen = data; } WRITE8_HANDLER( wiz_char_bank_select_w ) { if (char_bank[offset] != (data & 1)) { char_bank[offset] = data & 1; memset(dirtybuffer,1,videoram_size); } } WRITE8_HANDLER( wiz_flipx_w ) { if (flipx != data) { flipx = data; memset(dirtybuffer, 1, videoram_size); } } WRITE8_HANDLER( wiz_flipy_w ) { if (flipy != data) { flipy = data; memset(dirtybuffer, 1, videoram_size); } } static void draw_background(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect, int bank, int colortype) { int offs; /* for every character in the Video RAM, check if it has been modified */ /* since last time and update it accordingly. */ for (offs = videoram_size - 1;offs >= 0;offs--) { int scroll,sx,sy,col; sx = offs % 32; sy = offs / 32; if (colortype) { col = (wiz_attributesram[2 * sx + 1] & 0x07); } else { col = (wiz_attributesram[2 * (offs % 32) + 1] & 0x04) + (videoram[offs] & 3); } scroll = (8*sy + 256 - wiz_attributesram[2 * sx]) % 256; if (flipy) { scroll = (248 - scroll) % 256; } if (flipx) sx = 31 - sx; drawgfx(bitmap,machine->gfx[bank], videoram[offs], col + 8 * palette_bank, flipx,flipy, 8*sx,scroll, cliprect,TRANSPARENCY_PEN,0); } } static void draw_foreground(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect, int colortype) { int offs; /* draw the frontmost playfield. They are characters, but draw them as sprites. */ for (offs = videoram_size - 1;offs >= 0;offs--) { int scroll,sx,sy,col; sx = offs % 32; sy = offs / 32; if (colortype) { col = (wiz_attributesram2[2 * sx + 1] & 0x07); } else { col = (wiz_colorram2[offs] & 0x07); } scroll = (8*sy + 256 - wiz_attributesram2[2 * sx]) % 256; if (flipy) { scroll = (248 - scroll) % 256; } if (flipx) sx = 31 - sx; drawgfx(bitmap,machine->gfx[char_bank[1]], wiz_videoram2[offs], col + 8 * palette_bank, flipx,flipy, 8*sx,scroll, cliprect,TRANSPARENCY_PEN,0); } } static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect, UINT8* sprite_ram, int bank) { int offs; for (offs = spriteram_size - 4;offs >= 0;offs -= 4) { int sx,sy; sx = sprite_ram[offs + 3]; sy = sprite_ram[offs]; if (!sx || !sy) continue; if ( flipx) sx = 240 - sx; if (!flipy) sy = 240 - sy; drawgfx(bitmap,machine->gfx[bank], sprite_ram[offs + 1], (sprite_ram[offs + 2] & 0x07) + 8 * palette_bank, flipx,flipy, sx,sy, cliprect,TRANSPARENCY_PEN,0); } } VIDEO_UPDATE( kungfut ) { fillbitmap(bitmap,machine->pens[bgpen],cliprect); draw_background(machine, bitmap, cliprect, 2 + char_bank[0] , 0); draw_foreground(machine, bitmap, cliprect, 0); draw_sprites(machine, bitmap, cliprect, spriteram_2, 4); draw_sprites(machine, bitmap, cliprect, spriteram , 5); return 0; } VIDEO_UPDATE( wiz ) { int bank; const rectangle* visible_area; fillbitmap(bitmap,machine->pens[bgpen],cliprect); draw_background(machine, bitmap, cliprect, 2 + ((char_bank[0] << 1) | char_bank[1]), 0); draw_foreground(machine, bitmap, cliprect, 0); visible_area = flipx ? &spritevisibleareaflipx : &spritevisiblearea; bank = 7 + *wiz_sprite_bank; draw_sprites(machine, bitmap, visible_area, spriteram_2, 6); draw_sprites(machine, bitmap, visible_area, spriteram , bank); return 0; } VIDEO_UPDATE( stinger ) { fillbitmap(bitmap,machine->pens[bgpen],cliprect); draw_background(machine, bitmap, cliprect, 2 + char_bank[0], 1); draw_foreground(machine, bitmap, cliprect, 1); draw_sprites(machine, bitmap, cliprect, spriteram_2, 4); draw_sprites(machine, bitmap, cliprect, spriteram , 5); return 0; }
22.155629
126
0.626364
23015f918bea3aacf7c09550726ce4b43a03959a
1,043
c
C
test/itostr-4.c
jakobbg/dateutils
9cee261089908f0e3592916ffbbf6dcbf63f22c9
[ "BSD-3-Clause" ]
441
2015-01-03T02:38:08.000Z
2022-03-31T11:21:31.000Z
test/itostr-4.c
jakobbg/dateutils
9cee261089908f0e3592916ffbbf6dcbf63f22c9
[ "BSD-3-Clause" ]
107
2015-01-12T22:46:58.000Z
2022-03-08T12:20:28.000Z
test/itostr-4.c
jakobbg/dateutils
9cee261089908f0e3592916ffbbf6dcbf63f22c9
[ "BSD-3-Clause" ]
37
2015-03-04T08:46:14.000Z
2022-03-05T12:32:03.000Z
#include <stdio.h> #include "strops.h" #include "nifty.h" int main(void) { static char buf[32U]; buf[ui999999999tostr(buf, 32U, 0U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 32U, 1U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 32U, 1234U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 32U, 12345678U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 32U, 123456789U)] = '\0'; puts(buf); puts(""); buf[ui999999999tostr(buf, 6U, 0U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 6U, 1000U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 6U, 123400U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 6U, 12345678U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 6U, 123456789U)] = '\0'; puts(buf); puts(""); buf[ui999999999tostr(buf, 3U, 0U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 3U, 1U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 3U, 1234U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 3U, 12345678U)] = '\0'; puts(buf); buf[ui999999999tostr(buf, 3U, 123456789U)] = '\0'; puts(buf); return 0; }
21.729167
52
0.628955
2306afd5eefd880f3bc6f507b1d33a652143d9f2
6,709
h
C
ArduCor/ArduCorProtocols.h
timsee/RGB-LED-Routines
2c1939dbdf6140fb0aab1b6a0028b3f5f1e7e9a8
[ "MIT" ]
6
2018-07-10T13:41:19.000Z
2020-05-17T19:08:18.000Z
ArduCor/ArduCorProtocols.h
timsee/RGB-LED-Routines
2c1939dbdf6140fb0aab1b6a0028b3f5f1e7e9a8
[ "MIT" ]
2
2018-10-16T07:09:23.000Z
2019-08-13T23:23:28.000Z
ArduCor/ArduCorProtocols.h
timsee/RGB-LED-Routines
2c1939dbdf6140fb0aab1b6a0028b3f5f1e7e9a8
[ "MIT" ]
2
2018-06-18T01:30:43.000Z
2018-10-16T10:28:40.000Z
/*! * \file ArduCorProtocols.h * \version v3.0.0 * \date April 14, 2018 * \author Tim Seemann * \copyright <a href="https://github.com/timsee/ArduCor/blob/master/LICENSE"> * MIT License * </a> * * This file defines the protocols used for the sample sketches. * * This file also gets copied to other projects as part of integrating with this project. For example, * the [Corluma](https://github.com/timsee/Corluma) project has a C++ version of this file. If packets * between the two projects seem mixed up, check that the version of the Corluma App you are using * matches the version of the your ArduCor library. * * Protocol Version: 3.3 * */ /*! * \enum ERoutine Each routine makes the LEDs shine in different ways. There are * two main types of routines: Single Color Routines use a single color while Multi * Color Routines rely on an EPalette. */ enum ERoutine { /*! * <b>0</b><br> * <i>Shows a single color at a fixed brightness.</i> */ eSingleSolid, /*! * <b>1</b><br> * <i>Alternates between showing a single color at a fixed * brightness and turning the LEDs completely off.</i> */ eSingleBlink, /*! * <b>2</b><br> * <i>Linear fade of the brightness of the LEDs.</i> */ eSingleWave, /*! * <b>3</b><br> * <i>Randomly dims some of the LEDs to give a glimmer effect.</i> */ eSingleGlimmer, /*! * <b>4</b><br> * <i>Fades the brightness in and out of the LEDs. Takes a parameter of either * 0 or 1. If its 0, it fades linearly. If its 1, it fades using a sine wave, so less time * in the mid range of brightness and more time in the full and very dim light.</i> */ eSingleFade, /*! * <b>5</b><br> * <i>fades in or out using a sawtooth function. Takes a parameter of either 0 or * 1. If its 0, it starts off and fades to full brightness. If its 1, it starts at full * brightness and fades to zero. The fade is linear. </i> */ eSingleSawtoothFade, /*! * <b>6</b><br> * <i> Uses the first color of the array as the base color * and uses the other colors for a glimmer effect.</i> */ eMultiGlimmer, /*! * <b>7</b><br> * <i>Fades slowly between each color in the array.</i> */ eMultiFade, /*! * <b>8</b><br> * <i>Chooses a random color from the array and lights all * all LEDs to match that color.</i> */ eMultiRandomSolid, /*! * <b>9</b><br> * <i>Chooses a random color from the array for each * individual LED.</i> */ eMultiRandomIndividual, /*! * <b>10</b><br> * <i>Draws the colors of the array in alternating * groups of equal size. On each update, it moves those * groups one index to the right, creating a scrolling * effect.</i> */ eMultiBars, eRoutine_MAX //total number of modes }; /*! * \enum EPalette used during multi color routines to determine * which colors to use in the routine. eCustom uses the custom * color array, eAll generates its colors randomly. All * other values use presets based around overall themes. */ enum EPalette { /*! * <b>0</b><br> * <i>Use the custom color array instead of a preset group.</i> */ eCustom, /*! * <b>1</b><br> * <i>Shades of blue with some teal.</i> */ eWater, /*! * <b>2</b><br> * <i>Shades of teal with some blue, white, and light purple.</i> */ eFrozen, /*! * <b>3</b><br> * <i>Shades of white with some blue and teal.</i> */ eSnow, /*! * <b>4</b><br> * <i>Based on the cool colors: blue, green, and purple.</i> */ eCool, /*! * <b>5</b><br> * <i>Based on the warm colors: red, orange, and yellow.</i> */ eWarm, /*! * <b>6</b><br> * <i>Similar to the warm set, but with an emphasis on oranges to * give it a fire-like glow.</i> */ eFire, /*! * <b>7</b><br> * <i>Mostly red, with some other, evil highlights.</i> */ eEvil, /*! * <b>8</b><br> * <i>Greens and whites, similar to radioactive goo from * a 90s kids cartoon.</i> */ eCorrosive, /*! * <b>9</b><br> * <i>A purple-based theme. Similar to poison vials from * a 90s kids cartoon.</i> */ ePoison, /*! * <b>10</b><br> * <i>Shades of pink, red, and white.</i> */ eRose, /*! * <b>11</b><br> * <i>The colors of watermelon candy. bright pinks * and bright green.</i> */ ePinkGreen, /*! * <b>12</b><br> * <i>Bruce Springsteen's favorite color scheme, good ol' * red, white, and blue.</i> */ eRedWhiteBlue, /*! * <b>13</b><br> * <i>red, green, and blue.</i> */ eRGB, /*! * <b>14</b><br> * <i>Cyan, magenta, yellow.</i> */ eCMY, /*! * <b>15</b><br> * <i>Red, yellow, green, cyan, blue, magenta.</i> */ eSixColor, /*! * <b>16</b><br> * <i>Red, yellow, green, cyan, blue, magenta, white.</i> */ eSevenColor, ePalette_MAX //total number of presets }; /*! * \enum EPacketHeader Message headers for packets coming over serial. */ enum EPacketHeader { /*! * <b>0</b><br> * <i>Takes one parameter, 0 turns off, 1 turns on.</i> */ eOnOffChange, /*! * <b>1</b><br> * <i>Takes multiple parameters depending on the use case. Changes the lighting routine * currently getting displayed.</i> */ eModeChange, /*! * <b>2</b><br> * <i>Takes four parameters. The first is the index of the custom color, * the remaining three parameters are a 0-255 representation * of Red, Green, and Blue.</i> */ eCustomArrayColorChange, /*! * <b>3</b><br> * <i>Takes one parameter, sets the palette brightness between 0 and 100. Used only in multi * color routines and ignored in single routines. </i> */ eBrightnessChange, /*! * <b>4</b><br> * <i>Change the number of colors used in a custom array routine.</i> */ eCustomColorCountChange, /*! * <b>5</b><br> * <i>Set to 0 to turn off, set to any other number minutes until * idle timeout happens.</i> */ eIdleTimeoutChange, /*! * <b>6</b><br> * <i>Sends back a packet that contains basic LED state information.</i> */ eStateUpdateRequest, /*! * <b>7</b><br> * <i>Sends back a packet that contains the size of the custom array and all of the colors in it. </i> */ eCustomArrayUpdateRequest, ePacketHeader_MAX //total number of Packet Headers };
26.413386
104
0.573409
2306cac19991fb86430e6f9d697fe27e5e3e567a
458
h
C
examples/04_module/01_bank/savings_account.h
acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-MahdevGiri
91322930bedf6897b6244c778c707231560ccb15
[ "MIT" ]
null
null
null
examples/04_module/01_bank/savings_account.h
acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-MahdevGiri
91322930bedf6897b6244c778c707231560ccb15
[ "MIT" ]
null
null
null
examples/04_module/01_bank/savings_account.h
acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-MahdevGiri
91322930bedf6897b6244c778c707231560ccb15
[ "MIT" ]
null
null
null
#ifndef SAVINGS_ACCOUNT_H #define SAVINGS_ACCOUNT_H #include"bank_account.h" class SavingsAccount : public BankAccount { public: SavingsAccount(int act, double bal, float i = .9) : // optional parameter BankAccount(act, bal), interest_rate(i) {} // initializing BankAccount object - not local variables void add_interest_earned(); double get_balance(); private: const float interest_rate; const float time = 1.0 / 12.0; }; #endif //SAVINGS_ACCOUNT_H
26.941176
101
0.762009
230877760355ca300d71a8f8aa261a867780c6c7
657
h
C
src/UI/HumanInforamtionViewController/HumanInformationView.h
aleksiy805/PersonnelMVCExample
e7b30abc71e90e24b6495b04dbd80c7f3bc7f575
[ "Apache-2.0" ]
null
null
null
src/UI/HumanInforamtionViewController/HumanInformationView.h
aleksiy805/PersonnelMVCExample
e7b30abc71e90e24b6495b04dbd80c7f3bc7f575
[ "Apache-2.0" ]
null
null
null
src/UI/HumanInforamtionViewController/HumanInformationView.h
aleksiy805/PersonnelMVCExample
e7b30abc71e90e24b6495b04dbd80c7f3bc7f575
[ "Apache-2.0" ]
null
null
null
// // HumanInformationView.h // PersonnelMVCExample // // Created by Alexey Nikolaev on 1/18/15. // Copyright (c) 2015 Alexey Nikolaev. All rights reserved. // #import <UIKit/UIKit.h> @interface HumanInformationView : UIView @property (nonatomic, weak) IBOutlet UILabel *firstNameLabel; @property (nonatomic, weak) IBOutlet UILabel *lastNameLabel; @property (nonatomic, weak) IBOutlet UILabel *positionLabel; @property (nonatomic, weak) IBOutlet UILabel *carLabel; @property (nonatomic, weak) IBOutlet UILabel *noPhotoLabel; @property (nonatomic, weak) IBOutlet UIImageView *photoImageView; - (void)showNoPhotoLabel; @end
28.565217
66
0.736682
230c99e3537b1d9c151b8f9b9ad753b282342b09
7,679
h
C
src/Lex00.h
2kranki/libCmn
4f9db4c9c8e2dff64e1c741dc1c11e9f3b5d07ce
[ "Unlicense" ]
2
2017-03-23T15:23:56.000Z
2021-03-04T09:54:54.000Z
src/Lex00.h
2kranki/libCmn
4f9db4c9c8e2dff64e1c741dc1c11e9f3b5d07ce
[ "Unlicense" ]
null
null
null
src/Lex00.h
2kranki/libCmn
4f9db4c9c8e2dff64e1c741dc1c11e9f3b5d07ce
[ "Unlicense" ]
null
null
null
// vi:nu:et:sts=4 ts=4 sw=4 //**************************************************************** // White-Space and EOL Lexical Scanner (Lex00) Header //**************************************************************** /* * Program * White-Space and EOL Lexical Scanner (Lex00) * Purpose * This object serves as a filter to convert all white- * space or end-of-lines optionally into appropriate * tokens. * * This filter can be used to accumulate white-space into * one output token or to just remove all white-space from * the input. The same is true for end-of-line (EOL) tokens. * * Remarks * 1. The default is to remove white-space and EOL tokens * from the input stream. * * History * 05/30/2020 Generated and merged logic from pplex2 */ /* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to <http://unlicense.org/> */ #include <cmn_defs.h> #include <AStr.h> #include <Lex.h> #ifndef LEX00_H #define LEX00_H //#define LEX00_IS_IMMUTABLE 1 //#define LEX00_JSON_SUPPORT 1 //#define LEX00_SINGLETON 1 #ifdef __cplusplus extern "C" { #endif //**************************************************************** //* * * * * * * * * * * * Data Definitions * * * * * * * * * * * //**************************************************************** typedef struct Lex00_data_s LEX00_DATA; // Inherits from Lex typedef struct Lex00_class_data_s LEX00_CLASS_DATA; // Inherits from OBJ typedef struct Lex00_vtbl_s { OBJ_IUNKNOWN iVtbl; // Inherited Vtbl. // Put other methods below this as pointers and add their // method names to the vtbl definition in Lex00_object.c. // Properties: // Methods: //bool (*pIsEnabled)(LEX00_DATA *); } LEX00_VTBL; typedef struct Lex00_class_vtbl_s { OBJ_IUNKNOWN iVtbl; // Inherited Vtbl. // Put other methods below this as pointers and add their // method names to the vtbl definition in Lex00_object.c. // Properties: // Methods: //bool (*pIsEnabled)(LEX00_DATA *); } LEX00_CLASS_VTBL; // The following defines the flags for the scanner. The first eigth flags // should be reserved for this object. Inheriting object may use the rest. // These flags are used with the Flags property: typedef enum Lex00_Flags_e { LEX00_FLAG_UNKNOWN=0, LEX00_FLAG_RETURN_NL=0x00400000, // New-Line LEX00_FLAG_RETURN_WS=0x00200000, // Accumulated White-Space excluding // // New-Lines } LEX00_FLAGS; /**************************************************************** * * * * * * * * * * * Routine Definitions * * * * * * * * * * * ****************************************************************/ //--------------------------------------------------------------- // *** Class Methods *** //--------------------------------------------------------------- #ifdef LEX00_SINGLETON LEX00_DATA * Lex00_Shared ( void ); void Lex00_SharedReset ( void ); #endif /*! Allocate a new Object and partially initialize. Also, this sets an indicator that the object was alloc'd which is tested when the object is released. @return pointer to Lex00 object if successful, otherwise OBJ_NIL. */ LEX00_DATA * Lex00_Alloc ( void ); OBJ_ID Lex00_Class ( void ); LEX00_DATA * Lex00_New ( void ); #ifdef LEX00_JSON_SUPPORT LEX00_DATA * Lex00_NewFromJsonString ( ASTR_DATA *pString ); LEX00_DATA * Lex00_NewFromJsonStringA ( const char *pStringA ); #endif //--------------------------------------------------------------- // *** Properties *** //--------------------------------------------------------------- LEX_DATA * Lex00_getLex( LEX00_DATA *this ); /*! @property NL - true == return NL tokens */ bool Lex00_getNL( LEX00_DATA *this ); bool Lex00_setNL( LEX00_DATA *this, bool value ); /*! @property WS - true == return White-Space tokens */ bool Lex00_getWS( LEX00_DATA *this ); bool Lex00_setWS( LEX00_DATA *this, bool value ); //--------------------------------------------------------------- // *** Methods *** //--------------------------------------------------------------- ERESULT Lex00_Disable ( LEX00_DATA *this ); ERESULT Lex00_Enable ( LEX00_DATA *this ); LEX00_DATA * Lex00_Init ( LEX00_DATA *this ); ERESULT Lex00_IsEnabled ( LEX00_DATA *this ); #ifdef LEX00_JSON_SUPPORT /*! Create a string that describes this object and the objects within it in HJSON formt. (See hjson object for details.) Example: @code ASTR_DATA *pDesc = Lex00_ToJson(this); @endcode @param this object pointer @return If successful, an AStr object which must be released containing the JSON text, otherwise OBJ_NIL. @warning Remember to release the returned AStr object. */ ASTR_DATA * Lex00_ToJson ( LEX00_DATA *this ); #endif /*! Create a string that describes this object and the objects within it. Example: @code ASTR_DATA *pDesc = Lex00_ToDebugString(this,4); @endcode @param this object pointer @param indent number of characters to indent every line of output, can be 0 @return If successful, an AStr object which must be released containing the description, otherwise OBJ_NIL. @warning Remember to release the returned AStr object. */ ASTR_DATA * Lex00_ToDebugString ( LEX00_DATA *this, int indent ); #ifdef __cplusplus } #endif #endif /* LEX00_H */
27.722022
88
0.528454
230c9fb8724d6341d50d8abe2cb5e7707950d9ec
1,683
h
C
System/Library/PrivateFrameworks/StoreKitUI.framework/SKUIStackViewItemView.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
2
2021-11-02T09:23:27.000Z
2022-03-28T08:21:57.000Z
System/Library/PrivateFrameworks/StoreKitUI.framework/SKUIStackViewItemView.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
null
null
null
System/Library/PrivateFrameworks/StoreKitUI.framework/SKUIStackViewItemView.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
1
2022-03-28T08:21:59.000Z
2022-03-28T08:21:59.000Z
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:36:48 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/StoreKitUI.framework/StoreKitUI * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. Updated by Kevin Bradley. */ #import <StoreKitUI/StoreKitUI-Structs.h> #import <UIKitCore/UIView.h> @class UIColor, UIImage; @interface SKUIStackViewItemView : UIView { UIColor* _borderColor; UIImage* _image; BOOL _shouldFlipImageHorizontal; BOOL _shouldFlipImageVertical; } @property (nonatomic,copy) UIColor * borderColor; //@synthesize borderColor=_borderColor - In the implementation block @property (nonatomic,retain) UIImage * image; //@synthesize image=_image - In the implementation block @property (assign,nonatomic) BOOL shouldFlipImageHorizontal; //@synthesize shouldFlipImageHorizontal=_shouldFlipImageHorizontal - In the implementation block @property (assign,nonatomic) BOOL shouldFlipImageVertical; //@synthesize shouldFlipImageVertical=_shouldFlipImageVertical - In the implementation block -(UIImage *)image; -(void)setImage:(UIImage *)arg1 ; -(void)setBorderColor:(UIColor *)arg1 ; -(void)drawRect:(CGRect)arg1 ; -(UIColor *)borderColor; -(void)setShouldFlipImageHorizontal:(BOOL)arg1 ; -(void)setShouldFlipImageVertical:(BOOL)arg1 ; -(BOOL)shouldFlipImageHorizontal; -(BOOL)shouldFlipImageVertical; @end
44.289474
170
0.691622
230cd52d06dccf71acfd9e1320f381a258941270
571
h
C
16bsearch/binary_search/binary_search/BSearch.h
mingyuefly/geekTimeCode
d97c5f29a429ac9cc7289ac34e049ea43fa58822
[ "MIT" ]
1
2019-05-01T04:51:14.000Z
2019-05-01T04:51:14.000Z
16bsearch/binary_search/binary_search/BSearch.h
mingyuefly/geekTimeCode
d97c5f29a429ac9cc7289ac34e049ea43fa58822
[ "MIT" ]
null
null
null
16bsearch/binary_search/binary_search/BSearch.h
mingyuefly/geekTimeCode
d97c5f29a429ac9cc7289ac34e049ea43fa58822
[ "MIT" ]
null
null
null
// // BSearch.h // binary_search // // Created by Gguomingyue on 2019/4/15. // Copyright © 2019 Gmingyue. All rights reserved. // #ifndef BSearch_h #define BSearch_h #include <stdio.h> #include <stdlib.h> #include <assert.h> /*二分查找算法的变形问题 *1、查找第一个等于给定数值的元素 *2、查找最后一个等于给定数值的元素 *3、查找第一个大于等于给定数值的元素 *4、查找最后一个小于等于给定数值的元素 * */ int bsearch_firt(int a[], int size, int value); int bsearch_last(int a[], int size, int value); int bsearch_first_bigger(int a[], int size, int value); int bsearch_last_smaller(int a[], int size, int value); #endif /* BSearch_h */
17.30303
55
0.704028
230df33b12406ce890f3f772c8d6583483cb65b7
439
h
C
instructions/SkipIfKeyPressed.h
kylefriel/tater-chip-8
90536a19be2d0be5cae7fe577dcf28f17e327be3
[ "MIT" ]
null
null
null
instructions/SkipIfKeyPressed.h
kylefriel/tater-chip-8
90536a19be2d0be5cae7fe577dcf28f17e327be3
[ "MIT" ]
null
null
null
instructions/SkipIfKeyPressed.h
kylefriel/tater-chip-8
90536a19be2d0be5cae7fe577dcf28f17e327be3
[ "MIT" ]
null
null
null
#include <cstdint> #include "InstructionBase.h" #ifndef _SKIPIFKEYPRESSED_ #define _SKIPIFKEYPRESSED_ class SkipIfKeyPressed: public InstructionBase { public: SkipIfKeyPressed(uint16_t opcode); virtual void Execute(Chip8* chip8); virtual std::string GetClassName() {return typeid(*this).name();}; protected: uint8_t theReg; private: SkipIfKeyPressed() {}; }; #endif
19.954545
74
0.658314
230fa582459f8f58e78064abe87edf729e493abc
5,767
h
C
smartcity/videoanalysis/videoanalysisapp/pedestrian_attr_inference/pedestrian_attr_inference.h
swxEmily/ascenddk
f9973f535cafb69052a460df2545e5389fe566b0
[ "BSD-3-Clause" ]
null
null
null
smartcity/videoanalysis/videoanalysisapp/pedestrian_attr_inference/pedestrian_attr_inference.h
swxEmily/ascenddk
f9973f535cafb69052a460df2545e5389fe566b0
[ "BSD-3-Clause" ]
2
2019-01-02T07:31:23.000Z
2019-03-05T13:11:36.000Z
smartcity/videoanalysis/videoanalysisapp/pedestrian_attr_inference/pedestrian_attr_inference.h
swxEmily/ascenddk
f9973f535cafb69052a460df2545e5389fe566b0
[ "BSD-3-Clause" ]
1
2019-03-20T07:59:44.000Z
2019-03-20T07:59:44.000Z
/** * ============================================================================ * * Copyright (C) 2018, Hisilicon Technologies Co., Ltd. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1 Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2 Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3 Neither the names of the copyright holders nor the names of the * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * ============================================================================ */ #ifndef PEDESTRIAN_ATTR_INFERENCE_H_ #define PEDESTRIAN_ATTR_INFERENCE_H_ #include "video_analysis_params.h" #include "hiaiengine/api.h" #include "hiaiengine/ai_model_manager.h" #include "hiaiengine/ai_types.h" #include "hiaiengine/data_type.h" #include "hiaiengine/engine.h" #include "hiaiengine/multitype_queue.h" #include "hiaiengine/data_type_reg.h" #include "hiaiengine/ai_tensor.h" #include "ascenddk/ascend_ezdvpp/dvpp_process.h" #define INPUT_SIZE 2 #define OUTPUT_SIZE 1 class PedestrianAttrInference : public hiai::Engine { public: /** * @brief PedestrianAttrInference constructor */ PedestrianAttrInference() : input_que_(INPUT_SIZE - 1) { batch_size_ = kDefaultBatchSize; } /** * @brief current engine initialize function * @param [in] config: hiai engine config * @param [in] model_desc: hiai AI model description * @return HIAI_OK: initialize success; HIAI_ERROR:initialize failed */ HIAI_StatusT Init(const hiai::AIConfig &config, const std::vector<hiai::AIModelDescription> &model_desc); /** * @brief HIAI_DEFINE_PROCESS : override Engine Process logic * @param [in] INPUT_SIZE: the input size of engine * @param [in] OUTPUT_SIZE: the output size of engine */ HIAI_DEFINE_PROCESS(INPUT_SIZE, OUTPUT_SIZE) private: const int kDefaultBatchSize = 1; // default batch size int batch_size_; // model inference batch size // used for cache the input queue hiai::MultiTypeQueue input_que_; // used for AI model manage std::shared_ptr<hiai::AIModelManager> ai_model_manager_; /** * @brief batch resize image * @param [in] batch_image_input: batch input images * @param [out] batch_image_output: batch out images */ void BatchImageResize( std::shared_ptr<BatchCroppedImageParaT> &batch_image_input, std::shared_ptr<BatchCroppedImageParaT> &batch_image_output); /** * @brief send result data to next engine * @param [in] tran_data: the data used for transmit * @return HIAI_OK: send success; HIAI_ERROR:send failed */ HIAI_StatusT SendResultData( const std::shared_ptr<BatchPedestrianInfoT> &tran_data); /** * @brief send result data to next engine * @param [in] image_handle: the image data after resized * @param [in] tran_data: the data used for transmit * @return HIAI_OK: batch inference success; HIAI_ERROR:batch inference failed */ HIAI_StatusT BatchInferenceProcess( const std::shared_ptr<BatchCroppedImageParaT> &image_handle, std::shared_ptr<BatchPedestrianInfoT> tran_data); /** * @brief send result data to next engine * @param [in] image_handle: the image data after resized * @param [in] batch_buffer: used for record image data * @return HIAI_OK: batch construct success; HIAI_ERROR:batch construct failed */ bool ConstructBatchBuffer( int i, const std::shared_ptr<BatchCroppedImageParaT> &image_handle, uint8_t* batch_buffer); /** * @brief construct inference result * @param [in] output_data_vec: the vector used for record output data * @param [in] batch_index: batch index * @param [in] image_handle: the image data after resized * @param [out] tran_data: the data used for transmit * @return true: construct result success; HIAI_ERROR: construct result failed */ bool ConstructInferenceResult( const std::vector<std::shared_ptr<hiai::IAITensor>> &output_data_vec, int batch_index, const std::shared_ptr<BatchCroppedImageParaT> &image_handle, const std::shared_ptr<BatchPedestrianInfoT> &tran_data); /** * @brief extract valid pedestrian attribute confidence * @param [in] batch_result_index: batch result index * @param [out] out_data: the out put data * @param [in] result: the result of each pedestrian attribute confidence */ void ExtractResults(int batch_result_index, PedestrianInfoT &out_data, float* &result); }; #endif /* PEDESTRIAN_ATTR_INFERENCE_H_ */
38.446667
80
0.715797
23104f67afe45a4d21316d0cf5c2e2b77a7e66d6
5,872
h
C
ios/dist/ViroRenderer/x86_64/ViroKit.framework/Headers/VROAction.h
ascorbic/viro
1e7527944d0063bed1b20bec64ee1b425d1a2eaf
[ "MIT" ]
null
null
null
ios/dist/ViroRenderer/x86_64/ViroKit.framework/Headers/VROAction.h
ascorbic/viro
1e7527944d0063bed1b20bec64ee1b425d1a2eaf
[ "MIT" ]
null
null
null
ios/dist/ViroRenderer/x86_64/ViroKit.framework/Headers/VROAction.h
ascorbic/viro
1e7527944d0063bed1b20bec64ee1b425d1a2eaf
[ "MIT" ]
null
null
null
// // VROAction.h // ViroRenderer // // Created by Raj Advani on 1/12/16. // Copyright © 2016 Viro Media. All rights reserved. // #ifndef VROAction_h #define VROAction_h #include <stdio.h> #include <functional> #include "VROTime.h" #include "VROTimingFunction.h" class VRONode; static const int VROActionRepeatForever = -1; enum class VROActionType { PerFrame, Timed, Animated }; enum class VROActionDurationType { Count, Seconds }; /* Actions are callbacks that can be set to run on VRONodes. They can be used to animate properties of nodes, or to set repeating actions. */ class VROAction : public std::enable_shared_from_this<VROAction> { public: /* For per-frame actions, the given function will be run once per frame. These will run either perpetually, or for the given number of frames or actions. */ static std::shared_ptr<VROAction> perpetualPerFrameAction(std::function<bool(VRONode *const, float)> action); static std::shared_ptr<VROAction> repeatedPerFrameActionFrames(std::function<bool(VRONode *const, float)> action, int repeatCount); static std::shared_ptr<VROAction> repeatedPerFrameActionSeconds(std::function<bool(VRONode *const, float)> action, float duration); /* For timed actions, the given function will be run each frame until the given number of seconds. The function takes a variable t that runs from [0,1] over the course of the duration, transformed by the provided timing function. */ static std::shared_ptr<VROAction> timedAction(std::function<void(VRONode *const, float)> action, VROTimingFunctionType timingFunction, float duration); /* For animated actions, the given function will be run once, within a VROTransaction configured to use the given timing function and duration. These are merely helper functions that sit over the VROTransaction animation framework. */ static std::shared_ptr<VROAction> perpetualAnimatedAction(std::function<void(VRONode *const)> action, VROTimingFunctionType timingFunction, float duration); static std::shared_ptr<VROAction> repeatedAnimatedAction(std::function<void(VRONode *const)> action, VROTimingFunctionType timingFunction, float duration, int repeatCount); VROAction(VROActionType type, VROActionDurationType durationType) : _type(type), _durationType(durationType), _executed(false), _aborted(false) {} virtual ~VROAction() {} VROActionType getType() const { return _type; } float getDuration() const { return _duration; } bool shouldRepeat() const { if (_aborted) { return false; } else if (_durationType == VROActionDurationType::Count) { return _repeatCount > 0 || _repeatCount == VROActionRepeatForever; } else { return (VROTimeCurrentSeconds() - _startTime) < _duration; } } /* Internal: executes the action. */ virtual void execute(VRONode *node) = 0; protected: VROActionType _type; VROActionDurationType _durationType; /* True after the action has been executed at least once. */ bool _executed; /* Duration of the action, in seconds. Only valid for animated actions, defines the duration of *each* repetition of the animation. */ float _duration; /* The number of frames to repeat this action, or the number of seconds to repeat the action. */ int _repeatCount; float _repeatDuration; /* The time at which the action was first executed. */ float _startTime; /* True if the action was manually aborted by way of a callback returning false. */ bool _aborted; /* Internal: called bfore and after executing the action. Decrements repeat count. */ void preExecute(VRONode *node); void postExecute(VRONode *node); }; class VROActionPerFrame : public VROAction { public: VROActionPerFrame(std::function<bool(VRONode *const, float)> action, VROActionDurationType durationType) : VROAction(VROActionType::PerFrame, durationType), _action(action) {} virtual ~VROActionPerFrame() {} virtual void execute(VRONode *node); private: std::function<bool(VRONode *const, float)> _action; }; class VROActionTimed : public VROAction { public: VROActionTimed(std::function<void(VRONode *const, float)> action, VROTimingFunctionType timingFunctionType) : VROAction(VROActionType::Timed, VROActionDurationType::Seconds), _action(action), _timingFunction(VROTimingFunction::forType(timingFunctionType)) {} virtual ~VROActionTimed() {} virtual void execute(VRONode *node); private: std::function<void(VRONode *const, float)> _action; std::unique_ptr<VROTimingFunction> _timingFunction; }; class VROActionAnimated : public VROAction { public: VROActionAnimated(std::function<void(VRONode *const)> action, VROTimingFunctionType timingFunctionType) : VROAction(VROActionType::Animated, VROActionDurationType::Count), _action(action), _timingFunctionType(timingFunctionType) {} virtual ~VROActionAnimated() {} virtual void execute(VRONode *node); private: std::function<void(VRONode *const)> _action; VROTimingFunctionType _timingFunctionType; }; #endif /* VROAction_h */
30.583333
135
0.64765
231075a2d0e9709b669e6973ae37897864835f93
9,259
h
C
src/builtins/builtins-promise-gen.h
hienmv/v8
256604d99fb584d50e0d6b45337bae2c68f4cfa6
[ "BSD-3-Clause" ]
1
2019-05-21T13:21:59.000Z
2019-05-21T13:21:59.000Z
src/builtins/builtins-promise-gen.h
hienmv/v8
256604d99fb584d50e0d6b45337bae2c68f4cfa6
[ "BSD-3-Clause" ]
null
null
null
src/builtins/builtins-promise-gen.h
hienmv/v8
256604d99fb584d50e0d6b45337bae2c68f4cfa6
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_BUILTINS_BUILTINS_PROMISE_GEN_H_ #define V8_BUILTINS_BUILTINS_PROMISE_GEN_H_ #include "src/code-stub-assembler.h" #include "src/contexts.h" #include "src/objects/promise.h" #include "torque-generated/builtins-base-from-dsl-gen.h" namespace v8 { namespace internal { typedef compiler::CodeAssemblerState CodeAssemblerState; class PromiseBuiltinsAssembler : public CodeStubAssembler { public: enum PromiseResolvingFunctionContextSlot { // The promise which resolve/reject callbacks fulfill. kPromiseSlot = Context::MIN_CONTEXT_SLOTS, // Whether the callback was already invoked. kAlreadyResolvedSlot, // Whether to trigger a debug event or not. Used in catch // prediction. kDebugEventSlot, kPromiseContextLength, }; // TODO(bmeurer): Move this to a proper context map in contexts.h? // Similar to the AwaitContext that we introduced for await closures. enum PromiseAllResolveElementContextSlots { // Remaining elements count kPromiseAllResolveElementRemainingSlot = Context::MIN_CONTEXT_SLOTS, // Promise capability from Promise.all kPromiseAllResolveElementCapabilitySlot, // Values array from Promise.all kPromiseAllResolveElementValuesArraySlot, kPromiseAllResolveElementLength }; enum FunctionContextSlot { kCapabilitySlot = Context::MIN_CONTEXT_SLOTS, kCapabilitiesContextLength, }; // This is used by the Promise.prototype.finally builtin to store // onFinally callback and the Promise constructor. // TODO(gsathya): For native promises we can create a variant of // this without extra space for the constructor to save memory. enum PromiseFinallyContextSlot { kOnFinallySlot = Context::MIN_CONTEXT_SLOTS, kConstructorSlot, kPromiseFinallyContextLength, }; // This is used by the ThenFinally and CatchFinally builtins to // store the value to return or reason to throw. enum PromiseValueThunkOrReasonContextSlot { kValueSlot = Context::MIN_CONTEXT_SLOTS, kPromiseValueThunkOrReasonContextLength, }; explicit PromiseBuiltinsAssembler(compiler::CodeAssemblerState* state) : CodeStubAssembler(state) {} // These allocate and initialize a promise with pending state and // undefined fields. // // This uses undefined as the parent promise for the promise init // hook. Node* AllocateAndInitJSPromise(Node* context); // This uses the given parent as the parent promise for the promise // init hook. Node* AllocateAndInitJSPromise(Node* context, Node* parent); // This allocates and initializes a promise with the given state and // fields. Node* AllocateAndSetJSPromise(Node* context, v8::Promise::PromiseState status, Node* result); Node* AllocatePromiseReaction(Node* next, Node* promise_or_capability, Node* fulfill_handler, Node* reject_handler); Node* AllocatePromiseReactionJobTask(RootIndex map_root_index, Node* context, Node* argument, Node* handler, Node* promise_or_capability); Node* AllocatePromiseReactionJobTask(Node* map, Node* context, Node* argument, Node* handler, Node* promise_or_capability); Node* AllocatePromiseResolveThenableJobTask(Node* promise_to_resolve, Node* then, Node* thenable, Node* context); std::pair<Node*, Node*> CreatePromiseResolvingFunctions( Node* promise, Node* native_context, Node* promise_context); Node* PromiseHasHandler(Node* promise); // Creates the context used by all Promise.all resolve element closures, // together with the values array. Since all closures for a single Promise.all // call use the same context, we need to store the indices for the individual // closures somewhere else (we put them into the identity hash field of the // closures), and we also need to have a separate marker for when the closure // was called already (we slap the native context onto the closure in that // case to mark it's done). Node* CreatePromiseAllResolveElementContext(Node* promise_capability, Node* native_context); Node* CreatePromiseAllResolveElementFunction(Node* context, TNode<Smi> index, Node* native_context); Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, Node* native_context); Node* CreatePromiseGetCapabilitiesExecutorContext(Node* native_context, Node* promise_capability); protected: void PromiseInit(Node* promise); void PromiseSetHasHandler(Node* promise); void PromiseSetHandledHint(Node* promise); void PerformPromiseThen(Node* context, Node* promise, Node* on_fulfilled, Node* on_rejected, Node* result_promise_or_capability); Node* CreatePromiseContext(Node* native_context, int slots); Node* TriggerPromiseReactions(Node* context, Node* promise, Node* result, PromiseReaction::Type type); // We can skip the "resolve" lookup on {constructor} if it's the (initial) // Promise constructor and the Promise.resolve() protector is intact, as // that guards the lookup path for the "resolve" property on the %Promise% // intrinsic object. void BranchIfPromiseResolveLookupChainIntact(Node* native_context, Node* constructor, Label* if_fast, Label* if_slow); void GotoIfNotPromiseResolveLookupChainIntact(Node* native_context, Node* constructor, Label* if_slow); // We can shortcut the SpeciesConstructor on {promise_map} if it's // [[Prototype]] is the (initial) Promise.prototype and the @@species // protector is intact, as that guards the lookup path for the "constructor" // property on JSPromise instances which have the %PromisePrototype%. void BranchIfPromiseSpeciesLookupChainIntact(Node* native_context, Node* promise_map, Label* if_fast, Label* if_slow); // We can skip the "then" lookup on {receiver_map} if it's [[Prototype]] // is the (initial) Promise.prototype and the Promise#then() protector // is intact, as that guards the lookup path for the "then" property // on JSPromise instances which have the (initial) %PromisePrototype%. void BranchIfPromiseThenLookupChainIntact(Node* native_context, Node* receiver_map, Label* if_fast, Label* if_slow); Node* InvokeResolve(Node* native_context, Node* constructor, Node* value, Label* if_exception, Variable* var_exception); template <typename... TArgs> Node* InvokeThen(Node* native_context, Node* receiver, TArgs... args); void BranchIfAccessCheckFailed(Node* context, Node* native_context, Node* promise_constructor, Node* executor, Label* if_noaccess); std::pair<Node*, Node*> CreatePromiseFinallyFunctions(Node* on_finally, Node* constructor, Node* native_context); Node* CreateValueThunkFunction(Node* value, Node* native_context); Node* CreateThrowerFunction(Node* reason, Node* native_context); Node* PerformPromiseAll( Node* context, Node* constructor, Node* capability, const BaseBuiltinsFromDSLAssembler::IteratorRecord& record, Label* if_exception, Variable* var_exception); void SetForwardingHandlerIfTrue(Node* context, Node* condition, const NodeGenerator& object); inline void SetForwardingHandlerIfTrue(Node* context, Node* condition, Node* object) { return SetForwardingHandlerIfTrue(context, condition, [object]() -> Node* { return object; }); } void SetPromiseHandledByIfTrue(Node* context, Node* condition, Node* promise, const NodeGenerator& handled_by); Node* PromiseStatus(Node* promise); void PromiseReactionJob(Node* context, Node* argument, Node* handler, Node* promise_or_capability, PromiseReaction::Type type); Node* IsPromiseStatus(Node* actual, v8::Promise::PromiseState expected); void PromiseSetStatus(Node* promise, v8::Promise::PromiseState status); Node* AllocateJSPromise(Node* context); }; } // namespace internal } // namespace v8 #endif // V8_BUILTINS_BUILTINS_PROMISE_GEN_H_
43.065116
80
0.656442
231254fa6322664b7b0c96fa29b5bd1537ba0aa7
4,794
c
C
release/src-rt-6.x.4708/router/samba3/source3/librpc/gen_ndr/ndr_scerpc_c.c
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
2
2019-01-13T09:16:31.000Z
2019-02-15T03:30:28.000Z
release/src-rt-6.x.4708/router/samba3/source3/librpc/gen_ndr/ndr_scerpc_c.c
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
null
null
null
release/src-rt-6.x.4708/router/samba3/source3/librpc/gen_ndr/ndr_scerpc_c.c
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
2
2020-03-08T01:58:25.000Z
2020-12-20T10:34:54.000Z
/* client functions auto-generated by pidl */ #include "includes.h" #include <tevent.h> #include "lib/util/tevent_ntstatus.h" #include "librpc/gen_ndr/ndr_scerpc.h" #include "librpc/gen_ndr/ndr_scerpc_c.h" /* scerpc - client functions generated by pidl */ struct dcerpc_scerpc_Unknown0_r_state { TALLOC_CTX *out_mem_ctx; }; static void dcerpc_scerpc_Unknown0_r_done(struct tevent_req *subreq); struct tevent_req *dcerpc_scerpc_Unknown0_r_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct dcerpc_binding_handle *h, struct scerpc_Unknown0 *r) { struct tevent_req *req; struct dcerpc_scerpc_Unknown0_r_state *state; struct tevent_req *subreq; req = tevent_req_create(mem_ctx, &state, struct dcerpc_scerpc_Unknown0_r_state); if (req == NULL) { return NULL; } state->out_mem_ctx = NULL; subreq = dcerpc_binding_handle_call_send(state, ev, h, NULL, &ndr_table_scerpc, NDR_SCERPC_UNKNOWN0, state, r); if (tevent_req_nomem(subreq, req)) { return tevent_req_post(req, ev); } tevent_req_set_callback(subreq, dcerpc_scerpc_Unknown0_r_done, req); return req; } static void dcerpc_scerpc_Unknown0_r_done(struct tevent_req *subreq) { struct tevent_req *req = tevent_req_callback_data(subreq, struct tevent_req); NTSTATUS status; status = dcerpc_binding_handle_call_recv(subreq); if (!NT_STATUS_IS_OK(status)) { tevent_req_nterror(req, status); return; } tevent_req_done(req); } NTSTATUS dcerpc_scerpc_Unknown0_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx) { struct dcerpc_scerpc_Unknown0_r_state *state = tevent_req_data(req, struct dcerpc_scerpc_Unknown0_r_state); NTSTATUS status; if (tevent_req_is_nterror(req, &status)) { tevent_req_received(req); return status; } talloc_steal(mem_ctx, state->out_mem_ctx); tevent_req_received(req); return NT_STATUS_OK; } NTSTATUS dcerpc_scerpc_Unknown0_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct scerpc_Unknown0 *r) { NTSTATUS status; status = dcerpc_binding_handle_call(h, NULL, &ndr_table_scerpc, NDR_SCERPC_UNKNOWN0, mem_ctx, r); return status; } struct dcerpc_scerpc_Unknown0_state { struct scerpc_Unknown0 orig; struct scerpc_Unknown0 tmp; TALLOC_CTX *out_mem_ctx; }; static void dcerpc_scerpc_Unknown0_done(struct tevent_req *subreq); struct tevent_req *dcerpc_scerpc_Unknown0_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct dcerpc_binding_handle *h) { struct tevent_req *req; struct dcerpc_scerpc_Unknown0_state *state; struct tevent_req *subreq; req = tevent_req_create(mem_ctx, &state, struct dcerpc_scerpc_Unknown0_state); if (req == NULL) { return NULL; } state->out_mem_ctx = NULL; /* In parameters */ /* Out parameters */ /* Result */ ZERO_STRUCT(state->orig.out.result); /* make a temporary copy, that we pass to the dispatch function */ state->tmp = state->orig; subreq = dcerpc_scerpc_Unknown0_r_send(state, ev, h, &state->tmp); if (tevent_req_nomem(subreq, req)) { return tevent_req_post(req, ev); } tevent_req_set_callback(subreq, dcerpc_scerpc_Unknown0_done, req); return req; } static void dcerpc_scerpc_Unknown0_done(struct tevent_req *subreq) { struct tevent_req *req = tevent_req_callback_data( subreq, struct tevent_req); struct dcerpc_scerpc_Unknown0_state *state = tevent_req_data( req, struct dcerpc_scerpc_Unknown0_state); NTSTATUS status; TALLOC_CTX *mem_ctx; if (state->out_mem_ctx) { mem_ctx = state->out_mem_ctx; } else { mem_ctx = state; } status = dcerpc_scerpc_Unknown0_r_recv(subreq, mem_ctx); TALLOC_FREE(subreq); if (!NT_STATUS_IS_OK(status)) { tevent_req_nterror(req, status); return; } /* Copy out parameters */ /* Copy result */ state->orig.out.result = state->tmp.out.result; /* Reset temporary structure */ ZERO_STRUCT(state->tmp); tevent_req_done(req); } NTSTATUS dcerpc_scerpc_Unknown0_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, WERROR *result) { struct dcerpc_scerpc_Unknown0_state *state = tevent_req_data( req, struct dcerpc_scerpc_Unknown0_state); NTSTATUS status; if (tevent_req_is_nterror(req, &status)) { tevent_req_received(req); return status; } /* Steal possible out parameters to the callers context */ talloc_steal(mem_ctx, state->out_mem_ctx); /* Return result */ *result = state->orig.out.result; tevent_req_received(req); return NT_STATUS_OK; } NTSTATUS dcerpc_scerpc_Unknown0(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, WERROR *result) { struct scerpc_Unknown0 r; NTSTATUS status; /* In parameters */ status = dcerpc_scerpc_Unknown0_r(h, mem_ctx, &r); if (!NT_STATUS_IS_OK(status)) { return status; } /* Return variables */ /* Return result */ *result = r.out.result; return NT_STATUS_OK; }
22.937799
114
0.754068
23126e2b413ff5eaf84ba88fa09d167230dcb06a
3,310
h
C
Code/RendererGL/render_context_gl.h
wkigen/WingEngine
5f0da3b26e11977d0205ecbd6e093c5846f26210
[ "MIT" ]
2
2018-01-17T08:03:02.000Z
2018-02-22T14:23:38.000Z
Code/RendererGL/render_context_gl.h
wkigen/WingEngine
5f0da3b26e11977d0205ecbd6e093c5846f26210
[ "MIT" ]
null
null
null
Code/RendererGL/render_context_gl.h
wkigen/WingEngine
5f0da3b26e11977d0205ecbd6e093c5846f26210
[ "MIT" ]
null
null
null
#ifndef _WING_RENDERERGL_RENDERER_CONTEXT_GL_H_ #define _WING_RENDERERGL_RENDERER_CONTEXT_GL_H_ #include <GL/glew.h> #include "GL\wglew.h" #include "renderer\renderer_context.h" #include "renderer\renderable.h" using namespace WingEngine; namespace WingRendererGL { class RendererContextGL :public WingEngine::RendererContext { public: RendererContextGL(); virtual ~RendererContextGL(); virtual bool create(void* windowHandle, uint32 width, uint32 height); virtual void destroy() = 0; virtual void swapBuffers() = 0; virtual void clear(); virtual uint32 WETType2TType(TextureID textureId); virtual uint32 WEDType2DType(DataElementType dataElementType); virtual uint32 WETFormat2TFormat(TextureFormat textureFormat); virtual uint32 WECFormat2CFormat(ColorFormat colorType); virtual uint32 WETFormat2TFormat(TextureType textureType); virtual uint32 WEAPoint2APoint(AttachmentPoint attachmentPoint); virtual SmartPtr<Program> createProgram(std::string name, std::string vs, std::string fs); virtual void activityTexture(TextureID textureId); virtual void bingSubDataBuffer(uint32 bufferId, uint64 size, void* data); virtual int32 bindStaticArrayBuffers(uint64 size, void* data); virtual int32 bindDynamicArrayBuffers(uint64 size, void* data); virtual int32 bindElementBuffers(uint64 size, void* data); virtual int32 bindTextureBuffers(TextureFormat textureFormat,uint32 width, uint32 height, ColorFormat format, DataElementType dataType, void* pixels); virtual int32 bindRenderTarget(AttachmentPoint attachmenPoiont, TextureType textureType, uint32 width, uint32 height, uint32 textureId); virtual void getTextureData(uint32 textureId, ColorFormat format, DataElementType dataType, void* pixels); virtual void bindArrayBuffers(uint32 bufferId); virtual void bindElementBuffers(uint32 bufferId); virtual void bindTexture(uint32 bufferId); virtual void deleteTexture(uint32 bufferId); virtual void bindRenderTarget(uint32 renderTarget); virtual void enableDepth(bool enable); virtual void enableVertexAttribArray(uint32 location); virtual void disableVertexAttribArray(); virtual int32 getAttribLocation(int32 programId, std::string name); virtual void vertexAttribPointer(uint32 location, uint32 size, bool normalized, uint32 stride, void* pointer); virtual int32 getUniformLocation(int32 programId, std::string name); virtual void setUniform1d(int32 location, int32 data); virtual void setUniform1dv(int32 location, uint32 count, int32* data); virtual void setUniform1f(int32 location, real one); virtual void setUniform1fv(int32 location,uint32 count , real* data); virtual void setUniform2f(int32 location, real one, real two); virtual void setUniform2fv(int32 location, uint32 count, real* data); virtual void setUniform3f(int32 location, real one, real two, real three); virtual void setUniform3fv(int32 location, uint32 count, real* data); virtual void setUniform3f(int32 location, Vectorf v); virtual void setUniform4f(int32 location, real one, real two, real three, real four); virtual void setUniform4fv(int32 location, uint32 count, real* data); virtual void setUniformMatrix44f(int32 location,int32 count, real* matrix); virtual void draw(uint32 count); }; } #endif
37.613636
152
0.792447
2312a87e9d7ab3714091aae84157806a80c2474d
10,855
h
C
src/tests/MessagingFixture.h
gcsideal/debian-qpid-cpp
e4d034036f29408f940805f5505ae62ce89650cc
[ "Apache-2.0" ]
null
null
null
src/tests/MessagingFixture.h
gcsideal/debian-qpid-cpp
e4d034036f29408f940805f5505ae62ce89650cc
[ "Apache-2.0" ]
null
null
null
src/tests/MessagingFixture.h
gcsideal/debian-qpid-cpp
e4d034036f29408f940805f5505ae62ce89650cc
[ "Apache-2.0" ]
null
null
null
#ifndef TESTS_MESSAGINGFIXTURE_H #define TESTS_MESSAGINGFIXTURE_H /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ #include "BrokerFixture.h" #include "unit_test.h" #include "test_tools.h" #include "qpid/client/Connection.h" #include "qpid/client/Session.h" #include "qpid/framing/Uuid.h" #include "qpid/messaging/Address.h" #include "qpid/messaging/Connection.h" #include "qpid/messaging/Session.h" #include "qpid/messaging/Sender.h" #include "qpid/messaging/Receiver.h" #include "qpid/messaging/Message.h" #include "qpid/types/Variant.h" namespace qpid { namespace tests { using qpid::types::Variant; struct BrokerAdmin { qpid::client::Connection connection; qpid::client::Session session; BrokerAdmin(uint16_t port) { connection.open("localhost", port); session = connection.newSession(); } void createQueue(const std::string& name) { session.queueDeclare(qpid::client::arg::queue=name); } void deleteQueue(const std::string& name) { session.queueDelete(qpid::client::arg::queue=name); } void createExchange(const std::string& name, const std::string& type) { session.exchangeDeclare(qpid::client::arg::exchange=name, qpid::client::arg::type=type); } void deleteExchange(const std::string& name) { session.exchangeDelete(qpid::client::arg::exchange=name); } bool checkQueueExists(const std::string& name) { return session.queueQuery(name).getQueue() == name; } bool checkExchangeExists(const std::string& name, std::string& type) { qpid::framing::ExchangeQueryResult result = session.exchangeQuery(name); type = result.getType(); return !result.getNotFound(); } void send(qpid::client::Message& message, const std::string& exchange=std::string()) { session.messageTransfer(qpid::client::arg::destination=exchange, qpid::client::arg::content=message); } ~BrokerAdmin() { session.close(); connection.close(); } }; struct MessagingFixture : public BrokerFixture { messaging::Connection connection; messaging::Session session; BrokerAdmin admin; MessagingFixture(Broker::Options opts = Broker::Options(), bool mgmtEnabled=false) : BrokerFixture(opts, mgmtEnabled), connection(open(broker->getPort(Broker::TCP_TRANSPORT))), session(connection.createSession()), admin(broker->getPort(Broker::TCP_TRANSPORT)) { } static messaging::Connection open(uint16_t port) { messaging::Connection connection( (boost::format("amqp:tcp:localhost:%1%") % (port)).str()); connection.open(); return connection; } /** Open a connection to the broker. */ qpid::messaging::Connection newConnection() { qpid::messaging::Connection connection( (boost::format("amqp:tcp:localhost:%1%") % (broker->getPort(qpid::broker::Broker::TCP_TRANSPORT))).str()); return connection; } void ping(const qpid::messaging::Address& address) { messaging::Receiver r = session.createReceiver(address); messaging::Sender s = session.createSender(address); messaging::Message out(framing::Uuid(true).str()); s.send(out); messaging::Message in; BOOST_CHECK(r.fetch(in, 5*messaging::Duration::SECOND)); BOOST_CHECK_EQUAL(out.getContent(), in.getContent()); r.close(); s.close(); } ~MessagingFixture() { session.close(); connection.close(); } }; struct QueueFixture : MessagingFixture { std::string queue; QueueFixture(const std::string& name = "test-queue") : queue(name) { admin.createQueue(queue); } ~QueueFixture() { admin.deleteQueue(queue); } }; struct TopicFixture : MessagingFixture { std::string topic; TopicFixture(const std::string& name = "test-topic", const std::string& type="fanout") : topic(name) { admin.createExchange(topic, type); } ~TopicFixture() { admin.deleteExchange(topic); } }; struct MultiQueueFixture : MessagingFixture { typedef std::vector<std::string>::const_iterator const_iterator; std::vector<std::string> queues; MultiQueueFixture(const std::vector<std::string>& names = boost::assign::list_of<std::string>("q1")("q2")("q3")) : queues(names) { for (const_iterator i = queues.begin(); i != queues.end(); ++i) { admin.createQueue(*i); } } ~MultiQueueFixture() { connection.close(); for (const_iterator i = queues.begin(); i != queues.end(); ++i) { admin.deleteQueue(*i); } } }; inline std::vector<std::string> fetch(messaging::Receiver& receiver, int count, messaging::Duration timeout=messaging::Duration::SECOND*5) { std::vector<std::string> data; messaging::Message message; for (int i = 0; i < count && receiver.fetch(message, timeout); i++) { data.push_back(message.getContent()); } return data; } inline void send(messaging::Sender& sender, uint count = 1, uint start = 1, const std::string& base = "Message") { for (uint i = start; i < start + count; ++i) { sender.send(messaging::Message((boost::format("%1%_%2%") % base % i).str())); } } inline void receive(messaging::Receiver& receiver, uint count = 1, uint start = 1, const std::string& base = "Message", messaging::Duration timeout=messaging::Duration::SECOND*5) { for (uint i = start; i < start + count; ++i) { BOOST_CHECK_EQUAL(receiver.fetch(timeout).getContent(), (boost::format("%1%_%2%") % base % i).str()); } } class MethodInvoker { public: MethodInvoker(messaging::Session& session) : replyTo("#; {create:always, node:{x-declare:{auto-delete:true}}}"), sender(session.createSender("qmf.default.direct/broker")), receiver(session.createReceiver(replyTo)) {} void createExchange(const std::string& name, const std::string& type, bool durable=false) { Variant::Map params; params["name"]=name; params["type"]="exchange"; params["properties"] = Variant::Map(); params["properties"].asMap()["exchange-type"] = type; params["properties"].asMap()["durable"] = durable; methodRequest("create", params); } void deleteExchange(const std::string& name) { Variant::Map params; params["name"]=name; params["type"]="exchange"; methodRequest("delete", params); } void createQueue(const std::string& name, bool durable=false, bool autodelete=false, const Variant::Map& options=Variant::Map()) { Variant::Map params; params["name"]=name; params["type"]="queue"; params["properties"] = options; params["properties"].asMap()["durable"] = durable; params["properties"].asMap()["auto-delete"] = autodelete; methodRequest("create", params); } void deleteQueue(const std::string& name) { Variant::Map params; params["name"]=name; params["type"]="queue"; methodRequest("delete", params); } void bind(const std::string& exchange, const std::string& queue, const std::string& key, const Variant::Map& options=Variant::Map()) { Variant::Map params; params["name"]=(boost::format("%1%/%2%/%3%") % (exchange) % (queue) % (key)).str(); params["type"]="binding"; params["properties"] = options; methodRequest("create", params); } void unbind(const std::string& exchange, const std::string& queue, const std::string& key) { Variant::Map params; params["name"]=(boost::format("%1%/%2%/%3%") % (exchange) % (queue) % (key)).str(); params["type"]="binding"; methodRequest("delete", params); } void methodRequest(const std::string& method, const Variant::Map& inParams, Variant::Map* outParams = 0) { Variant::Map content; Variant::Map objectId; objectId["_object_name"] = "org.apache.qpid.broker:broker:amqp-broker"; content["_object_id"] = objectId; content["_method_name"] = method; content["_arguments"] = inParams; messaging::Message request; request.setReplyTo(replyTo); request.getProperties()["x-amqp-0-10.app-id"] = "qmf2"; request.getProperties()["qmf.opcode"] = "_method_request"; encode(content, request); sender.send(request); messaging::Message response; if (receiver.fetch(response, messaging::Duration::SECOND*5)) { if (response.getProperties()["x-amqp-0-10.app-id"] == "qmf2") { std::string opcode = response.getProperties()["qmf.opcode"]; if (opcode == "_method_response") { if (outParams) { Variant::Map m; decode(response, m); *outParams = m["_arguments"].asMap(); } } else if (opcode == "_exception") { Variant::Map m; decode(response, m); throw Exception(QPID_MSG("Error: " << m["_values"])); } else { throw Exception(QPID_MSG("Invalid response received, unexpected opcode: " << opcode)); } } else { throw Exception(QPID_MSG("Invalid response received, not a qmfv2 message: app-id=" << response.getProperties()["x-amqp-0-10.app-id"])); } } else { throw Exception(QPID_MSG("No response received")); } } private: messaging::Address replyTo; messaging::Sender sender; messaging::Receiver receiver; }; }} // namespace qpid::tests #endif /*!TESTS_MESSAGINGFIXTURE_H*/
31.372832
138
0.608199
2313c99be8e05a19cfec6f7b376854ca1e457ee3
4,921
c
C
shell_cmds/path_helper/path_helper.c
OakCityLabs/ios_system
1d969735796066153ed214fbac4b3e59f3a676c0
[ "BSD-3-Clause" ]
700
2017-12-07T02:08:09.000Z
2022-03-31T06:42:56.000Z
shell_cmds/path_helper/path_helper.c
yury/ios_system
a56b915c54f42dfb00089a1d5d1217f95b8051aa
[ "BSD-3-Clause" ]
114
2018-01-10T20:12:21.000Z
2022-03-25T06:55:35.000Z
shell_cmds/path_helper/path_helper.c
yury/ios_system
a56b915c54f42dfb00089a1d5d1217f95b8051aa
[ "BSD-3-Clause" ]
134
2018-01-08T08:33:08.000Z
2022-03-24T11:51:27.000Z
/* * Copyright (c) 2008 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this * file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. * * @APPLE_LICENSE_HEADER_END@ */ #include <fts.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <limits.h> static void usage() { fprintf(stderr, "usage: path_helper [-c | -s]"); exit(1); } // Append path segment if it does not exist. Reallocate // the path buffer as necessary. int append_path_segment(char** path, const char* segment) { if (*path == NULL || segment == NULL) return -1; size_t pathlen = strlen(*path); size_t seglen = strlen(segment); if (seglen == 0) return 0; // Does the segment already exist in the path? // (^|:)segment(:|$) char* match = strstr(*path, segment); while (match) { if ((match == *path || match[-1] == ':') && (match[seglen] == ':' || match[seglen] == 0)) { return 0; } match = strstr(match+1, segment); } // size = pathlen + ':' + segment + '\0' size_t size = pathlen + seglen + 2; *path = reallocf(*path, size); if (*path == NULL) return -1; if (pathlen > 0) strlcat(*path, ":", size); strlcat(*path, segment, size); return 0; } // Convert fgetln output into a sanitized segment // escape quotes, dollars, etc. char* read_segment(const char* line, size_t len) { int escapes = 0; size_t i, j; for (i = 0; i < len; ++i) { char c = line[i]; if (c == '\"' || c == '\'' || c == '$') { ++escapes; } } size_t size = len + escapes + 1; char* segment = calloc(1, size); if (segment == NULL) return NULL; for (i = 0, j = 0; i < len; ++i, ++j) { char c = line[i]; if (c == '\"' || c == '\'' || c == '$') { segment[j++] = '\\'; segment[j] = c; } else if (c == '\n') { segment[j] = 0; break; } else { segment[j] = line[i]; } } return segment; } // Construct a path variable, starting with the contents // of the given environment variable, adding the contents // of the default file and files in the path directory. char* construct_path(char* env_var, char* defaults_path, char* dir_path) { FTS* fts; FTSENT* ent; char* result = calloc(sizeof(char), 1); char* dirpathv[] = { defaults_path, dir_path, NULL }; fts = fts_open(dirpathv, FTS_PHYSICAL | FTS_XDEV, NULL); if (!fts) { perror(dir_path); return NULL; } while ((ent = fts_read(fts)) != NULL) { // only interested in regular files, one level deep if (ent->fts_info != FTS_F) { if (ent->fts_level >= 1) fts_set(fts, ent, FTS_SKIP); continue; } FILE* f = fopen(ent->fts_accpath, "r"); if (f == NULL) { perror(ent->fts_accpath); continue; } for (;;) { size_t len; char* line = fgetln(f, &len); if (line == NULL) break; char* segment = read_segment(line, len); append_path_segment(&result, segment); } fclose(f); } fts_close(fts); // merge in any existing custom PATH elemenets char* str = getenv(env_var); if (str) str = strdup(str); while (str) { char* sep = strchr(str, ':'); if (sep) *sep = 0; append_path_segment(&result, str); if (sep) { str = sep + 1; } else { str = NULL; } } return result; } enum { STYLE_CSH, STYLE_SH }; int main(int argc, char* argv[]) { int style = STYLE_SH; if (argc > 2) usage(); // default to csh style, if $SHELL ends with "csh". char* shell = getenv("SHELL"); if (shell) { char* str = strstr(shell, "csh"); if (str) style = STYLE_CSH; } if (argc == 2 && strcmp(argv[1], "-c") == 0) style = STYLE_CSH; if (argc == 2 && strcmp(argv[1], "-s") == 0) style = STYLE_SH; char* path = construct_path("PATH", "/etc/paths", "/etc/paths.d"); char* manpath = NULL; // only adjust manpath if already set int do_manpath = (getenv("MANPATH") != NULL); if (do_manpath) { manpath = construct_path("MANPATH", "/etc/manpaths", "/etc/manpaths.d"); } if (style == STYLE_CSH) { printf("setenv PATH \"%s\";\n", path); if (do_manpath) printf("setenv MANPATH \"%s\";\n", manpath); } else { printf("PATH=\"%s\"; export PATH;\n", path); if (do_manpath) printf("MANPATH=\"%s\"; export MANPATH;\n", manpath); } return 0; }
24.361386
74
0.62406
231a0e83d17ea8a3eb9b86ab8686968d44e9ad56
7,296
h
C
L1Trigger/L1TNtuples/interface/L1AnalysisPhaseIIStep1DataFormat.h
vshang/cmssw
9f24a9ca36825fe2c1abe5f058c7982e24fe3a69
[ "Apache-2.0" ]
1
2019-08-01T15:24:15.000Z
2019-08-01T15:24:15.000Z
L1Trigger/L1TNtuples/interface/L1AnalysisPhaseIIStep1DataFormat.h
vshang/cmssw
9f24a9ca36825fe2c1abe5f058c7982e24fe3a69
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TNtuples/interface/L1AnalysisPhaseIIStep1DataFormat.h
vshang/cmssw
9f24a9ca36825fe2c1abe5f058c7982e24fe3a69
[ "Apache-2.0" ]
null
null
null
#ifndef __L1Analysis_L1AnalysisPhaseIIStep1DataFormat_H__ #define __L1Analysis_L1AnalysisPhaseIIStep1DataFormat_H__ //------------------------------------------------------------------------------- // Created 20/04/2010 - E. Conte, A.C. Le Bihan // // // Original code : UserCode/L1TriggerDPG/L1ExtraTreeProducer - Jim Brooke //------------------------------------------------------------------------------- #include <vector> namespace L1Analysis { struct L1AnalysisPhaseIIStep1DataFormat { L1AnalysisPhaseIIStep1DataFormat() { Reset(); }; ~L1AnalysisPhaseIIStep1DataFormat(){}; void Reset() { z0Puppi = 0; z0L1TkPV.clear(); sumL1TkPV.clear(); nL1TkPVs = 0; nCaloTaus = 0; caloTauEt.clear(); caloTauEta.clear(); caloTauPhi.clear(); caloTauIEt.clear(); caloTauIEta.clear(); caloTauIPhi.clear(); caloTauIso.clear(); caloTauBx.clear(); caloTauTowerIPhi.clear(); caloTauTowerIEta.clear(); caloTauRawEt.clear(); caloTauIsoEt.clear(); caloTauNTT.clear(); caloTauHasEM.clear(); caloTauIsMerged.clear(); caloTauHwQual.clear(); nPfPhase1L1Jets = 0; pfPhase1L1JetEt.clear(); pfPhase1L1JetEta.clear(); pfPhase1L1JetPhi.clear(); pfPhase1L1HT.clear(); pfPhase1L1MHTEt.clear(); pfPhase1L1MHTPhi.clear(); nPfPhase1L1MHT = 0; nEG = 0; EGEt.clear(); EGEta.clear(); EGPhi.clear(); EGBx.clear(); EGIso.clear(); EGzVtx.clear(); EGHwQual.clear(); EGHGC.clear(); EGPassesLooseTrackID.clear(); EGPassesPhotonID.clear(); nTkElectrons = 0; tkElectronEt.clear(); tkElectronEta.clear(); tkElectronPhi.clear(); tkElectronChg.clear(); tkElectronBx.clear(); tkElectronTrkIso.clear(); tkElectronzVtx.clear(); tkElectronHwQual.clear(); tkElectronEGRefPt.clear(); tkElectronEGRefEta.clear(); tkElectronEGRefPhi.clear(); tkElectronHGC.clear(); tkElectronPassesLooseTrackID.clear(); tkElectronPassesPhotonID.clear(); nTkPhotons = 0; tkPhotonEt.clear(); tkPhotonEta.clear(); tkPhotonPhi.clear(); tkPhotonBx.clear(); tkPhotonTrkIso.clear(); tkPhotonTrkIsoPV.clear(); tkPhotonzVtx.clear(); tkPhotonHwQual.clear(); tkPhotonEGRefPt.clear(); tkPhotonEGRefEta.clear(); tkPhotonEGRefPhi.clear(); tkPhotonHGC.clear(); tkPhotonPassesLooseTrackID.clear(); tkPhotonPassesPhotonID.clear(); nTkMuons = 0; tkMuonPt.clear(); tkMuonEta.clear(); tkMuonPhi.clear(); tkMuonChg.clear(); tkMuonTrkIso.clear(); tkMuonBx.clear(); tkMuonQual.clear(); tkMuonzVtx.clear(); tkMuonMuRefPt.clear(); tkMuonMuRefPhi.clear(); tkMuonMuRefEta.clear(); tkMuonDRMuTrack.clear(); tkMuonNMatchedTracks.clear(); tkMuonMuRefChg.clear(); tkMuonRegion.clear(); puppiMETEt = 0; puppiMETPhi = 0; nNNTaus = 0; nnTauEt.clear(); nnTauEta.clear(); nnTauPhi.clear(); nnTauChg.clear(); nnTauChargedIso.clear(); nnTauFullIso.clear(); nnTauID.clear(); nnTauPassLooseNN.clear(); nnTauPassLoosePF.clear(); nnTauPassTightPF.clear(); nnTauPassTightNN.clear(); } double z0Puppi; unsigned short int nL1TkPVs; std::vector<double> z0L1TkPV; std::vector<double> sumL1TkPV; unsigned short int nCaloTaus; std::vector<double> caloTauEt; std::vector<double> caloTauEta; std::vector<double> caloTauPhi; std::vector<short int> caloTauIEt; std::vector<short int> caloTauIEta; std::vector<short int> caloTauIPhi; std::vector<short int> caloTauIso; std::vector<short int> caloTauBx; std::vector<short int> caloTauTowerIPhi; std::vector<short int> caloTauTowerIEta; std::vector<short int> caloTauRawEt; std::vector<short int> caloTauIsoEt; std::vector<short int> caloTauNTT; std::vector<short int> caloTauHasEM; std::vector<short int> caloTauIsMerged; std::vector<short int> caloTauHwQual; unsigned short int nPfPhase1L1Jets; std::vector<double> pfPhase1L1JetEt; std::vector<double> pfPhase1L1JetEta; std::vector<double> pfPhase1L1JetPhi; std::vector<double> pfPhase1L1HT; std::vector<double> pfPhase1L1MHTEt; std::vector<double> pfPhase1L1MHTPhi; unsigned int nPfPhase1L1MHT; unsigned int nEG; std::vector<double> EGEt; std::vector<double> EGEta; std::vector<double> EGPhi; std::vector<int> EGBx; std::vector<double> EGIso; std::vector<double> EGzVtx; std::vector<int> EGHwQual; std::vector<unsigned int> EGHGC; std::vector<unsigned int> EGPassesLooseTrackID; std::vector<unsigned int> EGPassesPhotonID; unsigned int nTkElectrons; std::vector<double> tkElectronEt; std::vector<double> tkElectronEta; std::vector<double> tkElectronPhi; std::vector<int> tkElectronChg; std::vector<int> tkElectronBx; std::vector<double> tkElectronTrkIso; std::vector<double> tkElectronzVtx; std::vector<double> tkElectronHwQual; std::vector<double> tkElectronEGRefPt; std::vector<double> tkElectronEGRefEta; std::vector<double> tkElectronEGRefPhi; std::vector<unsigned int> tkElectronHGC; std::vector<unsigned int> tkElectronPassesLooseTrackID; std::vector<unsigned int> tkElectronPassesPhotonID; unsigned int nTkPhotons; std::vector<double> tkPhotonEt; std::vector<double> tkPhotonEta; std::vector<double> tkPhotonPhi; std::vector<int> tkPhotonBx; std::vector<double> tkPhotonTrkIso; std::vector<double> tkPhotonTrkIsoPV; std::vector<double> tkPhotonzVtx; std::vector<double> tkPhotonHwQual; std::vector<double> tkPhotonEGRefPt; std::vector<double> tkPhotonEGRefEta; std::vector<double> tkPhotonEGRefPhi; std::vector<unsigned int> tkPhotonHGC; std::vector<unsigned int> tkPhotonPassesLooseTrackID; std::vector<unsigned int> tkPhotonPassesPhotonID; unsigned int nTkMuons; std::vector<double> tkMuonPt; std::vector<double> tkMuonEta; std::vector<double> tkMuonPhi; std::vector<int> tkMuonChg; std::vector<double> tkMuonTrkIso; std::vector<int> tkMuonBx; std::vector<unsigned int> tkMuonQual; std::vector<double> tkMuonzVtx; std::vector<double> tkMuonMuRefPt; std::vector<double> tkMuonMuRefPhi; std::vector<double> tkMuonMuRefEta; std::vector<double> tkMuonDRMuTrack; std::vector<double> tkMuonNMatchedTracks; std::vector<int> tkMuonMuRefChg; std::vector<unsigned int> tkMuonRegion; double puppiMETEt; double puppiMETPhi; unsigned int nNNTaus; std::vector<double> nnTauEt; std::vector<double> nnTauEta; std::vector<double> nnTauPhi; std::vector<int> nnTauChg; std::vector<double> nnTauChargedIso; std::vector<double> nnTauFullIso; std::vector<unsigned int> nnTauID; std::vector<unsigned int> nnTauPassLooseNN; std::vector<unsigned int> nnTauPassLoosePF; std::vector<unsigned int> nnTauPassTightPF; std::vector<unsigned int> nnTauPassTightNN; }; } // namespace L1Analysis #endif
30.14876
81
0.657758
231a8ca989fdd8622b5982bbd2a38f3f71aabc5d
598
h
C
QDialogElement/qDialogDemo/infodialog.h
eduardorasgado/RoadtoQt5
571f82065273f1ce256575e086eda806beafab0b
[ "MIT" ]
null
null
null
QDialogElement/qDialogDemo/infodialog.h
eduardorasgado/RoadtoQt5
571f82065273f1ce256575e086eda806beafab0b
[ "MIT" ]
null
null
null
QDialogElement/qDialogDemo/infodialog.h
eduardorasgado/RoadtoQt5
571f82065273f1ce256575e086eda806beafab0b
[ "MIT" ]
null
null
null
#ifndef INFODIALOG_H #define INFODIALOG_H #include <QDialog> #include <QButtonGroup> #include <QDebug> namespace Ui { class InfoDialog; } class InfoDialog : public QDialog { Q_OBJECT public: explicit InfoDialog(QWidget *parent = nullptr); ~InfoDialog(); QString getFavorite_os() const; QString getPosition() const; private slots: void on_pushButton_ok_clicked(); void on_pushButton_cancel_clicked(); private: Ui::InfoDialog *ui; QString position; QString favorite_os; QButtonGroup *os_group; void clearFields(); }; #endif // INFODIALOG_H
14.95
51
0.710702
231c68101a9d39dd3f4a7b1b16ac940a91e2e76b
116
h
C
PayrollSystem/PayrollSystem/PaymentClassification.h
sxxlearn2rock/Payroll
dedc3f892268cb56d9e9263cc7f1f8d8576ac546
[ "Apache-2.0" ]
null
null
null
PayrollSystem/PayrollSystem/PaymentClassification.h
sxxlearn2rock/Payroll
dedc3f892268cb56d9e9263cc7f1f8d8576ac546
[ "Apache-2.0" ]
null
null
null
PayrollSystem/PayrollSystem/PaymentClassification.h
sxxlearn2rock/Payroll
dedc3f892268cb56d9e9263cc7f1f8d8576ac546
[ "Apache-2.0" ]
null
null
null
#pragma once class PaymentClassification { public: PaymentClassification(); virtual ~PaymentClassification(); };
12.888889
34
0.784483
231d5a93613886ccd1f23eda9cad2761d111b818
163,991
c
C
software/Core/Src/main.c
mfkiwl/ntsc-arm-stick-stm32h7-144pin-pcb
c82c073c89567cf61023cacc2b766097ab00f71b
[ "Apache-2.0" ]
null
null
null
software/Core/Src/main.c
mfkiwl/ntsc-arm-stick-stm32h7-144pin-pcb
c82c073c89567cf61023cacc2b766097ab00f71b
[ "Apache-2.0" ]
null
null
null
software/Core/Src/main.c
mfkiwl/ntsc-arm-stick-stm32h7-144pin-pcb
c82c073c89567cf61023cacc2b766097ab00f71b
[ "Apache-2.0" ]
null
null
null
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics. * All rights reserved.</center></h2> * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "fatfs.h" #include "usb_host.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "usbh_hid.h" #include <string.h> #include <stdio.h> #include <stdarg.h> #include "rocinante.h" // XXX Should not include, should be target API #include "hid.h" // XXX Should not include, should be target API #include "events.h" // XXX Should Not Include, should be target API /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN PTD */ /* USER CODE END PTD */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* USER CODE END PD */ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PM */ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ DAC_HandleTypeDef hdac1; SD_HandleTypeDef hsd2; SPI_HandleTypeDef hspi4; DMA_HandleTypeDef hdma_spi4_tx; TIM_HandleTypeDef htim1; DMA_HandleTypeDef hdma_tim1_ch2; UART_HandleTypeDef huart2; SDRAM_HandleTypeDef hsdram1; /* USER CODE BEGIN PV */ FATFS gFATVolume; /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ void SystemClock_Config(void); static void MX_GPIO_Init(void); static void MX_DMA_Init(void); static void MX_USART2_UART_Init(void); static void MX_FMC_Init(void); static void MX_SPI4_Init(void); static void MX_TIM1_Init(void); static void MX_SDMMC2_SD_Init(void); static void MX_DAC1_Init(void); void MX_USB_HOST_Process(void); /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------*/ /* USER CODE BEGIN 0 */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ // Assumed to be raw mode - returns next character, not buffering until newline int __io_getchar(void) { #if 0 while(1) { #ifdef USE_PS2KBD int c = KBD_process_queue(gDumpKeyboardData); if(c >= 0) { return c; } #endif SERIAL_poll_continue(); unsigned char isEmpty = queue_isempty(&mon_queue); if(!isEmpty) { unsigned char c = queue_deq(&mon_queue); return c; } delay_ms(10); } #endif return -1; } volatile int USARTBusy = 0; void __io_putchar( char c ) { static int which = 0; static int where = 0; static char buffer[2][256]; buffer[which][where++] = c; if(/* !USARTBusy || */ (c == '\n') || (where >= sizeof(buffer[0]))) { while(USARTBusy); USARTBusy = 1; HAL_UART_Transmit_IT(&huart2, (uint8_t *)&buffer[which], where); // HAL_UART_Transmit(&huart2, (uint8_t *)&buffer[which], where, 100); which = (which + 1) % 2; where = 0; } } void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) { USARTBusy = 0; } #ifdef __cplusplus }; #endif /* __cplusplus */ void panic() { while(1) { HAL_Delay(200); HAL_GPIO_WritePin(DEBUG_LED_GPIO_Port, DEBUG_LED_Pin, GPIO_PIN_SET); HAL_Delay(200); HAL_GPIO_WritePin(DEBUG_LED_GPIO_Port, DEBUG_LED_Pin, GPIO_PIN_RESET); } } char sprintfBuffer[512]; void msgprintf(const char *fmt, ...) { va_list args; va_start(args, fmt); vsnprintf(sprintfBuffer, sizeof(sprintfBuffer), fmt, args); va_end(args); if(HAL_UART_Transmit_IT(&huart2, (uint8_t *)sprintfBuffer, strlen(sprintfBuffer)) != HAL_OK) { panic(); } HAL_Delay(10); } void USBH_HID_EventCallback(USBH_HandleTypeDef *phost) { if(USBH_HID_GetDeviceType(phost) == HID_KEYBOARD) { HID_KEYBD_Info_TypeDef *kbd = USBH_HID_GetKeybdInfo(phost); if(0) printf("%02X %c%c%c%c%c%c%c%c [%d, %d, %d, %d, %d, %d]\n", kbd->state, kbd->lctrl ? '+' : '_', kbd->lshift ? '+' : '_', kbd->lalt ? '+' : '_', kbd->lgui ? '+' : '_', kbd->rctrl ? '+' : '_', kbd->rshift ? '+' : '_', kbd->ralt ? '+' : '_', kbd->rgui ? '+' : '_', kbd->keys[0], kbd->keys[1], kbd->keys[2], kbd->keys[3], kbd->keys[4], kbd->keys[5]); int modifiers[8]; modifiers[0] = kbd->lctrl; modifiers[1] = kbd->lshift; modifiers[2] = kbd->lalt; modifiers[3] = kbd->lgui; modifiers[4] = kbd->rctrl; modifiers[5] = kbd->rshift; modifiers[6] = kbd->ralt; modifiers[7] = kbd->rgui; ConvertUSBModifiersToKeyEvent(modifiers); int keys[6]; for(int i = 0; i < 6; i++) { keys[i] = kbd->keys[i]; } ConvertUSBKeysToKeyEvent(keys); } else if(USBH_HID_GetDeviceType(phost) == HID_MOUSE) { HID_MOUSE_Info_TypeDef *mouse = USBH_HID_GetMouseInfo(phost); int dx = (mouse->x >= 128) ? (mouse->x - 256) : mouse->x; int dy = (mouse->y >= 128) ? (mouse->y - 256) : mouse->y; int buttons[3]; for(int i = 0; i < 3; i++) { buttons[i] = mouse->buttons[i]; } ConvertUSBMouseToMouseEvent(dx, dy, buttons); if(0)printf("mouse %d, %d, %d, %d, %d\n", mouse->x, mouse->y, mouse->buttons[0], mouse->buttons[1], mouse->buttons[2]); } } uint32_t getMicros(void) { uint32_t micros = HAL_RCC_GetSysClockFreq() / 1000000; register uint32_t ms, cycle_cnt; do { ms = HAL_GetTick(); cycle_cnt = SysTick->VAL; } while (ms != HAL_GetTick()); return (ms * 1000) + (micros * 1000 - cycle_cnt) / micros; } void delayMicros(uint16_t micros) { uint32_t start = getMicros(); while (getMicros()-start < (uint32_t) micros) { asm("nop"); } } void delayNanos(uint16_t nanos) { uint32_t then = SysTick->VAL; uint32_t nanosPerCycle = 1000000000 / HAL_RCC_GetSysClockFreq(); uint32_t cycles = nanos / nanosPerCycle; uint32_t elapsedCycles; do { uint32_t now = SysTick->VAL; elapsedCycles = (now - then); } while(elapsedCycles < cycles); } enum FirstBit { MSB, LSB }; void set_bit(enum FirstBit firstBit, int bitIndex, uint8_t *bitmap, int value) { int bitInByte = (bitIndex % 8); int byteIndex = bitIndex / 8; uint8_t mask; if(firstBit == MSB) { mask = 0x80U >> bitInByte; } else { mask = 0x01U << bitInByte; } uint8_t cleared = bitmap[byteIndex] & ~mask; uint8_t newBit = value ? mask : 0; bitmap[byteIndex] = cleared | newBit; } int get_bit(enum FirstBit firstBit, int bitIndex, uint8_t *bitmap) { int bitInByte = (bitIndex % 8); int byteIndex = bitIndex / 8; uint8_t mask; if(firstBit == MSB) { mask = 0x80 >> bitInByte; } else { mask = 0x01 << bitInByte; } return (bitmap[byteIndex] & mask) != 0; } const int spi_bits_per_ws2812_bit = 3; void expand_bit_pattern_lsb(int srcBitCount, int srcBitOffset, uint8_t *srcPattern, int dstBitsPerSrcBit, int dstBitOffset, uint8_t *dstPattern) { for(int i = 0; i < srcBitCount; i++) { int srcBit = get_bit(LSB, i + srcBitOffset, srcPattern); for(int j = 0; j < dstBitsPerSrcBit; j++) { set_bit(LSB, i * dstBitsPerSrcBit + j + dstBitOffset, dstPattern, srcBit); } } } // Assumes MSB-first bits in src will be streamed as LSB-first from dst void expand_bits_to_WS2812(int bitCount, uint8_t *srcPattern, uint8_t *dstPattern) { for(int i = 0; i < bitCount; i++) { int bit = get_bit(MSB, i, srcPattern); if(bit) { set_bit(LSB, i * 3 + 0, dstPattern, 1); set_bit(LSB, i * 3 + 1, dstPattern, 1); set_bit(LSB, i * 3 + 2, dstPattern, 0); } else { set_bit(LSB, i * 3 + 0, dstPattern, 1); set_bit(LSB, i * 3 + 1, dstPattern, 0); set_bit(LSB, i * 3 + 2, dstPattern, 0); } } } size_t rgb_to_WS2812_NZR(uint8_t r, uint8_t g, uint8_t b, uint8_t *buffer) { uint8_t *p = buffer; uint8_t expanded[9]; // 3 bytes (24 bits) will be expanded to 9 bytes (72 bits) expand_bits_to_WS2812(8, &g, expanded + 0); expand_bits_to_WS2812(8, &r, expanded + 3); expand_bits_to_WS2812(8, &b, expanded + 6); // 9 bytes (72 bits) will be expanded to 27 bytes (216 bits) expand_bit_pattern_lsb(72, 0, expanded, spi_bits_per_ws2812_bit, 0, p); p += 27; return p - buffer; } // 47 bytes at 7.5Mbit/s yields a touch more than 50uS // But in practice I needed this many bytes to reliably latch/reset. #define reset_bytes 150 int LEDBusy = 0; void write3LEDString(uint8_t colors[3][3]) { static uint8_t buffer[reset_bytes + 1 + 27 * 3 + reset_bytes]; uint8_t *p = buffer; // Wait for SPI to finish transmitting the previous color // while (hspi4.State != HAL_SPI_STATE_READY); while(LEDBusy); *p++ = 0; for(int i = 0; i < 3; i++) { // Write colors to SPI buffer p += rgb_to_WS2812_NZR(colors[i][0], colors[i][1], colors[i][2], p); } // Write latch / reset to SPI buffer memset(p, 0, reset_bytes); p += reset_bytes; LEDBusy = 1; int result = HAL_SPI_Transmit_DMA(&hspi4, (unsigned char *)buffer, p - buffer); // , 2); if(result != HAL_OK){ printf("SPI_Transmit error %d, error code %08lX, status %08lX\n", result, hspi4.ErrorCode, SPI4->SR); panic(); } // HAL_GPIO_WritePin(RGBLED_SPI_GPIO_Port, RGBLED_SPI_Pin, GPIO_PIN_RESET); } void HSVToRGB3f(float h, float s, float v, float *r, float *g, float *b) { if(s < .00001) { *r = v; *g = v; *b = v; } else { int i; float p, q, t, f; h = fmodf(h, M_PI * 2); /* wrap just in case */ i = floorf(h / (M_PI / 3)); /* * would have used "f = fmod(h, M_PI / 3);", but fmod seems to have * a bug under Linux. */ f = h / (M_PI / 3) - floorf(h / (M_PI / 3)); p = v * (1 - s); q = v * (1 - s * f); t = v * (1 - s * (1 - f)); switch(i) { case 0: *r = v; *g = t; *b = p; break; case 1: *r = q; *g = v; *b = p; break; case 2: *r = p; *g = v; *b = t; break; case 3: *r = p; *g = q; *b = v; break; case 4: *r = t; *g = p; *b = v; break; case 5: *r = v; *g = p; *b = q; break; } } } // Audio subsystem ========================================================= static uint8_t audioBuffer[15700 / 60 * 2 * 2]; // Two 16.667ms buffers of stereo u8 static volatile size_t audioBufferPosition = 0; void RoAudioGetSamplingInfo(float *rate, size_t *bufferLength, uint8_t **stereoBufferU8) { // If NTSC line ISR is providing audio, we would have a sampling rate of 15.6998 KHz *rate = 15699.76074561403508; *bufferLength = sizeof(audioBuffer); *stereoBufferU8 = audioBuffer; } // I'd prefer an API where: // // 1) apps could allocate a real-time buffer that is composited with // other apps' buffers, at the system rate, and blocking would occur on // the buffer, or // // 2) apps could submit a one-time clip for play, and the system // would block until the clip is played. // Returns where one should write a half-buffer's worth of data to // stay ahead of the audio streamer size_t RoAudioBlockToHalfBuffer() { if(audioBufferPosition > sizeof(audioBuffer) / 2) { size_t oldPosition = audioBufferPosition; while(audioBufferPosition >= oldPosition); return sizeof(audioBuffer) / 2; } else { while(audioBufferPosition < sizeof(audioBuffer) / 2); return 0; } } Status RoAudioSetHalfBufferMonoSamples(size_t where, const uint8_t *monoBufferU8) { for(size_t i = 0; i < sizeof(audioBuffer) / 4; i++) { audioBuffer[where + i * 2 + 0] = monoBufferU8[i]; audioBuffer[where + i * 2 + 1] = monoBufferU8[i]; } return RO_SUCCESS; } void RoAudioClear() { memset(audioBuffer, 128, sizeof(audioBuffer)); } void AudioStart() { RoAudioClear(); DAC1->CR |= DAC_CR_EN1; DAC1->CR |= DAC_CR_EN2; } //============================================================================ // NTSC output //---------------------------------------------------------------------------- // DAC #define DAC_VALUE_LIMIT 0xFF #define MAX_DAC_VOLTAGE 1.32f #define MAX_DAC_VOLTAGE_F16 (132 * 65536 / 100) #define INLINE //inline INLINE unsigned char voltageToDACValue(float voltage) { if(voltage < 0.0f) { return 0x0; } uint32_t value = (uint32_t)(voltage / MAX_DAC_VOLTAGE * 255); if(value >= DAC_VALUE_LIMIT) { return DAC_VALUE_LIMIT; } return value; } INLINE unsigned char voltageToDACValueNoBounds(float voltage) { return (uint32_t)(voltage / MAX_DAC_VOLTAGE * 255); } INLINE int voltageToDACValueFixed16NoBounds(int voltage) { return (uint32_t)(voltage * 65535 / MAX_DAC_VOLTAGE_F16) * 256; } //---------------------------------------------------------------------------- // NTSC timing and voltage levels #define NTSC_COLORBURST_FREQUENCY 3579545 // Number of samples we target; if we're doing 4x colorburst at 228 cycles, that's 912 samples at 14.318180MHz #define ROW_SAMPLES 912 #define NTSC_EQPULSE_LINES 3 #define NTSC_VSYNC_LINES 3 #define NTSC_VBLANK_LINES 11 #define NTSC_FRAME_LINES 525 /* these are in units of one scanline */ #define NTSC_EQ_PULSE_INTERVAL .04 #define NTSC_VSYNC_BLANK_INTERVAL .43 #define NTSC_HOR_SYNC_DUR .075 #define NTSC_FRONTPORCH .02 /* BACKPORCH including COLORBURST */ #define NTSC_BACKPORCH .075 #define NTSC_COLORBURST_CYCLES 9 #define NTSC_FRAMES (59.94 / 2) #define NTSC_SYNC_TIP_VOLTAGE 0.0f #define NTSC_SYNC_PORCH_VOLTAGE .285f #define NTSC_SYNC_BLACK_VOLTAGE .339f #define NTSC_SYNC_WHITE_VOLTAGE 1.0f /* VCR had .912v */ #define NTSC_SYNC_BLACK_VOLTAGE_F16 22217 #define NTSC_SYNC_WHITE_VOLTAGE_F16 65536 typedef uint32_t ntsc_wave_t; INLINE unsigned char NTSCYIQToDAC(float y, float i, float q, float tcycles) { // This is transcribed from the NTSC spec, double-checked. float w_t = tcycles * M_PI * 2; float sine = sinf(w_t + 33.0f / 180.0f * M_PI); float cosine = cosf(w_t + 33.0f / 180.0f * M_PI); float signal = y + q * sine + i * cosine; // end of transcription return voltageToDACValue(NTSC_SYNC_BLACK_VOLTAGE + signal * (NTSC_SYNC_WHITE_VOLTAGE - NTSC_SYNC_BLACK_VOLTAGE)); } INLINE unsigned char NTSCYIQDegreesToDAC(float y, float i, float q, int degrees) { float sine, cosine; if(degrees == 0) { sine = 0.544638f; cosine = 0.838670f; } else if(degrees == 90) { sine = 0.838670f; cosine = -0.544638f; } else if(degrees == 1160) { sine = -0.544638f; cosine = -0.838670f; } else if(degrees == 270) { sine = -0.838670f; cosine = 0.544638f; } else { sine = 0; cosine = 0; } float signal = y + q * sine + i * cosine; return voltageToDACValueNoBounds(NTSC_SYNC_BLACK_VOLTAGE + signal * (NTSC_SYNC_WHITE_VOLTAGE - NTSC_SYNC_BLACK_VOLTAGE)); } INLINE ntsc_wave_t NTSCYIQToWave(float y, float i, float q) { unsigned char b0 = NTSCYIQToDAC(y, i, q, .0f); unsigned char b1 = NTSCYIQToDAC(y, i, q, .25f); unsigned char b2 = NTSCYIQToDAC(y, i, q, .50f); unsigned char b3 = NTSCYIQToDAC(y, i, q, .75f); return (b0 << 0) | (b1 << 8) | (b2 << 16) | (b3 << 24); } // This is transcribed from the NTSC spec, double-checked. INLINE void RGBToYIQ(float r, float g, float b, float *y, float *i, float *q) { *y = .30f * r + .59f * g + .11f * b; *i = -.27f * (b - *y) + .74f * (r - *y); *q = .41f * (b - *y) + .48f * (r - *y); } // Alternatively, a 3x3 matrix transforming [r g b] to [y i q] is: // (untested - computed from equation above) // 0.300000 0.590000 0.110000 // 0.599000 -0.277300 -0.321700 // 0.213000 -0.525100 0.312100 // A 3x3 matrix transforming [y i q] back to [r g b] is: // (untested - inverse of 3x3 matrix above) // 1.000000 0.946882 0.623557 // 1.000000 -0.274788 -0.635691 // 1.000000 -1.108545 1.709007 // Using inverse 3x3 matrix above. Tested numerically to be the inverse of RGBToYIQ INLINE void YIQToRGB(float y, float i, float q, float *r, float *g, float *b) { *r = 1.0f * y + .946882f * i + 0.623557f * q; *g = 1.000000f * y + -0.274788f * i + -0.635691f * q; *b = 1.000000f * y + -1.108545f * i + 1.709007f * q; } INLINE ntsc_wave_t NTSCRGBToWave(float r, float g, float b) { float y, i, q; RGBToYIQ(r, g, b, &y, &i, &q); return NTSCYIQToWave(y, i, q); } #define SECTION_CCMRAM // These are in CCM to reduce contention with SRAM1 during DMA unsigned char SECTION_CCMRAM NTSCEqSyncPulseLine[ROW_SAMPLES]; unsigned char SECTION_CCMRAM NTSCVSyncLine[ROW_SAMPLES]; unsigned char SECTION_CCMRAM NTSCBlankLineBW[ROW_SAMPLES]; unsigned char SECTION_CCMRAM NTSCBlankLineColor[ROW_SAMPLES]; unsigned char SECTION_CCMRAM NTSCSyncTip; unsigned char SECTION_CCMRAM NTSCSyncPorch; unsigned char SECTION_CCMRAM NTSCBlack; unsigned char SECTION_CCMRAM NTSCWhite; int NTSCEqPulseClocks; int NTSCVSyncClocks; int NTSCHSyncClocks; int NTSCLineClocks; int NTSCFrontPorchClocks; int NTSCBackPorchClocks; unsigned char NTSCColorburst0; unsigned char NTSCColorburst90; unsigned char NTSCColorburst180; unsigned char NTSCColorburst270; void NTSCCalculateParameters() { // Calculate values for a scanline NTSCLineClocks = ROW_SAMPLES; NTSCHSyncClocks = floorf(NTSCLineClocks * NTSC_HOR_SYNC_DUR + 0.5); NTSCFrontPorchClocks = NTSCLineClocks * NTSC_FRONTPORCH; NTSCBackPorchClocks = NTSCLineClocks * NTSC_BACKPORCH; NTSCEqPulseClocks = NTSCLineClocks * NTSC_EQ_PULSE_INTERVAL; NTSCVSyncClocks = NTSCLineClocks * NTSC_VSYNC_BLANK_INTERVAL; NTSCSyncTip = voltageToDACValue(NTSC_SYNC_TIP_VOLTAGE); NTSCSyncPorch = voltageToDACValue(NTSC_SYNC_PORCH_VOLTAGE); NTSCBlack = voltageToDACValue(NTSC_SYNC_BLACK_VOLTAGE); NTSCWhite = voltageToDACValue(NTSC_SYNC_WHITE_VOLTAGE); // Calculate the four values for the colorburst that we'll repeat to make a wave // The waveform is defined as sine in the FCC broadcast doc, but for // composite the voltages are reversed, so the waveform becomes -sine. NTSCColorburst0 = NTSCSyncPorch; NTSCColorburst90 = NTSCSyncPorch - .6 * NTSCSyncPorch; NTSCColorburst180 = NTSCSyncPorch; NTSCColorburst270 = NTSCSyncPorch + .6 * NTSCSyncPorch; } void NTSCFillEqPulseLine(unsigned char *rowBuffer) { for (int col = 0; col < NTSCLineClocks; col++) { if (col < NTSCEqPulseClocks || (col > NTSCLineClocks/2 && col < NTSCLineClocks/2 + NTSCEqPulseClocks)) { rowBuffer[col] = NTSCSyncTip; } else { rowBuffer[col] = NTSCSyncPorch; } } } void NTSCFillVSyncLine(unsigned char *rowBuffer) { for (int col = 0; col < NTSCLineClocks; col++) { if (col < NTSCVSyncClocks || (col > NTSCLineClocks/2 && col < NTSCLineClocks/2 + NTSCVSyncClocks)) { rowBuffer[col] = NTSCSyncTip; } else { rowBuffer[col] = NTSCSyncPorch; } } } // Haven't accelerated because not yet done in scan ISR void NTSCAddColorburst(unsigned char *rowBuffer, int row) { static const int startOfColorburstClocks = 76; // 80 - 3 * 4; // XXX magic number for current clock int rowCBOffset = (row * ROW_SAMPLES) % 4; for(int col = startOfColorburstClocks; col < startOfColorburstClocks + NTSC_COLORBURST_CYCLES * 4; col++) { switch((col - startOfColorburstClocks + rowCBOffset) % 4) { case 0: rowBuffer[col] = NTSCColorburst0; break; case 1: rowBuffer[col] = NTSCColorburst90; break; case 2: rowBuffer[col] = NTSCColorburst180; break; case 3: rowBuffer[col] = NTSCColorburst270; break; } } } void NTSCFillBlankLine(unsigned char *rowBuffer, int withColorburst) { memset(rowBuffer, NTSCBlack, ROW_SAMPLES); for (int col = 0; col < NTSCLineClocks; col++) { if (col < NTSCHSyncClocks) { rowBuffer[col] = NTSCSyncTip; } else if(col < NTSCHSyncClocks + NTSCBackPorchClocks) { rowBuffer[col] = NTSCSyncPorch; } else if(col >= NTSCLineClocks - NTSCFrontPorchClocks) { rowBuffer[col] = NTSCSyncPorch; } else { rowBuffer[col] = NTSCBlack; } } if(withColorburst) { NTSCAddColorburst(rowBuffer, 0); } } void NTSCGenerateLineBuffers() { // one line = (1 / 3579545) * (455/2) // front porch is (.165) * (1 / 15734) / (1 / 3579545) = 37.53812921062726565701 cycles (37.5) // 74 cycles at double clock // pixels is (1 - .165) * (1 / 15734) / (1 / 3579545) = 189.96568418711380557696 cycles (190) // 280 cycles at double clock NTSCFillEqPulseLine(NTSCEqSyncPulseLine); NTSCFillVSyncLine(NTSCVSyncLine); NTSCFillBlankLine(NTSCBlankLineBW, 0); NTSCFillBlankLine(NTSCBlankLineColor, 1); } int DefaultNeedsColorburst() { return 1; } void DefaultFillRowBuffer(int frameIndex, int rowNumber, size_t maxSamples, uint8_t* rowBuffer) { if((rowNumber > 60) && (rowNumber < 60 + 192 * 2)) { memset(rowBuffer + 72, (NTSCBlack + NTSCWhite) / 2, 560); } } typedef void (*NTSCModeFillRowBufferFunc)(int frameIndex, int rowNumber, size_t maxSamples, uint8_t* rowBuffer); typedef int (*NTSCModeNeedsColorburstFunc)(); int NTSCModeFuncsValid = 0; NTSCModeFillRowBufferFunc NTSCModeFillRowBuffer = DefaultFillRowBuffer; NTSCModeNeedsColorburstFunc NTSCModeNeedsColorburst = DefaultNeedsColorburst; void NTSCSwitchModeFuncs(NTSCModeFillRowBufferFunc fillBufferFunc, NTSCModeNeedsColorburstFunc needsColorBurstFunc) { NTSCModeFuncsValid = 0; NTSCModeNeedsColorburst = needsColorBurstFunc; NTSCModeFillRowBuffer = fillBufferFunc; NTSCModeFuncsValid = 1; } void NTSCFillRowBuffer(int frameNumber, int lineNumber, unsigned char *rowBuffer) { // XXX could optimize these by having one branch be lines < 21 /* * Rows 0 through 8 are equalizing pulse, then vsync, then equalizing pulse */ if(lineNumber < NTSC_EQPULSE_LINES) { memcpy(rowBuffer, NTSCEqSyncPulseLine, sizeof(NTSCEqSyncPulseLine)); } else if(lineNumber - NTSC_EQPULSE_LINES < NTSC_VSYNC_LINES) { memcpy(rowBuffer, NTSCVSyncLine, sizeof(NTSCVSyncLine)); } else if(lineNumber - (NTSC_EQPULSE_LINES + NTSC_VSYNC_LINES) < NTSC_EQPULSE_LINES) { memcpy(rowBuffer, NTSCEqSyncPulseLine, sizeof(NTSCEqSyncPulseLine)); } else if(lineNumber - (NTSC_EQPULSE_LINES + NTSC_VSYNC_LINES + NTSC_EQPULSE_LINES) < NTSC_VBLANK_LINES) { /* * Rows 9 through 2X are other part of vertical blank */ if(NTSCModeFuncsValid) { memcpy(rowBuffer, NTSCModeNeedsColorburst() ? NTSCBlankLineColor : NTSCBlankLineBW, ROW_SAMPLES); } else { memcpy(rowBuffer, NTSCBlankLineBW, ROW_SAMPLES); } } else if(lineNumber >= 263 && lineNumber <= 271) { // Interlacing handling weird lines if(lineNumber <= 264) { //lines 263, 264 - last 405 of eq pulse then first 405 of eq pulse memcpy(rowBuffer, NTSCEqSyncPulseLine + ROW_SAMPLES / 2, ROW_SAMPLES / 2); memcpy(rowBuffer + ROW_SAMPLES / 2, NTSCEqSyncPulseLine, ROW_SAMPLES / 2); } else if(lineNumber == 265) { //line 265 - last 405 of eq pulse then first 405 of vsync memcpy(rowBuffer, NTSCEqSyncPulseLine + ROW_SAMPLES / 2, ROW_SAMPLES / 2); memcpy(rowBuffer + ROW_SAMPLES / 2, NTSCVSyncLine, ROW_SAMPLES / 2); } else if(lineNumber <= 267) { //lines 266, 267 - last 405 of vsync then first 405 of vsync memcpy(rowBuffer, NTSCVSyncLine + ROW_SAMPLES / 2, ROW_SAMPLES / 2); memcpy(rowBuffer + ROW_SAMPLES / 2, NTSCVSyncLine, ROW_SAMPLES / 2); } else if(lineNumber == 268) { //lines 268 - last 405 of vsync then first 405 of eq pulse memcpy(rowBuffer, NTSCVSyncLine + ROW_SAMPLES / 2, ROW_SAMPLES / 2); memcpy(rowBuffer + ROW_SAMPLES / 2, NTSCEqSyncPulseLine, ROW_SAMPLES / 2); } else if(lineNumber <= 270) { //lines 269, 270 - last 405 of eq pulse then first 405 of eq pulse memcpy(rowBuffer, NTSCEqSyncPulseLine + ROW_SAMPLES / 2, ROW_SAMPLES / 2); memcpy(rowBuffer + ROW_SAMPLES / 2, NTSCEqSyncPulseLine, ROW_SAMPLES / 2); } else if(lineNumber == 271) { //line 271 - last 405 of eq pulse then 405 of SyncPorch memcpy(rowBuffer, NTSCEqSyncPulseLine + ROW_SAMPLES / 2, ROW_SAMPLES / 2); memset(rowBuffer + ROW_SAMPLES / 2, NTSCSyncPorch, ROW_SAMPLES / 2); } } else if((lineNumber >= 272) && (lineNumber <= 281)) { // XXX half line at 282 /* * Rows 272 through 2XX are other part of vertical blank */ if(NTSCModeFuncsValid) { memcpy(rowBuffer, NTSCModeNeedsColorburst() ? NTSCBlankLineColor : NTSCBlankLineBW, ROW_SAMPLES); } else { memcpy(rowBuffer, NTSCBlankLineBW, ROW_SAMPLES); } } else { if(NTSCModeFuncsValid) { memcpy(rowBuffer, NTSCModeNeedsColorburst() ? NTSCBlankLineColor : NTSCBlankLineBW, ROW_SAMPLES); } else { memcpy(rowBuffer, NTSCBlankLineBW, ROW_SAMPLES); } int rowWithinFrame = (lineNumber % 263) * 2 + lineNumber / 263 - 22; if(NTSCModeFuncsValid) { NTSCModeFillRowBuffer(frameNumber, rowWithinFrame, 704, rowBuffer + 164); } if(lineNumber == 262) { //line 262 - overwrite last 405 samples with first 405 samples of EQ pulse memcpy(rowBuffer + ROW_SAMPLES / 2, NTSCEqSyncPulseLine, ROW_SAMPLES / 2); } else if(lineNumber == 282) { //special line 282 - write SyncPorch from BackPorch to middle of line after mode's fillRow() memset(rowBuffer + NTSCHSyncClocks + NTSCBackPorchClocks, NTSCSyncPorch, ROW_SAMPLES / 2 - (NTSCHSyncClocks + NTSCBackPorchClocks)); } } } // debug overlay scanout // There should be some kind of a way to reserve a "slot" (not // always the same line on screen) for debug output for system or other // continuous output, and then a way to scroll debug output logging #include "8x16.h" // static int font8x16Width = 8, font8x16Height = 16; // static unsigned char font8x16Bits[] = /* was a bracket here */ int debugOverlayEnabled = 0; #define debugDisplayLeftTick (NTSCHSyncClocks + NTSCBackPorchClocks + 56) #define debugDisplayTopTick (NTSC_EQPULSE_LINES + NTSC_VSYNC_LINES + NTSC_EQPULSE_LINES + NTSC_VBLANK_LINES + 10) /* debugFontWidthScale != 4 looks terrible in a color field because of adjacent color columns; probably need to ensure 0s around any 1 text column */ #define debugFontWidthScale 2 #define debugCharGapPixels 1 #define debugFontHeightScale 1 #define debugDisplayWidth (604 / (font8x16Width * debugFontWidthScale + 1)) #define debugDisplayHeight ((218 + 10) / font8x16Height) char debugDisplay[debugDisplayHeight][debugDisplayWidth]; void RoDebugOverlayPrintf(const char *fmt, ...) { static int debugLine = 0; static char buffer[debugDisplayWidth + 1]; va_list args; debugOverlayEnabled = 1; va_start(args, fmt); vsnprintf(buffer, sizeof(buffer), fmt, args); va_end(args); char *line; char *inputstring = buffer; while((line = strsep(&inputstring, "\n")) != NULL) { if(debugLine == (debugDisplayHeight - 1)) { for(int i = 0; i < debugDisplayHeight - 1; i++) { memcpy(debugDisplay[i], debugDisplay[i + 1], debugDisplayWidth); } } memset(debugDisplay[debugLine] + strlen(buffer), 0, debugDisplayWidth - strlen(buffer)); memcpy(debugDisplay[debugLine], buffer, strlen(buffer)); if(debugLine < (debugDisplayHeight - 1)) { debugLine ++; } } } void RoDebugOverlaySetLine(int line, const char *str, size_t size) { size_t toWrite = (size > debugDisplayWidth) ? debugDisplayWidth : size; memcpy(debugDisplay[line], str, toWrite); } void NTSCFillRowDebugOverlay(int frameNumber, int lineNumber, unsigned char* nextRowBuffer) { #if debugFontWidthScale == 4 && font8x16Width == 8 ntsc_wave_t NTSCWhiteLong = (NTSCWhite << 0) | (NTSCWhite << 8) | (NTSCWhite << 16) | (NTSCWhite << 24); #endif int debugFontScanlineHeight = font8x16Height * debugFontHeightScale; int rowWithinDebugArea = (lineNumber % 263) - debugDisplayTopTick; int charRow = rowWithinDebugArea / debugFontScanlineHeight; int charPixelY = (rowWithinDebugArea % debugFontScanlineHeight) / debugFontHeightScale; // XXX this code assumes font width <= 8 and each row padded out to a byte if((rowWithinDebugArea >= 0) && (charRow < debugDisplayHeight)) { for(int charCol = 0; charCol < debugDisplayWidth; charCol++) { unsigned char debugChar = debugDisplay[charRow][charCol]; if(debugChar != 0) { unsigned char charRowBits = font8x16Bits[debugChar * font8x16Height + charPixelY]; #if debugFontWidthScale == 4 && font8x16Width == 8 unsigned char *charPixels = nextRowBuffer + debugDisplayLeftTick + (charCol * (font8x16Width + debugCharGapPixels)) * debugFontWidthScale; if(charRowBits & 0x80) { ((ntsc_wave_t*)charPixels)[0] = NTSCWhiteLong; } if(charRowBits & 0x40) { ((ntsc_wave_t*)charPixels)[1] = NTSCWhiteLong; } if(charRowBits & 0x20) { ((ntsc_wave_t*)charPixels)[2] = NTSCWhiteLong; } if(charRowBits & 0x10) { ((ntsc_wave_t*)charPixels)[3] = NTSCWhiteLong; } if(charRowBits & 0x08) { ((ntsc_wave_t*)charPixels)[4] = NTSCWhiteLong; } if(charRowBits & 0x04) { ((ntsc_wave_t*)charPixels)[5] = NTSCWhiteLong; } if(charRowBits & 0x02) { ((ntsc_wave_t*)charPixels)[6] = NTSCWhiteLong; } if(charRowBits & 0x01) { ((ntsc_wave_t*)charPixels)[7] = NTSCWhiteLong; } #else for(int charPixelX = 0; charPixelX < font8x16Width; charPixelX++) { int pixel = charRowBits & (0x80 >> charPixelX); if(pixel) { unsigned char *charPixels = nextRowBuffer + debugDisplayLeftTick + (charCol * (font8x16Width + debugCharGapPixels) + charPixelX) * debugFontWidthScale; #if debugFontWidthScale == 4 *(ntsc_wave_t *)charPixels = NTSCWhiteLong; #else for(int col = 0; col < debugFontWidthScale; col++) { charPixels[col] = NTSCWhite; charPixels[col + 1] = NTSCBlack; charPixels[col + 2] = NTSCBlack; charPixels[col + 3] = NTSCBlack; } #endif } } #endif } } } } uint8_t /* __attribute__((section (".ram_d1"))) */ rowDoubleBuffer[ROW_SAMPLES * 2]; int rowNumber = 0; int frameNumber = 0; int why; void DMA2_Stream1_IRQHandler(void) { rowNumber = (rowNumber + 1) % 525; if(rowNumber == 0) { frameNumber ++; } uint8_t *rowDest; if(DMA2->LISR & DMA_FLAG_HTIF1_5) { DMA2->LIFCR |= DMA_LIFCR_CHTIF1; rowDest = rowDoubleBuffer + 0; } else if(DMA2->LISR & DMA_FLAG_TCIF1_5) { DMA2->LIFCR |= DMA_LIFCR_CTCIF1; rowDest = rowDoubleBuffer + ROW_SAMPLES; } else { panic(); } // per-line, 15KHz DAC1->DHR8R1 = audioBuffer[audioBufferPosition + 0]; DAC1->DHR8R2 = audioBuffer[audioBufferPosition + 1]; audioBufferPosition = (audioBufferPosition + 2) % sizeof(audioBuffer); NTSCFillRowBuffer(frameNumber, rowNumber, rowDest); if(debugOverlayEnabled) { NTSCFillRowDebugOverlay(frameNumber, rowNumber, rowDest); } // A little pulse so we know where we are on the line when we finished if(0 /* markHandlerInSamples */) { for(int i = 0; i < 5; i++) { GPIOI->ODR = (GPIOI->ODR & 0xFFFFFF00) | 0xFFFFFFE8; } } if(DMA2->LISR) { // oldLISR = DMA2->LISR; DMA2->LIFCR = 0xFFFF; } } void HAL_TIM_ErrorCallback(TIM_HandleTypeDef *htim) { printf("error code %08lX, state %08X, line %d\n", hdma_tim1_ch2.ErrorCode, hdma_tim1_ch2.State, why); } void startNTSCScanout() { AudioStart(); NTSCCalculateParameters(); NTSCGenerateLineBuffers(); HAL_StatusTypeDef status; memcpy(rowDoubleBuffer + 0, NTSCEqSyncPulseLine, ROW_SAMPLES); memcpy(rowDoubleBuffer + ROW_SAMPLES, NTSCEqSyncPulseLine, ROW_SAMPLES); rowNumber = 1; // the previous row that was filled in // Set DMA request on capture-compare channel 1 DMA2_Stream1->NDTR = sizeof(rowDoubleBuffer); DMA2_Stream1->M0AR = (uint32_t)rowDoubleBuffer; // Destination address DMA2_Stream1->PAR = (uint32_t)&GPIOI->ODR; // Destination address DMA2_Stream1->FCR = DMA_FIFOMODE_ENABLE | // Enable FIFO to improve stutter DMA_FIFO_THRESHOLD_FULL; DMA2_Stream1->CR |= DMA_SxCR_TCIE; /* enable transfer complete interrupt */ DMA2_Stream1->CR |= DMA_SxCR_HTIE; /* enable half transfer interrupt */ DMA2_Stream1->CR |= DMA_SxCR_EN; /* enable DMA */ TIM1->DIER |= TIM_DIER_CC2DE; status = HAL_TIM_IC_Start(&htim1, TIM_CHANNEL_2); if(0) { msgprintf("DMA2_Stream1->CR = %08lX\n", DMA2_Stream1->CR); msgprintf("DMA2_Stream1->NDTR = %08lX\n", DMA2_Stream1->NDTR); msgprintf("DMA2_Stream1->PAR = %08lX\n", DMA2_Stream1->PAR); msgprintf("DMA2_Stream1->M0AR = %08lX\n", DMA2_Stream1->M0AR); msgprintf("DMA2_Stream1->M1AR = %08lX\n", DMA2_Stream1->M1AR); msgprintf("DMA2_Stream1->FCR = %08lX\n", DMA2_Stream1->FCR); } if(status != HAL_OK){ printf("DMA error %08d, error code %08lX, line %d\n", status, hdma_tim1_ch2.ErrorCode, why); panic(); } } //---------------------------------------------------------------------------- // Woz (Apple ][ graphics) mode #define WOZ_MODE_LEFT 72 #define WOZ_MODE_WIDTH 560 #define WOZ_MODE_TOP 60 #define WOZ_MODE_HEIGHT 192 #define WOZ_MODE_MIXED_TEXT_ROWS 4 #define WOZ_MODE_FONT_HEIGHT 8 #define WOZ_MODE_FONT_WIDTH 7 enum DisplayMode {TEXT, LORES, HIRES}; enum DisplayMode WozModeDisplayMode = TEXT; int WozModeAux = 0; int WozModeMixed = 0; int WozModePage = 0; uint8_t WozModeHGRBuffers[2][2][8192]; uint8_t WozModeTextBuffers[2][2][1024]; const int WozModeTextRowOffsets[24] = { 0x000, 0x080, 0x100, 0x180, 0x200, 0x280, 0x300, 0x380, 0x028, 0x0A8, 0x128, 0x1A8, 0x228, 0x2A8, 0x328, 0x3A8, 0x050, 0x0D0, 0x150, 0x1D0, 0x250, 0x2D0, 0x350, 0x3D0, }; const int WozModeHGRRowOffsets[192] = { 0x0000, 0x0400, 0x0800, 0x0C00, 0x1000, 0x1400, 0x1800, 0x1C00, 0x0080, 0x0480, 0x0880, 0x0C80, 0x1080, 0x1480, 0x1880, 0x1C80, 0x0100, 0x0500, 0x0900, 0x0D00, 0x1100, 0x1500, 0x1900, 0x1D00, 0x0180, 0x0580, 0x0980, 0x0D80, 0x1180, 0x1580, 0x1980, 0x1D80, 0x0200, 0x0600, 0x0A00, 0x0E00, 0x1200, 0x1600, 0x1A00, 0x1E00, 0x0280, 0x0680, 0x0A80, 0x0E80, 0x1280, 0x1680, 0x1A80, 0x1E80, 0x0300, 0x0700, 0x0B00, 0x0F00, 0x1300, 0x1700, 0x1B00, 0x1F00, 0x0380, 0x0780, 0x0B80, 0x0F80, 0x1380, 0x1780, 0x1B80, 0x1F80, 0x0028, 0x0428, 0x0828, 0x0C28, 0x1028, 0x1428, 0x1828, 0x1C28, 0x00A8, 0x04A8, 0x08A8, 0x0CA8, 0x10A8, 0x14A8, 0x18A8, 0x1CA8, 0x0128, 0x0528, 0x0928, 0x0D28, 0x1128, 0x1528, 0x1928, 0x1D28, 0x01A8, 0x05A8, 0x09A8, 0x0DA8, 0x11A8, 0x15A8, 0x19A8, 0x1DA8, 0x0228, 0x0628, 0x0A28, 0x0E28, 0x1228, 0x1628, 0x1A28, 0x1E28, 0x02A8, 0x06A8, 0x0AA8, 0x0EA8, 0x12A8, 0x16A8, 0x1AA8, 0x1EA8, 0x0328, 0x0728, 0x0B28, 0x0F28, 0x1328, 0x1728, 0x1B28, 0x1F28, 0x03A8, 0x07A8, 0x0BA8, 0x0FA8, 0x13A8, 0x17A8, 0x1BA8, 0x1FA8, 0x0050, 0x0450, 0x0850, 0x0C50, 0x1050, 0x1450, 0x1850, 0x1C50, 0x00D0, 0x04D0, 0x08D0, 0x0CD0, 0x10D0, 0x14D0, 0x18D0, 0x1CD0, 0x0150, 0x0550, 0x0950, 0x0D50, 0x1150, 0x1550, 0x1950, 0x1D50, 0x01D0, 0x05D0, 0x09D0, 0x0DD0, 0x11D0, 0x15D0, 0x19D0, 0x1DD0, 0x0250, 0x0650, 0x0A50, 0x0E50, 0x1250, 0x1650, 0x1A50, 0x1E50, 0x02D0, 0x06D0, 0x0AD0, 0x0ED0, 0x12D0, 0x16D0, 0x1AD0, 0x1ED0, 0x0350, 0x0750, 0x0B50, 0x0F50, 0x1350, 0x1750, 0x1B50, 0x1F50, 0x03D0, 0x07D0, 0x0BD0, 0x0FD0, 0x13D0, 0x17D0, 0x1BD0, 0x1FD0, }; __attribute__((hot,flatten)) void WozModeFillRowBufferHGR(int frameIndex, int rowNumber, size_t maxSamples, uint8_t* rowBuffer) { int rowIndex = (rowNumber - WOZ_MODE_TOP) / 2; uint8_t darker = NTSCBlack + (NTSCWhite - NTSCBlack) / 4; // XXX debug if((rowIndex >= 0) && (rowIndex < 192)) { const uint8_t *rowSrc = WozModeHGRBuffers[WozModeAux][WozModePage] + WozModeHGRRowOffsets[rowIndex]; // row - ...? for(int byteIndex = 0; byteIndex < 40; byteIndex++) { uint8_t byte = *rowSrc++; uint8_t colorShift = byte >> 7; uint8_t *rowDst = rowBuffer + WOZ_MODE_LEFT + byteIndex * 14 + colorShift; for(int bitIndex = 0; bitIndex < 7; bitIndex++) { if(byte & 0x1) { if(0) { // XXX debug *rowDst++ = darker; *rowDst++ = darker; } else { *rowDst++ = NTSCWhite; *rowDst++ = NTSCWhite; } } else { if(0) { *rowDst++ = NTSCBlack; *rowDst++ = NTSCBlack; } else { rowDst += 2; } } byte = byte >> 1; } } } } int WozModeFontOffset = 32; const unsigned char WozModeFontBytes[96 * WOZ_MODE_FONT_HEIGHT] = { // 32 : 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 33 : ! 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x08, 0x00, // 34 : " 0x14, 0x14, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, // 35 : # 0x14, 0x14, 0x3E, 0x14, 0x3E, 0x14, 0x14, 0x00, // 36 : $ 0x08, 0x3C, 0x0A, 0x1C, 0x28, 0x1E, 0x08, 0x00, // 37 : % 0x06, 0x26, 0x10, 0x08, 0x04, 0x32, 0x30, 0x00, // 38 : & 0x04, 0x0A, 0x0A, 0x04, 0x2A, 0x12, 0x2C, 0x00, // 39 : ' 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, // 40 : ( 0x08, 0x04, 0x02, 0x02, 0x02, 0x04, 0x08, 0x00, // 41 : ) 0x08, 0x10, 0x20, 0x20, 0x20, 0x10, 0x08, 0x00, // 42 : * 0x08, 0x2A, 0x1C, 0x08, 0x1C, 0x2A, 0x08, 0x00, // 43 : + 0x00, 0x08, 0x08, 0x3E, 0x08, 0x08, 0x00, 0x00, // 44 : , 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x04, 0x00, // 45 : - 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x00, 0x00, // 46 : . 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, // 47 : / 0x00, 0x20, 0x10, 0x08, 0x04, 0x02, 0x00, 0x00, // 48 : 0 0x1C, 0x22, 0x32, 0x2A, 0x26, 0x22, 0x1C, 0x00, // 49 : 1 0x08, 0x0C, 0x08, 0x08, 0x08, 0x08, 0x1C, 0x00, // 50 : 2 0x1C, 0x22, 0x20, 0x18, 0x04, 0x02, 0x3E, 0x00, // 51 : 3 0x3E, 0x20, 0x10, 0x18, 0x20, 0x22, 0x1C, 0x00, // 52 : 4 0x10, 0x18, 0x14, 0x12, 0x3E, 0x10, 0x10, 0x00, // 53 : 5 0x3E, 0x02, 0x1E, 0x20, 0x20, 0x22, 0x1C, 0x00, // 54 : 6 0x38, 0x04, 0x02, 0x1E, 0x22, 0x22, 0x1C, 0x00, // 55 : 7 0x3E, 0x20, 0x10, 0x08, 0x04, 0x04, 0x04, 0x00, // 56 : 8 0x1C, 0x22, 0x22, 0x1C, 0x22, 0x22, 0x1C, 0x00, // 57 : 9 0x1C, 0x22, 0x22, 0x3C, 0x20, 0x10, 0x0E, 0x00, // 58 : : 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, // 59 : ; 0x00, 0x00, 0x08, 0x00, 0x08, 0x08, 0x04, 0x00, // 60 : < 0x10, 0x08, 0x04, 0x02, 0x04, 0x08, 0x10, 0x00, // 61 : = 0x00, 0x00, 0x3E, 0x00, 0x3E, 0x00, 0x00, 0x00, // 62 : > 0x04, 0x08, 0x10, 0x20, 0x10, 0x08, 0x04, 0x00, // 63 : ? 0x1C, 0x22, 0x10, 0x08, 0x08, 0x00, 0x08, 0x00, // 64 : @ 0x1C, 0x22, 0x2A, 0x3A, 0x1A, 0x02, 0x3C, 0x00, // 65 : A 0x08, 0x14, 0x22, 0x22, 0x3E, 0x22, 0x22, 0x00, // 66 : B 0x1E, 0x22, 0x22, 0x1E, 0x22, 0x22, 0x1E, 0x00, // 67 : C 0x1C, 0x22, 0x02, 0x02, 0x02, 0x22, 0x1C, 0x00, // 68 : D 0x1E, 0x22, 0x22, 0x22, 0x22, 0x22, 0x1E, 0x00, // 69 : E 0x3E, 0x02, 0x02, 0x1E, 0x02, 0x02, 0x3E, 0x00, // 70 : F 0x3E, 0x02, 0x02, 0x1E, 0x02, 0x02, 0x02, 0x00, // 71 : G 0x3C, 0x02, 0x02, 0x02, 0x32, 0x22, 0x3C, 0x00, // 72 : H 0x22, 0x22, 0x22, 0x3E, 0x22, 0x22, 0x22, 0x00, // 73 : I 0x1C, 0x08, 0x08, 0x08, 0x08, 0x08, 0x1C, 0x00, // 74 : J 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x1C, 0x00, // 75 : K 0x22, 0x12, 0x0A, 0x06, 0x0A, 0x12, 0x22, 0x00, // 76 : L 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x3E, 0x00, // 77 : M 0x22, 0x36, 0x2A, 0x2A, 0x22, 0x22, 0x22, 0x00, // 78 : N 0x22, 0x22, 0x26, 0x2A, 0x32, 0x22, 0x22, 0x00, // 79 : O 0x1C, 0x22, 0x22, 0x22, 0x22, 0x22, 0x1C, 0x00, // 80 : P 0x1E, 0x22, 0x22, 0x1E, 0x02, 0x02, 0x02, 0x00, // 81 : Q 0x1C, 0x22, 0x22, 0x22, 0x2A, 0x12, 0x2C, 0x00, // 82 : R 0x1E, 0x22, 0x22, 0x1E, 0x0A, 0x12, 0x22, 0x00, // 83 : S 0x1C, 0x22, 0x02, 0x1C, 0x20, 0x22, 0x1C, 0x00, // 84 : T 0x3E, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, // 85 : U 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x1C, 0x00, // 86 : V 0x22, 0x22, 0x22, 0x22, 0x22, 0x14, 0x08, 0x00, // 87 : W 0x22, 0x22, 0x22, 0x2A, 0x2A, 0x36, 0x22, 0x00, // 88 : X 0x22, 0x22, 0x14, 0x08, 0x14, 0x22, 0x22, 0x00, // 89 : Y 0x22, 0x22, 0x14, 0x08, 0x08, 0x08, 0x08, 0x00, // 90 : Z 0x3E, 0x20, 0x10, 0x08, 0x04, 0x02, 0x3E, 0x00, // 91 : [ 0x3E, 0x06, 0x06, 0x06, 0x06, 0x06, 0x3E, 0x00, // 92 : backslash 0x00, 0x02, 0x04, 0x08, 0x10, 0x20, 0x00, 0x00, // 93 : ] 0x3E, 0x30, 0x30, 0x30, 0x30, 0x30, 0x3E, 0x00, // 94 : ^ 0x00, 0x00, 0x08, 0x14, 0x22, 0x00, 0x00, 0x00, // 95 : _ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, // 96 : ` 0x04, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, // 97 : a 0x00, 0x00, 0x1C, 0x20, 0x3C, 0x22, 0x3C, 0x00, // 98 : b 0x02, 0x02, 0x1E, 0x22, 0x22, 0x22, 0x1E, 0x00, // 99 : c 0x00, 0x00, 0x3C, 0x02, 0x02, 0x02, 0x3C, 0x00, // 100 : d 0x20, 0x20, 0x3C, 0x22, 0x22, 0x22, 0x3C, 0x00, // 101 : e 0x00, 0x00, 0x1C, 0x22, 0x3E, 0x02, 0x3C, 0x00, // 102 : f 0x18, 0x24, 0x04, 0x1E, 0x04, 0x04, 0x04, 0x00, // 103 : g 0x00, 0x00, 0x1C, 0x22, 0x22, 0x3C, 0x20, 0x1C, // 104 : h 0x02, 0x02, 0x1E, 0x22, 0x22, 0x22, 0x22, 0x00, // 105 : i 0x08, 0x00, 0x0C, 0x08, 0x08, 0x08, 0x1C, 0x00, // 106 : j 0x10, 0x00, 0x18, 0x10, 0x10, 0x10, 0x12, 0x0C, // 107 : k 0x02, 0x02, 0x22, 0x12, 0x0E, 0x12, 0x22, 0x00, // 108 : l 0x0C, 0x08, 0x08, 0x08, 0x08, 0x08, 0x1C, 0x00, // 109 : m 0x00, 0x00, 0x36, 0x2A, 0x2A, 0x2A, 0x22, 0x00, // 110 : n 0x00, 0x00, 0x1E, 0x22, 0x22, 0x22, 0x22, 0x00, // 111 : o 0x00, 0x00, 0x1C, 0x22, 0x22, 0x22, 0x1C, 0x00, // 112 : p 0x00, 0x00, 0x1E, 0x22, 0x22, 0x1E, 0x02, 0x02, // 113 : q 0x00, 0x00, 0x3C, 0x22, 0x22, 0x3C, 0x20, 0x20, // 114 : r 0x00, 0x00, 0x3A, 0x06, 0x02, 0x02, 0x02, 0x00, // 115 : s 0x00, 0x00, 0x3C, 0x02, 0x1C, 0x20, 0x1E, 0x00, // 116 : t 0x04, 0x04, 0x1E, 0x04, 0x04, 0x24, 0x18, 0x00, // 117 : u 0x00, 0x00, 0x22, 0x22, 0x22, 0x32, 0x2C, 0x00, // 118 : v 0x00, 0x00, 0x22, 0x22, 0x22, 0x14, 0x08, 0x00, // 119 : w 0x00, 0x00, 0x22, 0x22, 0x2A, 0x2A, 0x36, 0x00, // 120 : x 0x00, 0x00, 0x22, 0x14, 0x08, 0x14, 0x22, 0x00, // 121 : y 0x00, 0x00, 0x22, 0x22, 0x22, 0x3C, 0x20, 0x1C, // 122 : z 0x00, 0x00, 0x3E, 0x10, 0x08, 0x04, 0x3E, 0x00, // 123 : { 0x38, 0x0C, 0x0C, 0x06, 0x0C, 0x0C, 0x38, 0x00, // 124 : | 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, // 125 : } 0x0E, 0x18, 0x18, 0x30, 0x18, 0x18, 0x0E, 0x00, // 126 : ~ 0x2C, 0x1A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 127 :  0x00, 0x2A, 0x14, 0x2A, 0x14, 0x2A, 0x00, 0x00, }; void WozMemoryByteToFontIndex(int byte, int *fontIndex, int *inverse) { *inverse = 0; if(byte >= 0 && byte <= 31) { *fontIndex = byte - 0 + 32; *inverse = 1; } else if(byte >= 32 && byte <= 63) { *fontIndex = byte - 32 + 0; *inverse = 1; } else if(byte >= 64 && byte <= 95) { *fontIndex = byte - 64 + 32; // XXX BLINK *inverse = 1; } else if(byte >= 96 && byte <= 127){ *fontIndex = byte - 96 + 0; // XXX BLINK *inverse = 1; } else if(byte >= 128 && byte <= 159) *fontIndex = byte - 128 + 32; else if(byte >= 160 && byte <= 191) *fontIndex = byte - 160 + 0; else if(byte >= 192 && byte <= 223) *fontIndex = byte - 192 + 32; else if(byte >= 224 && byte <= 255) *fontIndex = byte - 224 + 64; else *fontIndex = 33; } void WozModeFillRowBuffer40Text(int frameIndex, int rowNumber, size_t maxSamples, uint8_t* rowBuffer) { int rowIndex = (rowNumber - WOZ_MODE_TOP) / 2; if((rowIndex >= 0) && (rowIndex < 192)) { memset(rowBuffer + WOZ_MODE_LEFT, NTSCBlack, WOZ_MODE_WIDTH); int rowInText = rowIndex / 8; int rowInGlyph = rowIndex % 8; const uint8_t *rowSrc = WozModeTextBuffers[WozModeAux][WozModePage] + WozModeTextRowOffsets[rowInText]; // row - ...? uint8_t *rowDst = rowBuffer + WOZ_MODE_LEFT; for(int textColumn = 0; textColumn < 40; textColumn++) { uint8_t byte = rowSrc[textColumn]; int fontIndex, inverse; WozMemoryByteToFontIndex(byte, &fontIndex, &inverse); int fontRowByte = WozModeFontBytes[fontIndex * 8 + rowInGlyph]; for(int column = 0; column < 7; column ++) { *rowDst++ = (fontRowByte & 0x01) ? NTSCWhite : NTSCBlack; *rowDst++ = (fontRowByte & 0x01) ? NTSCWhite : NTSCBlack; fontRowByte = fontRowByte >> 1; } } } } int WozModeNeedsColorburst() { return (WozModeDisplayMode != TEXT); } void WozModeFillRowBuffer(int frameIndex, int rowNumber, size_t maxSamples, uint8_t* rowBuffer) { int rowIndex = (rowNumber - WOZ_MODE_TOP) / 2; enum DisplayMode mode = WozModeDisplayMode; if(WozModeMixed && (rowIndex >= WOZ_MODE_HEIGHT - WOZ_MODE_MIXED_TEXT_ROWS * WOZ_MODE_FONT_HEIGHT)) { mode = TEXT; } switch(mode) { case TEXT: WozModeFillRowBuffer40Text(frameIndex, rowNumber, maxSamples, rowBuffer); break; case HIRES: WozModeFillRowBufferHGR(frameIndex, rowNumber, maxSamples, rowBuffer); break; case LORES: // WozModeFillRowBufferGR(frameIndex, rowNumber, maxSamples, rowBuffer); break; } } unsigned char DHGRBuffer[560 * 192 / 8]; int AlwaysColorburst() { return 1; } __attribute__((hot,flatten)) void DHGRModeFillRowBuffer(int frameIndex, int rowNumber, size_t maxSamples, uint8_t* rowBuffer) { int rowIndex = (rowNumber - WOZ_MODE_TOP) / 2; if((rowIndex >= 0) && (rowIndex < 192)) { const uint8_t *rowSrc = DHGRBuffer + 560/8 * rowIndex; for(int byteIndex = 0; byteIndex < 70; byteIndex++) { uint8_t byte = *rowSrc++; uint8_t *rowDst = rowBuffer + WOZ_MODE_LEFT + byteIndex * 8; for(int bitIndex = 0; bitIndex < 8; bitIndex++) { *rowDst++ = (byte & 0x80) ? NTSCWhite : NTSCBlack; byte = byte << 1; } } } } //---------------------------------------------------------------------------- // FillRowBuffer tests void ImageFillRowBuffer(int frameIndex, int rowNumber, size_t maxSamples, uint8_t* rowBuffer) { for(int col = 0; col < maxSamples; col++) { int checker = (col / 35 + rowNumber / 20) % 2; rowBuffer[col] = checker ? NTSCWhite : NTSCBlack; } } void ImageFillRowBuffer2(int frameIndex, int rowNumber, size_t maxSamples, uint8_t* rowBuffer) { // times 2 because we are given interlaced height rows, 0 to 238 if((rowNumber > WOZ_MODE_TOP) && (rowNumber < WOZ_MODE_TOP + WOZ_MODE_HEIGHT * 2)) { for(int col = 0; col < WOZ_MODE_WIDTH; col++) { int checker = (col / 35 + rowNumber / 20) % 2; rowBuffer[WOZ_MODE_LEFT + col] = checker ? NTSCWhite : NTSCBlack; } } } int apple2_main(int argc, const char **argv); int writeLEDColors = 1; // set these no higher than 32, maybe after getting a case and light // diffuser we could go higher. uint8_t LEDColors[3][3]; int LEDSPIBusy = 0; int RoLEDSet(int which, uint8_t red, uint8_t green, uint8_t blue) { if((which < 0) || (which > 2)) { return -1; } LEDColors[which][0] = (red + 7) / 8; LEDColors[which][1] = (green + 7) / 8; LEDColors[which][2] = (blue + 7) / 8; writeLEDColors = 1; return 0; } // ----- WS2812B RGB LED test void LEDTestIterate() { static float then = 0.0f; float now = HAL_GetTick() / 1000.0f; if(!LEDBusy && (now - then > .01666667f)) { int halves = (int)(now * 2); if(halves % 2) { RoLEDSet(0, 0, 0, 0); } else { RoLEDSet(0, 0, 255, 0); } float h = now / 2.0f * 3.14159; float s = 1.0f; float v = 1.0f; float r, g, b; HSVToRGB3f(h, s, v, &r, &g, &b); // RoLEDSet(1, r * 255, g * 255, b * 255); int phase = (int)now % 2; float value = phase ? (now - (int)now) : (1 - (now - (int)now)); if(0)RoLEDSet(2, value * 255, value * 255, value * 255); writeLEDColors = 1; } } int main_iterate(void) { static int q = 0; if(++q > 1000) { q = 0; // printf("."); } MX_USB_HOST_Process(); LEDTestIterate(); if(writeLEDColors) { // write3LEDString(LEDColors); writeLEDColors = 0; } return 0; } const unsigned char dhgr_bytes[] = { 0x00, 0x00, 0xa0, 0x70, 0x74, 0x74, 0x74, 0x2a, 0x56, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x75, 0x2a, 0x56, 0x55, 0x75, 0x62, 0x55, 0x75, 0x2a, 0x56, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x75, 0x62, 0x55, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0xa7, 0x56, 0xa7, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x00, 0x80, 0xaa, 0xe1, 0x72, 0x70, 0x70, 0x68, 0x54, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x68, 0x6a, 0x62, 0x62, 0x2a, 0x74, 0x62, 0x60, 0x6a, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x6a, 0x75, 0x42, 0x55, 0x62, 0x6a, 0x62, 0x6a, 0x62, 0x27, 0x26, 0x76, 0x62, 0x62, 0x62, 0x62, 0x62, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0x27, 0x56, 0xa7, 0x0a, 0x00, 0xa0, 0x90, 0x61, 0x71, 0x74, 0x78, 0x70, 0x22, 0x42, 0x27, 0x60, 0x42, 0x27, 0x62, 0x55, 0x77, 0x75, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x22, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x25, 0x26, 0x26, 0x62, 0x75, 0x62, 0x75, 0x62, 0x62, 0x56, 0x27, 0x66, 0x25, 0x66, 0x25, 0x66, 0x27, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x2e, 0x06, 0x56, 0x00, 0xa8, 0x90, 0xe1, 0xe1, 0x70, 0x62, 0x62, 0x2a, 0x54, 0x07, 0x26, 0x60, 0x42, 0x65, 0xf5, 0x67, 0x75, 0x42, 0x43, 0x25, 0x74, 0x42, 0x75, 0x42, 0x25, 0x42, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x25, 0x26, 0x26, 0x26, 0x66, 0x62, 0x62, 0x62, 0x62, 0x62, 0x27, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x76, 0x26, 0x76, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x3e, 0x56, 0x07, 0x18, 0x00, 0x90, 0xe0, 0xe3, 0xf3, 0x6a, 0x75, 0xb8, 0x76, 0x42, 0xa7, 0x62, 0x25, 0x56, 0xff, 0xaa, 0x67, 0x62, 0x62, 0xa2, 0x76, 0x42, 0x63, 0x42, 0x27, 0x54, 0x27, 0x42, 0x27, 0x42, 0x27, 0x42, 0x67, 0x22, 0x74, 0x26, 0x76, 0x26, 0x62, 0x62, 0x62, 0x62, 0x6a, 0x75, 0x26, 0x26, 0x76, 0x76, 0x22, 0x76, 0x22, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x76, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x1e, 0x06, 0x06, 0x00, 0x50, 0x91, 0xf0, 0xe9, 0xeb, 0xfa, 0xeb, 0x73, 0x56, 0x6a, 0x47, 0x67, 0x75, 0xf4, 0x7f, 0xff, 0xa7, 0x42, 0x67, 0x42, 0x27, 0x60, 0x42, 0x25, 0x02, 0x26, 0x02, 0x26, 0x02, 0x26, 0x02, 0x66, 0x02, 0x62, 0x22, 0x26, 0x74, 0x22, 0x64, 0x62, 0x62, 0x62, 0x75, 0x62, 0x22, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x1e, 0x56, 0x07, 0xb8, 0x00, 0x80, 0xf0, 0xf1, 0xeb, 0x6b, 0xe5, 0xeb, 0x7a, 0x6a, 0x75, 0x47, 0xa7, 0xfa, 0xab, 0xfa, 0xa7, 0x47, 0x07, 0x27, 0x26, 0x66, 0x62, 0x22, 0x66, 0x22, 0x66, 0x42, 0x62, 0x26, 0x66, 0x26, 0x62, 0x62, 0x62, 0x02, 0x26, 0x66, 0x76, 0x62, 0x62, 0x67, 0x75, 0x62, 0x62, 0x26, 0x56, 0x22, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x76, 0x1e, 0x06, 0x0a, 0x00, 0x60, 0x90, 0xf1, 0xe8, 0xe7, 0xeb, 0xf7, 0xeb, 0x6b, 0x75, 0xf5, 0xaa, 0xa7, 0xfa, 0xf5, 0xff, 0xab, 0xff, 0x63, 0x47, 0x57, 0x76, 0x62, 0x42, 0x26, 0x26, 0x24, 0x26, 0x42, 0x22, 0x26, 0x22, 0x66, 0x62, 0x60, 0x62, 0x76, 0x26, 0x62, 0x62, 0x6a, 0x75, 0x62, 0x62, 0x6a, 0x22, 0x26, 0x26, 0x76, 0x76, 0x76, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0xa6, 0x56, 0x6a, 0x02, 0x07, 0x57, 0x00, 0x50, 0xe0, 0xf1, 0x47, 0xff, 0xeb, 0xe9, 0xeb, 0xff, 0xff, 0xfa, 0xd7, 0xff, 0xff, 0xff, 0xf5, 0xbf, 0xaf, 0x47, 0xaf, 0x67, 0x55, 0x63, 0x02, 0xa6, 0x26, 0x26, 0x66, 0x62, 0x26, 0x26, 0x54, 0x67, 0x62, 0x42, 0x27, 0x26, 0x26, 0x62, 0xf5, 0xe3, 0x62, 0x62, 0x62, 0x25, 0x26, 0x26, 0x26, 0x76, 0x62, 0x22, 0x26, 0x76, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0xa6, 0x56, 0x0a, 0x42, 0x07, 0x0d, 0x00, 0xb8, 0xa0, 0xf7, 0xd7, 0x9f, 0xff, 0xff, 0xeb, 0xab, 0xaa, 0xfa, 0x5f, 0xff, 0xab, 0x5f, 0xff, 0x5f, 0xff, 0x2f, 0xaf, 0xaf, 0x27, 0x66, 0x27, 0x56, 0x22, 0x74, 0x26, 0x62, 0x02, 0x26, 0x26, 0x62, 0x75, 0x62, 0x62, 0x22, 0x56, 0x67, 0xf5, 0x6a, 0x67, 0xe2, 0x62, 0x62, 0x56, 0x27, 0x3e, 0x3e, 0x66, 0x62, 0x26, 0x26, 0x76, 0x76, 0x76, 0x26, 0x26, 0x26, 0x26, 0x76, 0x26, 0x76, 0x76, 0x42, 0x2b, 0x8a, 0x0b, 0x1e, 0x2a, 0x74, 0xf0, 0xf5, 0x8f, 0x9f, 0x5e, 0xff, 0xeb, 0xab, 0xff, 0xff, 0xab, 0x7f, 0xf4, 0xff, 0xff, 0xff, 0x7f, 0xf5, 0xff, 0xaf, 0xa7, 0xa6, 0x62, 0x56, 0x27, 0x26, 0x74, 0x62, 0x42, 0x27, 0x34, 0x26, 0x60, 0x62, 0x62, 0x25, 0x3e, 0xa6, 0xff, 0xe3, 0x63, 0x67, 0x55, 0x27, 0x26, 0xa6, 0x3e, 0x3e, 0x26, 0x62, 0x22, 0x76, 0x62, 0x62, 0x62, 0x22, 0x76, 0x76, 0x76, 0x26, 0x76, 0x26, 0xa6, 0x52, 0x07, 0x2a, 0x00, 0x1c, 0x1e, 0xf5, 0xf0, 0xf9, 0x8f, 0xff, 0xff, 0x9f, 0xff, 0xff, 0x5f, 0xff, 0xf5, 0x7f, 0xf5, 0x5f, 0xff, 0x5f, 0xff, 0xff, 0xbf, 0xf6, 0xa7, 0x56, 0x67, 0x75, 0x62, 0x26, 0x26, 0x66, 0x60, 0x22, 0x74, 0x26, 0x74, 0x6a, 0x67, 0xa7, 0x56, 0xf6, 0x3f, 0x7e, 0x62, 0x42, 0x27, 0x26, 0x76, 0x26, 0x7f, 0x3e, 0x3e, 0x6e, 0x67, 0x56, 0x62, 0x62, 0x62, 0x62, 0x26, 0x26, 0x26, 0x76, 0x26, 0x76, 0x96, 0x56, 0x05, 0x07, 0x00, 0x50, 0x18, 0x9e, 0x7a, 0xf4, 0xf5, 0xbf, 0xbe, 0x5a, 0xdf, 0x5f, 0x7f, 0x9f, 0xff, 0xff, 0xff, 0x5f, 0x5f, 0xfd, 0xbf, 0xaa, 0x9f, 0xf6, 0xe3, 0x63, 0xa5, 0x62, 0x42, 0x75, 0x26, 0x54, 0x63, 0x67, 0x26, 0x26, 0x26, 0x56, 0xa7, 0xaf, 0x7f, 0xfe, 0x67, 0x3e, 0x66, 0x62, 0x62, 0x26, 0x26, 0xf6, 0x6f, 0x76, 0x2e, 0x3e, 0x26, 0x67, 0x62, 0x62, 0x62, 0x67, 0x27, 0x76, 0x22, 0x26, 0x76, 0x56, 0xaa, 0x42, 0x07, 0x07, 0x00, 0x14, 0x50, 0x9e, 0xab, 0xfa, 0xff, 0xff, 0xbf, 0xfa, 0x5f, 0x9f, 0x5f, 0x5f, 0xff, 0xbf, 0xfa, 0x5f, 0xff, 0x7f, 0x5f, 0xff, 0x3f, 0xfe, 0xe2, 0x63, 0x25, 0x26, 0x62, 0x62, 0x22, 0x26, 0x66, 0x62, 0x22, 0x26, 0x74, 0x56, 0xaf, 0x2f, 0x2f, 0x7f, 0x74, 0x75, 0x26, 0x6a, 0x62, 0x22, 0x56, 0x76, 0x76, 0x7f, 0x3e, 0x3e, 0xf6, 0x26, 0x62, 0x62, 0x67, 0x62, 0x27, 0x26, 0x26, 0x76, 0x26, 0x56, 0xaa, 0x42, 0x07, 0x06, 0x08, 0x50, 0x00, 0x18, 0x9f, 0xff, 0xd5, 0xbf, 0xfa, 0xff, 0xff, 0xff, 0x5f, 0xff, 0xff, 0xd5, 0xff, 0xf5, 0xff, 0xbf, 0xfe, 0xff, 0xaf, 0xbe, 0xea, 0x6b, 0x75, 0x56, 0x65, 0x27, 0x60, 0x26, 0x26, 0x62, 0x6a, 0x26, 0x74, 0x62, 0xf6, 0xa7, 0x2f, 0xbf, 0x7a, 0x74, 0x56, 0x62, 0x62, 0x62, 0x26, 0x76, 0x76, 0x76, 0x76, 0x3e, 0x7e, 0x62, 0x66, 0x62, 0x62, 0x67, 0x62, 0x26, 0x26, 0x26, 0x76, 0x3e, 0xaa, 0x42, 0x05, 0x00, 0x00, 0x0a, 0x80, 0x1a, 0x5e, 0x9f, 0xfa, 0x9f, 0xff, 0xfd, 0x5f, 0x9f, 0xff, 0xdf, 0xff, 0xf5, 0xff, 0xff, 0xff, 0xa9, 0xfa, 0xff, 0xab, 0xff, 0xe7, 0x6b, 0x75, 0x7a, 0xa6, 0xa6, 0x76, 0x22, 0x56, 0x67, 0x75, 0x02, 0x26, 0x66, 0x2f, 0xa6, 0xaf, 0xaf, 0xf6, 0x72, 0x62, 0x62, 0x62, 0x62, 0x62, 0x76, 0x76, 0xf6, 0xf6, 0x76, 0x7e, 0x6a, 0x27, 0x62, 0x27, 0x26, 0x62, 0x22, 0x26, 0x26, 0x26, 0x74, 0x54, 0x55, 0x01, 0x00, 0x00, 0x1c, 0x00, 0x50, 0x0c, 0x5f, 0xdf, 0x9b, 0xdf, 0xff, 0xfd, 0xff, 0xff, 0xff, 0x5f, 0xff, 0x5f, 0xfd, 0x9f, 0xfa, 0xff, 0xaa, 0xea, 0x7f, 0xf5, 0x61, 0x75, 0x6a, 0x62, 0xa7, 0x76, 0x2a, 0x56, 0x67, 0x75, 0x62, 0x22, 0x76, 0x76, 0xf6, 0x2f, 0xaf, 0xff, 0x7a, 0x26, 0x6a, 0x67, 0x62, 0x62, 0x67, 0x7a, 0xf6, 0xf2, 0xfa, 0x7f, 0x7a, 0x62, 0x62, 0x62, 0x22, 0x66, 0x62, 0x26, 0xa6, 0x56, 0x75, 0xb8, 0x02, 0x00, 0x00, 0xb8, 0x14, 0x00, 0x05, 0x00, 0x8d, 0x5f, 0xff, 0xff, 0x9f, 0xf5, 0x9f, 0xdf, 0xdf, 0xff, 0xff, 0xff, 0x7f, 0xf5, 0xff, 0xff, 0xeb, 0xff, 0xbf, 0xf6, 0xe2, 0x67, 0x56, 0x67, 0x25, 0x56, 0x6a, 0x56, 0xa7, 0x26, 0x66, 0x67, 0x56, 0x67, 0x6a, 0x26, 0x2f, 0x7f, 0xfa, 0xaa, 0x26, 0x26, 0x62, 0x67, 0x27, 0xf6, 0xfa, 0xfa, 0xff, 0x7f, 0x6a, 0x62, 0x67, 0x67, 0x62, 0x26, 0x62, 0x22, 0x3e, 0x1e, 0x56, 0xb8, 0x80, 0x01, 0x80, 0x09, 0x10, 0x00, 0x00, 0x18, 0x08, 0x9f, 0x9f, 0xdf, 0x9b, 0xa0, 0xfd, 0xff, 0x5b, 0xbf, 0xfd, 0xf5, 0xbf, 0xfa, 0xff, 0xff, 0xf9, 0x7f, 0x2f, 0xfe, 0xe2, 0x63, 0x75, 0x56, 0xa7, 0x76, 0x62, 0x27, 0x26, 0x76, 0x26, 0x26, 0x76, 0xa6, 0x62, 0xa7, 0x6e, 0x6f, 0xff, 0x62, 0x77, 0x26, 0x66, 0x62, 0x25, 0x7e, 0xf6, 0xfa, 0xf6, 0x67, 0x62, 0x67, 0x26, 0x26, 0x62, 0x62, 0x62, 0x67, 0x26, 0x1c, 0x1e, 0x74, 0x00, 0x00, 0x50, 0x05, 0x54, 0x00, 0x00, 0x00, 0x28, 0x9c, 0x5a, 0x5f, 0x0f, 0xa0, 0xf5, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xf9, 0xff, 0xff, 0x9f, 0xff, 0x57, 0xbf, 0xbe, 0xfa, 0xe7, 0x67, 0x57, 0xa7, 0x76, 0x6a, 0xa7, 0xa6, 0x76, 0xa2, 0x76, 0x56, 0xa2, 0x76, 0x26, 0x2e, 0x2e, 0x66, 0xe2, 0x63, 0x22, 0x26, 0x66, 0x25, 0x3e, 0xfe, 0xff, 0xff, 0x26, 0x76, 0x62, 0x27, 0x26, 0x66, 0x62, 0x67, 0x62, 0xa7, 0x3a, 0x1e, 0x1a, 0x00, 0x00, 0x54, 0x00, 0x14, 0x00, 0x00, 0x00, 0x14, 0x18, 0x5e, 0x5f, 0x17, 0x80, 0xff, 0xf9, 0xff, 0xff, 0xfd, 0xf9, 0xf9, 0xff, 0xf5, 0xf9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe7, 0xe3, 0xe7, 0x67, 0x67, 0x6a, 0xa5, 0x26, 0x26, 0xa6, 0x76, 0x62, 0x62, 0x62, 0x62, 0x2f, 0x26, 0x76, 0xe2, 0x63, 0x6a, 0x76, 0x62, 0x27, 0x3e, 0x7e, 0xf6, 0x76, 0x62, 0x67, 0x62, 0x62, 0x76, 0x26, 0x66, 0x67, 0x67, 0xa7, 0xaa, 0x1a, 0x1c, 0x00, 0x54, 0x01, 0x50, 0x14, 0x00, 0x00, 0x0a, 0x00, 0xb8, 0x50, 0xfd, 0x09, 0xa0, 0xfa, 0xff, 0x9f, 0x9f, 0xff, 0xff, 0xff, 0xfd, 0xff, 0xe9, 0xff, 0x9f, 0x5f, 0xff, 0xff, 0x47, 0xaf, 0x47, 0xe7, 0xa7, 0x62, 0xa7, 0x76, 0x76, 0xa6, 0x76, 0x6a, 0x62, 0x67, 0x75, 0x26, 0x76, 0x56, 0xe2, 0xe3, 0x62, 0x75, 0x62, 0x26, 0x3e, 0x7e, 0xfa, 0xf7, 0x62, 0x27, 0x66, 0x67, 0x67, 0x62, 0x62, 0x25, 0x26, 0xa6, 0x5a, 0x1d, 0x00, 0x80, 0x0b, 0x94, 0x0a, 0x14, 0x00, 0xa0, 0x0a, 0x0a, 0x00, 0x40, 0x9d, 0x15, 0xa0, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0xfb, 0xfd, 0xff, 0xf9, 0xff, 0xff, 0x9f, 0xff, 0xff, 0xf9, 0xff, 0xff, 0xff, 0x47, 0xa7, 0xf6, 0x62, 0x27, 0x56, 0xa2, 0x76, 0x62, 0x67, 0x25, 0x66, 0x62, 0x6f, 0x62, 0xe2, 0x62, 0x62, 0x67, 0x6a, 0x27, 0x3e, 0x2e, 0xfe, 0xf6, 0x62, 0x67, 0x76, 0x26, 0x26, 0x66, 0xa7, 0x27, 0x26, 0xa6, 0x5a, 0x55, 0x00, 0x40, 0x05, 0x95, 0x0a, 0x1e, 0x00, 0xe0, 0x01, 0x00, 0x08, 0x54, 0x09, 0xd6, 0xab, 0xfe, 0xf9, 0xff, 0x9f, 0xff, 0xf9, 0xff, 0xff, 0xf9, 0xf9, 0x9f, 0x9f, 0xff, 0xff, 0xff, 0xab, 0xff, 0xbf, 0xff, 0xab, 0x7f, 0x6a, 0xa7, 0x56, 0x47, 0x27, 0x66, 0xa7, 0x26, 0x76, 0x6a, 0x27, 0x66, 0x67, 0x67, 0x62, 0x25, 0x66, 0x27, 0x7e, 0x2e, 0x7e, 0xf2, 0x62, 0x27, 0x76, 0x62, 0x76, 0x76, 0xaa, 0x26, 0x76, 0x76, 0x59, 0x05, 0x00, 0x60, 0x09, 0x05, 0x18, 0x1c, 0x00, 0xa8, 0x00, 0x18, 0x50, 0x00, 0x00, 0x9d, 0xaa, 0xff, 0xf9, 0xff, 0xfd, 0xff, 0xff, 0xff, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf9, 0xf9, 0xff, 0xbf, 0x5f, 0xbf, 0xff, 0xaf, 0xfa, 0xa7, 0x76, 0xa6, 0x27, 0xbe, 0xa6, 0x76, 0x56, 0x27, 0x26, 0x76, 0x62, 0x65, 0x6a, 0x27, 0x7e, 0x2f, 0x3e, 0x26, 0x7e, 0xf2, 0x62, 0x67, 0x62, 0x76, 0x62, 0x62, 0xaa, 0x91, 0x55, 0xd5, 0xa9, 0x00, 0xa0, 0xaa, 0x00, 0x05, 0x54, 0x14, 0x40, 0x15, 0xb8, 0x50, 0x00, 0x00, 0x18, 0x14, 0xf8, 0x9f, 0xff, 0xbd, 0xfa, 0x9f, 0xff, 0xfd, 0xf9, 0xff, 0xff, 0x9f, 0x9f, 0xff, 0xf5, 0xf9, 0xdf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe7, 0xff, 0xfa, 0xa7, 0x1e, 0x56, 0x27, 0x3e, 0xa6, 0x76, 0x76, 0x6a, 0x27, 0xf6, 0xa6, 0xbe, 0x3e, 0x7e, 0x26, 0x3e, 0xf6, 0xf6, 0x66, 0x62, 0x67, 0x6a, 0x62, 0x01, 0x81, 0xab, 0xb9, 0x40, 0x01, 0xd0, 0xc1, 0xa1, 0x00, 0x14, 0x15, 0x54, 0x81, 0xab, 0x50, 0x70, 0x00, 0x55, 0x00, 0x54, 0x58, 0xff, 0xbf, 0xfa, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5f, 0xff, 0xfd, 0xff, 0xff, 0xbf, 0xff, 0xff, 0x7f, 0xff, 0xe7, 0x3f, 0x7e, 0xf6, 0xbf, 0xfe, 0xe7, 0x7f, 0x7e, 0xa6, 0xf6, 0xf2, 0xbf, 0x3e, 0x7e, 0x26, 0x3e, 0x7e, 0x62, 0x62, 0xe7, 0x27, 0x6f, 0x67, 0x11, 0x81, 0x99, 0x81, 0x00, 0x00, 0x55, 0x60, 0xc1, 0x01, 0x15, 0x96, 0x0a, 0x40, 0x0d, 0x00, 0x70, 0x00, 0x05, 0x00, 0x50, 0xb8,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0x67, 0x16, 0x99, 0x00, 0x05, 0x05, 0x05, 0x55, 0x01, 0xb8, 0xc0, 0x01, 0x1e, 0x94, 0x1a, 0x1c, 0x0e, 0x05, 0x55, 0x00, 0x0d, 0x50, 0x05, 0x00, 0x50, 0x59, 0x6a, 0xf5, 0xaa, 0xfe, 0xff, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xf5, 0xff, 0xff, 0xff, 0xf9, 0xff, 0x9f, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xab, 0xfe, 0xa9, 0xf7, 0xfa, 0xa7, 0x7a, 0xea, 0xf2, 0xab, 0xe6, 0x61, 0x76, 0x26, 0x76, 0x72, 0xf8, 0xa7, 0x3f, 0x66, 0x17, 0x10, 0x10, 0x01, 0x05, 0x05, 0x87, 0x01, 0xb8, 0x50, 0x01, 0x1e, 0x94, 0x5a, 0x18, 0x00, 0x05, 0x55, 0x00, 0x05, 0xb8, 0x00, 0x80, 0x40, 0x09, 0xf4, 0xe7, 0xf7, 0xff, 0xeb, 0x9f, 0xff, 0xff, 0xab, 0xda, 0xff, 0xff, 0xf9, 0xff, 0xff, 0xff, 0xf9, 0xff, 0xf9, 0xff, 0xfd, 0xdf, 0xff, 0x9f, 0xfe, 0xff, 0xff, 0xe3, 0xef, 0xf3, 0xe2, 0x63, 0xf4, 0xe3, 0x65, 0xa7, 0xe3, 0x6b, 0x27, 0x66, 0x76, 0x78, 0x95, 0x9f, 0xbe, 0x01, 0x98, 0x91, 0x01, 0x0d, 0x85, 0x87, 0x0b, 0xb8, 0x70, 0x00, 0x1e, 0xf0, 0x58, 0xb8, 0x00, 0x00, 0x15, 0x10, 0x06, 0xb8, 0x00, 0x00, 0x55, 0x09, 0x0a, 0xf6, 0xe7, 0x7f, 0xfe, 0xfb, 0x7f, 0xf5, 0xea, 0xff, 0xff, 0x9f, 0xff, 0xff, 0xf9, 0x9f, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xf9, 0x9f, 0x9f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75, 0x2e, 0xfe, 0xe7, 0x63, 0x7f, 0xff, 0x6a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf9, 0xff, 0xff, 0xf9, 0xf9, 0xff, 0xfd, 0x9f, 0xff, 0xbf, 0xfe, 0xff, 0xff, 0xff, 0xe9, 0x5f, 0xff, 0x5f, 0xff, 0x57, 0xff, 0xaf, 0xaf, 0xaf, 0xaf, 0xaf, 0x2f, 0x18, 0x19, 0x19, 0x19, 0x18, 0x18, 0xb8, 0x18, 0x95, 0x3d, 0xe0, 0xb8, 0x40, 0x55, 0xb8, 0x00, 0x14, 0x74, 0xbd, 0xd0, 0x00, 0x50, 0x09, 0xa0, 0x10, 0xa8, 0x00, 0x1c, 0x50, 0x01, 0x56, 0x76, 0x76, 0xe6, 0x6b, 0xaf, 0xfe, 0xff, 0xff, 0x9f, 0xff, 0xf5, 0xff, 0xe9, 0xff, 0xdf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xff, 0xff, 0xdb, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5f, 0xff, 0xaf, 0xaf, 0xaf, 0xaf, 0x17, 0x19, 0x99, 0x19, 0x19, 0x18, 0x10, 0xb9, 0x90, 0xc1, 0x1f, 0xf0, 0x70, 0xa0, 0x80, 0x42, 0x50, 0x95, 0x95, 0xb8, 0x50, 0x00, 0x50, 0x54, 0xa0, 0x5a, 0x00, 0x00, 0x15, 0xb8, 0x00, 0x67, 0x62, 0x6a, 0x62, 0x67, 0x2f, 0xbf, 0xf6, 0xff, 0xfb, 0x7f, 0xf5, 0x9f, 0xff, 0xff, 0xf5, 0xff, 0xf5, 0xdf, 0xff, 0xff, 0xff, 0xfd, 0xff, 0xff, 0xf9, 0xff, 0xff, 0x9f, 0xff, 0x9f, 0xff, 0xf5, 0xff, 0x9f, 0xbf, 0xaf, 0x8f, 0x8f, 0x0b, 0xbd, 0x99, 0x97, 0x19, 0xb8, 0x90, 0x55, 0x78, 0x45, 0x0b, 0xe0, 0xd1, 0x80, 0x50, 0x55, 0x01, 0x95, 0xd5, 0xab, 0xb8, 0x00, 0x50, 0x18, 0x20, 0x58, 0x80, 0xab, 0x50, 0xb8, 0x50, 0x25, 0x66, 0x6f, 0xaf, 0x67, 0x2f, 0x2e, 0x7e, 0x54, 0xf5, 0xe2, 0xf5, 0x9f, 0xfe, 0xff, 0xff, 0xab, 0xff, 0x5f, 0x9f, 0x9f, 0xdf, 0xff, 0xff, 0xf9, 0xff, 0xdf, 0xff, 0xff, 0xff, 0xf9, 0x5f, 0xff, 0xf5, 0xff, 0xff, 0xbf, 0x8e, 0x0f, 0x19, 0x19, 0x09, 0x9c, 0x19, 0x18, 0x90, 0x1a, 0x98, 0xa9, 0x19, 0xf0, 0x50, 0x80, 0xab, 0x0a, 0x40, 0x95, 0x85, 0x0b, 0x54, 0x00, 0x40, 0x01, 0x20, 0x74, 0x00, 0x87, 0x01, 0x70, 0xa8, 0x66, 0x2f, 0x2f, 0xa6, 0x66, 0x2f, 0x3e, 0xbe, 0x72, 0x56, 0xaf, 0xf6, 0x2f, 0xff, 0xbf, 0xfa, 0xff, 0xff, 0x5f, 0x9f, 0xff, 0x9f, 0xbf, 0xff, 0xff, 0xf9, 0xff, 0xff, 0xdf, 0xdf, 0xff, 0xff, 0xff, 0xf5, 0xf5, 0xaf, 0x9e, 0x1a, 0x17, 0x19, 0x09, 0x18, 0x14, 0x19, 0x50, 0x50, 0x91, 0x99, 0x8b, 0x59, 0xd5, 0x50, 0x50, 0x05, 0x15, 0x14, 0x07, 0x9d, 0x47, 0x15, 0x00, 0x50, 0x09, 0x20, 0x14, 0x00, 0x8d, 0xab, 0x0a, 0xb8, 0xf6, 0x26, 0x2e, 0xf6, 0x76, 0x26, 0x3e, 0x3e, 0xe6, 0xfa, 0xf6, 0xfa, 0xaa, 0x7f, 0x9f, 0xfa, 0xf9, 0x5f, 0x5f, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xf9, 0xff, 0x9f, 0x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, 0x94, 0x8a, 0x09, 0x50, 0x00, 0x94, 0x0a, 0x99, 0x00, 0x85, 0x07, 0x80, 0x0f, 0x80, 0xff, 0x71, 0x00, 0x9d, 0x9f, 0x8a, 0xd9, 0xab, 0xda, 0xf9, 0xf9, 0x59, 0x58, 0x95, 0xd0, 0x89, 0x8b, 0x81, 0x51, 0x91, 0x15, 0x94, 0xd5, 0xa9, 0x8b, 0x8b, 0x99, 0x95, 0x18, 0x0d, 0xd9, 0x9d, 0x59, 0x99, 0x99, 0x99, 0x99, 0x0a, 0x1c, 0x58, 0x01, 0xf8, 0x01, 0x98, 0x99, 0x0b, 0xd9, 0x19, 0x80, 0x99, 0x99, 0x99, 0x99, 0x79, 0xf8, 0xb8, 0x18, 0x94, 0x2b, 0x60, 0x50, 0xb4, 0x18, 0x1e, 0x00, 0x80, 0x07, 0x40, 0x0f, 0x80, 0xd5, 0x79, 0x80, 0x8b, 0x9f, 0x9f, 0x59, 0xd7, 0x59, 0xf5, 0xf9, 0x59, 0x51, 0x89, 0x8a, 0xa1, 0x9d, 0xa9, 0x95, 0x91, 0x81, 0x8b, 0x8b, 0x8b, 0x45, 0x9f, 0xd5, 0x99, 0x99, 0xaa, 0x9d, 0xbd, 0x9d, 0x9d, 0x99, 0x9d, 0x59, 0x95, 0x1a, 0x28, 0x80, 0xa9, 0x09, 0x98, 0x9d, 0x01, 0xd8, 0x59, 0x05, 0x1d, 0xd9, 0x9b, 0x99, 0x7d, 0xf8, 0xb8, 0x50, 0x98, 0x0a, 0xd0, 0x50, 0x9a, 0xb9, 0x18, 0x00, 0x18, 0x07, 0x80, 0x0f, 0x80, 0xab, 0xe9, 0x80, 0x8f, 0x5f, 0x9f, 0xf5, 0x89, 0xab, 0xda, 0xf9, 0x59, 0x99, 0xa9, 0x81, 0xab, 0x99, 0xa9, 0x99, 0x9a, 0xd5, 0x8b, 0x87, 0x8b, 0xab, 0x99, 0x97, 0xab, 0xf8, 0x81, 0x59, 0xbd, 0xbd, 0x9d, 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 0xd0, 0x40, 0x9d, 0x8a, 0x8f, 0x8d, 0x85, 0xa9, 0x78, 0x9c, 0x8a, 0xa9, 0xc0, 0x58, 0x58, 0xc8, 0x58, 0x18, 0x14, 0x0c, 0x80, 0x00, }; unsigned int dhgr_length = 13440; void DHGRModeTest() { printf("DHGR Mode Test\n"); // memset(DHGRBuffer, 0, sizeof(DHGRBuffer)); NTSCSwitchModeFuncs(DHGRModeFillRowBuffer, AlwaysColorburst); memcpy(DHGRBuffer, dhgr_bytes, sizeof(DHGRBuffer)); // XXX superhack static uint8_t buffer[512]; int blocksFetched = 0; if(0) { // for(uint32_t blockIndex = 0; blockIndex < 15523840; blockIndex += 517) for(uint32_t blockIndex = 0; blockIndex < 15523840; blockIndex += 127) { // blockIndex = 15000000 + blockIndex % 1000000; // blockIndex = 2048 + blockIndex % 500; memset(buffer, 0, sizeof(buffer)); buffer[0] = 0xCA; buffer[1] = 0xFE; buffer[2] = 0xFE; buffer[3] = 0xED; HAL_SD_CardStateTypeDef prevcardstatus = HAL_SD_GetCardState(&hsd2); HAL_StatusTypeDef status = HAL_SD_ReadBlocks(&hsd2, buffer, blockIndex, 1, 1000); if(status != HAL_OK) { printf("status %d for block %lu, %d blocks successful before this.\n", status, blockIndex, blocksFetched); HAL_SD_CardStateTypeDef cardstatus = HAL_SD_GetCardState(&hsd2); printf("card state %ld, was %ld\n", cardstatus, prevcardstatus); while(1); } if(HAL_GPIO_ReadPin(USER3_GPIO_Port, USER3_Pin)) { printf("block %lu : first 4 bytes %02X %02X %02X %02X\n", blockIndex, buffer[0], buffer[1], buffer[2], buffer[3]); } blocksFetched++; } printf("read all blocks successfully\n"); } FILE *fp = fopen("dhgr.bin" , "rb"); if(fp == NULL) { printf("failed to open dhgr.bin\n"); return; } fread(DHGRBuffer, 1, sizeof(DHGRBuffer), fp); memset(DHGRBuffer, 0x11, sizeof(DHGRBuffer)); // XXX while(0); } void HGRModeTest() { printf("HGR Mode Test\n"); memset(WozModeHGRBuffers, 0, sizeof(WozModeHGRBuffers)); WozModeDisplayMode = HIRES; NTSCSwitchModeFuncs(WozModeFillRowBuffer, WozModeNeedsColorburst); static int x = 140; static int y = 96; struct Event ev; int done = 0; int palette = 0x00; KeyRepeatManager keyRepeat; while(!done) { int haveEvent = EventPoll(&ev); haveEvent = KeyRepeatUpdate(&keyRepeat, haveEvent, &ev); if(haveEvent) { int draw = 0; int clear = 0; switch(ev.eventType) { case MOUSE_MOVE: { const struct MouseMoveEvent move = ev.u.mouseMove; x += move.x; y += move.y; draw = 1; break; } case MOUSE_BUTTONPRESS: { const struct MouseButtonPressEvent press = ev.u.mouseButtonPress; if(press.button == 0) { clear = 1; } else { palette ^= 0x80; } } case KEYBOARD_RAW: { const struct KeyboardRawEvent raw = ev.u.keyboardRaw; if(raw.isPress) { if(raw.key == KEYCAP_UP) { y -= 1; draw = 1; } else if(raw.key == KEYCAP_DOWN) { y += 1; draw = 1; } else if(raw.key == KEYCAP_LEFT) { x -= 1; draw = 1; } else if(raw.key == KEYCAP_RIGHT) { x += 1; draw = 1; } else if(raw.key == KEYCAP_1_EXCLAMATION) { palette = 0x00; draw = 1; } else if(raw.key == KEYCAP_2_AT) { palette = 0x80; draw = 1; } else if(raw.key == KEYCAP_END) { clear = 1; } } break; } default: // pass; break; } if(draw) { if((x >= 0) && (y >= 0) && (x < 280) && (y < 192)) { WozModeHGRBuffers[0][0][WozModeHGRRowOffsets[y] + x / 7] |= (1 << (x % 7)) | palette; } } if(clear) { memset(WozModeHGRBuffers, 0, sizeof(WozModeHGRBuffers)); } } main_iterate(); } } void TextModeTest() { printf("Text Mode Text\n"); memset(WozModeTextBuffers, 248, sizeof(WozModeTextBuffers)); NTSCSwitchModeFuncs(WozModeFillRowBuffer, WozModeNeedsColorburst); // fill with ONE TWO THREE FOUR over and over again const char *str = "ONE TWO FREE FOUR "; int stringIndex = 0; char *buffer = malloc(sizeof(WozModeTextBuffers[0][0]) * 2); for(size_t s = 0; s < sizeof(WozModeTextBuffers[0][0]) * 2; s++) { buffer[s] = str[stringIndex]; stringIndex = (stringIndex + 1) % strlen(str); } int bufferIndex = 0; while(1) { memcpy(WozModeTextBuffers[0][0], buffer + bufferIndex, sizeof(WozModeTextBuffers[0][0])); bufferIndex = (bufferIndex + 1) % sizeof(WozModeTextBuffers[0][0]); char *foobar = malloc(bufferIndex * 667 % 513); free(foobar); main_iterate(); } } extern void enqueue_ascii(int s); int doCommandLS(int wordCount, char **words) { FRESULT res; DIR dir; static FILINFO fno; res = f_opendir(&dir, "/"); /* Open the directory */ if (res == FR_OK) { for (;;) { res = f_readdir(&dir, &fno); /* Read a directory item */ if(res != FR_OK) { printf("failed to readdir - %d\n", res); break; } if (fno.fname[0] == 0) break; /* Break on end of dir */ if (fno.fattrib & AM_DIR) { /* It is a directory */ printf("%s/\n", fno.fname); } else { /* It is a file. */ printf("%s\n", fno.fname); } } f_closedir(&dir); } else { printf("failed to f_opendir - %d\n", res); } return 0; } extern int errno; int playAudio(int argc, const char **argv) { float rate; size_t bufferLength; uint8_t *stereoBuffer; RoAudioGetSamplingInfo(&rate, &bufferLength, &stereoBuffer); size_t halfBufferSamples = bufferLength / 2; size_t halfBufferMonoSamples = halfBufferSamples / 2; uint8_t *monoTrack = malloc(halfBufferMonoSamples); const char *filename = argv[1]; FILE *fp = fopen (filename, "rb"); if(fp == NULL) { printf("ERROR: couldn't open \"%s\" for reading, errno %d\n", filename, errno); return 1; } size_t where; size_t samplesRead = 0; int quit = 0; float angle = 0; do { // Wait for audio to get at least half a buffer past us samplesRead = fread(monoTrack, 1, halfBufferMonoSamples, fp); if(samplesRead < 1) { printf("ERROR: couldn't read block of audio from \"%s\", read %zd\n", filename, samplesRead); return 1; } where = RoAudioBlockToHalfBuffer(); float a = sinf(angle) * .5 + .5; for(int i = 0; i < samplesRead; i++) { int v = monoTrack[i]; audioBuffer[where + i * 2 + 0] = 128 + (v - 128) * a; audioBuffer[where + i * 2 + 1] = 128 + (v - 128) * (1 - a); } if(0) { angle += 3.14159 * 2 / 100; } Event ev; int haveEvent = EventPoll(&ev); if(haveEvent) { switch(ev.eventType) { case KEYBOARD_RAW: { const struct KeyboardRawEvent raw = ev.u.keyboardRaw; if(raw.isPress) { quit = 1; } break; } default: // pass; break; } } main_iterate(); // XXX } while(!quit && (samplesRead == halfBufferMonoSamples)); // fill any part not read from file to silence for(int i = samplesRead; i < halfBufferMonoSamples; i++) { audioBuffer[where + i * 2 + 0] = 128; audioBuffer[where + i * 2 + 1] = 128; } // Wait until audio is playing our final half and clear the other half where = RoAudioBlockToHalfBuffer(); memset(audioBuffer + where, 128, halfBufferSamples); // Wait until audio is done with our final half then clear it where = RoAudioBlockToHalfBuffer(); memset(audioBuffer + where, 128, halfBufferSamples); fclose(fp); return 0; } /* USER CODE END 0 */ /** * @brief The application entry point. * @retval int */ int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* Enable I-Cache---------------------------------------------------------*/ SCB_EnableICache(); /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* USER CODE BEGIN Init */ SCB->CACR |= SCB_CACR_FORCEWT_Msk; SCB_EnableDCache(); /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_DMA_Init(); MX_USART2_UART_Init(); MX_FMC_Init(); MX_SPI4_Init(); MX_USB_HOST_Init(); MX_TIM1_Init(); MX_SDMMC2_SD_Init(); MX_FATFS_Init(); MX_DAC1_Init(); /* USER CODE BEGIN 2 */ if(0){ GPIO_InitTypeDef GPIO_InitStruct = {0}; GPIO_InitStruct.Pin = USER1_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_PULLDOWN; HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); } printf("Rocinante Firmware -------------------------------------\n"); /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ FRESULT result = f_mount(&gFATVolume, "0:", 1); if(result != FR_OK) { printf("ERROR: FATFS mount result is %d\n", result); panic(); } else { printf("Mounted FATFS from SD card successfully.\n"); } // printf("# ls 0:\n"); // doCommandLS(0, NULL); HAL_GPIO_WritePin(RGBLED_SPI_GPIO_Port, RGBLED_SPI_Pin, GPIO_PIN_RESET); printf("Hello World\n"); printf("System clock is %lu\n", HAL_RCC_GetSysClockFreq()); // RoDebugOverlayPrintf("Hello World\n"); while(0) { for(int i = 0; i < 1000000; i++) { delayNanos(1000); } HAL_GPIO_WritePin(DEBUG_LED_GPIO_Port, DEBUG_LED_Pin, GPIO_PIN_SET ); for(int i = 0; i < 1000000; i++) { delayNanos(1000); } HAL_GPIO_WritePin(DEBUG_LED_GPIO_Port, DEBUG_LED_Pin, GPIO_PIN_RESET ); } LEDColors[0][0] = 0x10; LEDColors[0][1] = 0; LEDColors[0][2] = 0; LEDColors[1][0] = 0; LEDColors[1][1] = 0x10; LEDColors[1][2] = 0; LEDColors[2][0] = 0; LEDColors[2][1] = 0; LEDColors[2][2] = 0x10; write3LEDString(LEDColors); startNTSCScanout(); if(0) TextModeTest(); if(0) HGRModeTest(); if(0) DHGRModeTest(); if(0) { const char *args[] = { "play", "inside-out.u8", }; playAudio(sizeof(args) / sizeof(args[0]), args); } if(1) { const char *args[] = { "apple2e", // "-fast", "-diskII", "diskII.c600.c6ff.bin", // "1.DSK", // "LodeRunner.dsk", // "Chop.dsk", "Plasmania.dsk", "none", "apple2e.rom", }; NTSCSwitchModeFuncs(WozModeFillRowBuffer, WozModeNeedsColorburst); const char* programString = R"( 10 HGR : POKE - 16302,0 11 MX = 280 12 MY = 192 20 FOR X = 0 TO MX - 1 30 CX = X / MX * 3 - 2 40 FOR Y = 0 TO MY / 2 - 1 50 CY = Y / MY * 3 - 1.5 60 C = 0 70 XX = 0:YY = 0 80 IF XX * XX + YY * YY > 4 OR C > 15 THEN 200 90 OX = XX 100 XX = XX * XX - YY * YY + CX 110 YY = 2 * OX * YY + CY 120 C = C + 1 130 GOTO 80 200 IF C > 7 THEN C = C - 8: GOTO 200 205 HCOLOR= C 210 HPLOT X,Y 215 HPLOT X,MY - 1 - Y 220 NEXT Y 230 NEXT X REM 5 FOR X = 1 TO 100 : PRINT X : NEXT X REM 5 GOTO 5 REM 6 END RUN )"; if(0)for(size_t s = 0; s < strlen(programString); s++) enqueue_ascii(programString[s]); apple2_main(sizeof(args) / sizeof(args[0]), args); /* doesn't return */ } while (1) { /* USER CODE END WHILE */ MX_USB_HOST_Process(); /* USER CODE BEGIN 3 */ // ----- USER button test if(HAL_GPIO_ReadPin(USER1_GPIO_Port, USER1_Pin)) { // printf("user 1\n"); } if(HAL_GPIO_ReadPin(USER2_GPIO_Port, USER2_Pin)) { // printf("user 2\n"); } if(HAL_GPIO_ReadPin(USER3_GPIO_Port, USER3_Pin)) { // printf("user 3\n"); } // ----- DEBUG LED test // HAL_GPIO_WritePin(DEBUG_LED_GPIO_Port, DEBUG_LED_Pin, lightLED ? GPIO_PIN_SET : GPIO_PIN_RESET); LEDTestIterate(); } return 0; /* USER CODE END 3 */ } /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; /** Supply configuration update enable */ HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY); /** Configure the main internal regulator output voltage */ __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0); while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {} /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_HSE; RCC_OscInitStruct.HSEState = RCC_HSE_ON; RCC_OscInitStruct.HSI48State = RCC_HSI48_ON; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; RCC_OscInitStruct.PLL.PLLM = 10; RCC_OscInitStruct.PLL.PLLN = 384; RCC_OscInitStruct.PLL.PLLP = 2; RCC_OscInitStruct.PLL.PLLQ = 20; RCC_OscInitStruct.PLL.PLLR = 2; RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_1; RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE; RCC_OscInitStruct.PLL.PLLFRACN = 0; if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { Error_Handler(); } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2 |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2; RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2; RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2; RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2; RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2; if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK) { Error_Handler(); } PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART2|RCC_PERIPHCLK_SPI4 |RCC_PERIPHCLK_SDMMC|RCC_PERIPHCLK_USB |RCC_PERIPHCLK_FMC; PeriphClkInitStruct.FmcClockSelection = RCC_FMCCLKSOURCE_D1HCLK; PeriphClkInitStruct.SdmmcClockSelection = RCC_SDMMCCLKSOURCE_PLL; PeriphClkInitStruct.Spi45ClockSelection = RCC_SPI45CLKSOURCE_D2PCLK1; PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1; PeriphClkInitStruct.UsbClockSelection = RCC_USBCLKSOURCE_HSI48; if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) { Error_Handler(); } /** Enable USB Voltage detector */ HAL_PWREx_EnableUSBVoltageDetector(); } /** * @brief DAC1 Initialization Function * @param None * @retval None */ static void MX_DAC1_Init(void) { /* USER CODE BEGIN DAC1_Init 0 */ /* USER CODE END DAC1_Init 0 */ DAC_ChannelConfTypeDef sConfig = {0}; /* USER CODE BEGIN DAC1_Init 1 */ /* USER CODE END DAC1_Init 1 */ /** DAC Initialization */ hdac1.Instance = DAC1; if (HAL_DAC_Init(&hdac1) != HAL_OK) { Error_Handler(); } /** DAC channel OUT1 config */ sConfig.DAC_SampleAndHold = DAC_SAMPLEANDHOLD_DISABLE; sConfig.DAC_Trigger = DAC_TRIGGER_NONE; sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE; sConfig.DAC_ConnectOnChipPeripheral = DAC_CHIPCONNECT_DISABLE; sConfig.DAC_UserTrimming = DAC_TRIMMING_FACTORY; if (HAL_DAC_ConfigChannel(&hdac1, &sConfig, DAC_CHANNEL_1) != HAL_OK) { Error_Handler(); } /** DAC channel OUT2 config */ sConfig.DAC_ConnectOnChipPeripheral = DAC_CHIPCONNECT_DISABLE; if (HAL_DAC_ConfigChannel(&hdac1, &sConfig, DAC_CHANNEL_2) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN DAC1_Init 2 */ /* USER CODE END DAC1_Init 2 */ } /** * @brief SDMMC2 Initialization Function * @param None * @retval None */ static void MX_SDMMC2_SD_Init(void) { /* USER CODE BEGIN SDMMC2_Init 0 */ /* USER CODE END SDMMC2_Init 0 */ /* USER CODE BEGIN SDMMC2_Init 1 */ /* USER CODE END SDMMC2_Init 1 */ hsd2.Instance = SDMMC2; hsd2.Init.ClockEdge = SDMMC_CLOCK_EDGE_RISING; hsd2.Init.ClockPowerSave = SDMMC_CLOCK_POWER_SAVE_DISABLE; hsd2.Init.BusWide = SDMMC_BUS_WIDE_4B; hsd2.Init.HardwareFlowControl = SDMMC_HARDWARE_FLOW_CONTROL_DISABLE; hsd2.Init.ClockDiv = 5; hsd2.Init.TranceiverPresent = SDMMC_TRANSCEIVER_NOT_PRESENT; /* USER CODE BEGIN SDMMC2_Init 2 */ /* USER CODE END SDMMC2_Init 2 */ } /** * @brief SPI4 Initialization Function * @param None * @retval None */ static void MX_SPI4_Init(void) { /* USER CODE BEGIN SPI4_Init 0 */ /* USER CODE END SPI4_Init 0 */ /* USER CODE BEGIN SPI4_Init 1 */ /* USER CODE END SPI4_Init 1 */ /* SPI4 parameter configuration*/ hspi4.Instance = SPI4; hspi4.Init.Mode = SPI_MODE_MASTER; hspi4.Init.Direction = SPI_DIRECTION_2LINES_TXONLY; hspi4.Init.DataSize = SPI_DATASIZE_8BIT; hspi4.Init.CLKPolarity = SPI_POLARITY_LOW; hspi4.Init.CLKPhase = SPI_PHASE_1EDGE; hspi4.Init.NSS = SPI_NSS_SOFT; hspi4.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_16; hspi4.Init.FirstBit = SPI_FIRSTBIT_LSB; hspi4.Init.TIMode = SPI_TIMODE_DISABLE; hspi4.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; hspi4.Init.CRCPolynomial = 0x0; hspi4.Init.NSSPMode = SPI_NSS_PULSE_DISABLE; hspi4.Init.NSSPolarity = SPI_NSS_POLARITY_LOW; hspi4.Init.FifoThreshold = SPI_FIFO_THRESHOLD_01DATA; hspi4.Init.TxCRCInitializationPattern = SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN; hspi4.Init.RxCRCInitializationPattern = SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN; hspi4.Init.MasterSSIdleness = SPI_MASTER_SS_IDLENESS_00CYCLE; hspi4.Init.MasterInterDataIdleness = SPI_MASTER_INTERDATA_IDLENESS_00CYCLE; hspi4.Init.MasterReceiverAutoSusp = SPI_MASTER_RX_AUTOSUSP_DISABLE; hspi4.Init.MasterKeepIOState = SPI_MASTER_KEEP_IO_STATE_ENABLE; hspi4.Init.IOSwap = SPI_IO_SWAP_DISABLE; if (HAL_SPI_Init(&hspi4) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN SPI4_Init 2 */ /* USER CODE END SPI4_Init 2 */ } /** * @brief TIM1 Initialization Function * @param None * @retval None */ static void MX_TIM1_Init(void) { /* USER CODE BEGIN TIM1_Init 0 */ /* USER CODE END TIM1_Init 0 */ TIM_MasterConfigTypeDef sMasterConfig = {0}; TIM_IC_InitTypeDef sConfigIC = {0}; /* USER CODE BEGIN TIM1_Init 1 */ /* USER CODE END TIM1_Init 1 */ htim1.Instance = TIM1; htim1.Init.Prescaler = 0; htim1.Init.CounterMode = TIM_COUNTERMODE_UP; htim1.Init.Period = 0; htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim1.Init.RepetitionCounter = 0; htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_IC_Init(&htim1) != HAL_OK) { Error_Handler(); } sMasterConfig.MasterOutputTrigger = TIM_TRGO_OC1; sMasterConfig.MasterOutputTrigger2 = TIM_TRGO2_RESET; sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK) { Error_Handler(); } sConfigIC.ICPolarity = TIM_INPUTCHANNELPOLARITY_RISING; sConfigIC.ICSelection = TIM_ICSELECTION_DIRECTTI; sConfigIC.ICPrescaler = TIM_ICPSC_DIV1; sConfigIC.ICFilter = 0; if (HAL_TIM_IC_ConfigChannel(&htim1, &sConfigIC, TIM_CHANNEL_2) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM1_Init 2 */ /* USER CODE END TIM1_Init 2 */ } /** * @brief USART2 Initialization Function * @param None * @retval None */ static void MX_USART2_UART_Init(void) { /* USER CODE BEGIN USART2_Init 0 */ /* USER CODE END USART2_Init 0 */ /* USER CODE BEGIN USART2_Init 1 */ /* USER CODE END USART2_Init 1 */ huart2.Instance = USART2; huart2.Init.BaudRate = 115200; huart2.Init.WordLength = UART_WORDLENGTH_8B; huart2.Init.StopBits = UART_STOPBITS_1; huart2.Init.Parity = UART_PARITY_NONE; huart2.Init.Mode = UART_MODE_TX_RX; huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; huart2.Init.OverSampling = UART_OVERSAMPLING_16; huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE; huart2.Init.ClockPrescaler = UART_PRESCALER_DIV1; huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT; if (HAL_UART_Init(&huart2) != HAL_OK) { Error_Handler(); } if (HAL_UARTEx_SetTxFifoThreshold(&huart2, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK) { Error_Handler(); } if (HAL_UARTEx_SetRxFifoThreshold(&huart2, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK) { Error_Handler(); } if (HAL_UARTEx_DisableFifoMode(&huart2) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN USART2_Init 2 */ /* USER CODE END USART2_Init 2 */ } /** * Enable DMA controller clock */ static void MX_DMA_Init(void) { /* DMA controller clock enable */ __HAL_RCC_DMA2_CLK_ENABLE(); __HAL_RCC_DMA1_CLK_ENABLE(); /* DMA interrupt init */ /* DMA1_Stream0_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Stream0_IRQn, 0, 0); HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn); /* DMA2_Stream1_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA2_Stream1_IRQn, 0, 0); HAL_NVIC_EnableIRQ(DMA2_Stream1_IRQn); } /* FMC initialization function */ static void MX_FMC_Init(void) { /* USER CODE BEGIN FMC_Init 0 */ /* USER CODE END FMC_Init 0 */ FMC_SDRAM_TimingTypeDef SdramTiming = {0}; /* USER CODE BEGIN FMC_Init 1 */ /* USER CODE END FMC_Init 1 */ /** Perform the SDRAM1 memory initialization sequence */ hsdram1.Instance = FMC_SDRAM_DEVICE; /* hsdram1.Init */ hsdram1.Init.SDBank = FMC_SDRAM_BANK1; hsdram1.Init.ColumnBitsNumber = FMC_SDRAM_COLUMN_BITS_NUM_9; hsdram1.Init.RowBitsNumber = FMC_SDRAM_ROW_BITS_NUM_12; hsdram1.Init.MemoryDataWidth = FMC_SDRAM_MEM_BUS_WIDTH_16; hsdram1.Init.InternalBankNumber = FMC_SDRAM_INTERN_BANKS_NUM_4; hsdram1.Init.CASLatency = FMC_SDRAM_CAS_LATENCY_3; hsdram1.Init.WriteProtection = FMC_SDRAM_WRITE_PROTECTION_DISABLE; hsdram1.Init.SDClockPeriod = FMC_SDRAM_CLOCK_PERIOD_3; hsdram1.Init.ReadBurst = FMC_SDRAM_RBURST_DISABLE; hsdram1.Init.ReadPipeDelay = FMC_SDRAM_RPIPE_DELAY_2; /* SdramTiming */ SdramTiming.LoadToActiveDelay = 16; SdramTiming.ExitSelfRefreshDelay = 16; SdramTiming.SelfRefreshTime = 16; SdramTiming.RowCycleDelay = 16; SdramTiming.WriteRecoveryTime = 16; SdramTiming.RPDelay = 16; SdramTiming.RCDDelay = 16; if (HAL_SDRAM_Init(&hsdram1, &SdramTiming) != HAL_OK) { Error_Handler( ); } /* USER CODE BEGIN FMC_Init 2 */ /* USER CODE END FMC_Init 2 */ } /** * @brief GPIO Initialization Function * @param None * @retval None */ static void MX_GPIO_Init(void) { GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOE_CLK_ENABLE(); __HAL_RCC_GPIOF_CLK_ENABLE(); __HAL_RCC_GPIOH_CLK_ENABLE(); __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOG_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); __HAL_RCC_GPIOD_CLK_ENABLE(); __HAL_RCC_GPIOI_CLK_ENABLE(); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(DEBUG_LED_GPIO_Port, DEBUG_LED_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOI, GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3 |GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7, GPIO_PIN_RESET); /*Configure GPIO pins : USER2_Pin USER3_Pin */ GPIO_InitStruct.Pin = USER2_Pin|USER3_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_PULLDOWN; HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); /*Configure GPIO pin : DEBUG_LED_Pin */ GPIO_InitStruct.Pin = DEBUG_LED_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(DEBUG_LED_GPIO_Port, &GPIO_InitStruct); /*Configure GPIO pin : SDIO_CD_Pin */ GPIO_InitStruct.Pin = SDIO_CD_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_PULLUP; HAL_GPIO_Init(SDIO_CD_GPIO_Port, &GPIO_InitStruct); /*Configure GPIO pins : PI0 PI1 PI2 PI3 PI4 PI5 PI6 PI7 */ GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3 |GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM; HAL_GPIO_Init(GPIOI, &GPIO_InitStruct); /*Configure GPIO pin : PA15 */ GPIO_InitStruct.Pin = GPIO_PIN_15; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF1_TIM2; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /*Configure GPIO pin : PB6 */ GPIO_InitStruct.Pin = GPIO_PIN_6; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF7_USART1; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); } /* USER CODE BEGIN 4 */ /* USER CODE END 4 */ /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ /* USER CODE END Error_Handler_Debug */ } #ifdef USE_FULL_ASSERT /** * @brief Reports the name of the source file and the source line number * where the assert_param error has occurred. * @param file: pointer to the source file name * @param line: assert_param error line source number * @retval None */ void assert_failed(uint8_t *file, uint32_t line) { /* USER CODE BEGIN 6 */ /* User can add his own implementation to report the file name and line number, tex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ /* USER CODE END 6 */ } #endif /* USE_FULL_ASSERT */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
49.20222
175
0.621504
231dbb944c44e2e97bf4633e189b4349a4e814a2
22,699
h
C
core/data/vec/Vec.h
Alexander-Serov/Placenta-Morphometry
dfc084d8b83acf0b67808cbf941d28856883a00e
[ "MIT" ]
null
null
null
core/data/vec/Vec.h
Alexander-Serov/Placenta-Morphometry
dfc084d8b83acf0b67808cbf941d28856883a00e
[ "MIT" ]
null
null
null
core/data/vec/Vec.h
Alexander-Serov/Placenta-Morphometry
dfc084d8b83acf0b67808cbf941d28856883a00e
[ "MIT" ]
1
2019-06-06T13:46:31.000Z
2019-06-06T13:46:31.000Z
/******************************************************************************\ |* Population library for C++ X.X.X *| |*----------------------------------------------------------------------------*| The Population License is similar to the MIT license in adding this clause: for any writing public or private that has resulted from the use of the software population, the reference of this book "Population library, 2012, Vincent Tariel" shall be included in it. So, the terms of the Population License are: Copyright © 2012, Tariel Vincent Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software and for any writing public or private that has resulted from the use of the software population, the reference of this book "Population library, 2012, Vincent Tariel" shall be included in it. The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the Software. \***************************************************************************/ #ifndef Vec_H #define Vec_H #include<vector> #include<iostream> #include<fstream> #include<algorithm> #include <numeric> #include<cmath> #include"core/data/typeF/TypeF.h" #include"core/data/utility/Exception.h" #include"core/data/mat/MatNBoundaryCondition.h" #include"core/data/utility/BasicUtility.h" #include"core/data/typeF/Complex.h" #include"core/data/typeF/TypeTraitsF.h" #include"core/data/functor/FunctorF.h" namespace pop { template<int DIM, typename Type> class VecN; /*! \ingroup Data * \defgroup Vector Coordinate vector * \brief coordinate vector as tuple of numbers */ /*! \ingroup Vector * \defgroup Vec Vec{I32,F64} * \brief template class for tuple of numbers of variable size */ template<typename Type> class POP_EXPORTS Vec : public std::vector<Type> { private: /*! * \class pop::Vec * \ingroup Vec * \brief tuple of numbers of variable size for the representation of the coordinate vector * \author Tariel Vincent * \tparam Type number type * * Vec is an extension of the std::vector to include classical arithmetic operations of linear algebra. * \code VecF64 v1(3),v2(3);//VecF64=Vec<double> v1(0)= 1;v1(1)= 0.5;v1(2)=3.5; v2(0)=-1;v2(1)=-0.5;v2(2)=2.5; v1 = (v1+v2)/normValue(v1+v2);//add two vector and normalized by the norm std::cout<<v1<<std::endl;//0,0,1 Mat2F64 m =GeometricalTransformation::rotation3D(PI/2,1);//rotation along the y-axis v1 = m*v1;//multiply the matrix by the vector std::cout<<v1<<std::endl;//-1,0,0 * \endcode * \sa pop::LinearAlgebra pop::GeometricalTransformation */ public: /*! \typedef E * index type to access an element in the ordered list of numbers */ typedef int E; /*! \typedef F * number type */ typedef Type F; /*! \typedef Domain * Domain=int The domain of definition of a Vec is the number of elements */ typedef unsigned int Domain; typedef typename std::vector<Type>::value_type value_type; typedef typename std::vector<Type>::pointer pointer; typedef typename std::vector<Type>::const_pointer const_pointer; typedef typename std::vector<Type>::reference reference; typedef typename std::vector<Type>::const_reference const_reference; typedef typename std::vector<Type>::iterator iterator; typedef typename std::vector<Type>::const_iterator const_iterator; typedef typename std::vector<Type>::const_reverse_iterator const_reverse_iterator; typedef typename std::vector<Type>::reverse_iterator reverse_iterator; typedef typename std::vector<Type>::size_type size_type; typedef typename std::vector<Type>::difference_type difference_type; typedef typename std::vector<Type>::allocator_type allocator_type; /*! * * default constructor */ Vec(); /*! * * copy constructor */ template<typename Type1> Vec(const Vec<Type1> &v); Vec(const Vec &v); /*! \fn Vec(const Vec<Type1> &v); * * constructor the Vec from a std::vector */ template<typename Type1> Vec(const std::vector<Type1> &v); /*! * \param size number of elements * \param value affection value for all elements * * constructor a vector with the given size */ explicit Vec(int size,Type value=Type()); /*! * \param x input VecN * * constructor from a VecN * \sa VecN */ template<typename Type1> Vec(const VecN<1,Type1>& x){ (*this).resize(1); (*this)[0]=x[0]; } /*! * \param x input VecN * * constructor from a VecN for type conversion * \sa VecN */ template<typename Type1> Vec(const VecN<2,Type1>& x){ (*this).resize(2); (*this)[0]=x[0]; (*this)[1]=x[1]; } /*! * \param x input VecN * * constructor from a VecN for type conversion * \sa VecN */ template<typename Type1> Vec(const VecN<3,Type1>& x){ (*this).resize(3); (*this)[0]=x[0]; (*this)[1]=x[1]; (*this)[2]=x[2]; } template<typename Type1> Vec(const VecN<4,Type1>& x){ (*this).resize(4); (*this)[0]=x[0]; (*this)[1]=x[1]; (*this)[2]=x[2]; (*this)[3]=x[3]; } template<typename Type1> Vec(const VecN<5,Type1>& x){ (*this).resize(5); (*this)[0]=x[0]; (*this)[1]=x[1]; (*this)[2]=x[2]; (*this)[3]=x[3]; (*this)[4]=x[4]; } /*! * \param __first input range * \param __last last range * \param __a allocator type * * range constructor Constructs a container with as many elements as the range [first,last), with each element constructed from its corresponding element in that range, in the same order. * \sa VecN */ template<typename _InputIterator> Vec(_InputIterator __first, _InputIterator __last, const allocator_type& __a = allocator_type()) : std::vector<Type>(__first,__last,__a) { } /*! \return number of elements * * return the number of elements */ Domain getDomain()const; /*! * \param i element entry * \return value reference * * return the value reference of the i entry */ Type & operator ()(unsigned int i); /*! * \param i element entry * \return const value reference * * return the const value reference of the i entry */ const Type & operator ()(unsigned int i)const; /*! * \param v input vector * \return reference of the output vector * * Addition assignment */ Vec<Type>& operator+=(const Vec<Type>& v); /*! * \param value value * \return reference of the output vector * * vout(i)=vin(i)+v */ Vec& operator+=(Type value); /*! * \param v other vector * \return output vector * * Addition mout(i)=(*this)(i)+v1(i) */ Vec<Type> operator+(const Vec<Type>& v)const ; /*! * \return output vector * * Addition mout(i)=v(i)+value */ Vec operator+(Type value)const; /*! * \param v input vector * \return reference of the output vector * * Subtraction assignment */ Vec<Type>& operator-=(const Vec<Type>& v); /*! * \param value scalar value * \return reference of the outputVec vector * vout(i)=vin(i)-v */ Vec& operator-=(Type value); /*! * \param v other vector * \return output vector * * Subtraction mout(i)=(*this)(i)-v1(i) */ Vec<Type> operator-(const Vec<Type>& v)const ; /*! * \return output vector * * unary - operator -> mout(i)=-(*this)(i) */ Vec<Type> operator-(); /*! * \param value input value * \return output vector * * Division mout(i)=(*this)(i)-value */ Vec operator-(Type value)const; /*! * \param v input vector * \return reference of the output vector * * Multiplication term by term * * vout(i)*=v(i) * */ Vec<Type>& operator*=(const Vec<Type>& v); /*! * \param value input value * \return reference of the output vector * * v(i)*=value */ Vec& operator*=(Type value); /*! * \param value input value * \return output vector * * Multiplication mout(i)=v(i)*value */ Vec operator*(Type value)const; /*! * \param v input vector * \return output vector * * Multiplication term by term mout(i)=this(i)*v(i)*value * \sa productInner(const pop::Vec<T1>& v1,const pop::Vec<T1>& v2) */ Vec<Type> operator*(const Vec<Type>& v)const; /*! * \param v input vector * \return reference of the output vector * * vout(i)/=v(i) */ Vec<Type>& operator/=(const Vec<Type>& v); /*! * \param value input value * \return reference of the output vector * * v(i)/=value */ Vec& operator/=(Type value); /*! * \param v input vector * \return output vector * * Division mout(i)=this(i)/v(i) */ Vec<Type> operator/(const Vec<Type>& v)const; /*! \fn Vec operator/(Type value)const; * \param value input value * \return output vector * * Division mout(i)=v(i)/value */ // bool operator==(int); // bool operator!=(int); // bool Vec<Type>::operator==(const Vec<Type>& v, int m) Vec operator/(Type value)const; /*! * \param p norm (2=euclidean) * \return the euclidean norm of the vector * * return \f$ (\sum_i |v(i)| ^p)^{1/p}\f$ */ F64 norm(int p=2)const; /*! * \param p norm (2=euclidean) * \return the euclidean norm of the vector * * return \f$ \sum_i |v(i)|^p)\f$ */ F64 normPower(int p=2)const; /*! * \return the multiplication of all elements * * return \f$ \Pi_i v(i) \f$ */ Type multCoordinate(); /*! \param file input file \exception std::string the input file does not exist or it is not .v format * * The loader attempts to read the Vec using the specified format v */ void load(std::string file)throw(pexception); /*! \param file input file \exception std::string the input file does not exist or it is not .v format * * The save attempts to save the vector using the specified format v */ void save(std::string file)const throw(pexception); /*! \fn Vec * clone(); * \return clone * * return an exact copy of the object * */ Vec * clone(); #ifdef WITHSWIG void setValue(int index, Type value){ (*this)[index]=value; } Type getValue(int index)const{ return (*this)[index]; } #endif void display(); }; typedef Vec<ComplexF64> VecComplexF64; typedef Vec<F64> VecF64; typedef Vec<I32> VecI32; template<typename Type> Vec<Type>::Vec() { } template<typename Type> Vec<Type>::Vec(const Vec<Type> &v) :std::vector<Type>(v) { } template<typename Type>template<typename Type1> Vec<Type>::Vec(const Vec<Type1> &v) { this->resize(v.size()); std::transform(v.begin(),v.end(),this->begin(),ArithmeticsSaturation<Type,Type1>::Range); } template<typename Type>template<typename Type1> Vec<Type>::Vec(const std::vector<Type1> &v) :std::vector<Type>(v) { } template<typename Type> Vec<Type> * Vec<Type>::clone(){ return new Vec(*this); } template<typename Type> Vec<Type>::Vec(int size,Type value) :std::vector<Type>(size,value) { } template<typename Type> typename Vec<Type>::Domain Vec<Type>::getDomain()const{ return (int)(*this).size(); } template<typename Type> const Type & Vec<Type>::operator ()(unsigned int i)const{ POP_DbgAssert( i<this->size()); return (*this)[i]; } template<typename Type> Type & Vec<Type>::operator ()(unsigned int i){ POP_DbgAssert( i<this->size()); return (*this)[i]; } template<typename Type> void Vec<Type>::load(std::string file)throw(pexception){ std::ifstream in(file.c_str()); if (in.fail()) { throw(pexception("In Matrix::load, Matrix: cannot open file: "+file)); } else { in>>*this; } } template<typename Type> void Vec<Type>::save(std::string file)const throw(pexception){ std::ofstream out(file.c_str()); if (out.fail()) { throw(pexception("In Matrix::save, cannot open file: "+file)); } else { out<<*this; } } template<typename Type> F64 Vec<Type>::norm(int p)const{ Private::sumNorm<Type> op(p); if(p==0||p==1) return std::accumulate(this->begin(),this->end(),0.,op); if(p==2) return std::sqrt(std::accumulate(this->begin(),this->end(),0.,op)); else return std::pow(std::accumulate(this->begin(),this->end(),0.,op),1./p); } template<typename Type> F64 Vec<Type>::normPower(int p)const{ Private::sumNorm<Type> op(p); return std::accumulate(this->begin(),this->end(),0.,op); } template<typename Type> Type Vec<Type>::multCoordinate(){ Type sum=1; for(unsigned int i=0;i<this->size();i++) sum*=this->operator ()(i); return sum; } template<typename Type> void Vec<Type>::display(){ std::cout<<*this<<std::endl; } template<typename Type> Vec<Type>& Vec<Type>::operator+=(const Vec<Type>& v) { POP_DbgAssert( this->size()==v.size()); std::transform(this->begin(),this->end(),v.begin(),this->begin(),std::plus<Type>()); return *this; } template<typename Type> Vec<Type>& Vec<Type>::operator-=(const Vec<Type>& v) { POP_DbgAssert( this->size()==v.size()); std::transform(this->begin(),this->end(),v.begin(),this->begin(),std::minus<Type>()); return *this; } template<typename Type> Vec<Type>& Vec<Type>::operator*=(const Vec<Type>& v) { POP_DbgAssert( this->size()==v.size()); std::transform(this->begin(),this->end(),v.begin(),this->begin(),std::multiplies<Type>()); return *this; } template<typename Type> Vec<Type>& Vec<Type>::operator/=(const Vec<Type>& v) { POP_DbgAssert( this->size()==v.size()); std::transform(this->begin(),this->end(),v.begin(),this->begin(),std::divides<Type>()); return *this; } template<typename Type> Vec<Type> Vec<Type>::operator+(const Vec<Type>& v)const { Vec<Type> vout(*this); vout+=v; return vout; } template<typename Type> Vec<Type> Vec<Type>::operator-(const Vec<Type>& v)const { Vec<Type> vout(*this); vout-=v; return vout; } template<typename Type> Vec<Type> Vec<Type>::operator*(const Vec<Type>& v)const { Vec<Type> vout(*this); vout*=v; return vout; } template<typename Type> Vec<Type> Vec<Type>::operator/(const Vec<Type>& v)const { Vec<Type> vout(*this); vout/=v; return vout; } template<typename Type> Vec<Type> Vec<Type>::operator-() { Vec<Type> vout(this->getDomain()); std::transform(this->begin(),this->end(),vout.begin(),std::negate<Type>()); return vout; } template<typename Type> Vec<Type>& Vec<Type>::operator/=(Type v){ for(unsigned int i=0;i<this->size();i++) this->operator ()(i)/=v; return *this; } template<typename Type> Vec<Type>& Vec<Type>::operator*=(Type v){ for(unsigned int i=0;i<this->size();i++) this->operator ()(i)*=v; return *this; } template<typename Type> Vec<Type>& Vec<Type>::operator+=(Type v){ for(unsigned int i=0;i<this->size();i++) this->operator ()(i)+=v; return *this; } template<typename Type> Vec<Type>& Vec<Type>::operator-=(Type v){ for(unsigned int i=0;i<this->size();i++) this->operator ()(i)-=v; return *this; } template<typename Type> Vec<Type> Vec<Type>::operator+(Type value)const { Vec<Type> vout(*this); vout+=value; return vout; } template<typename Type> Vec<Type> Vec<Type>::operator-(Type value)const { Vec<Type> vout(*this); vout-=value; return vout; } template<typename Type> Vec<Type> Vec<Type>::operator*(Type value)const { Vec<Type> vout(*this); vout*=value; return vout; } template<typename Type> Vec<Type> Vec<Type>::operator/(Type value)const { Vec<Type> vout(*this); vout/=value; return vout; } template<typename T1> Vec<T1> operator+(T1 a,const Vec<T1>& v) { Vec<T1> v1(v); v1+=a; return v1; } template<typename T1> Vec<T1> operator-(T1 a,const Vec<T1>& v) { Vec<T1> v1(v.size(),a); v1-=v; return v1; } template<typename T1> Vec<T1> operator*(T1 a,const Vec<T1>& v) { Vec<T1> v1(v); v1*=a; return v1; } template<typename T1> Vec<T1> operator/(T1 a,const Vec<T1>& v) { Vec<T1> v1(v.size(),a); v1/=v; return v1; } /*! * \ingroup Vec * \brief absolute value for each coordinate * \param v1 VecN * \return output VecN * */ template<typename T1> pop::Vec<T1> absolute(const pop::Vec<T1>& v1){ pop::Vec<T1> vout(v1.size()); std::transform (v1.begin(), v1.end(), vout.begin(), (T1(*)(T1)) absolute ); return vout; } /*! * \ingroup Vec * \brief Rounds x downward for each coordinate * \param v1 VecN * \return output VecN * */ template<typename T1> pop::Vec<T1> floor(const pop::Vec<T1>& v1){ pop::Vec<T1> vout(v1.size()); std::transform (v1.begin(), v1.end(), vout.begin(), (T1(*)(T1)) std::floor ); return vout; } /*! * \ingroup Vec * \brief norm of the VecN \f$\vert u \vert^p=(\sum_i |u_i|^p)^{1/p}\f$ * \param v1 VecN * \param p p-norm * \return norm * */ template<typename T1> double normValue(const pop::Vec<T1>& v1,int p=2){ return v1.norm(p); } /*! * \ingroup Vec * \brief norm of the VecN \f$\vert u \vert^p=\sum_i |u_i|^p\f$ * \param v1 VecN * \param p p-norm * \return norm * */ template<typename T1> double normPowerValue(const pop::Vec<T1>& v1,int p=2){ return v1.normPower(p); } /*! * \ingroup Vec * \brief distance between two vectors \f$\vert u-v \vert^p\f$ * \param u VecN * \param v VecN * \param p p-norm * \return norm * */ template<typename Type1> double distance(const pop::Vec<Type1>& u, const pop::Vec<Type1>& v,int p=2) { return normValue(u-v,p); } /*! * \ingroup Vec * \brief round functions return the integral value nearest to x rounding half-way cases away for each coordinate * \param v1 VecN * \return output VecN * */ template<typename T1> pop::Vec<T1> round(const pop::Vec<T1>& v1){ pop::Vec<T1> vout(v1.size()); std::transform (v1.begin(), v1.end(), vout.begin(), (T1(*)(T1)) round ); return vout; } /*! * \ingroup Vec * \brief maximum of VecN \a v1 by the VecN \a v2 \f$\min(v1,v2)=(\min(v1_0,v2_0),\min(v1_1,v2_1))\f$ for each coordinate * \param v1 first VecN * \param v2 second VecN * \return output VecN * * */ template<typename T1> pop::Vec<T1> maximum(const pop::Vec<T1>& v1,const pop::Vec<T1>& v2){ POP_DbgAssert(v1.size()==v2.size()); pop::Vec<T1> vout(v1.size()); pop::FunctorF::FunctorMaxF2<T1,T1> op; std::transform (v1.begin(), v1.end(), v2.begin(),vout.begin(), op); return vout; } /*! * \ingroup Vec * \brief minimum of VecN \a u by the vector \a v \f$\max(v1,v2)=(\max(v1_0,v2_0),\max(v1_1,v2_1))\f$ for each coordinate * \param v1 first vector * \param v2 second vector * \return output vector * * */ template<typename T1> pop::Vec<T1> minimum(const pop::Vec<T1>& v1,const pop::Vec<T1>& v2){ POP_DbgAssert(v1.size()==v2.size()); pop::Vec<T1> vout(v1.size()); pop::FunctorF::FunctorMinF2<T1,T1> op; std::transform (v1.begin(), v1.end(), v2.begin(),vout.begin(), op ); return vout; } /*! * \ingroup Vec * \brief inner product of two vector \f$<v1,v2>=\sum_i v1_i v2_i\f$ * \param v1 first vector * \param v2 second vector * \return output vector * * */ template<typename T1> double productInner(const pop::Vec<T1>& v1,const pop::Vec<T1>& v2) { POP_DbgAssert( v1.size()==v2.size()); double sum=0; for(unsigned int i=0;i<v1.size();i++) sum+=productInner(v1(i),v2(i)); return sum; } /*! * \ingroup Vec * \param out output stream * \param m input Vec * \return output stream * * stream insertion of the Vec */ template<typename T1> std::ostream& operator << (std::ostream& out, const pop::Vec<T1>& m){ out<<m.size()<<';'; for(unsigned int j=0;j<m.size();j++) { out<<m(j); out<<';'; //if(j!=m.size()-1)out<<';'; } return out; } /*! * \ingroup Vec * \param in input stream * \param m ouput Vec * \return input stream * * stream extraction of the Vec */ template<typename T1> std::istream& operator >> (std::istream& in, pop::Vec<T1>& m){ T1 x; m.clear(); std::string mot; std::getline( in, mot, ';' ); int size; pop::BasicUtility::String2Any(mot,size); m.resize(size); for(unsigned int j=0;j<m.size();j++) { std::getline( in, mot, ';' ); pop::BasicUtility::String2Any(mot,x); m.operator ()(j)=x; } return in; } /* Comparison with a constant. Return true only if all elements are equal to the constants template<typename Type> Vec<Type>& Vec<Type>::operator+=(const Vec<Type>& v) { POP_DbgAssert( this->size()==v.size()); std::transform(this->begin(),this->end(),v.begin(),this->begin(),std::plus<Type>()); return *this; } */ // template<typename Type> // bool Vec<Type>::operator==(int m){ // for(unsigned int j=0;j<this->size();j++) // { // if (this->operator ()(j) != m) return false; // } // return true; // } // template<typename Type> // bool Vec<Type>::operator!=(int m){ // // for(unsigned int j=0;j<this->size();j++) // // { // // if (this->operator ()(j) != m) return false; // // } // return ~this->operator==(m); //} } #endif // Vec_H
24.889254
123
0.604256
231f77580eb3523c1d16819002bb2e7c18abc5b1
569
h
C
arch/macintosh/macintosh.h
jboone/fluxengine
cbcf457ce3a80d7b91873c103aca02ad24671007
[ "MIT" ]
null
null
null
arch/macintosh/macintosh.h
jboone/fluxengine
cbcf457ce3a80d7b91873c103aca02ad24671007
[ "MIT" ]
null
null
null
arch/macintosh/macintosh.h
jboone/fluxengine
cbcf457ce3a80d7b91873c103aca02ad24671007
[ "MIT" ]
null
null
null
#ifndef MACINTOSH_H #define MACINTOSH_H #define MAC_SECTOR_RECORD 0xd5aa96 /* 1101 0101 1010 1010 1001 0110 */ #define MAC_DATA_RECORD 0xd5aaad /* 1101 0101 1010 1010 1010 1101 */ #define MAC_SECTOR_LENGTH 524 /* yes, really */ #define MAC_ENCODED_SECTOR_LENGTH 703 class Sector; class Fluxmap; class MacintoshDecoder : public AbstractDecoder { public: virtual ~MacintoshDecoder() {} RecordType advanceToNextRecord(); void decodeSectorRecord(); void decodeDataRecord(); std::set<unsigned> requiredSectors(Track& track) const; }; #endif
21.074074
72
0.746924
2320feee40f86546c8b524e24188c181e5d7464e
2,814
c
C
ressource/bootloader/keplerboard_only_comport/bootloader.c
peterweissig/cpp_main
491ce299b98d24b3da3b43e1121d609f28f3ece0
[ "BSD-3-Clause" ]
null
null
null
ressource/bootloader/keplerboard_only_comport/bootloader.c
peterweissig/cpp_main
491ce299b98d24b3da3b43e1121d609f28f3ece0
[ "BSD-3-Clause" ]
null
null
null
ressource/bootloader/keplerboard_only_comport/bootloader.c
peterweissig/cpp_main
491ce299b98d24b3da3b43e1121d609f28f3ece0
[ "BSD-3-Clause" ]
null
null
null
/****************************************************************************** * bootloader.c * * ============ * * * * Version: 1.1.0 * * Date : 25.10.15 * * Author : Peter Weissig * * * * For help or bug report please visit: * * https://github.com/peterweissig/robolib * ******************************************************************************/ // include from gcc #include <inttypes.h> #include <avr/io.h> // include all necessary headers from system #include "bootloader_header.h" #define GET_BOOT_PIN() (PING & _BV(2)) #define ENABLE_BOOT_PIN() do {DDRG = 0x00; PORTG = _BV(2); } while (0) #define DISABLE_BOOT_PIN() do {DDRG = 0x00; PORTG = 0x00; } while (0) //**************************[bootloader_start]********************************* uint8_t bootloader_start(void) { // check boot pin ENABLE_BOOT_PIN(); delay_ms(50); if (GET_BOOT_PIN()) { return 0x00; } // print information bootloader_data_out('~'); string_from_const(display_print, "Bootloader V4.0"); display_gotoxy(0,1); string_from_const(display_print, "RS232 25.10.15"); return 0xFF; } //**************************[bootloader_end]*********************************** void bootloader_end(void) { DISABLE_BOOT_PIN(); display_clear(); uart0_flush(); delay_ms(10); uart0_disable(); } //**************************[bootloader_data_in]******************************* uint8_t bootloader_data_in(void) { return uart0_get(); } //**************************[bootloader_data_stat]***************************** uint8_t bootloader_data_stat(void) { return uart0_rxcount_get(); } //**************************[bootloader_data_out]****************************** void bootloader_data_out(uint8_t data) { uart0_send(data); } //**************************[bootloader_idle]********************************** uint8_t bootloader_idle(void) { return 0xFF; } //**************************[bootloader_command]******************************* void bootloader_command(void) { } //**************************[bootloader_help]********************************** void bootloader_help(void) { } //**************************[bootloader_error]********************************* uint8_t bootloader_error(void) { return 0xFF; }
29.93617
79
0.380597
23212cd755333e69e17f9fc0c24ff6b2181ca925
2,752
h
C
Win32/Sources/Application/Address_Book_Manager/CAdbkManagerView.h
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
12
2015-04-21T16:10:43.000Z
2021-11-05T13:41:46.000Z
Win32/Sources/Application/Address_Book_Manager/CAdbkManagerView.h
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
2
2015-11-02T13:32:11.000Z
2019-07-10T21:11:21.000Z
Win32/Sources/Application/Address_Book_Manager/CAdbkManagerView.h
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
6
2015-01-12T08:49:12.000Z
2021-03-27T09:11:10.000Z
/* Copyright (c) 2007-2009 Cyrus Daboo. All rights reserved. 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Header for CAdbkManagerView class #ifndef __CADBKMANAGERVIEW__MULBERRY__ #define __CADBKMANAGERVIEW__MULBERRY__ #include "CTableView.h" #include "CGrayBackground.h" #include "CAdbkManagerTable.h" #include "CAdbkManagerTitleTable.h" #include "cdmutexprotect.h" // Constants // Classes class CAdbkManagerWindow; class CAddressBookView; class CAdbkManagerView : public CTableView { friend class CAdbkManagerWindow; public: typedef std::vector<CAdbkManagerView*> CAdbkManagerViewList; static cdmutexprotect<CAdbkManagerViewList> sAdbkManagerViews; CAdbkManagerView(); virtual ~CAdbkManagerView(); virtual const CUserAction& GetPreviewAction() const; // Return user action data virtual const CUserAction& GetFullViewAction() const; // Return user action data CAddressBookView* GetPreview() const { return mAddressBookView; } void SetPreview(CAddressBookView* view) { mAddressBookView = view; } void DoPreview(CAddressBook* adbk) // Preview a address book { GetTable()->DoPreview(adbk); } virtual void MakeToolbars(CToolbarView* parent); virtual bool TestClose(); virtual void DoClose(); CAdbkManagerWindow* GetAdbkManagerWindow() const; CAdbkManagerTable* GetTable() const { return static_cast<CAdbkManagerTable*>(mTable); } virtual void ResetTable(); // Reset the table virtual void ClearTable() // Clear the entire table { GetTable()->ClearTable(); } virtual void InitColumns(); // Init columns and text virtual void ResetState(bool force = false); // Reset window state virtual void SaveState(); // Save current state as default virtual void SaveDefaultState(); // Save current state as default protected: CAddressBookView* mAddressBookView; CGrayBackground mFocusRing; // Focus ring CAdbkManagerTitleTable mAdbkTitles; // Cached titles CAdbkManagerTable mAdbkTable; // Cached table // message handlers afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); DECLARE_MESSAGE_MAP() }; #endif
30.241758
83
0.71984
232354e473bfbc82a401dd92b10cc010a551dc93
237,353
h
C
src/intl/msg_hash_chs.h
basharast/RetroArch-ARM
33208e97b7eebae35cfce7831cf3fefc9d783d79
[ "MIT" ]
4
2021-12-03T14:58:12.000Z
2022-03-05T11:17:16.000Z
src/intl/msg_hash_chs.h
basharast/RetroArch-ARM
33208e97b7eebae35cfce7831cf3fefc9d783d79
[ "MIT" ]
2
2022-03-16T06:13:34.000Z
2022-03-26T06:44:50.000Z
src/intl/msg_hash_chs.h
basharast/RetroArch-ARM
33208e97b7eebae35cfce7831cf3fefc9d783d79
[ "MIT" ]
null
null
null
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900) #if (_MSC_VER >= 1700) /* https://support.microsoft.com/en-us/kb/980263 */ #pragma execution_character_set("utf-8") #endif #pragma warning(disable:4566) #endif /* Top-Level Menu */ MSG_HASH( MENU_ENUM_LABEL_VALUE_MAIN_MENU, "菜单" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_TAB, "设置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FAVORITES_TAB, "收藏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HISTORY_TAB, "历史" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_IMAGES_TAB, "图像" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MUSIC_TAB, "音乐" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_TAB, "视频" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_TAB, "联机" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_TAB, "探索" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ADD_TAB, "导入" ) /* Main Menu */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SETTINGS, "快捷菜单" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SETTINGS, "快速配置游戏内设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_LIST, "加载核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_LIST, "选择使用的模拟器核心。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_LIST, "加载游戏" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOAD_CONTENT_LIST, "选择要加载的游戏 ROM。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOAD_DISC, "加载光盘" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOAD_DISC, "加载物理光盘。请先「加载核心」选择光盘相对应的核心。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DUMP_DISC, "转储光盘" ) MSG_HASH( /* FIXME Is a specific image format used? Is it determined automatically? User choice? */ MENU_ENUM_SUBLABEL_DUMP_DISC, "将物理光盘转储到内置存储。它将被保存为光盘镜像文件。" ) #ifdef HAVE_LAKKA MSG_HASH( MENU_ENUM_LABEL_VALUE_EJECT_DISC, "弹出光盘" ) MSG_HASH( MENU_ENUM_SUBLABEL_EJECT_DISC, "从实体CD/DVD驱动器弹出光盘." ) #endif MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLISTS_TAB, "列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLISTS_TAB, "扫描到的匹配数据库的游戏 ROM 将在此处显示。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ADD_CONTENT_LIST, "导入" ) MSG_HASH( MENU_ENUM_SUBLABEL_ADD_CONTENT_LIST, "扫描游戏并创建或更新游戏列表。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHOW_WIMP, "桌面菜单" ) MSG_HASH( MENU_ENUM_SUBLABEL_SHOW_WIMP, "打开传统桌面菜单。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_DISABLE_KIOSK_MODE, "禁用游戏机厅模式。(需要重启)" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_DISABLE_KIOSK_MODE, "显示所有与配置相关的设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ONLINE_UPDATER, "在线更新" ) MSG_HASH( MENU_ENUM_SUBLABEL_ONLINE_UPDATER, "下载核心,游戏,资源,金手指和数据库等。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY, "联机" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY, "加入或发起联机游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS, "设置" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS, "配置程序。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INFORMATION_LIST, "系统信息" ) MSG_HASH( MENU_ENUM_SUBLABEL_INFORMATION_LIST_LIST, "显示系统信息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONFIGURATIONS_LIST, "配置文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONFIGURATIONS_LIST, "管理和创建配置文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HELP_LIST, "帮助文档" ) MSG_HASH( MENU_ENUM_SUBLABEL_HELP_LIST, "了解这个程序应该如何使用。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RESTART_RETROARCH, "重启程序" ) MSG_HASH( MENU_ENUM_SUBLABEL_RESTART_RETROARCH, "重启程序。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUIT_RETROARCH, "退出程序" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUIT_RETROARCH, "退出程序。" ) /* Main Menu > Load Core */ MSG_HASH( MENU_ENUM_LABEL_VALUE_DOWNLOAD_CORE, "下载核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_DOWNLOAD_CORE, "从在线更新下载并安装核心。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SIDELOAD_CORE_LIST, "安装或还原核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_SIDELOAD_CORE_LIST, "从「下载」文件夹安装或还原核心。" ) MSG_HASH( /* FIXME Maybe add a description? */ MENU_ENUM_LABEL_VALUE_START_VIDEO_PROCESSOR, "启动视频处理" ) MSG_HASH( /* FIXME Maybe add a description? */ MENU_ENUM_LABEL_VALUE_START_NET_RETROPAD, "启动远程输入设备" ) /* Main Menu > Load Content */ MSG_HASH( MENU_ENUM_LABEL_VALUE_FAVORITES, "开始文件夹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DOWNLOADED_FILE_DETECT_CORE_LIST, "下载" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OPEN_ARCHIVE, "浏览压缩包" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOAD_ARCHIVE, "加载压缩包" ) /* Main Menu > Load Content > Playlists */ MSG_HASH( MENU_ENUM_LABEL_VALUE_GOTO_FAVORITES, "收藏" ) MSG_HASH( MENU_ENUM_SUBLABEL_GOTO_FAVORITES, "添加到「收藏」的游戏将出现在这里。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_GOTO_MUSIC, "音乐" ) MSG_HASH( MENU_ENUM_SUBLABEL_GOTO_MUSIC, "以前播放过的音乐将出现在这里。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_GOTO_IMAGES, "图像" ) MSG_HASH( MENU_ENUM_SUBLABEL_GOTO_IMAGES, "以前查看过的图像将出现在这里。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_GOTO_VIDEO, "视频" ) MSG_HASH( MENU_ENUM_SUBLABEL_GOTO_VIDEO, "以前观看过的视频将出现在这里。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_GOTO_EXPLORE, "探索" ) MSG_HASH( MENU_ENUM_SUBLABEL_GOTO_EXPLORE, "通过分类搜索界面浏览所有匹配数据库的游戏。" ) /* Main Menu > Online Updater */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_UPDATER_LIST, "核心下载" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_INSTALLED_CORES, "更新已安装核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_UPDATE_INSTALLED_CORES, "更新所有已安装的核心到可用的最新版本。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SWITCH_INSTALLED_CORES_PFD, "切换核心到 Play 商店版本" ) MSG_HASH( MENU_ENUM_SUBLABEL_SWITCH_INSTALLED_CORES_PFD, "如果可用的话,用 Play 商店中的最新版本核心替换所有旧版手动安装核心。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_THUMBNAILS_UPDATER_LIST, "缩略图更新" ) MSG_HASH( MENU_ENUM_SUBLABEL_THUMBNAILS_UPDATER_LIST, "下载所选系统的完整缩略图包。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PL_THUMBNAILS_UPDATER_LIST, "列表缩略图更新" ) MSG_HASH( MENU_ENUM_SUBLABEL_PL_THUMBNAILS_UPDATER_LIST, "下载选中播放列表中游戏的缩略图。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DOWNLOAD_CORE_CONTENT, "游戏下载" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_CORE_INFO_FILES, "更新核心信息文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_ASSETS, "更新素材" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_AUTOCONFIG_PROFILES, "更新手柄配置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_CHEATS, "更新金手指" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_DATABASES, "更新数据库" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_OVERLAYS, "更新遮罩" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_GLSL_SHADERS, "更新 GLSL 着色器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_CG_SHADERS, "更新 CG 着色器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_SLANG_SHADERS, "更新 Slang 着色器" ) /* Main Menu > Information */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFORMATION, "核心信息" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_INFORMATION, "查看与应用、核心相关的信息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISC_INFORMATION, "光盘信息" ) MSG_HASH( MENU_ENUM_SUBLABEL_DISC_INFORMATION, "查看已插入光盘的信息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETWORK_INFORMATION, "网络信息" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETWORK_INFORMATION, "查看网络接口和绑定 IP 地址的信息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFORMATION, "系统信息" ) MSG_HASH( MENU_ENUM_SUBLABEL_SYSTEM_INFORMATION, "查看此设备的信息参数。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_MANAGER, "数据库管理器" ) MSG_HASH( MENU_ENUM_SUBLABEL_DATABASE_MANAGER, "查看游戏数据库。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CURSOR_MANAGER, "指针管理器" ) MSG_HASH( MENU_ENUM_SUBLABEL_CURSOR_MANAGER, "查看以前的搜索记录。" ) /* Main Menu > Information > Core Information */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_CORE_NAME, "核心名称" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_CORE_LABEL, "核心标签" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_SYSTEM_NAME, "系统名称" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_SYSTEM_MANUFACTURER, "系统制造商" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_CATEGORIES, "分类" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_AUTHORS, "作者" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_PERMISSIONS, "权限" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_LICENSES, "许可证" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_SUPPORTED_EXTENSIONS, "支持的扩展名" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_REQUIRED_HW_API, "所需图形 API" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_FIRMWARE, "固件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MISSING_REQUIRED, "缺失且必需的:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MISSING_OPTIONAL, "缺失但非必需的:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PRESENT_REQUIRED, "存在且必需的:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PRESENT_OPTIONAL, "存在但非必须的:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_LOCK, "锁定已安装核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_LOCK, "防止修改当前安装的核心。当内容需要特定核心版本时可能会被用来避免不必要的更新 (例如街机的 ROM 集只适用于特定版本的核心)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_DELETE, "删除核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_DELETE, "从磁盘中删除该核心" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_CREATE_BACKUP, "备份核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_CREATE_BACKUP, "创建当前安装核心的归档备份。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_RESTORE_BACKUP_LIST, "还原备份" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_RESTORE_BACKUP_LIST, "从归档备份列表中安装之前版本的核心。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_DELETE_BACKUP_LIST, "删除备份" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_DELETE_BACKUP_LIST, "从归档备份列表中移除文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_BACKUP_MODE_AUTO, "[自动]" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_BACKUP_CRC, "CRC32:" ) /* Main Menu > Information > System Information */ MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_BUILD_DATE, "构建日期" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_GIT_VERSION, "Git 版本" ) MSG_HASH( /* FIXME Should be MENU_LABEL_VALUE */ MSG_COMPILER, "编译器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CPU_MODEL, "CPU 型号" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CPU_FEATURES, "CPU 功能" ) MSG_HASH( /* FIXME Colon should be handled in menu_display.c like the rest */ MENU_ENUM_LABEL_VALUE_CPU_ARCHITECTURE, "CPU 架构" ) MSG_HASH( /* FIXME Colon should be handled in menu_display.c like the rest */ MENU_ENUM_LABEL_VALUE_CPU_CORES, "CPU 核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_CPU_CORES, "CPU 拥有的核心总数。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FRONTEND_IDENTIFIER, "前端标识" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FRONTEND_OS, "前端操作系统" ) MSG_HASH( /* FIXME Maybe add a description? */ MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RETRORATING_LEVEL, "RetroRating 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_POWER_SOURCE, "能源" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_VIDEO_CONTEXT_DRIVER, "视频场景驱动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DISPLAY_METRIC_MM_WIDTH, "显示器宽度 (mm)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DISPLAY_METRIC_MM_HEIGHT, "显示器高度 (mm)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DISPLAY_METRIC_DPI, "显示器 DPI" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LIBRETRODB_SUPPORT, "LibretroDB 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OVERLAY_SUPPORT, "遮罩支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COMMAND_IFACE_SUPPORT, "命令接口支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETWORK_COMMAND_IFACE_SUPPORT, "网络命令接口支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETWORK_REMOTE_SUPPORT, "网络手柄支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COCOA_SUPPORT, "Cocoa 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RPNG_SUPPORT, "PNG (RPNG) 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RJPEG_SUPPORT, "JPEG (RJPEG) 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RBMP_SUPPORT, "BMP (RBMP) 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RTGA_SUPPORT, "TGA (RTGA) 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL_SUPPORT, "SDL 1.2 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL2_SUPPORT, "SDL 2 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_VULKAN_SUPPORT, "Vulkan 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_METAL_SUPPORT, "Metal 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENGL_SUPPORT, "OpenGL 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENGLES_SUPPORT, "OpenGL ES 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_THREADING_SUPPORT, "多线程支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_KMS_SUPPORT, "KMS/EGL 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_UDEV_SUPPORT, "udev 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENVG_SUPPORT, "OpenVG 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_EGL_SUPPORT, "EGL 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_X11_SUPPORT, "X11 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_WAYLAND_SUPPORT, "Wayland 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_XVIDEO_SUPPORT, "XVideo 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ALSA_SUPPORT, "ALSA 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OSS_SUPPORT, "OSS 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENAL_SUPPORT, "OpenAL 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENSL_SUPPORT, "OpenSL 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RSOUND_SUPPORT, "RSound 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ROARAUDIO_SUPPORT, "RoarAudio 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_JACK_SUPPORT, "JACK 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_PULSEAUDIO_SUPPORT, "PulseAudio 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, "CoreAudio 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT, "CoreAudio V3 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DSOUND_SUPPORT, "DirectSound 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_WASAPI_SUPPORT, "WASAPI 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_XAUDIO2_SUPPORT, "XAudio2 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ZLIB_SUPPORT, "zlib 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_7ZIP_SUPPORT, "7zip 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DYLIB_SUPPORT, "动态链接库支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DYNAMIC_SUPPORT, "运行时动态加载 libretro 库" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CG_SUPPORT, "Cg 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_GLSL_SUPPORT, "GLSL 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_HLSL_SUPPORT, "HLSL 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL_IMAGE_SUPPORT, "SDL 图像支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FFMPEG_SUPPORT, "FFmpeg 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_MPV_SUPPORT, "mpv 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CORETEXT_SUPPORT, "CoreText 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FREETYPE_SUPPORT, "FreeType 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_STB_TRUETYPE_SUPPORT, "STB TrueType 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETPLAY_SUPPORT, "联机 (点对点) 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_PYTHON_SUPPORT, "Python 着色器脚本支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_V4L2_SUPPORT, "Video4Linux2 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LIBUSB_SUPPORT, "libusb 支持" ) /* Main Menu > Information > Database Manager */ MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_SELECTION, "数据库选择" ) /* Main Menu > Information > Database Manager > Information */ MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_NAME, "名字" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_DESCRIPTION, "描述" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_GENRE, "类型" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PUBLISHER, "发行" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_DEVELOPER, "开发" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ORIGIN, "产地" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_FRANCHISE, "专营" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_TGDB_RATING, "TGDB 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_FAMITSU_MAGAZINE_RATING, "「Fami 通」杂志评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_EDGE_MAGAZINE_REVIEW, "Edge 杂志测评" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_EDGE_MAGAZINE_RATING, "Edge 杂志评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_EDGE_MAGAZINE_ISSUE, "Edge 杂志刊号" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_RELEASE_MONTH, "发售月份" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_RELEASE_YEAR, "发售年份" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_BBFC_RATING, "BBFC 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ESRB_RATING, "ESRB 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ELSPA_RATING, "ELSPA 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PEGI_RATING, "PEGI 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ENHANCEMENT_HW, "增强硬件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CERO_RATING, "CERO 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_SERIAL, "序列号" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ANALOG, "支持摇杆" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_RUMBLE, "支持震动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_COOP, "支持多人游戏" ) /* Main Menu > Configuration File */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CONFIGURATIONS, "加载配置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RESET_TO_DEFAULT_CONFIG, "重置为默认值" ) MSG_HASH( MENU_ENUM_SUBLABEL_RESET_TO_DEFAULT_CONFIG, "将当前配置重置为默认值。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVE_CURRENT_CONFIG, "保存当前配置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVE_NEW_CONFIG, "另保为新配置" ) /* Main Menu > Help */ MSG_HASH( MENU_ENUM_LABEL_VALUE_HELP_CONTROLS, "基本菜单控制" ) /* Main Menu > Help > Basic Menu Controls */ MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_CONTROLS_SCROLL_UP, "向上滚动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_CONTROLS_SCROLL_DOWN, "向下滚动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_CONTROLS_CONFIRM, "确认" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_CONTROLS_INFO, "信息" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_CONTROLS_START, "开始" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_CONTROLS_TOGGLE_MENU, "切换菜单" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_CONTROLS_QUIT, "退出" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_CONTROLS_TOGGLE_KEYBOARD, "切换键盘" ) /* Settings */ MSG_HASH( MENU_ENUM_LABEL_VALUE_DRIVER_SETTINGS, "驱动" ) MSG_HASH( MENU_ENUM_SUBLABEL_DRIVER_SETTINGS, "更改系统使用的驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SETTINGS, "视频" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SETTINGS, "更改视频输出设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_SETTINGS, "音频" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_SETTINGS, "更改音频输出设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS, "输入" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_SETTINGS, "更改手柄、键盘和鼠标设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LATENCY_SETTINGS, "延迟" ) MSG_HASH( MENU_ENUM_SUBLABEL_LATENCY_SETTINGS, "更改视频、音频和输入的延迟设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_SETTINGS, "核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_SETTINGS, "更改核心设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONFIGURATION_SETTINGS, "配置" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONFIGURATION_SETTINGS, "更改配置文件的默认设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVING_SETTINGS, "存档" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVING_SETTINGS, "更改存档设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOGGING_SETTINGS, "日志" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOGGING_SETTINGS, "更改日志设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_FILE_BROWSER_SETTINGS, "文件浏览器" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_FILE_BROWSER_SETTINGS, "更改文件浏览器设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FRAME_THROTTLE_SETTINGS, "限帧" ) MSG_HASH( MENU_ENUM_SUBLABEL_FRAME_THROTTLE_SETTINGS, "更改回滚、快进和慢动作设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RECORDING_SETTINGS, "录制" ) MSG_HASH( MENU_ENUM_SUBLABEL_RECORDING_SETTINGS, "更改录制设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ONSCREEN_DISPLAY_SETTINGS, "屏显" ) MSG_HASH( MENU_ENUM_SUBLABEL_ONSCREEN_DISPLAY_SETTINGS, "更改显示遮罩、键盘遮罩和屏幕通知设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_USER_INTERFACE_SETTINGS, "界面" ) MSG_HASH( MENU_ENUM_SUBLABEL_USER_INTERFACE_SETTINGS, "更改用户界面设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AI_SERVICE_SETTINGS, "AI 服务" ) MSG_HASH( MENU_ENUM_SUBLABEL_AI_SERVICE_SETTINGS, "更改 AI 服务设置 (翻译/TTS语音/杂项)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACCESSIBILITY_SETTINGS, "无障碍" ) MSG_HASH( MENU_ENUM_SUBLABEL_ACCESSIBILITY_SETTINGS, "更改无障碍阅读器设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_POWER_MANAGEMENT_SETTINGS, "电源管理" ) MSG_HASH( MENU_ENUM_SUBLABEL_POWER_MANAGEMENT_SETTINGS, "更改电源管理设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RETRO_ACHIEVEMENTS_SETTINGS, "成就" ) MSG_HASH( MENU_ENUM_SUBLABEL_RETRO_ACHIEVEMENTS_SETTINGS, "更改成就设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETWORK_SETTINGS, "网络" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETWORK_SETTINGS, "更改服务器和网络设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_SETTINGS, "列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_SETTINGS, "更改列表设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_USER_SETTINGS, "用户" ) MSG_HASH( MENU_ENUM_SUBLABEL_USER_SETTINGS, "更改帐号、用户名和语言设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DIRECTORY_SETTINGS, "文件夹" ) MSG_HASH( MENU_ENUM_SUBLABEL_DIRECTORY_SETTINGS, "更改文件所在的默认文件夹。" ) /* Settings > Drivers */ MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_DRIVER, "输入" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_DRIVER, "使用的输入驱动。某些视频驱动强制使用不同的输入驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_JOYPAD_DRIVER, "手柄" ) MSG_HASH( MENU_ENUM_SUBLABEL_JOYPAD_DRIVER, "要使用的手柄驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DRIVER, "视频" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_DRIVER, "使用的视频驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_DRIVER, "音频" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_DRIVER, "使用的音频驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_RESAMPLER_DRIVER, "音频重采样器" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_RESAMPLER_DRIVER, "使用的音频重采样器驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CAMERA_DRIVER, "摄像头" ) MSG_HASH( MENU_ENUM_SUBLABEL_CAMERA_DRIVER, "使用的摄像头驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BLUETOOTH_DRIVER, "蓝牙" ) MSG_HASH( MENU_ENUM_SUBLABEL_BLUETOOTH_DRIVER, "使用的蓝牙驱动。" ) MSG_HASH( MENU_ENUM_SUBLABEL_WIFI_DRIVER, "使用的 Wi-Fi 驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOCATION_DRIVER, "定位" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOCATION_DRIVER, "使用的 GPS 定位驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_DRIVER, "菜单" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_DRIVER, "使用的菜单驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RECORD_DRIVER, "录制" ) MSG_HASH( MENU_ENUM_SUBLABEL_RECORD_DRIVER, "使用的录制驱动。" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIDI_DRIVER, "使用的 MIDI 驱动。" ) /* Settings > Video */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CRT_SWITCHRES_SETTINGS, "CRT 分辨率" ) MSG_HASH( MENU_ENUM_SUBLABEL_CRT_SWITCHRES_SETTINGS, "在 CRT 显示器上输出原生低分辨率信号。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_OUTPUT_SETTINGS, "输出" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_OUTPUT_SETTINGS, "更改视频输出设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FULLSCREEN_MODE_SETTINGS, "全屏模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FULLSCREEN_MODE_SETTINGS, "更改全屏模式设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOWED_MODE_SETTINGS, "窗口模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOWED_MODE_SETTINGS, "更改窗口模式设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SCALING_SETTINGS, "缩放" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SCALING_SETTINGS, "更改视频缩放设置。" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_HDR_SETTINGS, "更改视频 HDR 设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SYNCHRONIZATION_SETTINGS, "同步" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SYNCHRONIZATION_SETTINGS, "更改视频同步设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SUSPEND_SCREENSAVER_ENABLE, "阻止锁屏" ) MSG_HASH( MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE, "阻止系统激活屏保和锁屏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_THREADED, "独立线程视频" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_THREADED, "以延迟和视频撕裂为代价换取高性能。当且仅当不能全速模拟时使用。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_BLACK_FRAME_INSERTION, "黑帧补间" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_BLACK_FRAME_INSERTION, "在帧之间插入黑色帧。这能在高刷新率屏幕上消除残影。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_GPU_SCREENSHOT, "GPU 截屏" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_GPU_SCREENSHOT, "如果可以的话,截取 GPU 渲染材质的输出。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SMOOTH, "双线性过滤" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SMOOTH, "轻微模糊图像以减少像素边缘锯齿。这对性能影响很小。" ) #if defined(DINGUX) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DINGUX_IPU_FILTER_TYPE, "图像插值" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_DINGUX_IPU_FILTER_TYPE, "指定通过内部 IPU 缩放画面时使用的图像差值算法。我们推荐对基于 CPU 的视频滤镜使用「双立方」及「双线性」选项,此选项不会对性能造成影响。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DINGUX_IPU_FILTER_BICUBIC, "双立方" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DINGUX_IPU_FILTER_BILINEAR, "双线性" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DINGUX_IPU_FILTER_NEAREST, "最近邻" ) #if defined(RS90) || defined(MIYOO) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DINGUX_RS90_SOFTFILTER_TYPE, "图像插值" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_DINGUX_RS90_SOFTFILTER_TYPE, "当“整数缩放”被禁用时,指定图像内插法。“最近的邻里”对性能影响最小。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DINGUX_RS90_SOFTFILTER_POINT, "最近的邻里点" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DINGUX_RS90_SOFTFILTER_BRESENHAM_HORZ, "半线性" ) #endif #endif MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_DELAY, "自动着色器延迟" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_DELAY, "延迟自动加载着色器 (毫秒)。可以解决录屏软件画面撕裂的问题。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FILTER, "视频滤镜" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FILTER, "应用 CPU 驱动的视频滤镜。这可能会显著降低游戏运行速度。某些视频滤镜仅对 32 位色或 16 位色核心生效。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FILTER_REMOVE, "移除视频滤镜" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FILTER_REMOVE, "卸载所有启用的 CPU 驱动的视频滤镜。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_NOTCH_WRITE_OVER, "在刘海屏 Android 设备中占满全屏" ) /* Settings > Video > CRT SwitchRes */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CRT_SWITCH_RESOLUTION, "CRT 原生输出" ) MSG_HASH( MENU_ENUM_SUBLABEL_CRT_SWITCH_RESOLUTION, "仅适用于 CRT 显示器。尝试使用精确的核心/游戏分辨率和刷新率。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CRT_SWITCH_RESOLUTION_SUPER, "CRT 超分辨率" ) MSG_HASH( MENU_ENUM_SUBLABEL_CRT_SWITCH_RESOLUTION_SUPER, "在原生和超宽超分辨率间切换。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CRT_SWITCH_X_AXIS_CENTERING, "X 轴居中" ) MSG_HASH( MENU_ENUM_SUBLABEL_CRT_SWITCH_X_AXIS_CENTERING, "循环这些选项,直到图像居中显示。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CRT_SWITCH_PORCH_ADJUST, "孔径调整" ) MSG_HASH( MENU_ENUM_SUBLABEL_CRT_SWITCH_PORCH_ADJUST, "遍历选项调整孔径设置以调整图像尺寸。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CRT_SWITCH_HIRES_MENU, "使用高分辨率菜单" ) MSG_HASH( MENU_ENUM_SUBLABEL_CRT_SWITCH_HIRES_MENU, "当没有加载任何内容时,切换到高分辨率模式以便与高分辨率菜单一起使用。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CRT_SWITCH_RESOLUTION_USE_CUSTOM_REFRESH_RATE, "自定义刷新率" ) MSG_HASH( MENU_ENUM_SUBLABEL_CRT_SWITCH_RESOLUTION_USE_CUSTOM_REFRESH_RATE, "在需要时使用配置文件中指定的自定义刷新率。" ) /* Settings > Video > Output */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MONITOR_INDEX, "显示器编号" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_MONITOR_INDEX, "选择要使用哪个显示器。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_ROTATION, "视频旋转" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_ROTATION, "强制视频旋转。旋转角度于核心内置的旋转角度相叠加。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SCREEN_ORIENTATION, "屏幕方向" ) MSG_HASH( MENU_ENUM_SUBLABEL_SCREEN_ORIENTATION, "强制设定操作系统屏幕方向。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_GPU_INDEX, "GPU 编号" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_GPU_INDEX, "选择要使用的显卡。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_OFFSET_X, "屏幕水平偏移" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOW_OFFSET_X, "强制视频水平偏移一定距离。偏移将应用于全局范围。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_OFFSET_Y, "屏幕垂直偏移" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOW_OFFSET_Y, "强制视频垂直偏移一定距离。偏移将应用于全局范围。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_REFRESH_RATE, "垂直刷新率" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE, "屏幕的垂直刷新率。用于计算适当的音频输入速率。\n如果启用了「视频独立线程」,此选项将被忽略。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_REFRESH_RATE_AUTO, "预估屏幕刷新率" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE_AUTO, "估算的显示器刷新率 (Hz)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_REFRESH_RATE_POLLED, "设置显示器报告的刷新率" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE_POLLED, "显示驱动报告的刷新率。" ) #if defined(DINGUX) && defined(DINGUX_BETA) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DINGUX_REFRESH_RATE, "垂直刷新率" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_DINGUX_REFRESH_RATE, "设置显示器的垂直刷新率。如果运行PAL游戏,只需设为“50 Hz”就可以得到平滑的体验。" ) #endif MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FORCE_SRGB_DISABLE, "强制禁止 sRGB 帧缓冲" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FORCE_SRGB_DISABLE, "强制禁用 sRGB FBO 支持。如果启用 sRGB FBO 的话,某些 Intel 显卡的 OpenGL 驱动在 Windows 上会出问题。此选项可以解决这个问题。" ) /* Settings > Video > Fullscreen Mode */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FULLSCREEN, "全屏模式启动" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FULLSCREEN, "以全屏模式启动。运行时可以切换到窗口模式。可以用命令行开关覆盖。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOWED_FULLSCREEN, "窗口全屏模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOWED_FULLSCREEN, "如果全屏,偏好使用全屏窗口来阻止显示模式切换。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FULLSCREEN_X, "全屏宽度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FULLSCREEN_X, "设置非窗口全屏模式的自定义宽度。留空则表示使用桌面分辨率。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FULLSCREEN_Y, "全屏高度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FULLSCREEN_Y, "设置非窗口全屏模式的自定义高度。留空则表示使用桌面分辨率。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FORCE_RESOLUTION, "UWP平台的强制分辨率" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FORCE_RESOLUTION, "强制分辨率为全屏。若设为0,则将使用默认值分辨率3840x2160。" ) /* Settings > Video > Windowed Mode */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SCALE, "窗口缩放" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOW_SCALE, "将窗口大小设为核心视图大小的指定倍数。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_OPACITY, "窗口不透明度" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SHOW_DECORATIONS, "显示视窗装饰" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "记住窗口位置和大小" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOW_SAVE_POSITION, "在“窗口宽度”和“窗口高度”指定的固定尺寸窗口中显示所有内容, 并在关闭RetroArch时保存当前窗口大小和位置。 禁用后窗口大小将根据“窗口缩放”动态设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_CUSTOM_SIZE_ENABLE, "使用自定义窗口大小" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOW_CUSTOM_SIZE_ENABLE, "在“窗口宽度”和“窗口高度”指定的大小窗口中显示所有内容。 禁用后,窗口大小将根据“窗口缩放”动态设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_WIDTH, "窗口宽度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOW_WIDTH, "设置显示窗口的自定义宽度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_HEIGHT, "窗口高度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOW_HEIGHT, "设置显示窗口的自定义高度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_AUTO_WIDTH_MAX, "最大窗口宽度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOW_AUTO_WIDTH_MAX, "根据窗口缩放自动调整窗口大小时设置显示窗口的最大宽度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_AUTO_HEIGHT_MAX, "最大窗口高度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_WINDOW_AUTO_HEIGHT_MAX, "设置基于窗口缩放自动调整窗口大小时显示窗口的最大高度" ) /* Settings > Video > Scaling */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SCALE_INTEGER, "整数缩放" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SCALE_INTEGER, "只以整数倍缩放。基础尺寸取决于系统报告的尺寸和宽高比。如果未开启「保持宽高比」选项,宽/高可能会独立缩放到不同的倍数。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SCALE_INTEGER_OVERSCALE, "过量整数倍放大" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SCALE_INTEGER_OVERSCALE, "强制放大到下一个更大的整数倍,而不是四舍五入。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_ASPECT_RATIO_INDEX, "宽高比" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_ASPECT_RATIO, "自定义宽高比" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_ASPECT_RATIO, "视频宽高比分数值 (宽度/高度),如果“设置→视频”中有「宽高比」设置,则使用此数值。" ) #if defined(DINGUX) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DINGUX_IPU_KEEP_ASPECT, "保持纵横比" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_DINGUX_IPU_KEEP_ASPECT, "通过内部 IPU 缩放内容时保持 1:1 像素宽高比。如果禁用,图像将被拉伸以填充整个屏幕。" ) #endif MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_VIEWPORT_CUSTOM_X, "自定义宽高比 X 位置" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_X, "自定义 X 轴视图偏移量。\n如果启用「整数缩放」则忽略此选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_VIEWPORT_CUSTOM_Y, "自定义宽高比 Y 位置" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_Y, "自定义 Y 轴视图偏移量。\n如果启用「整数缩放」则忽略此选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_VIEWPORT_CUSTOM_WIDTH, "自定义宽高比宽度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_WIDTH, "自定义视图宽度,如果宽高比设置为「自定义宽高比」,则使用此数值。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_VIEWPORT_CUSTOM_HEIGHT, "自定义宽高比高度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_HEIGHT, "自定义视图高度,如果宽高比设置为「自定义宽高比」,则使用此数值。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_CROP_OVERSCAN, "裁减过扫描 (需要重启)" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_CROP_OVERSCAN, "在图像边缘切掉一些像素,这通常是游戏开发者有意留下的白边或黑边,甚至也有可能包含垃圾像素。" ) /* Settings > Video > HDR */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_HDR_ENABLE, "启用 HDR" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_HDR_ENABLE, "如果显示器支持,则启用 HDR。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_HDR_MAX_NITS, "最高亮度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_HDR_MAX_NITS, "设置您显示的峰亮度(Cd/m2)。请查看显示的峰亮度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_HDR_PAPER_WHITE_NITS, "白点亮度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_HDR_PAPER_WHITE_NITS, "设置白点亮度,即可读文字或亮度在SDR(Standard Dynamic Range)范围的顶部。 有助于根据您环境中的不同照明条件进行调整。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_HDR_CONTRAST, "对比度" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_HDR_CONTRAST, "HDR 的伽玛/对比度控制 HDR 使用颜色并增加图像最亮部分和最黑暗部分之间的总体范围。 人类发展报告对比率越高,差距就越大,而对比率越低,图像就越被冲破越多。 帮助用户根据自己的喜好和他们在显示上感觉最好的方式调整图像。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_HDR_EXPAND_GAMUT, "扩展色阶" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_HDR_EXPAND_GAMUT, "一旦色域转换为渐变区,决定我们是否应该使用扩展色阶来达到HDR10。" ) /* Settings > Video > Synchronization */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_VSYNC, "垂直同步 (VSync)" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_VSYNC, "同步显卡的视频输出帧率和屏幕刷新率。推荐。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SWAP_INTERVAL, "VSync 交换间隔" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SWAP_INTERVAL, "使用自定义 VSync 交换间隔。该设置可以有效地将显示器刷新率减半。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_ADAPTIVE_VSYNC, "自适应垂直同步 (VSync)" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_ADAPTIVE_VSYNC, "垂直同步默认启用,除非性能降到低于目标刷新率。当性能低于实时水平,这可以最大限度地减少卡顿,并且更加节能。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FRAME_DELAY, "帧延时" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FRAME_DELAY, "以增加画面卡顿的风险换取低延时,在垂直同步后增加时延 (毫秒)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FRAME_DELAY_AUTO, "自动帧中继" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FRAME_DELAY_AUTO, "暂时降低有效的“帧中继”以防止将来的帧丢失。起始点是当“帧延迟”为0时的半帧时间。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_HARD_SYNC, "强制 GPU 同步" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_HARD_SYNC, "强制同步 CPU 和 GPU,以性能为代价换取低延迟。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_HARD_SYNC_FRAMES, "强制 GPU 同步帧数" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_HARD_SYNC_FRAMES, "当开启「强制 GPU 同步」时,CPU 可提前 GPU 多少帧。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VRR_RUNLOOP_ENABLE, "精确同步游戏帧率 (G-Sync, FreeSync)" ) MSG_HASH( MENU_ENUM_SUBLABEL_VRR_RUNLOOP_ENABLE, "不偏离请求核心时间。用于可变刷新率屏幕 (G-Sync,FreeSync,HDMI 2.1 VRR)。" ) /* Settings > Audio */ MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_OUTPUT_SETTINGS, "输出" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_OUTPUT_SETTINGS, "更改音频输出设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_RESAMPLER_SETTINGS, "重采样器" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_RESAMPLER_SETTINGS, "更改音频重采样器设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_SYNCHRONIZATION_SETTINGS, "同步" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_SYNCHRONIZATION_SETTINGS, "更改音频同步设置。" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIDI_SETTINGS, "更改 MIDI 设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_MIXER_SETTINGS, "混音器" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_MIXER_SETTINGS, "更改音频混音器设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SOUNDS, "菜单声音" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SOUNDS, "更改 界面音设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_MUTE, "静音" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_MUTE, "静音。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_MIXER_MUTE, "混音器静音" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_MIXER_MUTE, "静音混音器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_FASTFORWARD_MUTE, "快进时静音" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_FASTFORWARD_MUTE, "快进时自动静音。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_VOLUME, "音量增益 (分贝)" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_VOLUME, "音量增益 (分贝)。0 分贝为正常音量,没有增益。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_MIXER_VOLUME, "混音器音量增益 (分贝)" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_MIXER_VOLUME, "全局混音器音量 (分贝)。0 分贝为正常音量,无增益。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_DSP_PLUGIN, "DSP 插件" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_DSP_PLUGIN, "音频 DSP 插件,在驱动程序之前处理音频信号。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_DSP_PLUGIN_REMOVE, "移除 DSP 插件" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_DSP_PLUGIN_REMOVE, "卸载所有活动的音频 DSP 插件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_WASAPI_EXCLUSIVE_MODE, "WASAPI 排他模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_WASAPI_EXCLUSIVE_MODE, "允许 WASAPI 驱动程序独占控制音频设备。如果禁用,它将使用共享模式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_WASAPI_FLOAT_FORMAT, "WASAPI 浮点格式" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_WASAPI_FLOAT_FORMAT, "如果音频设备支持 WASAPI 驱动程序,使用浮点格式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_WASAPI_SH_BUFFER_LENGTH, "WASAPI 共享缓冲区长度" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_WASAPI_SH_BUFFER_LENGTH, "在共享模式下使用 WASAPI 驱动程序时,中间缓冲区的长度 (帧)。" ) /* Settings > Audio > Output */ MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_ENABLE, "音频" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_ENABLE, "启用音频输出。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_DEVICE, "设备" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_DEVICE, "覆盖音频驱动程序使用的默认音频设备。依赖于驱动程序。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_LATENCY, "音频延迟 (毫秒)" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_LATENCY, "音频延迟,单位为毫秒。如果音频驱动程序不支持,则不会生效。" ) /* Settings > Audio > Resampler */ MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_RESAMPLER_QUALITY, "重采样质量" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_RESAMPLER_QUALITY, "降低此值可以提高性能、降低延迟但会降低音频质量,增加此值会得到更好的音质、但是性能会下降和延迟会增加。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_OUTPUT_RATE, "输出率 (Hz)" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_OUTPUT_RATE, "音频输出的采样率。" ) /* Settings > Audio > Synchronization */ MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_SYNC, "同步" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_SYNC, "同步音频。推荐。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_MAX_TIMING_SKEW, "最大时序偏斜" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_MAX_TIMING_SKEW, "音频输入率的最大变化值。增加此值会使时间变化可以在很大的范围内变化,但是会导致音调不准 (比如在 NTSC 显示器上运行 PAL 核心)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_RATE_CONTROL_DELTA, "动态音频率控制" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_RATE_CONTROL_DELTA, "同步音频和视频时帮助平滑时间错位。请注意,如果禁用,激活不可能获得良好的同步效果。" ) /* Settings > Audio > MIDI */ MSG_HASH( MENU_ENUM_LABEL_VALUE_MIDI_INPUT, "输入" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIDI_INPUT, "选择输入设备。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MIDI_OUTPUT, "输出" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIDI_OUTPUT, "选择输出设备。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MIDI_VOLUME, "音量" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIDI_VOLUME, "设置输出音量 (%)。" ) /* Settings > Audio > Mixer Settings > Mixer Stream */ MSG_HASH( MENU_ENUM_LABEL_VALUE_MIXER_ACTION_PLAY, "播放" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIXER_ACTION_PLAY, "开始播放音频流。完成后将其从完全内存中删除。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MIXER_ACTION_PLAY_LOOPED, "播放 (循环)" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIXER_ACTION_PLAY_LOOPED, "开始播放音频流。完成后再次循环播放此音频流。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MIXER_ACTION_PLAY_SEQUENTIAL, "播放 (顺序)" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIXER_ACTION_PLAY_SEQUENTIAL, "开始播放音频流。完成后跳转到下一个音频流,并重复这种行为。适合专辑的循环播放模式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MIXER_ACTION_STOP, "停止" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIXER_ACTION_STOP, "这将停止播放音频流,但不将其从内存中删除。你可以通过选择「播放」来再次播放。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MIXER_ACTION_REMOVE, "移除" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIXER_ACTION_REMOVE, "这将停止播放音频流,并将其完全从内存中删除。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MIXER_ACTION_VOLUME, "音量" ) MSG_HASH( MENU_ENUM_SUBLABEL_MIXER_ACTION_VOLUME, "调整音频流的音量。" ) /* Settings > Audio > Menu Sounds */ MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_ENABLE_MENU, "混音器" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_ENABLE_MENU, "在菜单中播放同步音频流。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SOUND_OK, "启用「确定」声音" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SOUND_CANCEL, "启用「取消」声音" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SOUND_NOTICE, "启用「通知」声音" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SOUND_BGM, "启用「背景音乐」声音" ) /* Settings > Input */ MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MAX_USERS, "最大用户数" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_MAX_USERS, "支持的最大玩家数量。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_POLL_TYPE_BEHAVIOR, "轮询行为" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_POLL_TYPE_BEHAVIOR, "设置轮询方式。轮询是一种 CPU 定时检查输入输出设备的方式。根据设备的性能,设置为「较早」或「稍晚」可以降低延迟。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_REMAP_BINDS_ENABLE, "重映射核心键位控制" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_REMAP_BINDS_ENABLE, "用当前核心的重映射绑定覆盖输入绑定。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_AUTODETECT_ENABLE, "自动配置" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_AUTODETECT_ENABLE, "自动配置已有配置文件的手柄,即插即玩。" ) #if defined(HAVE_DINPUT) || defined(HAVE_WINRAWINPUT) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_NOWINKEY_ENABLE, "禁用 Windows 快捷键 (需要重启)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_NOWINKEY_ENABLE, "在应用中保留 Win 组合键。" ) #endif MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_SENSORS_ENABLE, "辅助传感器输入" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_SENSORS_ENABLE, "如果硬件支持,则启用加速度计,陀螺仪和光线传感器。可能会影响性能或增加功耗。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_AUTO_MOUSE_GRAB, "自动捕捉鼠标。" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_AUTO_MOUSE_GRAB, "在应用程序焦点上启用鼠标捕捉" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_AUTO_GAME_FOCUS, "自动启用「游戏焦点」模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_AUTO_GAME_FOCUS, "启动和恢复游戏时总是启用「游戏焦点」模式。 当设置为「检测」时,如果当前核心实现前端键盘回调功能,将启用选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_AUTO_GAME_FOCUS_OFF, "关" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_AUTO_GAME_FOCUS_ON, "开" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_AUTO_GAME_FOCUS_DETECT, "检测" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_BUTTON_AXIS_THRESHOLD, "输入键轴阈值" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_BUTTON_AXIS_THRESHOLD, "轴移动多远才会被认定为按键。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_DEADZONE, "模拟输入死区" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_SENSITIVITY, "模拟输入灵敏度" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_BIND_TIMEOUT, "绑定超时" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_BIND_TIMEOUT, "继续下一个绑定前等待的秒数。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_BIND_HOLD, "绑定保持" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_BIND_HOLD, "绑定时需要按住输入的秒数。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_TURBO_PERIOD, "连发周期" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_TURBO_PERIOD, "触发连发键所需的按压时间 (帧)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_DUTY_CYCLE, "连发周期" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_DUTY_CYCLE, "连击速率。如果此数值大于或等于连击时长,则按键将永远不会松开。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_TURBO_MODE, "连发模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_TURBO_MODE, "选择连发模式的一般行为。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_TURBO_DEFAULT_BUTTON, "连发默认按钮" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_TURBO_DEFAULT_BUTTON, "默认的「单一按钮」连发模式激活按钮。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_TURBO_FIRE_SETTINGS, "连发" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_TURBO_FIRE_SETTINGS, "更改连发设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_HAPTIC_FEEDBACK_SETTINGS, "触觉反馈/振动" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_HAPTIC_FEEDBACK_SETTINGS, "更改触觉反馈和振动设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MENU_SETTINGS, "菜单控制" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_MENU_SETTINGS, "更改菜单控制设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_HOTKEY_BINDS, "快捷键" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_HOTKEY_BINDS, "更改快捷键设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_USER_BINDS, "端口 %u 控制" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_USER_BINDS, "更改此端口的手柄。" ) /* Settings > Input > Haptic Feedback/Vibration */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIBRATE_ON_KEYPRESS, "按键振动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ENABLE_DEVICE_VIBRATION, "启用设备振动 (对支持的核心)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_RUMBLE_GAIN, "震動強度" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_RUMBLE_GAIN, "指定触觉反馈效果的强弱。" ) /* Settings > Input > Menu Controls */ MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_UNIFIED_MENU_CONTROLS, "统一菜单控制" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_UNIFIED_MENU_CONTROLS, "在菜单和游戏中使用相同的控制配置。应用于键盘。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_INPUT_SWAP_OK_CANCEL, "对调菜单中的「确定」键和「取消」键" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_INPUT_SWAP_OK_CANCEL, "交换确认键和取消键的键位。关闭为日版键位,开启则为美版键位。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ALL_USERS_CONTROL_MENU, "全部用户控制菜单" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_ALL_USERS_CONTROL_MENU, "允许任何用户打开菜单。如果禁用,则只有用户 1 能打开菜单。" ) /* Settings > Input > Hotkeys */ MSG_HASH( MENU_ENUM_LABEL_VALUE_QUIT_PRESS_TWICE, "确认退出" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUIT_PRESS_TWICE, "按两次「退出」快捷键退出全能模拟器。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MENU_ENUM_TOGGLE_GAMEPAD_COMBO, "菜单切换的控制器组合键" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_MENU_ENUM_TOGGLE_GAMEPAD_COMBO, "切换菜单的手柄组合键。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_QUIT_GAMEPAD_COMBO, "退出控制組合設定" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_QUIT_GAMEPAD_COMBO, "退出RetroArch的控制器組合鍵" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_HOTKEY_BLOCK_DELAY, "快捷键启用延迟 (帧)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_HOTKEY_BLOCK_DELAY, "按住指定的「启用快捷键」键后,添加一个延迟,等待数帧后再阻断正常输入。这样的话「启用快捷键」键也能被正常输入以映射其他动作 (比如「选择」)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_KEY, "快进 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_FAST_FORWARD_KEY, "在快进和正常速度之间切换。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_HOLD_KEY, "快进 (保持)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_FAST_FORWARD_HOLD_KEY, "按住按键时启用快进模式。松开按键后以正常速度运行游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION_KEY, "慢放 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_SLOWMOTION_KEY, "在慢动作和正常速度之间切换。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION_HOLD_KEY, "慢放 (保持)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_SLOWMOTION_HOLD_KEY, "按住按键时启用慢动作模式。松开按键时以正常速度运行游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, "加载状态" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_LOAD_STATE_KEY, "从当前选定的卡槽加载状态。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, "保存状态" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_SAVE_STATE_KEY, "在当前选定的卡槽保存状态。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY, "全屏 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_FULLSCREEN_TOGGLE_KEY, "切换全屏和窗口显示模式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_CLOSE_CONTENT_KEY, "关闭游戏" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_CLOSE_CONTENT_KEY, "关闭当前游戏。任何未保存进度都可能会丢失。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, "退出程序" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_QUIT_KEY, "关闭全能模拟器,确保所有存档数据和配置文件已被保存到磁盘。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, "状态存储卡槽 +" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_STATE_SLOT_PLUS, "增加当前选中的状态卡槽编号。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, "状态存储卡槽 -" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_STATE_SLOT_MINUS, "减少当前选中的状态卡槽编号。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, "回溯" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_REWIND_HOTKEY, "按下按键时回溯当前游戏。\n必须打开「启用回溯」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_BSV_RECORD_TOGGLE, "记录输入回放 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_BSV_RECORD_TOGGLE, "打开或关闭 .bsv 格式的游戏操作录制。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_PAUSE_TOGGLE, "暂停 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_PAUSE_TOGGLE, "切换暂停游戏/继续游戏状态。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_FRAMEADVANCE, "帧提前量" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_FRAMEADVANCE, "当游戏暂停时,前进一帧。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_RESET, "重置游戏" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_RESET, "从头重新开始游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_NEXT, "下个着色器" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_SHADER_NEXT, "加载并应用「视频着色器」文件夹中的下一个渲染器预设文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_PREV, "上个着色器" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_SHADER_PREV, "加载并应用「视频着色器」文件夹中的上一个渲染器预设文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_PLUS, "下个金手指编号" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_CHEAT_INDEX_PLUS, "增加当前选择的金手指序号。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_MINUS, "上个金手指编号" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_CHEAT_INDEX_MINUS, "减少当前选择的金手指序号。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_TOGGLE, "金手指 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_CHEAT_TOGGLE, "打开/关闭当前选择的金手指。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_SCREENSHOT, "截屏" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_SCREENSHOT, "抓取当前游戏的图像截屏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_MUTE, "静音 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_MUTE, "打开/关闭音频输出。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_OSK, "屏幕键盘 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_OSK, "打开/关闭屏幕键盘。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_FPS_TOGGLE, "显示 FPS (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_FPS_TOGGLE, "打开/关闭 FPS 状态指示器。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_SEND_DEBUG_INFO, "发送调试信息" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_SEND_DEBUG_INFO, "发送设备诊断信息和全能模拟器配置到我们的服务器进行分析。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_HOST_TOGGLE, "联机主机 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_NETPLAY_HOST_TOGGLE, "打开/关闭联机游戏房主。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_GAME_WATCH, "联机对战/观战模式 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_NETPLAY_GAME_WATCH, "切换当前联机游戏的玩家和观战模式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_ENABLE_HOTKEY, "启用快捷键" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_ENABLE_HOTKEY, "指定后,必须先按住「启用快捷键」键 (并保持),然后才能识别其他快捷键。允许手柄按键映射到快捷键功能,而不影响正常输入。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_UP, "增大音量" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_VOLUME_UP, "提高输出音频音量。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_DOWN, "减小音量" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_VOLUME_DOWN, "降低输出音频音量。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_OVERLAY_NEXT, "下个遮罩" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_OVERLAY_NEXT, "切换当前活动屏幕遮罩的下个可用布局。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_EJECT_TOGGLE, "光盘弹出开关" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_DISK_EJECT_TOGGLE, "如果虚拟光盘托盘关闭,打开并移除加载的光盘。否则,插入选中的光盘并关闭托盘。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_NEXT, "下个光盘" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_DISK_NEXT, "增加当前选中光盘的编号。\n虚拟光盘托盘必须打开。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_PREV, "上个光盘" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_DISK_PREV, "增加当前选中光盘的编号。\n虚拟光盘托盘必须打开。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_GRAB_MOUSE_TOGGLE, "捕获鼠标 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_GRAB_MOUSE_TOGGLE, "捕获或释放鼠标。捕获后,系统鼠标指针将隐藏并限制在全能模拟器窗口中,以改善相对鼠标输入。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_GAME_FOCUS_TOGGLE, "游戏焦点 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_GAME_FOCUS_TOGGLE, "启用或禁用「游戏焦点」模式。当游戏被聚焦,快捷键被禁用,所有键盘输入都被传递给核心,同时鼠标也会被捕获。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_UI_COMPANION_TOGGLE, "桌面菜单 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_UI_COMPANION_TOGGLE, "打开附带的 WIMP (窗口,图标,菜单,指针) 桌面用户界面。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_MENU_TOGGLE, "菜单 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_MENU_TOGGLE, "在菜单和游戏之间切换显示。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_RECORDING_TOGGLE, "录像 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_RECORDING_TOGGLE, "开始/停止录制本地视频。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_STREAMING_TOGGLE, "直播 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_STREAMING_TOGGLE, "开始/停止在线视频直播。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_RUNAHEAD_TOGGLE, "超前运行 (开关)" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_RUNAHEAD_TOGGLE, "打开/关闭超前运行。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_AI_SERVICE, "AI 服务" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_AI_SERVICE, "抓取当前游戏画面,然后翻译或朗读文字。\n必须启用和配置「AI 服务」。" ) /* Settings > Input > Port # Controls */ MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_DEVICE_TYPE, "设备类型" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ADC_TYPE, "模拟转数字类型" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_ADC_TYPE, "使用指定的模拟摇杆进行方向键输入。如果内核支持本地模拟,除非“强制”打开,否则将禁用方向键映射。 如果强制使用方向键映射,核心将不会收到来自指定摇杆的模拟输入。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_DEVICE_INDEX, "设备编号" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_REMAP_PORT, "已映射端口" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_REMAP_PORT, "指定一个用于接收前端控制器输入端口%u的“核心”端口(通常是玩家编号)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_BIND_ALL, "设置所有控制" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_BIND_DEFAULT_ALL, "重置默认控制" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_SAVE_AUTOCONFIG, "保存手柄配置文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_INDEX, "鼠标编号" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, "B 键 (下)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, "Y 键 (左)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, "选择键" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, "开始键" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, "十字键上" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, "十字键下" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, "十字键左" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, "十字键右" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, "A 键 (右)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, "X 键 (上)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, "L 键 (肩键)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, "R 键 (肩键)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, "L2 键 (扳机)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, "R2 键 (扳机)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, "L3 键 (摇杆)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, "L3 键 (摇杆)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, "左摇杆 X+ (右)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, "左摇杆 X- (左)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, "左摇杆 Y+ (下)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, "左摇杆 Y- (上)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, "右摇杆 X+ (右)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, "右摇杆 X- (左)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, "右摇杆 Y+ (下)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, "右摇杆 Y- (上)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_TRIGGER, "光枪扳机" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, "光枪装弹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_A, "光枪 Aux A" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_B, "光枪 Aux B" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_C, "光枪 Aux C" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_START, "光枪开始" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_SELECT, "光枪选择" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_UP, "光枪十字键上" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_DOWN, "光枪十字键下" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_LEFT, "光枪十字键左" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_RIGHT, "光枪十字键右" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, "连发" ) /* Settings > Latency */ MSG_HASH( MENU_ENUM_LABEL_VALUE_RUN_AHEAD_ENABLED, "超前运行以降低延迟" ) MSG_HASH( MENU_ENUM_SUBLABEL_RUN_AHEAD_ENABLED, "提前运行核心逻辑一帧或多帧,然后加载计算好的状态,以降低按键延迟卡顿。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RUN_AHEAD_FRAMES, "超前运行的帧数" ) MSG_HASH( MENU_ENUM_SUBLABEL_RUN_AHEAD_FRAMES, "设置要超前运行的帧数。如果滞后于游戏本体的帧数将导致类似于抖动之类的游戏问题。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RUN_AHEAD_SECONDARY_INSTANCE, "使用第二实例来超前运行" ) MSG_HASH( MENU_ENUM_SUBLABEL_RUN_AHEAD_SECONDARY_INSTANCE, "使用第二个全能模拟器核心实例来超前运行。防止加载状态导致的音频问题。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RUN_AHEAD_HIDE_WARNINGS, "隐藏超前运行警告" ) MSG_HASH( MENU_ENUM_SUBLABEL_RUN_AHEAD_HIDE_WARNINGS, "当使用「超前运行」功能而核心不支持即时存档时,隐藏警告信息。" ) /* Settings > Core */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHARED_CONTEXT, "硬件共享上下文" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHARED_CONTEXT, "给硬件渲染的核心他们自己的私有环境。避免去考虑帧之间发生硬件状态变化。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DRIVER_SWITCH_ENABLE, "允许核心切换视频驱动" ) MSG_HASH( MENU_ENUM_SUBLABEL_DRIVER_SWITCH_ENABLE, "允许核心从当前加载的视频驱动切换到不同的视频驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DUMMY_ON_CORE_SHUTDOWN, "核心关闭时加载假核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_DUMMY_ON_CORE_SHUTDOWN, "一些核心具有关机功能,加载虚设核心可以防止全能模拟器意外关机。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_SET_SUPPORTS_NO_CONTENT_ENABLE, "自动启动核心" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHECK_FOR_MISSING_FIRMWARE, "加载前检查固件完整性" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHECK_FOR_MISSING_FIRMWARE, "在加载游戏之前,先检查必要固件的完整性。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_OPTION_CATEGORY_ENABLE, "核心选项类别" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_OPTION_CATEGORY_ENABLE, "允许核心在基于类别的子菜单中显示选项。注意:必须重新加载核心才能使更改生效。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INFO_CACHE_ENABLE, "缓存核心信息文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_INFO_CACHE_ENABLE, "对已安装核心的信息进行本地持久化缓存。 大大减少了磁盘访问速度较慢的平台上的加载时间。" ) #ifndef HAVE_DYNAMIC MSG_HASH( MENU_ENUM_LABEL_VALUE_ALWAYS_RELOAD_CORE_ON_RUN_CONTENT, "运行游戏时总是重载核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_ALWAYS_RELOAD_CORE_ON_RUN_CONTENT, "加载游戏时重启全能模拟器,即使请求的核心已经加载了。这可能会提高系统稳定性,但是会增加加载时间。" ) #endif MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_ALLOW_ROTATE, "允许旋转" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_ALLOW_ROTATE, "允许核心设置旋转。启用后,选装请求会被忽略。对手动旋转屏幕很有用。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_MANAGER_LIST, "管理核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_MANAGER_LIST, "在已安装的核心上执行离线维护任务(备份、恢复、删除等),并查看核心信息。" ) /* Settings > Configuration */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CONFIG_SAVE_ON_EXIT, "退出时保存配置" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONFIG_SAVE_ON_EXIT, "退出时保存更改到配置文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_GAME_SPECIFIC_OPTIONS, "自动加载游戏特定的核心选项" ) MSG_HASH( MENU_ENUM_SUBLABEL_GAME_SPECIFIC_OPTIONS, "启动时默认启用自定义核心选项" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUTO_OVERRIDES_ENABLE, "自动加载独立配置文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUTO_OVERRIDES_ENABLE, "启动时加载自定义配置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUTO_REMAPS_ENABLE, "自动加载重映射文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUTO_REMAPS_ENABLE, "程序启动时默认启用自定义重映射。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUTO_SHADERS_ENABLE, "自动加载着色器预设" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_GLOBAL_CORE_OPTIONS, "使用全局核心选项文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_GLOBAL_CORE_OPTIONS, "将所有核心选项保存到一个通用设置文件 (retroarch-core-options.cfg)。当禁用时,每个核心的选项将被保存到全能模拟器的配置文件夹中一个独立的核心文件夹/文件。" ) /* Settings > Saving */ MSG_HASH( MENU_ENUM_LABEL_VALUE_SORT_SAVEFILES_ENABLE, "按核心名称分文件夹排序存档" ) MSG_HASH( MENU_ENUM_SUBLABEL_SORT_SAVEFILES_ENABLE, "将存档文件分组排序到以核心名称命名的文件夹中。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SORT_SAVESTATES_ENABLE, "按核心名称分文件夹排序状态存储" ) MSG_HASH( MENU_ENUM_SUBLABEL_SORT_SAVESTATES_ENABLE, "将状态存储分租排序到以核心名称命名的文件夹中。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SORT_SAVEFILES_BY_CONTENT_ENABLE, "按游戏文件夹排序存档" ) MSG_HASH( MENU_ENUM_SUBLABEL_SORT_SAVEFILES_BY_CONTENT_ENABLE, "将存档文件分组排序到和游戏所在文件夹同名的文件夹中。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SORT_SAVESTATES_BY_CONTENT_ENABLE, "按游戏文件夹排序状态存储" ) MSG_HASH( MENU_ENUM_SUBLABEL_SORT_SAVESTATES_BY_CONTENT_ENABLE, "将状态存储分组排序到和游戏所在文件夹同名的文件夹中。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BLOCK_SRAM_OVERWRITE, "加载状态时不覆盖卡带内存" ) MSG_HASH( MENU_ENUM_SUBLABEL_BLOCK_SRAM_OVERWRITE, "读取状态时不覆盖游戏卡带内存。可能会导致某些游戏出错。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUTOSAVE_INTERVAL, "卡带内存自动保存间隔" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUTOSAVE_INTERVAL, "按一定时间间隔 (秒) 自动保存非易失卡带内存卡带内存。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_AUTO_INDEX, "自动增加状态存储编号" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_INDEX, "保存状态存储前,状态存储编号自动增加。加载游戏时,编号自动设置为最大的编号。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_MAX_KEEP, "增量状态存储的最大数量" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVESTATE_MAX_KEEP, "限制「自动增加状态存储编号」选项开启时所创建的存储状态数量。若保存新状态时达到限制,拥有最低编号的状态将被自动删除。设置为「0」表示不限制。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_AUTO_SAVE, "自动保存状态" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_SAVE, "关闭游戏时自动保存状态。如果启用了「自动加载状态」,下次打开游戏时,全能模拟器将自动加载此状态。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_AUTO_LOAD, "自动加载状态" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_LOAD, "开始游戏时,自动加载最近自动保存的状态。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_THUMBNAIL_ENABLE, "状态存储缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVESTATE_THUMBNAIL_ENABLE, "在菜单中显示状态存储缩略图。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVE_FILE_COMPRESSION, "卡带内存压缩" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVE_FILE_COMPRESSION, "以压缩包格式写入非易失卡带内存文件。这会大幅减小文件大小,但是会增加保存/加载时间(很小,可忽略)。\n仅用于使用标准全能模拟器卡带内存接口的核心。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_FILE_COMPRESSION, "状态存储压缩" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVESTATE_FILE_COMPRESSION, "以压缩格式写入状态存储文件。能大幅缩小文件大小,但保存/加载状态会更慢。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SORT_SCREENSHOTS_BY_CONTENT_ENABLE, "按游戏文件夹排序截屏" ) MSG_HASH( MENU_ENUM_SUBLABEL_SORT_SCREENSHOTS_BY_CONTENT_ENABLE, "将截屏分组排序到和游戏所在文件夹同名的文件夹中。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVEFILES_IN_CONTENT_DIR_ENABLE, "写入存档到游戏文件夹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATES_IN_CONTENT_DIR_ENABLE, "写入状态存储到游戏文件夹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEMFILES_IN_CONTENT_DIR_ENABLE, "系统文件在游戏文件夹中" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SCREENSHOTS_IN_CONTENT_DIR_ENABLE, "写入截屏到游戏文件夹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_RUNTIME_LOG, "保存运行日志 (每个核心)" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_RUNTIME_LOG, "跟踪记录每个游戏的运行时间,按核心分开记录。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_RUNTIME_LOG_AGGREGATE, "保存运行日志 (聚合)" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_RUNTIME_LOG_AGGREGATE, "跟踪记录每个游戏的运行时间,所有核心合并记录。" ) /* Settings > Logging */ MSG_HASH( MENU_ENUM_LABEL_VALUE_LOG_VERBOSITY, "完整日志记录" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOG_VERBOSITY, "记录事件日志到控制台或文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL, "前端日志级别" ) MSG_HASH( MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL, "设置前端日志级别。如果前端发布的日志低于这个级别,就将被忽略。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LIBRETRO_LOG_LEVEL, "核心日志级别" ) MSG_HASH( MENU_ENUM_SUBLABEL_LIBRETRO_LOG_LEVEL, "设置核心日志级别。如果核心发布的日志低于这个级别,就将被忽略。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOG_TO_FILE, "记录至文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOG_TO_FILE, "将系统事件日志消息重定向到文件。需要启用「记录详情」。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOG_TO_FILE_TIMESTAMP, "时间戳日志文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOG_TO_FILE_TIMESTAMP, "记录到文件时,重定向每个会话的输出到一个新的时间戳文件。如果禁用,日志文件每次都重启都会被覆盖。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PERFCNT_ENABLE, "性能计数器" ) MSG_HASH( MENU_ENUM_SUBLABEL_PERFCNT_ENABLE, "全能模拟器和核心的性能计数器。计数器数据可以帮助确定系统的瓶颈并优化调节性能。" ) /* Settings > File Browser */ MSG_HASH( MENU_ENUM_LABEL_VALUE_SHOW_HIDDEN_FILES, "显示隐藏文件和文件夹" ) MSG_HASH( MENU_ENUM_SUBLABEL_SHOW_HIDDEN_FILES, "在文件浏览器中显示隐藏的文件和文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NAVIGATION_BROWSER_FILTER_SUPPORTED_EXTENSIONS_ENABLE, "过滤未知扩展名" ) MSG_HASH( MENU_ENUM_SUBLABEL_NAVIGATION_BROWSER_FILTER_SUPPORTED_EXTENSIONS_ENABLE, "按支持的扩展名过滤文件管理器中显示的文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_USE_BUILTIN_PLAYER, "使用内建媒体播放器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FILTER_BY_CURRENT_CORE, "过滤当前核心支持文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_USE_LAST_START_DIRECTORY, "记住上次使用的开始文件夹" ) MSG_HASH( MENU_ENUM_SUBLABEL_USE_LAST_START_DIRECTORY, "在起始目录加载游戏时,于最后打开的位置开启文件浏览器。注:重启全能模拟器后,此位置将重置。" ) /* Settings > Frame Throttle */ MSG_HASH( MENU_ENUM_LABEL_VALUE_REWIND_SETTINGS, "回溯" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_REWIND, "更改回溯设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FRAME_TIME_COUNTER_SETTINGS, "帧计时器" ) MSG_HASH( MENU_ENUM_SUBLABEL_FRAME_TIME_COUNTER_SETTINGS, "更改影响帧时间计数器的设置。\n仅当线程视频禁用时才激活。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FASTFORWARD_RATIO, "快进倍率" ) MSG_HASH( MENU_ENUM_SUBLABEL_FASTFORWARD_RATIO, "快进时最多以几倍速运行。设置为 0 代表不限速。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SLOWMOTION_RATIO, "慢放倍率" ) MSG_HASH( MENU_ENUM_SUBLABEL_SLOWMOTION_RATIO, "使用慢动作时的游戏播放速度比率。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_ENUM_THROTTLE_FRAMERATE, "限制菜单帧率" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_ENUM_THROTTLE_FRAMERATE, "确保菜单内的帧率上限。" ) /* Settings > Frame Throttle > Rewind */ MSG_HASH( MENU_ENUM_LABEL_VALUE_REWIND_ENABLE, "启用回溯" ) MSG_HASH( MENU_ENUM_SUBLABEL_REWIND_ENABLE, "返回最近游戏中的前一个点。这会在玩游戏时造成严重的性能下降。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REWIND_GRANULARITY, "回溯帧数" ) MSG_HASH( MENU_ENUM_SUBLABEL_REWIND_GRANULARITY, "每步回溯的帧数,数值越大速度越快。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REWIND_BUFFER_SIZE, "回溯缓冲区大小 (MB)" ) MSG_HASH( MENU_ENUM_SUBLABEL_REWIND_BUFFER_SIZE, "回溯缓冲区保留的内存量 (单位为 MB)。增加内存量可增加回溯历史的时间。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REWIND_BUFFER_SIZE_STEP, "回溯缓冲区大小步长 (MB)" ) MSG_HASH( MENU_ENUM_SUBLABEL_REWIND_BUFFER_SIZE_STEP, "每次通过此页面调整存档缓存大小,都会更改这个数值。" ) /* Settings > Frame Throttle > Frame Time Counter */ MSG_HASH( MENU_ENUM_LABEL_VALUE_FRAME_TIME_COUNTER_RESET_AFTER_FASTFORWARDING, "快进后重置" ) MSG_HASH( MENU_ENUM_SUBLABEL_FRAME_TIME_COUNTER_RESET_AFTER_FASTFORWARDING, "快进后重置帧时间计数器。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FRAME_TIME_COUNTER_RESET_AFTER_LOAD_STATE, "加载状态后重置" ) MSG_HASH( MENU_ENUM_SUBLABEL_FRAME_TIME_COUNTER_RESET_AFTER_LOAD_STATE, "加载状态后重置帧时间计数器。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FRAME_TIME_COUNTER_RESET_AFTER_SAVE_STATE, "保存状态后重置" ) MSG_HASH( MENU_ENUM_SUBLABEL_FRAME_TIME_COUNTER_RESET_AFTER_SAVE_STATE, "保存状态后重置帧时间计数器。" ) /* Settings > Recording */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_RECORD_QUALITY, "录像质量" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RECORD_CONFIG, "自定义录像配置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_RECORD_THREADS, "录制线程" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_POST_FILTER_RECORD, "使用后期滤镜录制" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_POST_FILTER_RECORD, "抓取图像时保留滤镜 (但不保留着色器),使录制的视频与您在屏幕上看到的一样好看。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_GPU_RECORD, "使用 GPU 录制" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_GPU_RECORD, "如果可以的话,录制 GPU 渲染材质的输出。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "直播模式" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_STREAM_QUALITY, "直播质量" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_STREAM_CONFIG, "自定义直播配置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, "直播标题" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_STREAMING_URL, "直播链接" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UDP_STREAM_PORT, "直播 UDP 端口" ) /* Settings > On-Screen Display */ MSG_HASH( MENU_ENUM_LABEL_VALUE_ONSCREEN_OVERLAY_SETTINGS, "遮罩" ) MSG_HASH( MENU_ENUM_SUBLABEL_ONSCREEN_OVERLAY_SETTINGS, "调整边框和屏幕遮罩按键显示。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ONSCREEN_VIDEO_LAYOUT_SETTINGS, "视频布局" ) MSG_HASH( MENU_ENUM_SUBLABEL_ONSCREEN_VIDEO_LAYOUT_SETTINGS, "调整视频布局。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ONSCREEN_NOTIFICATIONS_SETTINGS, "通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_ONSCREEN_NOTIFICATIONS_SETTINGS, "调整屏幕通知。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ONSCREEN_NOTIFICATIONS_VIEWS_SETTINGS, "通知可见性" ) MSG_HASH( MENU_ENUM_SUBLABEL_ONSCREEN_NOTIFICATIONS_VIEWS_SETTINGS, "切换特定类型通知的可见性。" ) /* Settings > On-Screen Display > On-Screen Overlay */ MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_ENABLE, "显示遮罩" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_OVERLAY_ENABLE, "遮罩用于显示边框和屏幕按键。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_HIDE_IN_MENU, "在菜单中隐藏遮罩" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_OVERLAY_HIDE_IN_MENU, "在菜单中隐藏遮罩,退出菜单后重新显示。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_HIDE_WHEN_GAMEPAD_CONNECTED, "连接手柄后隐藏遮罩" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_OVERLAY_HIDE_WHEN_GAMEPAD_CONNECTED, "实体手柄连接到端口 1 后隐藏遮罩。手柄断开后重新显示。" ) #if defined(ANDROID) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_OVERLAY_HIDE_WHEN_GAMEPAD_CONNECTED_ANDROID, "实体手柄连接到端口 1 后隐藏遮罩。手柄断开后不会自动重新显示。" ) #endif MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_SHOW_INPUTS, "在遮罩上显示输入" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_OVERLAY_SHOW_INPUTS, "已注册的输入将会在屏幕遮罩上显示。按下/点击等“已触摸”输入将高亮显示。从已连接的手柄或键盘等物理控制器传递到内核的真实输入也会高亮显示。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_SHOW_INPUTS_TOUCHED, "已触摸的" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_SHOW_INPUTS_PHYSICAL, "物理(控制器)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_SHOW_INPUTS_PORT, "显示来自端口的输入" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_OVERLAY_SHOW_INPUTS_PORT, "选择要监控的输入设备端口,当“物理(控制器)”被设置为“在遮罩上显示输入”时生效。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_SHOW_MOUSE_CURSOR, "在遮罩上显示鼠标指针" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_OVERLAY_SHOW_MOUSE_CURSOR, "使用屏幕遮罩时显示鼠标指针。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_AUTO_ROTATE, "自动旋转遮罩" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_OVERLAY_AUTO_ROTATE, "如果当前遮罩支持,自动旋转布局匹配屏幕方向/宽高比。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_AUTO_SCALE, "自动缩放遮罩" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_OVERLAY_AUTO_SCALE, "自动调节遮罩缩放和 UI 元素间距以匹配屏幕宽高比。可以得到最佳的控制遮罩效果。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY, "遮罩" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_AUTOLOAD_PREFERRED, "自动加载最佳遮罩" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_OPACITY, "遮罩不透明度" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_OPACITY, "遮罩的 UI 透明度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_PRESET, "遮罩预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_PRESET, "从文件管理器中选择遮罩。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_SCALE_LANDSCAPE, "(横屏) 遮罩缩放" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_SCALE_LANDSCAPE, "使用横屏显示模式时,缩放遮罩上的所有 UI 元素。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_ASPECT_ADJUST_LANDSCAPE, "(横屏) 遮罩宽高比调整" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_ASPECT_ADJUST_LANDSCAPE, "使用横屏显示模式时,应用宽高比修正系数。正数会增加宽度,负数减少宽度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_X_SEPARATION_LANDSCAPE, "(横屏) 遮罩水平间隔" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_X_SEPARATION_LANDSCAPE, "如果当前预设支持,使用横屏显示模式时,调整左右两边 UI 元素之间的距离。正数增加距离,负数减少距离。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_Y_SEPARATION_LANDSCAPE, "(横屏) 遮罩垂直间隔" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_Y_SEPARATION_LANDSCAPE, "如果当前预设支持,使用横屏显示模式时,调整上下两边 UI 元素之间的距离。正数增加距离,负数减少距离。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_X_OFFSET_LANDSCAPE, "(横屏) 遮罩 X 偏移" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_X_OFFSET_LANDSCAPE, "使用横屏显示模式时,水平偏移遮罩。正数向右偏移,负数向左偏移。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_Y_OFFSET_LANDSCAPE, "(横屏) 遮罩 Y 偏移" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_Y_OFFSET_LANDSCAPE, "使用横屏显示模式时,垂直偏移遮罩。正数向上偏移,负数向下偏移。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_SCALE_PORTRAIT, "(竖屏) 遮罩缩放" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_SCALE_PORTRAIT, "使用竖屏显示模式时,缩放遮罩上的所有 UI 元素。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_ASPECT_ADJUST_PORTRAIT, "(竖屏) 遮罩宽高比调整" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_ASPECT_ADJUST_PORTRAIT, "使用竖屏显示模式时,应用宽高比修正系数。正数会增加高度,负数减少高度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_X_SEPARATION_PORTRAIT, "(竖屏) 遮罩水平间隔" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_X_SEPARATION_PORTRAIT, "如果当前预设支持,使用竖屏显示模式时,调整左右两边 UI 元素之间的距离。正数增加距离,负数减少距离。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_Y_SEPARATION_PORTRAIT, "(竖屏) 遮罩垂直间隔" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_Y_SEPARATION_PORTRAIT, "如果当前预设支持,使用竖屏显示模式时,调整上下两边 UI 元素之间的距离。正数增加距离,负数减少距离。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_X_OFFSET_PORTRAIT, "(竖屏) 遮罩 X 偏移" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_X_OFFSET_PORTRAIT, "使用竖屏显示模式时,水平偏移遮罩。正数向右偏移,负数向左偏移。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_Y_OFFSET_PORTRAIT, "(竖屏) 遮罩 Y 偏移" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_Y_OFFSET_PORTRAIT, "使用竖屏显示模式时,垂直偏移遮罩。正数向上偏移,负数向下偏移。" ) /* Settings > On-Screen Display > Video Layout */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_LAYOUT_ENABLE, "启用视频布局" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_LAYOUT_ENABLE, "视频布局用于边框和其他游戏艺术。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_LAYOUT_PATH, "视频布局路径" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_LAYOUT_PATH, "从文件管理器中选择视频布局。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_LAYOUT_SELECTED_VIEW, "选中视图" ) MSG_HASH( /* FIXME Unused */ MENU_ENUM_SUBLABEL_VIDEO_LAYOUT_SELECTED_VIEW, "从加载的布局选择视图。" ) /* Settings > On-Screen Display > On-Screen Notifications */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FONT_ENABLE, "屏显通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FONT_ENABLE, "显示屏幕消息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE, "图形部件" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_WIDGETS_ENABLE, "使用装饰动画,通知,指示器和控制。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_WIDGET_SCALE_AUTO, "自动缩放图形部件" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_WIDGET_SCALE_AUTO, "基于当前菜单缩放自动调整通知,指示器和控件尺寸。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_WIDGET_SCALE_FACTOR_FULLSCREEN, "图形部件缩放倍数 (全屏)" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_WIDGET_SCALE_FACTOR_FULLSCREEN, "全屏模式中,绘制显示部件时应用手动缩放倍数覆盖。仅在「自动缩放图形部件」选项关闭时应用。可以独立于菜单缩放通知,指示和控制部件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_WIDGET_SCALE_FACTOR_WINDOWED, "图形部件缩放覆盖 (窗口)" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_WIDGET_SCALE_FACTOR_WINDOWED, "窗口模式中,绘制显示部件时应用手动缩放倍数覆盖。仅在「自动缩放图形部件」选项关闭时应用。可以独立于菜单缩放通知,指示和控制部件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FPS_SHOW, "显示帧率" ) MSG_HASH( MENU_ENUM_SUBLABEL_FPS_SHOW, "显示当前的 FPS。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FPS_UPDATE_INTERVAL, "帧率更新间隔 (以帧为单位)" ) MSG_HASH( MENU_ENUM_SUBLABEL_FPS_UPDATE_INTERVAL, "FPS 将按设定的周期更新,以帧为单位。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FRAMECOUNT_SHOW, "显示FPS帧数" ) MSG_HASH( MENU_ENUM_SUBLABEL_FRAMECOUNT_SHOW, "在屏幕上显示当前帧数。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_STATISTICS_SHOW, "显示参数信息" ) MSG_HASH( MENU_ENUM_SUBLABEL_STATISTICS_SHOW, "显示技术信息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MEMORY_SHOW, "显示内存用量" ) MSG_HASH( MENU_ENUM_SUBLABEL_MEMORY_SHOW, "显示系统的内存用量和总量。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MEMORY_UPDATE_INTERVAL, "内存更新间隔 (以帧为单位)" ) MSG_HASH( MENU_ENUM_SUBLABEL_MEMORY_UPDATE_INTERVAL, "内存用量将按设定的周期更新,以帧为单位。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT_ANIMATION, "「加载游戏」启动通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT_ANIMATION, "加载游戏时显示简短的反馈动画。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_AUTOCONFIG, "手柄 (自动配置) 连接通知" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_CHEATS_APPLIED, "金手指通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_CHEATS_APPLIED, "应用金手指时,在屏幕上显示通知消息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_PATCH_APPLIED, "补丁通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_PATCH_APPLIED, "在软补丁 ROM 时显示屏幕信息。" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_AUTOCONFIG, "连接/断开手柄时显示屏幕通知消息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_REMAP_LOAD, "输入重映射加载通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_REMAP_LOAD, "加载输入重映射文件时显示屏幕通知消息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_CONFIG_OVERRIDE_LOAD, "配置覆盖加载通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_CONFIG_OVERRIDE_LOAD, "当加载配置覆盖文件时显示屏幕通知消息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_SET_INITIAL_DISK, "初始光盘恢复通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_SET_INITIAL_DISK, "通过 M3U 播放列表自动恢复上次使用的光盘时显示屏幕通知消息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_FAST_FORWARD, "快进通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_FAST_FORWARD, "快进游戏时显示屏幕指示器。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_SCREENSHOT, "截屏通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_SCREENSHOT, "截屏时显示屏幕消息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_SCREENSHOT_DURATION, "截屏通知持续时间" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_SCREENSHOT_DURATION, "定义截屏通知消息在屏幕上的停留时间。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_SCREENSHOT_DURATION_NORMAL, "正常" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_SCREENSHOT_DURATION_FAST, "快" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_SCREENSHOT_DURATION_VERY_FAST, "很快" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_SCREENSHOT_DURATION_INSTANT, "即时" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_SCREENSHOT_FLASH, "截屏闪光灯特效" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_SCREENSHOT_FLASH, "截屏时显示白色闪光灯效果,可以设定闪光持续时间。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_SCREENSHOT_FLASH_NORMAL, "开 (正常)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_SCREENSHOT_FLASH_FAST, "开 (快速)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_REFRESH_RATE, "刷新率通知" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_REFRESH_RATE, "设置刷新率时显示屏幕消息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOTIFICATION_SHOW_NETPLAY_EXTRA, "联网详情" ) MSG_HASH( MENU_ENUM_SUBLABEL_NOTIFICATION_SHOW_NETPLAY_EXTRA, "在屏幕上显示非必要的联网消息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FONT_PATH, "通知字体" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FONT_PATH, "选择屏幕通知字体。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FONT_SIZE, "通知大小" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FONT_SIZE, "设置字体大小磅数。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_POS_X, "通知位置 (水平)" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_MESSAGE_POS_X, "设置屏显文字的自定义 X 坐标。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_POS_Y, "通知位置 (垂直)" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_MESSAGE_POS_Y, "设置屏显文字的自定义 Y 坐标。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_COLOR_RED, "通知颜色 (红)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_COLOR_GREEN, "通知颜色 (绿)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_COLOR_BLUE, "通知颜色 (蓝)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_BGCOLOR_ENABLE, "通知背景颜色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_BGCOLOR_RED, "通知背景颜色红色值" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_BGCOLOR_GREEN, "通知背景颜色绿色值" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_BGCOLOR_BLUE, "通知背景颜色蓝色值" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_BGCOLOR_OPACITY, "通知背景颜色不透明度" ) /* Settings > User Interface */ MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_VIEWS_SETTINGS, "菜单项可见性" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_VIEWS_SETTINGS, "切换全能模拟器的菜单项可见性。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SETTINGS, "外观" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SETTINGS, "更改菜单屏幕的外观设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHOW_ADVANCED_SETTINGS, "显示高级设置" ) MSG_HASH( MENU_ENUM_SUBLABEL_SHOW_ADVANCED_SETTINGS, "显示为资深玩家提供的高级设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_ENABLE_KIOSK_MODE, "游戏机厅模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_ENABLE_KIOSK_MODE, "隐藏所有与配置文件相关的设置,以防止误改选项导致麻烦。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_KIOSK_MODE_PASSWORD, "设置退出游戏机厅模式的密码" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_KIOSK_MODE_PASSWORD, "启用游戏机厅模式时设置密码,以便之后在菜单中禁用。方法是进入菜单,选择「禁用游戏机厅模式」并输入密码。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NAVIGATION_WRAPAROUND, "循环导航" ) MSG_HASH( MENU_ENUM_SUBLABEL_NAVIGATION_WRAPAROUND, "如果开启此选项,在列表的最上端继续向上翻页会回到最下端,向下翻页时也一样。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PAUSE_LIBRETRO, "菜单激活时暂停游戏" ) MSG_HASH( MENU_ENUM_SUBLABEL_PAUSE_LIBRETRO, "激活菜单后暂停当前运行的游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SAVESTATE_RESUME, "使用状态存储后继续游戏" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SAVESTATE_RESUME, "自动关闭菜单并在保存或加载即时存档后继续游戏。禁用此功能可以在非常慢的设备上提高即时存档性能。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_INSERT_DISK_RESUME, "更换光盘后继续游戏" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_INSERT_DISK_RESUME, "插入或加载新光盘后,自动关闭菜单并恢复游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUIT_ON_CLOSE_CONTENT, "「关闭游戏」后退出" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUIT_ON_CLOSE_CONTENT, "于关闭游戏时自动退出 RetroArch。设置为「CLI」表示随由命令行启动的游戏退出而退出。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SCREENSAVER_TIMEOUT, "菜单屏保超时时间" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SCREENSAVER_TIMEOUT, "菜单开启时,闲置一段时间后将显示屏保。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SCREENSAVER_ANIMATION, "菜单屏保动画" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SCREENSAVER_ANIMATION, "在菜单屏保开启时显示动画特效。此选项对性能影响极小。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SCREENSAVER_ANIMATION_SNOW, "雪花" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SCREENSAVER_ANIMATION_STARFIELD, "星域" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SCREENSAVER_ANIMATION_VORTEX, "涡流" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SCREENSAVER_ANIMATION_SPEED, "菜单屏保动画速度" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SCREENSAVER_ANIMATION_SPEED, "调整菜单屏保的动画特效速度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MOUSE_ENABLE, "鼠标支持" ) MSG_HASH( MENU_ENUM_SUBLABEL_MOUSE_ENABLE, "允许用鼠标控制菜单。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_POINTER_ENABLE, "触摸支持" ) MSG_HASH( MENU_ENUM_SUBLABEL_POINTER_ENABLE, "允许用触摸屏来控制菜单。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_THREADED_DATA_RUNLOOP_ENABLE, "线程任务" ) MSG_HASH( MENU_ENUM_SUBLABEL_THREADED_DATA_RUNLOOP_ENABLE, "在单独的线程上执行任务。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PAUSE_NONACTIVE, "暂离时暂停游戏" ) MSG_HASH( MENU_ENUM_SUBLABEL_PAUSE_NONACTIVE, "当窗口失去焦点时暂停游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DISABLE_COMPOSITION, "禁用桌面混成" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_DISABLE_COMPOSITION, "桌面管理器使用混成来应用视觉效果,检测未响应的窗口等。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SCROLL_FAST, "菜单滚动加速" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SCROLL_FAST, "按下一个方向滚动时,光标的最大移速。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SCROLL_DELAY, "菜单滚动延迟" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SCROLL_DELAY, "滑动初始延迟(以毫秒为单位)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UI_COMPANION_ENABLE, "UI 伴侣" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UI_COMPANION_START_ON_BOOT, "启动时打开 UI 助手。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UI_MENUBAR_ENABLE, "菜单栏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DESKTOP_MENU_ENABLE, "桌面菜单 (需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UI_COMPANION_TOGGLE, "启动时打开桌面菜单。" ) /* Settings > User Interface > Menu Item Visibility */ MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_VIEWS_SETTINGS, "快捷菜单" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_VIEWS_SETTINGS, "切换快捷菜单条目的可见性。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_VIEWS_SETTINGS, "设置" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_VIEWS_SETTINGS, "切换设置菜单条目的可见性。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE, "显示「加载核心」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE, "在主菜单中显示「加载核心」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT, "显示「加载游戏」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT, "在主菜单中显示「加载游戏」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_DISC, "显示「加载光盘」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_DISC, "在主菜单中显示「加载光盘」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_DUMP_DISC, "显示「转储光盘」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_DUMP_DISC, "在主菜单中显示「转储光盘」选项。" ) #ifdef HAVE_LAKKA MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_EJECT_DISC, "显示“弹出光盘”" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_EJECT_DISC, "在主菜单中显示“弹出光盘”选项。" ) #endif MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_ONLINE_UPDATER, "显示「在线更新」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_ONLINE_UPDATER, "在主菜单中显示「在线更新」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_CORE_UPDATER, "显示「核心下载」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_CORE_UPDATER, "在「在线更新」菜单中显示「核心下载」和「核心信息下载」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_LEGACY_THUMBNAIL_UPDATER, "显示旧版「缩略图更新」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_LEGACY_THUMBNAIL_UPDATER, "在「在线更新」菜单中显示旧版「缩略图下载」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_INFORMATION, "显示「系统信息」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_INFORMATION, "在主菜单中显示「系统信息」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_CONFIGURATIONS, "显示「配置文件」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_CONFIGURATIONS, "在主菜单中显示「配置文件」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_HELP, "显示「帮助文档」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_HELP, "在主菜单中显示「帮助文档」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_QUIT_RETROARCH, "显示「退出程序」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_QUIT_RETROARCH, "在主菜单中显示「退出程序」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_RESTART_RETROARCH, "显示「重启程序」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_RESTART_RETROARCH, "在主菜单中显示「重启程序」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_SETTINGS, "显示「设置」页" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_SETTINGS, "显示「设置」菜单。(在 Ozone/XMB 中需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_SETTINGS_PASSWORD, "设置开启「设置」页的密码" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_SETTINGS_PASSWORD, "重新启用设置页所需的密码。隐藏设置页后,在菜单中选择「启用设置页」并输入密码来重新启用设置页。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_FAVORITES, "显示「收藏」页" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_FAVORITES, "显示「收藏」菜单。(在 Ozone/XMB 中需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_IMAGES, "显示「图片」页" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_IMAGES, "显示「图片」菜单。(在 Ozone/XMB 中需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_MUSIC, "显示「音乐」页" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_MUSIC, "显示「音乐」菜单。(在 Ozone/XMB 中需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_VIDEO, "显示「视频」页" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_VIDEO, "显示「视频」菜单。(在 Ozone/XMB 中需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_NETPLAY, "显示「联机」页" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_NETPLAY, "显示「联机」菜单。(在 Ozone/XMB 中需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_HISTORY, "显示「历史」页" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY, "显示「历史」菜单。(在 Ozone/XMB 中需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_ADD, "显示「导入」页" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD, "显示「导入」菜单。(在 Ozone/XMB 中需要重启)" ) MSG_HASH( /* FIXME can now be replaced with MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_ADD */ MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_ADD_ENTRY, "显示「导入」" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD_ENTRY, "在主菜单或游戏列表中显示「导入」。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_ADD_CONTENT_ENTRY_DISPLAY_MAIN_TAB, "主菜单" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_ADD_CONTENT_ENTRY_DISPLAY_PLAYLISTS_TAB, "游戏列表菜单" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_PLAYLISTS, "显示「游戏列表」" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS, "显示「游戏列表」。(在 Ozone/XMB 中需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_EXPLORE, "显示「探索」页" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_EXPLORE, "显示探索游戏选项。(在 Ozone/XMB 中需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_TIMEDATE_ENABLE, "显示时间日期" ) MSG_HASH( MENU_ENUM_SUBLABEL_TIMEDATE_ENABLE, "在菜单中显示当前的日期和时间。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE, "日期时间格式" ) MSG_HASH( MENU_ENUM_SUBLABEL_TIMEDATE_STYLE, "更改菜单中当前日期/时间显示格式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_TIMEDATE_DATE_SEPARATOR, "日期分隔符" ) MSG_HASH( MENU_ENUM_SUBLABEL_TIMEDATE_DATE_SEPARATOR, "指定菜单日期的年/月/日之间的分隔符。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BATTERY_LEVEL_ENABLE, "显示电池电量" ) MSG_HASH( MENU_ENUM_SUBLABEL_BATTERY_LEVEL_ENABLE, "在菜单中显示电量。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_ENABLE, "显示核心名称" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_ENABLE, "在内部菜单中显示当前核心名称。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_SUBLABELS, "显示菜单副标签" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_SUBLABELS, "显示菜单条目的额外信息。" ) MSG_HASH( /* FIXME Not RGUI specific */ MENU_ENUM_LABEL_VALUE_RGUI_SHOW_START_SCREEN, "显示开始屏幕" ) MSG_HASH( /* FIXME Not RGUI specific */ MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN, "在菜单中显示启动屏幕。这将在程序首次启动后自动设置为否。" ) /* Settings > User Interface > Menu Item Visibility > Quick Menu */ MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESUME_CONTENT, "显示「恢复」。" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESUME_CONTENT, "显示「恢复」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESTART_CONTENT, "显示「重启」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESTART_CONTENT, "显示「重启」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CLOSE_CONTENT, "显示「关闭」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CLOSE_CONTENT, "显示「关闭」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_TAKE_SCREENSHOT, "显示「截屏」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_TAKE_SCREENSHOT, "显示「截屏」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_SAVE_LOAD_STATE, "显示「保存/加载状态」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_SAVE_LOAD_STATE, "显示「保存/加载状态」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_UNDO_SAVE_LOAD_STATE, "显示「撤消保存/加载状态」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_UNDO_SAVE_LOAD_STATE, "显示「撤消保存/加载状态」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_ADD_TO_FAVORITES, "显示「收藏」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_ADD_TO_FAVORITES, "显示「收藏」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_START_RECORDING, "显示「开始录制」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_START_RECORDING, "显示「开始录制」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_START_STREAMING, "显示「开始直播」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_START_STREAMING, "显示「开始直播」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_SET_CORE_ASSOCIATION, "显示「设置核心关联」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_SET_CORE_ASSOCIATION, "显示「设置核心关联」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESET_CORE_ASSOCIATION, "显示「重置核心关联」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESET_CORE_ASSOCIATION, "显示「重置核心关联」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_OPTIONS, "显示「选项」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_OPTIONS, "显示「选项」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CORE_OPTIONS_FLUSH, "显示“更新项到磁盘”" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CORE_OPTIONS_FLUSH, "在“选项 > 管理核心选项”菜单中显示“向磁盘刷新选项”条目。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CONTROLS, "显示「控制」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CONTROLS, "显示「控制」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CHEATS, "显示「金手指」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CHEATS, "显示「金手指」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_SHADERS, "显示「着色器」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_SHADERS, "显示「着色器」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_REWIND, "显示「回溯」" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_REWIND, "显示「回溯」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_LATENCY, "显示「延迟」" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_LATENCY, "显示「延迟」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_OVERLAYS, "显示「屏幕遮罩」" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_OVERLAYS, "显示「屏幕遮罩」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_VIDEO_LAYOUT, "显示「视频布局」" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_SHOW_VIDEO_LAYOUT, "显示「视频布局」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_SAVE_CORE_OVERRIDES, "显示「保存核心覆盖」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_SAVE_CORE_OVERRIDES, "在「覆盖」菜单显示「保存核心覆盖」。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_SAVE_GAME_OVERRIDES, "显示「保存游戏覆盖」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_SAVE_GAME_OVERRIDES, "在「覆盖」菜单显示「保存游戏覆盖」。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_INFORMATION, "显示「信息」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_INFORMATION, "显示「信息」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_DOWNLOAD_THUMBNAILS, "显示「下载缩略图」" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_DOWNLOAD_THUMBNAILS, "显示「下载缩略图」选项。" ) /* Settings > User Interface > Views > Settings */ MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_DRIVERS, "显示「驱动」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_DRIVERS, "显示「驱动」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_VIDEO, "显示「视频」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_VIDEO, "显示「视频」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_AUDIO, "显示「音频」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_AUDIO, "显示「音频」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_INPUT, "显示「输入」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_INPUT, "显示「输入」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_LATENCY, "显示「延迟」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_LATENCY, "显示「延迟」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_CORE, "显示「核心」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_CORE, "显示「核心」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_CONFIGURATION, "显示「配置」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_CONFIGURATION, "显示「配置」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_SAVING, "显示「存档」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_SAVING, "显示「存档」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_LOGGING, "显示「日志」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_LOGGING, "显示「日志」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_FILE_BROWSER, "显示「文件浏览器」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_FILE_BROWSER, "显示「文件浏览器」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_FRAME_THROTTLE, "显示「限帧」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_FRAME_THROTTLE, "显示「限帧」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_RECORDING, "显示「录制」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_RECORDING, "显示「录制」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_ONSCREEN_DISPLAY, "显示「屏显」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_ONSCREEN_DISPLAY, "显示「屏显」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_USER_INTERFACE, "显示「界面」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_USER_INTERFACE, "显示「界面」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_AI_SERVICE, "显示「AI 服务」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_AI_SERVICE, "显示「AI 服务」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_ACCESSIBILITY, "显示「无障碍」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_ACCESSIBILITY, "显示「无障碍」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_POWER_MANAGEMENT, "显示「电源」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_POWER_MANAGEMENT, "显示「电源」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_ACHIEVEMENTS, "显示「成就」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_ACHIEVEMENTS, "显示「成就」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_NETWORK, "显示「网络」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_NETWORK, "显示「网络」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_PLAYLISTS, "显示「游戏列表」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_PLAYLISTS, "显示「游戏列表」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_USER, "显示「用户」" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_USER, "显示「用户」设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_DIRECTORY, "显示“目录”" ) MSG_HASH( MENU_ENUM_SUBLABEL_SETTINGS_SHOW_DIRECTORY, "显示「文件夹」设置。" ) /* Settings > User Interface > Appearance */ MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, "菜单缩放倍数" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SCALE_FACTOR, "缩放菜单 UI 元素的尺寸。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_WALLPAPER, "背景图像" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_WALLPAPER, "选择图像作为菜单背景。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_WALLPAPER_OPACITY, "背景不透明度" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_WALLPAPER_OPACITY, "修改背景图像的不透明度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "帧缓冲区不透明度" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_FRAMEBUFFER_OPACITY, "修改帧缓冲区的不透明度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_USE_PREFERRED_SYSTEM_COLOR_THEME, "使用首选系统颜色主题" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_USE_PREFERRED_SYSTEM_COLOR_THEME, "使用操作系统的颜色主题,覆盖主题设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_THUMBNAILS, "缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_THUMBNAILS, "要显示的缩略图类型。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_THUMBNAIL_UPSCALE_THRESHOLD, "缩略图放大阈值" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_THUMBNAIL_UPSCALE_THRESHOLD, "自动放大小于指定宽度/高度的缩略图。提高图像质量。有小幅的性能影响。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_TICKER_TYPE, "滚动字幕动画" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_TICKER_TYPE, "选择显示过长菜单文字的水平滚动方法。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_TICKER_SPEED, "滚动字幕速度" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_TICKER_SPEED, "滚动过长菜单文字的动画速度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_TICKER_SMOOTH, "平滑滚动字幕" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_TICKER_SMOOTH, "显示过长菜单文本时,使用平滑滚动动画。有很小的性能影响。" ) /* Settings > AI Service */ MSG_HASH( MENU_ENUM_LABEL_VALUE_AI_SERVICE_MODE, "AI 服务输出" ) MSG_HASH( /* FIXME What does the Narrator mode do? */ MENU_ENUM_SUBLABEL_AI_SERVICE_MODE, "将翻译显示为文本叠加图层(图像模式),或作为文本到语音播放 (语音模式)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AI_SERVICE_URL, "AI 服务 URL" ) MSG_HASH( MENU_ENUM_SUBLABEL_AI_SERVICE_URL, "指向翻译服务的 http:// 链接。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AI_SERVICE_ENABLE, "AI 服务已启用" ) MSG_HASH( MENU_ENUM_SUBLABEL_AI_SERVICE_ENABLE, "按下 AI 服务快捷键后启用 AI 服务。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AI_SERVICE_PAUSE, "翻译时暂停" ) MSG_HASH( MENU_ENUM_SUBLABEL_AI_SERVICE_PAUSE, "在屏幕翻译时暂停核心。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AI_SERVICE_SOURCE_LANG, "原始语言" ) MSG_HASH( MENU_ENUM_SUBLABEL_AI_SERVICE_SOURCE_LANG, "翻译服务的原始语言。如果选「默认」,则会自动检测语言。设置为特定的语言将提高翻译准确度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AI_SERVICE_TARGET_LANG, "目标语言" ) MSG_HASH( MENU_ENUM_SUBLABEL_AI_SERVICE_TARGET_LANG, "服务将翻译成的语言。「默认」是英语。" ) /* Settings > Accessibility */ MSG_HASH( MENU_ENUM_LABEL_VALUE_ACCESSIBILITY_ENABLED, "启用无障碍功能" ) MSG_HASH( MENU_ENUM_SUBLABEL_ACCESSIBILITY_ENABLED, "启用文本到语音以辅助菜单导航。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACCESSIBILITY_NARRATOR_SPEECH_SPEED, "文字转语音速度" ) MSG_HASH( MENU_ENUM_SUBLABEL_ACCESSIBILITY_NARRATOR_SPEECH_SPEED, "文字转语音的语速。" ) /* Settings > Power Management */ /* Settings > Achievements */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_ENABLE, "成就" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_ENABLE, "在经典游戏中赢得成就。更多信息,请访问 https://retroachievements.org" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_HARDCORE_MODE_ENABLE, "硬核模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_HARDCORE_MODE_ENABLE, "为所有游戏打开或关闭存档、金手指、回退、快进、暂停和慢动作。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_LEADERBOARDS_ENABLE, "排行榜" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_LEADERBOARDS_ENABLE, "游戏特定排行榜。禁用「硬核模式」时无效。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_RICHPRESENCE_ENABLE, "展示状态" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_RICHPRESENCE_ENABLE, "发送详细游戏状态到 RetroAchievements 网站。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_BADGES_ENABLE, "成就徽章" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_BADGES_ENABLE, "在成就列表中显示徽章。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_TEST_UNOFFICIAL, "测试非官方成就" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_TEST_UNOFFICIAL, "为测试目的而打开或关闭非官方成就\n和测试版特性。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_UNLOCK_SOUND_ENABLE, "解锁声音" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_UNLOCK_SOUND_ENABLE, "解锁成就时播放声音。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_VERBOSE_ENABLE, "详细模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_VERBOSE_ENABLE, "在通知中显示更多信息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_AUTO_SCREENSHOT, "自动截屏" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_AUTO_SCREENSHOT, "达成成就后自动截屏。" ) MSG_HASH( /* suggestion for translators: translate as 'Play Again Mode' */ MENU_ENUM_LABEL_VALUE_CHEEVOS_START_ACTIVE, "返场模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_START_ACTIVE, "在所有成就都激活 (包括之前已经解锁的成就) 的状态下开始游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_CHALLENGE_INDICATORS, "成就指标" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_CHALLENGE_INDICATORS, "允许成就在获得时显示在屏幕上。" ) /* Settings > Network */ MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_PUBLIC_ANNOUNCE, "公开发布联机" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_PUBLIC_ANNOUNCE, "是否使用公共的在线游戏网络。\n如果未设置,客户端必须手动连接而不使用\n公共的在线游戏网络。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_USE_MITM_SERVER, "启用代理服务器" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_USE_MITM_SERVER, "通过代理服务器进行网络连接。如果主机位于\n防火墙之后或具有NAT/UPnP问题时,建议开启。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER, "代理服务器位置" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_MITM_SERVER, "选择一个代理服务器。服务器位置较近的\n一般网络延迟更低。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_IP_ADDRESS, "服务器地址" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_IP_ADDRESS, "要连接到在线游戏网络服务器的地址。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_TCP_UDP_PORT, "在线游戏 TCP/UDP 端口" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_TCP_UDP_PORT, "服务器 IP 地址端口。可以是 TCP 或 UDP 端口。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_MAX_CONNECTIONS, "最大同时连接数" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_PASSWORD, "服务器密码" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_PASSWORD, "客户端连接到主机的密码。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SPECTATE_PASSWORD, "服务器观战的密码" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_SPECTATE_PASSWORD, "观战客户端连接到主机的密码。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_START_AS_SPECTATOR, "在线游戏旁观者模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_START_AS_SPECTATOR, "以观战模式启动联机游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_ALLOW_SLAVES, "允许从属模式客户端" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_ALLOW_SLAVES, "允许从属模式连接。从属模式客户端各自都只需极小的性能,但是会受到网络延迟的严重影响。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_REQUIRE_SLAVES, "只允许从属模式客户端" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_REQUIRE_SLAVES, "不允许非从属模式连接。一般不推荐,除非您的网络极快但硬件性能极差。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_STATELESS_MODE, "联机无状态模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_STATELESS_MODE, "在没有即时存档的模式下开始联机游戏。需要非常快的网络,但是不进行回溯处理,因此不会有联机卡顿。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_CHECK_FRAMES, "在线游戏检查帧数" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_CHECK_FRAMES, "确认主机和客户端同步的周期(以帧为单位)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_INPUT_LATENCY_FRAMES_MIN, "输入延迟帧" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_INPUT_LATENCY_FRAMES_MIN, "设置按键延迟以掩盖网络延迟。\n用按键延迟换取在线游戏时降低 CPU 负载\n并减少顿卡。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_INPUT_LATENCY_FRAMES_RANGE, "输入延迟帧范围" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_INPUT_LATENCY_FRAMES_RANGE, "设置按键延迟范围以掩盖网络的延迟。\n用一定的按键延迟换取在线游戏时\n降低 CPU 负载并减少顿卡。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_NAT_TRAVERSAL, "联机 NAT 遍历" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_NAT_TRAVERSAL, "当联机时,侦听来自公共互联网的连接,\n使用 UPnP 或类似的技术来规避局域网问题。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SHARE_DIGITAL, "数字输入分配" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_REQUEST_DEVICE_I, "请求设备 %u" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_REQUEST_DEVICE_I, "请求播放给予的输入设备" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETWORK_CMD_ENABLE, "网络命令" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETWORK_CMD_PORT, "网络命令端口" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETWORK_REMOTE_ENABLE, "网络手柄" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETWORK_REMOTE_PORT, "网络手柄基础端口" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETWORK_USER_REMOTE_ENABLE, "用户 %d 网络手柄" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_STDIN_CMD_ENABLE, "标准输入流命令" ) MSG_HASH( MENU_ENUM_SUBLABEL_STDIN_CMD_ENABLE, "启用标准命令行输入。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETWORK_ON_DEMAND_THUMBNAILS, "按需下载缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETWORK_ON_DEMAND_THUMBNAILS, "在浏览列表时自动下载缺失的缩略图图像。有严重的性能影响。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATER_SETTINGS, "更新程序" ) /* Settings > Network > Updater */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_UPDATER_BUILDBOT_URL, "构建机器人核心 URL" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_UPDATER_BUILDBOT_URL, "Libretro 构建机器人核心更新文件夹的 URL。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BUILDBOT_ASSETS_URL, "构建机器人素材 URL" ) MSG_HASH( MENU_ENUM_SUBLABEL_BUILDBOT_ASSETS_URL, "Libretro 构建机器人素材更新文件夹的 URL。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE, "自动解压下载的压缩包" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE, "下载后自动解压。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_UPDATER_SHOW_EXPERIMENTAL_CORES, "显示实验性核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_UPDATER_SHOW_EXPERIMENTAL_CORES, "在核心下载列表中包含实验性核心。它们通常只用于开发或测试目的,不推荐日常使用。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_UPDATER_AUTO_BACKUP, "更新时备份核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_UPDATER_AUTO_BACKUP, "执行在线更新时,自动创建已安装核心的备份。启用后如果更新后出现问题,可以轻松回滚到之前能用的版本。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_UPDATER_AUTO_BACKUP_HISTORY_SIZE, "核心备份历史大小" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_UPDATER_AUTO_BACKUP_HISTORY_SIZE, "指定每个安装的核心最多保留多少个自动备份。当达到这个限制后,创建新的备份会删除最老的备份。手动备份不受此设置影响。" ) /* Settings > Playlists */ MSG_HASH( MENU_ENUM_LABEL_VALUE_HISTORY_LIST_ENABLE, "历史记录" ) MSG_HASH( MENU_ENUM_SUBLABEL_HISTORY_LIST_ENABLE, "为游戏、图片、音乐和视频启用/禁用历史记录。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_HISTORY_SIZE, "历史大小" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_HISTORY_SIZE, "游戏、图片、音乐和视频历史记录的数量限制。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_FAVORITES_SIZE, "收藏夹大小" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_FAVORITES_SIZE, "限制「收藏」列表中的条目数量。一旦达到限制,将无法添加新条目,除非删除旧条目。 设置值为 -1 允许“无限多”条目。\n警告:减少此数值将删除现有条目!" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, "允许重命名条目" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, "允许重命名播放列表。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_REMOVE, "允许移除条目" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_REMOVE, "允许移除播放列表。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_SORT_ALPHABETICAL, "按字母排序列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_SORT_ALPHABETICAL, "字母排序列表中的游戏,除了「历史」,「图像」,「音乐」和「视频」。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_USE_OLD_FORMAT, "使用旧格式保存列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_USE_OLD_FORMAT, "使用淘汰的纯文本格式保存列表。禁用后,将使用 JSON 格式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_COMPRESSION, "压缩列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_COMPRESSION, "写入磁盘时压缩播放列表。减小文件大小和加载时间,但是会 (轻微) 增加 CPU 开小。新旧列表文件格式都可以压缩。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_SHOW_INLINE_CORE_NAME, "在列表中显示绑定的核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_SHOW_INLINE_CORE_NAME, "指定何时将列表条目绑定当前关联的核心(如果有的话)。\n当显示列表子标签时,此设置会被忽略。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_SHOW_SUBLABELS, "显示列表副标签" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_SHOW_SUBLABELS, "显示每个游戏的附加信息,例如当前绑定的核心和游戏时长 (如果有)。有一些性能影响。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_SUBLABEL_CORE, "核心:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_SUBLABEL_RUNTIME, "运行时间:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_SUBLABEL_LAST_PLAYED, "上次游戏:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_SHOW_ENTRY_IDX, "显示游戏列表条目索引" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_SHOW_ENTRY_IDX, "查看游戏列表时显示条目编号。 显示格式取决于当前选择的菜单驱动。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_SUBLABEL_RUNTIME_TYPE, "列表副标签运行时" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_SUBLABEL_RUNTIME_TYPE, "选择游戏列表子标签显示的运行时间记录类型。\n对应的运行时间记录必须通过菜单的「保存」选项启用。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_SUBLABEL_LAST_PLAYED_STYLE, "「上次游戏」时间和日期格式" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_SUBLABEL_LAST_PLAYED_STYLE, "设置「最后游戏」时间戳的日期和时间显示格式。「AM/PM」选项在某些平台有轻微性能影响。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_FUZZY_ARCHIVE_MATCH, "模糊压缩包匹配" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_FUZZY_ARCHIVE_MATCH, "在游戏列表中搜索与压缩文件关联的条目时,只匹配压缩包文件名而不是「文件名」+「游戏名」。启用此选项可以避免加载压缩文件时产生重复的历史记录。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SCAN_WITHOUT_CORE_MATCH, "扫描时不匹配核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_SCAN_WITHOUT_CORE_MATCH, "允许扫描还没有安装游戏核心的游戏文件并将其添加到游戏列表中。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LIST, "管理列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_MANAGER_LIST, "执行列表维护任务。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_PORTABLE_PATHS, "便携列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_PORTABLE_PATHS, "如果启用,同时也选择了「文件浏览器」文件夹路径,当前的参数「文件浏览器」则保存在游戏列表中。 当游戏列表加载到另一个启用相同选项的系统时, 参数「文件浏览器」的值与游戏列表值比较;如果不同,将自动修复游戏列表条目的路径。" ) /* Settings > Playlists > Playlist Management */ MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_DEFAULT_CORE, "默认核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_MANAGER_DEFAULT_CORE, "指定游戏列表条目没有关联核心时使用的默认核心。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_RESET_CORES, "重置核心关联" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_MANAGER_RESET_CORES, "移除游戏列表中所有条目的现有核心关联。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LABEL_DISPLAY_MODE, "标签显示模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_MANAGER_LABEL_DISPLAY_MODE, "更改列表中游戏标签的显示方式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_SORT_MODE, "排序方法" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_MANAGER_SORT_MODE, "更改游戏列表的排序方式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_CLEAN_PLAYLIST, "清理列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_MANAGER_CLEAN_PLAYLIST, "验证核心关联并删除无效和重复的条目。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_REFRESH_PLAYLIST, "刷新播放列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_MANAGER_REFRESH_PLAYLIST, "通过重复最后用于创建或编辑播放列表的“手动扫描”操作来添加新内容并删除无效条目。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DELETE_PLAYLIST, "删除列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_DELETE_PLAYLIST, "将列表从文件系统中删除。" ) /* Settings > User */ MSG_HASH( MENU_ENUM_LABEL_VALUE_PRIVACY_SETTINGS, "隐私" ) MSG_HASH( MENU_ENUM_SUBLABEL_PRIVACY_SETTINGS, "更改隐私设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACCOUNTS_LIST, "账户" ) MSG_HASH( MENU_ENUM_SUBLABEL_ACCOUNTS_LIST, "管理已配置的账户。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_NICKNAME, "用户名" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_NICKNAME, "在这里输入您的昵称,用于联网和一些其他服务。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_USER_LANGUAGE, "语言" ) MSG_HASH( MENU_ENUM_SUBLABEL_USER_LANGUAGE, "设置界面的语言。" ) /* Settings > User > Privacy */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CAMERA_ALLOW, "允许使用摄像头" ) MSG_HASH( MENU_ENUM_SUBLABEL_CAMERA_ALLOW, "允许核心访问摄像头。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISCORD_ALLOW, "开启 Discord" ) MSG_HASH( MENU_ENUM_SUBLABEL_DISCORD_ALLOW, "允许 Discord 应用显示您当前游玩的游戏信息。\n此选项仅适用于官方桌面客户端。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOCATION_ALLOW, "允许定位" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOCATION_ALLOW, "允许核心访问您的位置。" ) /* Settings > User > Accounts */ MSG_HASH( MENU_ENUM_SUBLABEL_ACCOUNTS_RETRO_ACHIEVEMENTS, "在经典游戏中赢得成就。更多信息,请访问 https://retroachievements.org" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACCOUNTS_FACEBOOK, "Facebook 游戏" ) /* Settings > User > Accounts > RetroAchievements */ MSG_HASH( MENU_ENUM_LABEL_VALUE_ACCOUNTS_CHEEVOS_USERNAME, "用户名" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_USERNAME, "输入 RetroAchievements 用户名。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACCOUNTS_CHEEVOS_PASSWORD, "密码" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEEVOS_PASSWORD, "输入您的 RetroAchievements 账号密码。最大长度:255 字符。" ) /* Settings > User > Accounts > YouTube */ MSG_HASH( MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube 直播密钥" ) /* Settings > User > Accounts > Twitch */ MSG_HASH( MENU_ENUM_LABEL_VALUE_TWITCH_STREAM_KEY, "Twitch 直播密钥" ) /* Settings > User > Accounts > Facebook Gaming */ MSG_HASH( MENU_ENUM_LABEL_VALUE_FACEBOOK_STREAM_KEY, "Facebook 游戏直播密钥" ) /* Settings > Directory */ MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_DIRECTORY, "系统/BIOS" ) MSG_HASH( MENU_ENUM_SUBLABEL_SYSTEM_DIRECTORY, "保存 BIOS,启动 ROM 和其他系统文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIRECTORY, "下载" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_ASSETS_DIRECTORY, "保存下载文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ASSETS_DIRECTORY, "素材" ) MSG_HASH( MENU_ENUM_SUBLABEL_ASSETS_DIRECTORY, "保存菜单素材的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DYNAMIC_WALLPAPERS_DIRECTORY, "动态背景" ) MSG_HASH( MENU_ENUM_SUBLABEL_DYNAMIC_WALLPAPERS_DIRECTORY, "保存菜单背景图像的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_THUMBNAILS_DIRECTORY, "缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_THUMBNAILS_DIRECTORY, "保存包装封面,截图,开始屏幕缩略图的文件夹。" ) MSG_HASH( /* FIXME Not RGUI specific */ MENU_ENUM_LABEL_VALUE_RGUI_BROWSER_DIRECTORY, "文件浏览器" ) MSG_HASH( /* FIXME Not RGUI specific */ MENU_ENUM_SUBLABEL_RGUI_BROWSER_DIRECTORY, "设置文件管理器的起始文件夹。" ) MSG_HASH( /* FIXME Not RGUI specific */ MENU_ENUM_LABEL_VALUE_RGUI_CONFIG_DIRECTORY, "配置" ) MSG_HASH( /* FIXME Not RGUI specific */ MENU_ENUM_SUBLABEL_RGUI_CONFIG_DIRECTORY, "设置菜单配置文件的启起始文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LIBRETRO_DIR_PATH, "核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_LIBRETRO_DIR_PATH, "保存 Libretro 核心的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LIBRETRO_INFO_PATH, "核心信息" ) MSG_HASH( MENU_ENUM_SUBLABEL_LIBRETRO_INFO_PATH, "保存核心信息文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_DATABASE_DIRECTORY, "数据库" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_DATABASE_DIRECTORY, "保存游戏内容数据库文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CURSOR_DIRECTORY, "指针" ) MSG_HASH( MENU_ENUM_SUBLABEL_CURSOR_DIRECTORY, "保存指针文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_DATABASE_PATH, "金手指文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_DATABASE_PATH, "保存金手指文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FILTER_DIR, "视频滤镜" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_FILTER_DIR, "保存 CPU 视频滤镜的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_FILTER_DIR, "音频过滤器" ) MSG_HASH( MENU_ENUM_SUBLABEL_AUDIO_FILTER_DIR, "保存音频 DSP 过滤器的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_DIR, "视频着色器" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_DIR, "保存 GPU 视频着色器的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RECORDING_OUTPUT_DIRECTORY, "录像" ) MSG_HASH( MENU_ENUM_SUBLABEL_RECORDING_OUTPUT_DIRECTORY, "保存游戏录像的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RECORDING_CONFIG_DIRECTORY, "录制配置" ) MSG_HASH( MENU_ENUM_SUBLABEL_RECORDING_CONFIG_DIRECTORY, "保存录像配置的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_DIRECTORY, "遮罩" ) MSG_HASH( MENU_ENUM_SUBLABEL_OVERLAY_DIRECTORY, "保存遮罩的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_LAYOUT_DIRECTORY, "视频布局" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_LAYOUT_DIRECTORY, "保存视频布局的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SCREENSHOT_DIRECTORY, "截图" ) MSG_HASH( MENU_ENUM_SUBLABEL_SCREENSHOT_DIRECTORY, "保存截屏的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_JOYPAD_AUTOCONFIG_DIR, "控制器配置文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_JOYPAD_AUTOCONFIG_DIR, "保存手柄自动配置文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_REMAPPING_DIRECTORY, "输入重映射" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_REMAPPING_DIRECTORY, "保存输入重映射的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_DIRECTORY, "列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_PLAYLIST_DIRECTORY, "保存游戏列表的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_FAVORITES_DIRECTORY, "收藏" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_FAVORITES_DIRECTORY, "保存喜爱的游戏列表至此文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_HISTORY_DIRECTORY, "历史播放列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_HISTORY_DIRECTORY, "保存历史游戏列表文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_IMAGE_HISTORY_DIRECTORY, "「图像」播放列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_IMAGE_HISTORY_DIRECTORY, "保存历史图像列表文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_MUSIC_HISTORY_DIRECTORY, "音乐播放列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_MUSIC_HISTORY_DIRECTORY, "保存音乐播放列表文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_VIDEO_HISTORY_DIRECTORY, "视频播放列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_VIDEO_HISTORY_DIRECTORY, "保存视频播放列表文件的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RUNTIME_LOG_DIRECTORY, "运行时日志" ) MSG_HASH( MENU_ENUM_SUBLABEL_RUNTIME_LOG_DIRECTORY, "保存运行时日志的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVEFILE_DIRECTORY, "存档文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVEFILE_DIRECTORY, "保存游戏存档的文件夹。如果不设置,将尝试保存到游戏所在文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY, "状态存储" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVESTATE_DIRECTORY, "保存状态存储的文件夹。如果不设置,将尝试保存到游戏所在文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CACHE_DIRECTORY, "缓存" ) MSG_HASH( MENU_ENUM_SUBLABEL_CACHE_DIRECTORY, "压缩包中的游戏 ROM 将会暂时解压到此文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOG_DIR, "系统事件日志" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOG_DIR, "保存系统事件日志的文件夹。" ) /* Music */ /* Music > Quick Menu */ MSG_HASH( MENU_ENUM_LABEL_VALUE_ADD_TO_MIXER, "添加到混音器" ) MSG_HASH( MENU_ENUM_SUBLABEL_ADD_TO_MIXER, "添加音轨到可用的音频流位。\n如果没有可用的位,将会被忽略。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ADD_TO_MIXER_AND_PLAY, "添加到混音器并播放" ) MSG_HASH( MENU_ENUM_SUBLABEL_ADD_TO_MIXER_AND_PLAY, "添加音轨到可用的音频流位并播放。\n如果没有可用的位,将会被忽略。" ) /* Netplay */ MSG_HASH( MENU_ENUM_LABEL_VALUE_NETWORK_HOSTING_SETTINGS, "主机" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_CLIENT, "连接到联机主机" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_ENABLE_CLIENT, "输入联机服务器地址并以客户端模式连接。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_DISCONNECT, "断开连接" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_DISCONNECT, "断开当前联机游戏连接。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_REFRESH_ROOMS, "刷新联机主机列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_REFRESH_ROOMS, "扫描联机主机。" ) /* Netplay > Host */ MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_HOST, "作为游戏主机" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_ENABLE_HOST, "以主机 (服务器) 模式开始联机。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_DISABLE_HOST, "停止联机主机" ) /* Import Content */ MSG_HASH( MENU_ENUM_LABEL_VALUE_SCAN_DIRECTORY, "扫描文件夹" ) MSG_HASH( MENU_ENUM_SUBLABEL_SCAN_DIRECTORY, "扫描文件夹内容,匹配数据库。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SCAN_THIS_DIRECTORY, "<扫描此文件夹>" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SCAN_FILE, "扫描文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_SCAN_FILE, "扫描一个兼容的文件并将其添加到列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_LIST, "手动扫描" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_LIST, "基于文件名的可配置扫描。不需要匹配数据库。" ) /* Import Content > Scan File */ MSG_HASH( MENU_ENUM_LABEL_VALUE_ADD_TO_MIXER_AND_COLLECTION, "添加到混音器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ADD_TO_MIXER_AND_COLLECTION_AND_PLAY, "添加到混音器并播放" ) /* Import Content > Manual Scan */ MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_DIR, "游戏文件夹" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_DIR, "选择要扫描游戏的文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_SYSTEM_NAME, "系统名称" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_SYSTEM_NAME, "指定要扫描的游戏关联的「系统名称」。用于命名生成的游戏列表并识别游戏的缩略图。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_SYSTEM_NAME_CUSTOM, "自定义系统名称" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_SYSTEM_NAME_CUSTOM, "手动指定要扫描的游戏的「系统名称」。仅在「系统名称」设为 <自定义> 时有效。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_CORE_NAME, "默认核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_CORE_NAME, "选择加载游戏时使用的默认核心。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_FILE_EXTS, "文件扩展名" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_FILE_EXTS, "要扫描的文件类型列表,用空格分隔。如果为空,则包含所有文件类型;如果指定了核心,则包含所有核心支持的文件类型。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_SEARCH_RECURSIVELY, "递归扫描" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_SEARCH_RECURSIVELY, "启用后,扫描指定的「游戏文件夹」的所有子文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_SEARCH_ARCHIVES, "扫描压缩包内部" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_SEARCH_ARCHIVES, "启用后,将扫描归档文件 (.zip, .7z 等) 寻找支持的内容。可能会对扫描性能产生较大影响。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_DAT_FILE, "街机 DAT 文件" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_DAT_FILE, "选择 Logiqx 或者 MAME 列表 XML DAT 文件来自动命名扫描到的街机游戏 (MAME, FinalBurn Neo 等)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_DAT_FILE_FILTER, "街机 DAT 过滤器" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_DAT_FILE_FILTER, "当使用街机 DAT 文件时,只添加匹配 DAT 文件的游戏到列表。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_OVERWRITE, "覆盖现有列表" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_OVERWRITE, "如果启用,在扫描前所有现有的游戏列表都会被删除。如果禁用,扫描时现有播放列表将会被保留,只添加缺失的新游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_VALIDATE_ENTRIES, "验证现有条目" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_VALIDATE_ENTRIES, "启用后,在扫描新内容之前,将验证任何现有播放列表中的条目。 提及缺少的内容和/或无效扩展名文件的条目将被删除。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_START, "开始扫描" ) MSG_HASH( MENU_ENUM_SUBLABEL_MANUAL_CONTENT_SCAN_START, "扫描选中的游戏。" ) /* Explore tab */ MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_INITIALISING_LIST, "正在初始化列表..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_CATEGORY_RELEASE_YEAR, "发行年份" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_CATEGORY_PLAYER_COUNT, "玩家数量" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_CATEGORY_REGION, "地区" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_CATEGORY_TAG, "标签" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_SEARCH_NAME, "搜索名称..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_SHOW_ALL, "显示全部" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_ADDITIONAL_FILTER, "附加过滤器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_ALL, "全部" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_ADD_ADDITIONAL_FILTER, "添加其他过滤器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_ITEMS_COUNT, "%u 项" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_BY_DEVELOPER, "按开发商" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PUBLISHER, "按发行商" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_BY_RELEASE_YEAR, "按发行年" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PLAYER_COUNT, "按玩家数" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_BY_GENRE, "按分类" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ORIGIN, "按原产地" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_BY_REGION, "按地区" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_BY_FRANCHISE, "按专营商" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_BY_TAG, "按标签" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_EXPLORE_BY_SYSTEM_NAME, "按系统" ) /* Playlist > Playlist Item */ MSG_HASH( MENU_ENUM_LABEL_VALUE_RUN, "运行" ) MSG_HASH( MENU_ENUM_SUBLABEL_RUN, "启动游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "重命名" ) MSG_HASH( MENU_ENUM_SUBLABEL_RENAME_ENTRY, "重命名此条目。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DELETE_ENTRY, "移除" ) MSG_HASH( MENU_ENUM_SUBLABEL_DELETE_ENTRY, "删除此条目。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ADD_TO_FAVORITES_PLAYLIST, "收藏" ) MSG_HASH( MENU_ENUM_SUBLABEL_ADD_TO_FAVORITES_PLAYLIST, "把游戏添加到「收藏」。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SET_CORE_ASSOCIATION, "设置核心关联" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RESET_CORE_ASSOCIATION, "重置核心关联" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INFORMATION, "信息" ) MSG_HASH( MENU_ENUM_SUBLABEL_INFORMATION, "查看该内容的更多相关信息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DOWNLOAD_PL_ENTRY_THUMBNAILS, "下载缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_DOWNLOAD_PL_ENTRY_THUMBNAILS, "下载当前游戏的截屏/封面/题图图片。如果已下载则更新。" ) /* Playlist Item > Set Core Association */ MSG_HASH( MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "当前核心" ) /* Playlist Item > Information */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_INFO_LABEL, "名称" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_INFO_PATH, "文件路径" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_INFO_ENTRY_IDX, "条目:%lu/%lu" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_INFO_CORE_NAME, "核心" ) MSG_HASH( /* FIXME Unused? */ MENU_ENUM_LABEL_VALUE_CONTENT_INFO_RUNTIME, "游戏时间" ) MSG_HASH( /* FIXME Unused? */ MENU_ENUM_LABEL_VALUE_CONTENT_INFO_LAST_PLAYED, "上次游戏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_INFO_DATABASE, "数据库" ) /* Quick Menu */ MSG_HASH( MENU_ENUM_LABEL_VALUE_RESUME_CONTENT, "继续" ) MSG_HASH( MENU_ENUM_SUBLABEL_RESUME_CONTENT, "退出菜单并继续游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RESTART_CONTENT, "重启" ) MSG_HASH( MENU_ENUM_SUBLABEL_RESTART_CONTENT, "重新开始游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CLOSE_CONTENT, "关闭游戏" ) MSG_HASH( MENU_ENUM_SUBLABEL_CLOSE_CONTENT, "关闭当前游戏。未保存的进度可能会丢失。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_TAKE_SCREENSHOT, "截屏" ) MSG_HASH( MENU_ENUM_SUBLABEL_TAKE_SCREENSHOT, "截取当前屏幕。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_STATE_SLOT, "状态卡槽" ) MSG_HASH( MENU_ENUM_SUBLABEL_STATE_SLOT, "更改当前选择的状态卡槽。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVE_STATE, "保存状态" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVE_STATE, "在当前选定的卡槽保存状态。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOAD_STATE, "加载状态" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOAD_STATE, "从当前选定的卡槽加载状态。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UNDO_LOAD_STATE, "撤销加载状态" ) MSG_HASH( MENU_ENUM_SUBLABEL_UNDO_LOAD_STATE, "状态加载后,游戏会回到之前的状态。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UNDO_SAVE_STATE, "撤销保存状态" ) MSG_HASH( MENU_ENUM_SUBLABEL_UNDO_SAVE_STATE, "状态覆盖后,可以撤销并回到之前保存的状态." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ADD_TO_FAVORITES, "收藏" ) MSG_HASH( MENU_ENUM_SUBLABEL_ADD_TO_FAVORITES, "把游戏添加到「收藏」。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_START_RECORDING, "开始录制" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_START_RECORDING, "开始视频录制。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_STOP_RECORDING, "停止录制" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_STOP_RECORDING, "停止视频录制。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_START_STREAMING, "开始直播" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_START_STREAMING, "开始对选定目标直播" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_STOP_STREAMING, "停止直播" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_STOP_STREAMING, "结束直播。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_OPTIONS, "选项" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_OPTIONS, "更改当前游戏的核心选项设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_INPUT_REMAPPING_OPTIONS, "控制" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_INPUT_REMAPPING_OPTIONS, "更改当前游戏的键位设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_CHEAT_OPTIONS, "金手指" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_CHEAT_OPTIONS, "设置金手指。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISK_OPTIONS, "光盘控制" ) MSG_HASH( MENU_ENUM_SUBLABEL_DISK_OPTIONS, "管理磁盘映像。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHADER_OPTIONS, "着色器" ) MSG_HASH( MENU_ENUM_SUBLABEL_SHADER_OPTIONS, "设置图像着色器。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QUICK_MENU_OVERRIDE_OPTIONS, "独立配置" ) MSG_HASH( MENU_ENUM_SUBLABEL_QUICK_MENU_OVERRIDE_OPTIONS, "关于独立配置的选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_LIST, "成就" ) MSG_HASH( MENU_ENUM_SUBLABEL_ACHIEVEMENT_LIST, "查看成就和相关设置。" ) /* Quick Menu > Options */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_OPTION_OVERRIDE_LIST, "管理核心选项" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_OPTION_OVERRIDE_LIST, "保存或删除当前内容的覆盖选项。" ) /* Quick Menu > Options > Manage Core Options */ MSG_HASH( MENU_ENUM_LABEL_VALUE_GAME_SPECIFIC_CORE_OPTIONS_CREATE, "保存游戏选项" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_GAME_SPECIFIC_CORE_OPTIONS_REMOVE, "删除游戏选项" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FOLDER_SPECIFIC_CORE_OPTIONS_CREATE, "保存内容目录选项" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FOLDER_SPECIFIC_CORE_OPTIONS_REMOVE, "删除内容目录选项" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_OPTION_OVERRIDE_INFO, "激活选项文件:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_OPTIONS_RESET, "重置设置" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_OPTIONS_RESET, "将所有核心设置重置为默认值。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_OPTIONS_FLUSH, "更新选项到磁盘" ) MSG_HASH( MENU_ENUM_SUBLABEL_CORE_OPTIONS_FLUSH, "强制将当前设置写入活动选项文件。 如果核心错误导致前端不适当地关闭,则保留附属选项。" ) /* - Legacy (unused) */ MSG_HASH( MENU_ENUM_LABEL_VALUE_GAME_SPECIFIC_OPTIONS_CREATE, "创建游戏选项文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_GAME_SPECIFIC_OPTIONS_IN_USE, "保存游戏选项文件" ) /* Quick Menu > Controls */ MSG_HASH( MENU_ENUM_LABEL_VALUE_REMAP_FILE_LOAD, "加载自定义键位文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REMAP_FILE_SAVE_CORE, "保存核心自定义键位文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REMAP_FILE_REMOVE_CORE, "删除核心重新映射文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REMAP_FILE_SAVE_CONTENT_DIR, "保存游戏文件夹重映射文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REMAP_FILE_REMOVE_CONTENT_DIR, "删除游戏文件夹重映射文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REMAP_FILE_SAVE_GAME, "保存游戏自定义键位文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REMAP_FILE_REMOVE_GAME, "删除游戏重新映射文件" ) /* Quick Menu > Controls > Load Remap File */ MSG_HASH( MENU_ENUM_LABEL_VALUE_REMAP_FILE, "自定义键位文件" ) /* Quick Menu > Cheats */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_START_OR_CONT, "开始或继续金手指搜索" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_FILE_LOAD, "加载金手指文件 (覆盖)" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_FILE_LOAD, "加载一个金手指文件并替换当前作弊代码。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_FILE_LOAD_APPEND, "加载金手指文件 (追加)" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_FILE_LOAD_APPEND, "加载一个金手指文件并附加到当前作弊代码" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_RELOAD_CHEATS, "重装加载特定游戏金手指文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_FILE_SAVE_AS, "金手指文件另存为" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_FILE_SAVE_AS, "将当前的金手指另存为金手指文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_ADD_NEW_TOP, "在顶部添加金手指" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_ADD_NEW_BOTTOM, "在底部添加金手指" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_DELETE_ALL, "删除所有金手指" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_APPLY_AFTER_LOAD, "游戏加载时自动应用金手指" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_APPLY_AFTER_LOAD, "游戏加载时自动应用金手指。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_APPLY_AFTER_TOGGLE, "切换后立即应用" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_APPLY_AFTER_TOGGLE, "切换后立即应用金手指。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_APPLY_CHANGES, "应用更改" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_APPLY_CHANGES, "金手指更改将立即生效。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT, "金手指" ) /* Quick Menu > Cheats > Start or Continue Cheat Search */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_START_OR_RESTART, "开始或重新金手指搜索" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_START_OR_RESTART, "按左/右键更改位大小。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_BIG_ENDIAN, "大字节" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_BIG_ENDIAN, "大端:258 = 0x0102\n小端:258 = 0x0201" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_EXACT, "搜索内存值" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_SEARCH_EXACT, "按左/右键更改数值。" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_SEARCH_EXACT_VAL, "等于 %u (%X)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_LT, "搜索内存值" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_SEARCH_LT_VAL, "小于之前" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_LTE, "搜索内存值" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_SEARCH_LTE_VAL, "小于或等于之前" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_GT, "搜索内存值" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_SEARCH_GT_VAL, "大于之前" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_GTE, "搜索内存值" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_SEARCH_GTE_VAL, "大于或等于之前" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_EQ, "搜索内存值" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_SEARCH_EQ_VAL, "等于之前" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_NEQ, "搜索内存值" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_SEARCH_NEQ_VAL, "不等于之前" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_EQPLUS, "搜索内存值" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_SEARCH_EQPLUS, "按左/右键更改数值。" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_SEARCH_EQPLUS_VAL, "等于之前 + %u (%X)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_EQMINUS, "搜索内存值" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_SEARCH_EQMINUS, "按左/右键更改数值。" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_SEARCH_EQMINUS_VAL, "等于之前 - %u (%X)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_ADD_MATCHES, "将 %u 个匹配添加到列表中" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_DELETE_MATCH, "删除匹配" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_COPY_MATCH, "创建匹配代码" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_MATCH, "匹配地址: %08X 掩码: %02X" ) /* Quick Menu > Cheats > Load Cheat File (Replace) */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_FILE, "金手指文件 (替换)" ) /* Quick Menu > Cheats > Load Cheat File (Append) */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_FILE_APPEND, "金手指文件 (追加)" ) /* Quick Menu > Cheats > Cheat Details */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_DETAILS_SETTINGS, "金手指详情" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_IDX, "索引" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_IDX, "金手指在列表中的位置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_STATE, "已启用" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_DESC, "描述" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_HANDLER, "处理程序" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_MEMORY_SEARCH_SIZE, "内存搜索大小" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_TYPE, "类型" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_VALUE, "值" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_ADDRESS, "内存地址" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_BROWSE_MEMORY, "浏览地址:%08X" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_ADDRESS_BIT_POSITION, "内存地址掩码" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_ADDRESS_BIT_POSITION, "内存搜索大小小于 8 位时的地址位掩码。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_REPEAT_COUNT, "迭代次数" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_REPEAT_COUNT, "金手指应用的此书。使用另外两个迭代选项,以影响大片内存区域。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_REPEAT_ADD_TO_ADDRESS, "每次迭代的地址增量" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_REPEAT_ADD_TO_ADDRESS, "每次迭代后,「内存地址」增加「内存搜索大小」的倍数。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_REPEAT_ADD_TO_VALUE, "每次迭代的数值增量" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_REPEAT_ADD_TO_VALUE, "每次迭代后,「数值」增加的数量。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_RUMBLE_TYPE, "记忆时震动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_RUMBLE_VALUE, "振动数值" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_RUMBLE_PORT, "震动端口" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_RUMBLE_PRIMARY_STRENGTH, "震动主强度" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_RUMBLE_PRIMARY_DURATION, "震动主时长 (毫秒)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_RUMBLE_SECONDARY_STRENGTH, "震动次强度" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_RUMBLE_SECONDARY_DURATION, "震动次时长 (毫秒)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_CODE, "代码" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_ADD_NEW_AFTER, "在当前之后添加新的金手指" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_ADD_NEW_BEFORE, "在当前之前添加新的金手指" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_COPY_AFTER, "复制当前金手指之后" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_COPY_BEFORE, "复制当前金手指之前" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_DELETE, "移除金手指" ) /* Quick Menu > Disc Control */ MSG_HASH( MENU_ENUM_LABEL_VALUE_DISK_TRAY_EJECT, "弹出光盘" ) MSG_HASH( MENU_ENUM_SUBLABEL_DISK_TRAY_EJECT, "打开虚拟光驱托盘并移除当前加载的光盘。如果配置为「显示菜单时暂停游戏」,一些核心可能直到游戏继续后几秒钟才会识别到换盘。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISK_TRAY_INSERT, "插入光盘" ) MSG_HASH( MENU_ENUM_SUBLABEL_DISK_TRAY_INSERT, "插入对应当前编号的光盘并关闭虚拟光驱托盘。如果配置为「显示菜单时暂停游戏」,一些核心可能直到游戏继续后几秒钟才会识别到换盘。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISK_IMAGE_APPEND, "加载新光盘" ) MSG_HASH( MENU_ENUM_SUBLABEL_DISK_IMAGE_APPEND, "弹出当前光盘,从文件系统中选择新光盘然后插入并关闭虚拟光驱托盘。\n注意:这是一个遗留功能。建议使用 M3U 列表加载多光盘游戏代替这项功能,因为它的光盘选择功能支持「弹出/插入光盘」和「光盘编号」选项。" ) MSG_HASH( MENU_ENUM_SUBLABEL_DISK_IMAGE_APPEND_TRAY_OPEN, "从文件系统中选择新光盘并插入,而不关闭虚拟光驱托盘。\n注意:这是一个遗留功能。建议使用 M3U 播放列表加载多光盘游戏代替这项功能,因为它的「光盘编号」选项支持光盘选择功能。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISK_INDEX, "当前光盘编号" ) MSG_HASH( MENU_ENUM_SUBLABEL_DISK_INDEX, "从可用镜像中选择当前光盘。选择「插入光盘」后,光盘会被加载。" ) /* Quick Menu > Shaders */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADERS_ENABLE, "视频着色器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHADER_WATCH_FOR_CHANGES, "监视着色器文件更改" ) MSG_HASH( MENU_ENUM_SUBLABEL_SHADER_WATCH_FOR_CHANGES, "自动对磁盘上的着色器文件进行更改。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_REMEMBER_LAST_DIR, "记住上次使用的着色器文件夹" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_REMEMBER_LAST_DIR, "打开文件浏览器时从上次用过的着色器文件夹开始。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET, "加载" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET, "通过加载一个预设着色器配置文件来自动设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE, "保存" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE, "保存当前着色器预设。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_REMOVE, "删除" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_REMOVE, "移除自动着色器预设。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHADER_APPLY_CHANGES, "应用更改" ) MSG_HASH( MENU_ENUM_SUBLABEL_SHADER_APPLY_CHANGES, "对渲染器配置的更改将立即生效。\n建议调试渲染器各项属性的用户开启此项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PARAMETERS, "着色器参数" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PARAMETERS, "直接修改当前着色器。更改不会保存到预设文件中。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_NUM_PASSES, "着色器渲染次数" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_NUM_PASSES, "增加或减少渲染器通道数量。每个通道都能单独配置所用的渲染器属性。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHADER, "着色器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FILTER, "过滤器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SCALE, "刻度" ) /* Quick Menu > Shaders > Save */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE_REFERENCE, "简单预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_REFERENCE, "保存着色器预设,链接到原有预设且只包含更改的参数。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE_AS, "保存着色器预设为" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_AS, "将当前着色器设置保存为新的着色器预设文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE_GLOBAL, "保存全局预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_GLOBAL, "将当前着色器设置保存为默认全局设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE_CORE, "保存核心预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_CORE, "将当前着色器设置保存为此核心的默认设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE_PARENT, "保存游戏文件夹预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_PARENT, "将当前着色器设置保存为当前游戏文件夹的默认设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE_GAME, "保存游戏预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_GAME, "将当前着色器设置保存为当前游戏内容的默认设置。" ) /* Quick Menu > Shaders > Remove */ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_PRESETS_FOUND, "未找到自动着色器预设。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_REMOVE_GLOBAL, "移除全局预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_REMOVE_GLOBAL, "移除所有游戏和所有核心使用的全局预设。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_REMOVE_CORE, "移除核心预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_REMOVE_CORE, "移除使用当前加载核心的所有游戏的预设。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_REMOVE_PARENT, "移除游戏文件夹预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_REMOVE_PARENT, "移除游戏文件夹中的所有游戏的预设。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_REMOVE_GAME, "移除游戏预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_REMOVE_GAME, "移除特定游戏的预设。" ) /* Quick Menu > Shaders > Shader Parameters */ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_SHADER_PARAMETERS, "没有着色器参数" ) /* Quick Menu > Overrides */ MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVE_CURRENT_CONFIG_OVERRIDE_CORE, "保存核心独立配置" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVE_CURRENT_CONFIG_OVERRIDE_CORE, "保存覆盖配置文件,应用于此核心加载的所有游戏。优先级高于主配置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVE_CURRENT_CONFIG_OVERRIDE_CONTENT_DIR, "保存游戏文件夹独立配置" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVE_CURRENT_CONFIG_OVERRIDE_CONTENT_DIR, "保存覆盖配置文件,应用于所有从相同文件夹加载的游戏。优先级高于主配置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVE_CURRENT_CONFIG_OVERRIDE_GAME, "保存游戏独立配置" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVE_CURRENT_CONFIG_OVERRIDE_GAME, "保存覆盖配置文件,只应用于当前游戏。优先级高于主配置。" ) /* Quick Menu > Achievements */ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_ACHIEVEMENTS_TO_DISPLAY, "没有可显示的成就" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_PAUSE_CANCEL, "取消暂停成就硬核模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_ACHIEVEMENT_PAUSE_CANCEL, "为当前会话启用成就硬核模式" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_RESUME_CANCEL, "取消恢复成就硬核模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_ACHIEVEMENT_RESUME_CANCEL, "为当前会话禁用成就硬核模式" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_PAUSE, "暂停成就硬核模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_ACHIEVEMENT_PAUSE, "暂停当前对战的成就硬核模式。将启用即时存档、金手指、回溯、暂停和慢动作。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_RESUME, "恢复成就硬核模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_ACHIEVEMENT_RESUME, "恢复当前对战的成就硬核模式。将禁用即时存档、金手指、回溯、暂停和慢动作,并重置当前游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOT_LOGGED_IN, "未登录" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETWORK_ERROR, "网络错误" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UNKNOWN_GAME, "未知游戏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CANNOT_ACTIVATE_ACHIEVEMENTS_WITH_THIS_CORE, "无法使用此核心激活成就" ) /* Quick Menu > Information */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_INFO_CHEEVOS_HASH, "RetroAchievements 哈希" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_DETAIL, "数据库条目" ) MSG_HASH( MENU_ENUM_SUBLABEL_RDB_ENTRY_DETAIL, "显示当前游戏的数据库信息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_ENTRIES_TO_DISPLAY, "没有可显示的条目。" ) /* Miscellaneous UI Items */ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_CORES_AVAILABLE, "没有可用的核心。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_CORE_OPTIONS_AVAILABLE, "没有可用的核心选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_CORE_INFORMATION_AVAILABLE, "没有可用的核心信息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_CORE_BACKUPS_AVAILABLE, "没有核心备份" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, "没有收藏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_HISTORY_AVAILABLE, "没有可用的历史记录。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "没有图片。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_MUSIC_AVAILABLE, "没有音乐。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_VIDEOS_AVAILABLE, "没有视频。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_INFORMATION_AVAILABLE, "没有可用的信息。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE, "没有可用的列表条目。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND, "没有找到设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_BT_DEVICES_FOUND, "没有找到蓝牙设备" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_NETWORKS_FOUND, "未发现网络。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_CORE, "By Libretro Team, Enhanced (UWP-ARM) Bashar Astifan" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SEARCH, "搜索:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_CONTROLS_BACK, "返回" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_CONTROLS_OK, "确定" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PARENT_DIRECTORY, "上级文件夹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DIRECTORY_NOT_FOUND, "没有找到文件夹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_ITEMS, "没有项目" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SELECT_FILE, "选择文件" ) /* Settings Options */ MSG_HASH( /* FIXME Should be MENU_LABEL_VALUE */ MSG_UNKNOWN_COMPILER, "未知编译器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SHARE_DIGITAL_OR, "共用" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SHARE_DIGITAL_XOR, "抓钩" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SHARE_DIGITAL_VOTE, "投票" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SHARE_ANALOG, "模拟输入分配" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SHARE_ANALOG_MAX, "最大" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SHARE_ANALOG_AVERAGE, "平均" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SHARE_NONE, "无" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SHARE_NO_PREFERENCE, "不设置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_TICKER_TYPE_BOUNCE, "左右回弹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_TICKER_TYPE_LOOP, "向左滚动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, "图像模式" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, "语音模式" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AI_SERVICE_NARRATOR_MODE, "讲述人模式" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_REMOVE_ENABLE_HIST_FAV, "历史和收藏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_REMOVE_ENABLE_ALL, "所有列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_REMOVE_ENABLE_NONE, "关" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_INLINE_CORE_DISPLAY_HIST_FAV, "历史和收藏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_INLINE_CORE_DISPLAY_ALWAYS, "总是" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_INLINE_CORE_DISPLAY_NEVER, "从不" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_RUNTIME_PER_CORE, "分核心" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_RUNTIME_AGGREGATE, "总计数" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_POWER_SOURCE_CHARGED, "已充满电" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_POWER_SOURCE_CHARGING, "充电中" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_POWER_SOURCE_DISCHARGING, "放电中" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_POWER_SOURCE_NO_SOURCE, "无源" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_USE_THIS_DIRECTORY, "<使用此文件夹>" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DIRECTORY_CONTENT, "<游戏文件夹>" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT, "<默认>" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DIRECTORY_NONE, "<无>" ) MSG_HASH( /* FIXME Unused? */ MENU_ENUM_LABEL_VALUE_RETROKEYBOARD, "键盘" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RETROPAD, "手柄" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RETROPAD_WITH_ANALOG, "全能手柄" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NONE, "无" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UNKNOWN, "未知" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DOWN_Y_L_R, "下 + Y + L1 + R1" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_L1_R1_START_SELECT, "L1 + R1 + 开始 + 选择" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_START_SELECT, "开始 + 选择" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HOLD_START, "按住开始 (2秒)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HOLD_SELECT, "按住「选择」键 (2 秒)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DOWN_SELECT, "下 + 开始" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_DISABLED, "<已禁用>" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_CHANGES, "更改" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_DOES_NOT_CHANGE, "不更改" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_INCREASE, "增加" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_DECREASE, "减少" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_EQ_VALUE, "= 震动值" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_NEQ_VALUE, "!= 震动值" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_LT_VALUE, "< 震动值" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_GT_VALUE, "> 震动值" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_INCREASE_BY_VALUE, "增加震动值" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_TYPE_DECREASE_BY_VALUE, "减少震动值" ) MSG_HASH( MENU_ENUM_LABEL_RUMBLE_PORT_16, "全部" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_TYPE_DISABLED, "<已禁用>" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_TYPE_SET_TO_VALUE, "设定值为" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_TYPE_INCREASE_VALUE, "增加值为" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_TYPE_DECREASE_VALUE, "减少值为" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_TYPE_RUN_NEXT_IF_EQ, "如果数值等于内存则运行下个金手指" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_TYPE_RUN_NEXT_IF_NEQ, "如果数值不等于内存则运行下个金手指" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_TYPE_RUN_NEXT_IF_LT, "如果数值小于内存则运行下个金手指" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_TYPE_RUN_NEXT_IF_GT, "如果数值大于内存则运行下个金手指" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_HANDLER_TYPE_EMU, "模拟器" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_HANDLER_TYPE_RETRO, "全能模拟器" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_MEMORY_SIZE_1, "1 位,最大值 = 0x01" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_MEMORY_SIZE_2, "2 位,最大值 = 0x03" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_MEMORY_SIZE_4, "4 位,最大值 = 0x0F" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_MEMORY_SIZE_8, "8 位,最大值 = 0xFF" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_MEMORY_SIZE_16, "16 位,最大值 = 0xFFFF" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_MEMORY_SIZE_32, "32 位,最大值 = 0xFFFFFFFF" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_SORT_MODE_DEFAULT, "系统默认" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_SORT_MODE_ALPHABETICAL, "按字母序" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_SORT_MODE_OFF, "无" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LABEL_DISPLAY_MODE_DEFAULT, "显示完整标签" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LABEL_DISPLAY_MODE_REMOVE_PARENS, "移除 () 内容" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LABEL_DISPLAY_MODE_REMOVE_BRACKETS, "移除 [] 内容" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LABEL_DISPLAY_MODE_REMOVE_PARENS_AND_BRACKETS, "移除 () 和 [] 内容" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LABEL_DISPLAY_MODE_KEEP_REGION, "保留地区" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LABEL_DISPLAY_MODE_KEEP_DISC_INDEX, "保留盘号" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LABEL_DISPLAY_MODE_KEEP_REGION_AND_DISC_INDEX, "保留地区和盘号" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_THUMBNAIL_MODE_DEFAULT, "系统默认" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_THUMBNAIL_MODE_BOXARTS, "包装封面" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_THUMBNAIL_MODE_SCREENSHOTS, "截屏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_THUMBNAIL_MODE_TITLE_SCREENS, "起始屏幕" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SCROLL_NORMAL, "普通" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SCROLL_FAST, "快" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ON, "开" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OFF, "关" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_YES, "是" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO, "否" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_TRUE, "是" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FALSE, "否" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ENABLED, "启用" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISABLED, "禁用" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE, "不可用" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_LOCKED_ENTRY, "未解锁" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_UNLOCKED_ENTRY, "已解锁" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_UNLOCKED_ENTRY_HARDCORE, "硬核" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_UNOFFICIAL_ENTRY, "非官方" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_UNSUPPORTED_ENTRY, "不支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_RECENTLY_UNLOCKED_ENTRY, "最近解锁" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_ALMOST_THERE_ENTRY, "即将完成" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_ACTIVE_CHALLENGES_ENTRY, "激活成就" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_TRACKERS_ONLY, "仅追踪器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_NOTIFICATIONS_ONLY, "仅通知" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DONT_CARE, "默认" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LINEAR, "线性" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NEAREST, "最邻" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_SYSTEM_NAME_USE_CONTENT_DIR, "<游戏文件夹>" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_SYSTEM_NAME_USE_CUSTOM, "<自定义>" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_CORE_NAME_DETECT, "<未指定>" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LEFT_ANALOG, "左摇杆" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RIGHT_ANALOG, "右侧摇杆" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LEFT_ANALOG_FORCED, "左方向模拟(强制)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RIGHT_ANALOG_FORCED, "右方向模拟(强制)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_KEY, "(%s 键)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_LEFT, "鼠标 1" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_RIGHT, "鼠标 2" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_MIDDLE, "鼠标 3" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_BUTTON4, "鼠标 4" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_BUTTON5, "鼠标 5" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_WHEEL_UP, "鼠标滚轮向上" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_WHEEL_DOWN, "鼠标滚轮向下" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_HORIZ_WHEEL_UP, "鼠标滚轮向左" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_HORIZ_WHEEL_DOWN, "鼠标滚轮向右" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_POLL_TYPE_BEHAVIOR_EARLY, "稍早" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_POLL_TYPE_BEHAVIOR_NORMAL, "正常" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_POLL_TYPE_BEHAVIOR_LATE, "稍晚" ) /* RGUI: Settings > User Interface > Appearance */ MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_BACKGROUND_FILLER_THICKNESS_ENABLE, "背景填充厚度" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_BACKGROUND_FILLER_THICKNESS_ENABLE, "增加菜单背景棋盘的粗糙度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_BORDER_FILLER_ENABLE, "边框填充" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_BORDER_FILLER_THICKNESS_ENABLE, "边框填充厚度" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_BORDER_FILLER_THICKNESS_ENABLE, "增加菜单边框棋盘的粗糙度。" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_BORDER_FILLER_ENABLE, "显示菜单边框。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_FULL_WIDTH_LAYOUT, "使用全宽布局" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_FULL_WIDTH_LAYOUT, "调整菜单条目的大小和位置,以充分利用屏幕空间。禁用后将使用经典的固定宽度双列布局。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_LINEAR_FILTER, "菜单线性过滤器" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_LINEAR_FILTER, "给菜单添加一点模糊,减轻像素边缘锯齿。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_INTERNAL_UPSCALE_LEVEL, "内部放大" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_INTERNAL_UPSCALE_LEVEL, "绘制到屏幕前放大菜单界面。启用「菜单线性过滤」时,移除缩放瑕疵 (不对称像素),同时保持锐利图像。有较大的性能影响,且随缩放级别增加而增加。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_ASPECT_RATIO, "菜单宽高比" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_ASPECT_RATIO, "选择菜单宽高比。宽屏比例可以增加菜单界面的水平分辨率。(禁用「锁定菜单宽高比」可能需要重启)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_ASPECT_RATIO_LOCK, "锁定菜单宽高比" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_ASPECT_RATIO_LOCK, "确保菜单始终以正确的宽高比显示。如果禁用,快捷菜单将会被拉伸以适配当前加载的游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME, "菜单颜色主题" ) MSG_HASH( MENU_ENUM_SUBLABEL_RGUI_MENU_COLOR_THEME, "选择不同的颜色主题。选择「自定义」启用菜单主题预设文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_THEME_PRESET, "自定义菜单主题预设" ) MSG_HASH( MENU_ENUM_SUBLABEL_RGUI_MENU_THEME_PRESET, "从文件管理器中选择菜单主题。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_TRANSPARENCY, "菜单透明度" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_TRANSPARENCY, "当点击“快捷菜单”上的按钮,允许正在运行中的游戏在后台显示。 禁用透明度可能会改变主题的颜色。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_SHADOWS, "阴影效果" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_SHADOWS, "启用菜单文字阴影。性能影响轻微。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_PARTICLE_EFFECT, "背景动画" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_PARTICLE_EFFECT, "启用背景粒子动画特效。有显著的性能影响。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_PARTICLE_EFFECT_SPEED, "背景动画速度" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_PARTICLE_EFFECT_SPEED, "调整背景粒子动画效果的速度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_PARTICLE_EFFECT_SCREENSAVER, "屏保背景动画" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_PARTICLE_EFFECT_SCREENSAVER, "屏保时,显示背景粒子动画效果。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_INLINE_THUMBNAILS, "显示列表缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_INLINE_THUMBNAILS, "启用显示内嵌小缩略图。如果禁用的话,「顶部缩略图」仍然可以用全能手柄的 Y 键全屏显示。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_THUMBNAILS_RGUI, "顶部缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_THUMBNAILS_RGUI, "游戏列表右上方显示的缩略图类型。此缩略图可以用全能手柄的 Y 键全屏显示。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS_RGUI, "底部缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_LEFT_THUMBNAILS_RGUI, "游戏列表右下方显示的缩略图类型。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_SWAP_THUMBNAILS, "交换缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_SWAP_THUMBNAILS, "交换顶部缩略图和底部缩略图的显示位置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_THUMBNAIL_DOWNSCALER, "缩略图缩放方法" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_THUMBNAIL_DOWNSCALER, "缩小缩略图适应屏幕尺寸时使用的重采样方法。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_THUMBNAIL_DELAY, "缩略图延迟 (ms)" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_THUMBNAIL_DELAY, "选择播放列表后,延迟加载缩略图。设置此值不低于 256 毫秒可以确保在低端设备上也不会卡顿。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_EXTENDED_ASCII, "扩展 ASCII 支持" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_EXTENDED_ASCII, "启用非 ASCII 字符显示。用于兼容除英语外的西方语言。有适度的性能影响。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_RGUI_SWITCH_ICONS, "显示开关图标" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_RGUI_SWITCH_ICONS, "使用开关图标而不是开/关文字来表示设置项的开启关闭状态。" ) /* RGUI: Settings Options */ MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_THUMB_SCALE_POINT, "邻近取样 (快)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_THUMB_SCALE_BILINEAR, "双线性" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_THUMB_SCALE_SINC, "Sinc/Lanczos3 (慢)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_UPSCALE_NONE, "无" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_UPSCALE_AUTO, "自动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_ASPECT_RATIO_16_9_CENTRE, "16:9 (居中)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_ASPECT_RATIO_16_10_CENTRE, "16:10 (居中)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_ASPECT_RATIO_3_2_CENTRE, "3:2 (居中)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_ASPECT_RATIO_5_3_CENTRE, "5:3 (居中)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_ASPECT_RATIO_LOCK_NONE, "关" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_ASPECT_RATIO_LOCK_FIT_SCREEN, "适合屏幕" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_ASPECT_RATIO_LOCK_INTEGER, "整数缩放" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_ASPECT_RATIO_LOCK_FILL_SCREEN, "全屏 (拉伸)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_CUSTOM, "自定义" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_CLASSIC_RED, "经典红" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_CLASSIC_ORANGE, "经典橙" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_CLASSIC_YELLOW, "经典黄" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_CLASSIC_GREEN, "经典绿" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_CLASSIC_BLUE, "经典蓝" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_CLASSIC_VIOLET, "经典紫" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_CLASSIC_GREY, "经典灰" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_LEGACY_RED, "传统红" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_DARK_PURPLE, "深紫" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_MIDNIGHT_BLUE, "午夜蓝" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_GOLDEN, "金色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_ELECTRIC_BLUE, "电气蓝" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_APPLE_GREEN, "苹果绿" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_VOLCANIC_RED, "火山红" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_LAGOON, "泻湖" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_DRACULA, "德古拉" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_FAIRYFLOSS, "棉花糖" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_GRUVBOX_DARK, "Gruvbox 暗色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_GRUVBOX_LIGHT, "Gruvbox 亮色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_HACKING_THE_KERNEL, "玩转内核" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_NORD, "北部" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_NOVA, "新星" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_PALENIGHT, "白夜" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_SOLARIZED_DARK, "暗色曝光" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_SOLARIZED_LIGHT, "亮色曝光" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_TANGO_DARK, "糖果暗色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_TANGO_LIGHT, "糖果亮色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_FLUX, "通量(Flux)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_PARTICLE_EFFECT_NONE, "关" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_PARTICLE_EFFECT_SNOW, "小雪" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_PARTICLE_EFFECT_SNOW_ALT, "大雪" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_PARTICLE_EFFECT_RAIN, "雨" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_PARTICLE_EFFECT_VORTEX, "涡流" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RGUI_PARTICLE_EFFECT_STARFIELD, "星域" ) /* XMB: Settings > User Interface > Appearance */ MSG_HASH( MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS, "左侧缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_LEFT_THUMBNAILS, "在屏幕左侧显示缩略图。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DYNAMIC_WALLPAPER, "动态背景" ) MSG_HASH( MENU_ENUM_SUBLABEL_DYNAMIC_WALLPAPER, "根据核心或游戏的不同,使用不同的壁纸。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_HORIZONTAL_ANIMATION, "水平动画" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_HORIZONTAL_ANIMATION, "启用菜单的水平动画。这将会损失性能。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_XMB_ANIMATION_HORIZONTAL_HIGHLIGHT, "水平图标高亮动画" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_XMB_ANIMATION_HORIZONTAL_HIGHLIGHT, "滚动标签页时触发的动画。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_XMB_ANIMATION_MOVE_UP_DOWN, "上下移动动画" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_XMB_ANIMATION_MOVE_UP_DOWN, "上下移动时触发的动画。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_XMB_ANIMATION_OPENING_MAIN_MENU, "菜单开关动画" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_XMB_ANIMATION_OPENING_MAIN_MENU, "打开子菜单时触发的动画。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_ALPHA_FACTOR, "菜单透明度因子" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_FONT, "菜单字体" ) MSG_HASH( MENU_ENUM_SUBLABEL_XMB_FONT, "设置菜单中使用的自定义字体文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_FONT_COLOR_RED, "菜单字体颜色 (红)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_FONT_COLOR_GREEN, "菜单字体颜色 (绿)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_FONT_COLOR_BLUE, "菜单字体颜色 (蓝)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_LAYOUT, "菜单布局" ) MSG_HASH( MENU_ENUM_SUBLABEL_XMB_LAYOUT, "设置多种 XMB 界面布局。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_THEME, "菜单图标主题" ) MSG_HASH( MENU_ENUM_SUBLABEL_XMB_THEME, "设置其他图标主题。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_SHADOWS_ENABLE, "启用图标阴影" ) MSG_HASH( MENU_ENUM_SUBLABEL_XMB_SHADOWS_ENABLE, "绘制所有图标的阴影。有些许的性能影响。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "菜单着色器管线" ) MSG_HASH( MENU_ENUM_SUBLABEL_XMB_RIBBON_ENABLE, "选择背景动画效果。某些效果可能很耗 GPU。如果性能不理想,请关闭此功能或改用简单动画效果。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME, "菜单颜色主题" ) MSG_HASH( MENU_ENUM_SUBLABEL_XMB_MENU_COLOR_THEME, "设置多种颜色的渐变主题。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_VERTICAL_THUMBNAILS, "缩略图垂直排列" ) MSG_HASH( MENU_ENUM_SUBLABEL_XMB_VERTICAL_THUMBNAILS, "在屏幕右侧缩略图的下方显示左侧缩略图。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_XMB_THUMBNAIL_SCALE_FACTOR, "缩略图缩放倍数" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_XMB_THUMBNAIL_SCALE_FACTOR, "按比例减小缩略图显示尺寸。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MAIN_MENU_ENABLE_SETTINGS, "启用「设置」页 (需要重启)" ) MSG_HASH( MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "显示应用程序「设置」页。" ) /* XMB: Settings Options */ MSG_HASH( MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_RIBBON, "彩条效果" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_RIBBON_SIMPLIFIED, "彩带 (简化)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_SIMPLE_SNOW, "简易雪花效果" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_SNOW, "雪花效果" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_BOKEH, "背景虚化" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_SNOWFLAKE, "雪花" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_CUSTOM, "自定义" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME, "单色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME_INVERTED, "单色反转" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_SYSTEMATIC, "系统化" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_PIXEL, "像素" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_DOTART, "点阵艺术" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_AUTOMATIC, "自动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_AUTOMATIC_INVERTED, "自动反转" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_APPLE_GREEN, "苹果绿" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_DARK, "深色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_LIGHT, "轻" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_MORNING_BLUE, "晨蓝" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, "阳焰" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_DARK_PURPLE, "深紫色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_ELECTRIC_BLUE, "铁蓝色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_GOLDEN, "金色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_LEGACY_RED, "传统红" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_MIDNIGHT_BLUE, "蓝黑色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_PLAIN, "朴素" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "海底" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "火山红" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_LIME, "柠檬绿" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_PIKACHU_YELLOW, "皮卡丘黄" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_GAMECUBE_PURPLE, "GameCube 紫" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_FAMICOM_RED, "NES 红" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_FLAMING_HOT, "烈焰" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_ICE_COLD, "冰封" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_MIDGAR, "米德加" ) /* Ozone: Settings > User Interface > Appearance */ MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLLAPSE_SIDEBAR, "折叠侧边栏" ) MSG_HASH( MENU_ENUM_SUBLABEL_OZONE_COLLAPSE_SIDEBAR, "总是合上左侧边栏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_TRUNCATE_PLAYLIST_NAME, "截断游戏列表名称 (需要重启)" ) MSG_HASH( MENU_ENUM_SUBLABEL_OZONE_TRUNCATE_PLAYLIST_NAME, "从列表中移除主机厂商名称。例如「Sony - PlayStation」变成「PlayStation」。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_SORT_AFTER_TRUNCATE_PLAYLIST_NAME, "按截断后的名称排序游戏列表 (需要重启)" ) MSG_HASH( MENU_ENUM_SUBLABEL_OZONE_SORT_AFTER_TRUNCATE_PLAYLIST_NAME, "移除主机生产厂商名字之后,播放列表会重新排序。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_MENU_COLOR_THEME, "菜单主题颜色" ) MSG_HASH( MENU_ENUM_SUBLABEL_OZONE_MENU_COLOR_THEME, "选择不同的主题颜色。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_BASIC_WHITE, "白色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_BASIC_BLACK, "黑色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_NORD, "北部" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_GRUVBOX_DARK, "Gruvbox 暗色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_BOYSENBERRY, "波森莓" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_HACKING_THE_KERNEL, "玩转内核" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_TWILIGHT_ZONE, "模糊地带" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_DRACULA, "德古拉" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_SOLARIZED_DARK, "Solarized 过曝深色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_SOLARIZED_LIGHT, "过度曝光" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS_OZONE, "第二缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_LEFT_THUMBNAILS_OZONE, "用另一个缩略图替换元数据面板。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OZONE_SCROLL_CONTENT_METADATA, "使用滚动字幕显示内容元数据" ) MSG_HASH( MENU_ENUM_SUBLABEL_OZONE_SCROLL_CONTENT_METADATA, "启用后,列表的游戏元数据项 (绑定核心,游戏时间) 只占用一行文字;超出宽度的文字会滚动显示。禁用后,游戏元数据项静态显示,在到达最大宽度后换行。" ) /* MaterialUI: Settings > User Interface > Appearance */ MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_ICONS_ENABLE, "菜单图标" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_ICONS_ENABLE, "在菜单条目左侧显示图标。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_PLAYLIST_ICONS_ENABLE, "游戏列表图标 (需要重启)" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_PLAYLIST_ICONS_ENABLE, "在游戏列表中显示游戏机系统图标。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION, "优化横屏布局" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION, "横屏显示时,自动调整菜单布局以适应屏幕。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_SHOW_NAV_BAR, "显示导航栏" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_SHOW_NAV_BAR, "永久显示屏幕菜单导航快捷键。启用快速菜单类别切换。推荐触屏设备使用。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_AUTO_ROTATE_NAV_BAR, "自动旋转导航栏" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_AUTO_ROTATE_NAV_BAR, "切换到横屏模式时,自动将导航栏移到屏幕右侧。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME, "菜单颜色主题" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_MENU_COLOR_THEME, "设置多种颜色背景的渐变主题。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_TRANSITION_ANIMATION, "菜单过渡动画" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_MENU_TRANSITION_ANIMATION, "在菜单层级导航时启用平滑动画效果。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_THUMBNAIL_VIEW_PORTRAIT, "纵向缩略图视图" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_MENU_THUMBNAIL_VIEW_PORTRAIT, "指定竖屏模式的游戏列表视图模式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_THUMBNAIL_VIEW_LANDSCAPE, "横向缩略图视图" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_MENU_THUMBNAIL_VIEW_LANDSCAPE, "指定横屏模式的游戏列表视图模式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_DUAL_THUMBNAIL_LIST_VIEW_ENABLE, "在列表视图中显示次要缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_DUAL_THUMBNAIL_LIST_VIEW_ENABLE, "缩略图使用列表查看模式时,显示第二张缩略图。此设置仅在屏幕足够宽时有效。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_THUMBNAIL_BACKGROUND_ENABLE, "绘制缩略图背景" ) MSG_HASH( MENU_ENUM_SUBLABEL_MATERIALUI_THUMBNAIL_BACKGROUND_ENABLE, "启用缩略图边框,用颜色填充。借此统一缩略图显示尺寸,改进浏览多种不同尺寸缩略图时的菜单外观。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_THUMBNAILS_MATERIALUI, "主要缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_THUMBNAILS_MATERIALUI, "游戏的主要缩略图类型。通常作为游戏图标。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS_MATERIALUI, "次要缩略图" ) MSG_HASH( MENU_ENUM_SUBLABEL_LEFT_THUMBNAILS_MATERIALUI, "游戏的辅助缩略图类型。用法取决于当前游戏列表的缩略图查看模式。" ) /* MaterialUI: Settings Options */ MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_BLUE, "蓝色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_BLUE_GREY, "蓝灰色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_DARK_BLUE, "深蓝色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_GREEN, "绿色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_RED, "红色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_YELLOW, "黄色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_MATERIALUI_DARK, "Material UI 暗色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_OZONE_DARK, "Ozone 暗色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_GRUVBOX_DARK, "Gruvbox 暗色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_SOLARIZED_DARK, "Solarized 暗色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_CUTIE_BLUE, "萌蓝色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_CUTIE_CYAN, "萌青色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_CUTIE_GREEN, "萌绿色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_CUTIE_ORANGE, "萌橘色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_CUTIE_PINK, "萌粉色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_CUTIE_PURPLE, "萌紫色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_CUTIE_RED, "萌红色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME_HACKING_THE_KERNEL, "玩转内核" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_TRANSITION_ANIM_AUTO, "自动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_TRANSITION_ANIM_FADE, "淡出" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_TRANSITION_ANIM_SLIDE, "滑行" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_TRANSITION_ANIM_NONE, "关" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_THUMBNAIL_VIEW_PORTRAIT_DISABLED, "关" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_THUMBNAIL_VIEW_PORTRAIT_LIST_SMALL, "列表 (小)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_THUMBNAIL_VIEW_PORTRAIT_LIST_MEDIUM, "列表 (中)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_THUMBNAIL_VIEW_PORTRAIT_DUAL_ICON, "双图标" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_THUMBNAIL_VIEW_LANDSCAPE_DISABLED, "关" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_THUMBNAIL_VIEW_LANDSCAPE_LIST_SMALL, "列表 (小)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_THUMBNAIL_VIEW_LANDSCAPE_LIST_MEDIUM, "列表 (中)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_THUMBNAIL_VIEW_LANDSCAPE_LIST_LARGE, "列表 (大)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_THUMBNAIL_VIEW_LANDSCAPE_DESKTOP, "桌面" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION_DISABLED, "关" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION_ALWAYS, "开" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION_EXCLUDE_THUMBNAIL_VIEWS, "排除缩略图视图" ) /* Qt (Desktop Menu) */ MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_INFO, "信息" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_FILE, "文件(&F)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_FILE_LOAD_CORE, "&加载核心..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_FILE_UNLOAD_CORE, "卸载核心(&U)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_FILE_EXIT, "退出(&X)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_EDIT, "编辑(&E)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_EDIT_SEARCH, "搜索(&S)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW, "视图(&V)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_CLOSED_DOCKS, "关闭的面板" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_SHADER_PARAMS, "着色器参数" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS, "&设置…" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_SAVE_DOCK_POSITIONS, "记住面板位置:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_SAVE_GEOMETRY, "记住窗口位置大小:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_SAVE_LAST_TAB, "记住上次浏览标签页:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_THEME, "主题:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_THEME_SYSTEM_DEFAULT, "<系统默认>" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_THEME_DARK, "暗场" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_THEME_CUSTOM, "自定义..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_TITLE, "设置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_TOOLS, "工具" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_HELP, "帮助(&H)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_HELP_ABOUT, "关于全能模拟器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_HELP_DOCUMENTATION, "文档" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_LOAD_CUSTOM_CORE, "加载自定义核心..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_LOAD_CORE, "加载核心" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_LOADING_CORE, "正在加载核心..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_NAME, "名称" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CORE_VERSION, "版本" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_TAB_PLAYLISTS, "列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_TAB_FILE_BROWSER, "文件浏览器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_TAB_FILE_BROWSER_TOP, "顶部" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_TAB_FILE_BROWSER_UP, "向上" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_DOCK_CONTENT_BROWSER, "游戏浏览器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_THUMBNAIL_BOXART, "包装封面" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_THUMBNAIL_SCREENSHOT, "截屏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_THUMBNAIL_TITLE_SCREEN, "起始屏幕" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_ALL_PLAYLISTS, "所有列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CORE, "核心" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CORE_INFO, "核心信息" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CORE_SELECTION_ASK, "<询问我>" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_INFORMATION, "信息" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_WARNING, "警告" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_ERROR, "错误" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_NETWORK_ERROR, "网络错误" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_RESTART_TO_TAKE_EFFECT, "请重启程序使更改生效。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_LOG, "日志" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_ITEMS_COUNT, "%1 项" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_DROP_IMAGE_HERE, "将图像拖放到这里" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_DONT_SHOW_AGAIN, "不再显示" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_STOP, "停止" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_ASSOCIATE_CORE, "关联核心" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_HIDDEN_PLAYLISTS, "隐藏列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_HIDE, "隐藏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_HIGHLIGHT_COLOR, "突出显示颜色:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CHOOSE, "选择(&C)..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_SELECT_COLOR, "选择颜色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_SELECT_THEME, "选择主题" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CUSTOM_THEME, "自定义主题" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_FILE_PATH_IS_BLANK, "文件路径为空。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_FILE_IS_EMPTY, "文件为空。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_FILE_READ_OPEN_FAILED, "无法打开要读取的文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_FILE_WRITE_OPEN_FAILED, "无法打开文件以写入。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_FILE_DOES_NOT_EXIST, "文件不存在。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_SUGGEST_LOADED_CORE_FIRST, "首先建议加载核心:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_ZOOM, "缩放" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_VIEW, "查看" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_VIEW_TYPE_ICONS, "图标" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_VIEW_TYPE_LIST, "列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "清除" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_PROGRESS, "进度:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_ALL_PLAYLISTS_LIST_MAX_COUNT, "「所有列表」列表模式最大条目数:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_ALL_PLAYLISTS_GRID_MAX_COUNT, "「所有列表」网格模式最大条目数:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_SHOW_HIDDEN_FILES, "显示隐藏的文件和文件夹:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_NEW_PLAYLIST, "新建列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_ENTER_NEW_PLAYLIST_NAME, "请输入新建列表名称:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_DELETE_PLAYLIST, "删除列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_RENAME_PLAYLIST, "重命名列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CONFIRM_DELETE_PLAYLIST, "您确定要删除列表「%1」吗?" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_QUESTION, "问题" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_COULD_NOT_DELETE_FILE, "无法删除文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_COULD_NOT_RENAME_FILE, "无法重命名文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_GATHERING_LIST_OF_FILES, "正在收集文件列表..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_ADDING_FILES_TO_PLAYLIST, "正在添加文件到列表..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_PLAYLIST_ENTRY, "列表条目" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_PLAYLIST_ENTRY_NAME, "名称:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_PLAYLIST_ENTRY_PATH, "路径:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_PLAYLIST_ENTRY_CORE, "核心:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_PLAYLIST_ENTRY_DATABASE, "数据库:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_PLAYLIST_ENTRY_EXTENSIONS, "扩展名:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_PLAYLIST_ENTRY_EXTENSIONS_PLACEHOLDER, "(空格分隔;默认包含全部)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_PLAYLIST_ENTRY_FILTER_INSIDE_ARCHIVES, "在压缩包中过滤" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_FOR_THUMBNAILS, "(用于查找缩略图)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CONFIRM_DELETE_PLAYLIST_ITEM, "您确定想要删除条目「%1」吗?" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CANNOT_ADD_TO_ALL_PLAYLISTS, "请先选择单个列表。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_DELETE, "删除" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_ADD_ENTRY, "添加条目..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_ADD_FILES, "添加文件..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_ADD_FOLDER, "添加文件夹..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_EDIT, "编辑" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_SELECT_FILES, "选择文件" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_SELECT_FOLDER, "选择文件夹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_FIELD_MULTIPLE, "<多个>" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_COULD_NOT_UPDATE_PLAYLIST_ENTRY, "更新列表条目时出错。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_PLEASE_FILL_OUT_REQUIRED_FIELDS, "请填写所有必需字段。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_UPDATE_RETROARCH_NIGHTLY, "更新全能模拟 (每日构建)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_UPDATE_RETROARCH_FINISHED, "全能模拟器更新成功。请重启程序使更新生效。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_UPDATE_RETROARCH_FAILED, "更新失败。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_HELP_ABOUT_CONTRIBUTORS, "贡献者" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CURRENT_SHADER, "当前着色器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MOVE_DOWN, "下移" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MOVE_UP, "上移" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_LOAD, "加载" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_SAVE, "保存" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_REMOVE, "移除" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_REMOVE_PASSES, "移除着色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_APPLY, "应用" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_SHADER_ADD_PASS, "添加着色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_SHADER_CLEAR_ALL_PASSES, "清楚所有着色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_SHADER_NO_PASSES, "没有着色器着色。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_RESET_PASS, "重置着色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_RESET_ALL_PASSES, "重置所有着色" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_RESET_PARAMETER, "重置参数" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_DOWNLOAD_THUMBNAIL, "下载缩略图" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_DOWNLOAD_ALREADY_IN_PROGRESS, "一个下载进程已在进行中。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_STARTUP_PLAYLIST, "开始列表:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_THUMBNAIL_TYPE, "缩略图" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_THUMBNAIL_CACHE_LIMIT, "缩略图缓存限制:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS_THUMBNAIL_DROP_SIZE_LIMIT, "拖放缩略图大小限制:" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_DOWNLOAD_ALL_THUMBNAILS, "下载所有缩略图" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_DOWNLOAD_ALL_THUMBNAILS_ENTIRE_SYSTEM, "整个系统" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_DOWNLOAD_ALL_THUMBNAILS_THIS_PLAYLIST, "仅此列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_THUMBNAIL_PACK_DOWNLOADED_SUCCESSFULLY, "缩略图下载成功。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_DOWNLOAD_PLAYLIST_THUMBNAIL_PROGRESS, "成功:%1 失败:%2" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_CORE_OPTIONS, "核心选项" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_RESET, "重置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_RESET_ALL, "全部重置" ) /* Unsorted */ MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_UPDATER_SETTINGS, "更新程序" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACCOUNTS_CHEEVOS_SETTINGS, "Cheevos 账户设置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACCOUNTS_LIST_END, "账户列表终端" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_TURBO_DEADZONE_LIST, "增强/死区" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CORE_COUNTERS, "核心计数器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_DISK, "未选择光盘" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FRONTEND_COUNTERS, "前端计数器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HORIZONTAL_MENU, "横向菜单" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_DESCRIPTOR_HIDE_UNBOUND, "隐藏未绑定的核心输入描述" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_DESCRIPTOR_LABEL_SHOW, "显示输入描述标签" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_OVERLAY_SETTINGS, "遮罩" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_HISTORY, "历史" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOAD_CONTENT_HISTORY, "从最近历史列表中选择游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MULTIMEDIA_SETTINGS, "多媒体" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SUBSYSTEM_SETTINGS, "子系统" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_NETPLAY_HOSTS_FOUND, "未发现联机游戏主机。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_PERFORMANCE_COUNTERS, "没有性能计数器。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_PLAYLISTS, "没有列表。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BT_CONNECTED, "已连接" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ONLINE, "在线" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PORT, "端口" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PORT_DEVICE_NAME, "端口 %d 设备名: %s (#%d)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SETTINGS, "金手指设置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_SETTINGS, "开始或继续金手指搜索" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RUN_MUSIC, "运行" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SECONDS, "秒" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_START_CORE, "启动核心" ) MSG_HASH( MENU_ENUM_SUBLABEL_START_CORE, "直接启动核心,不加载游戏ROM。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SUPPORTED_CORES, "支持的核心" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_UNABLE_TO_READ_COMPRESSED_FILE, "无法读取压缩的文件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_USER, "用户" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_KEYBOARD, "键盘" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_USE_BUILTIN_IMAGE_VIEWER, "使用内建图像查看器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_MAX_SWAPCHAIN_IMAGES, "最大交换链图像数" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES, "强制显示驱动程序使用特定的缓冲模式。" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_PARAMETERS, "修改当前在菜单中使用的着色器预设文件." ) MSG_HASH( MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_TWO, "着色器预设" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BROWSE_URL_LIST, "浏览 URL" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BROWSE_URL, "URL 路径" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BROWSE_START, "开始" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_ROOM_NICKNAME, "昵称:%s" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_COMPAT_CONTENT_FOUND, "找到兼容游戏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_START_GONG, "开始震响" ) /* Unused (Only Exist in Translation Files) */ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_ASPECT_RATIO_AUTO, "自动选择宽高比" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_ROOM_NICKNAME_LAN, "昵称 (局域网):%s" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_STATUS, "状态" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_BGM_ENABLE, "启用系统背景音乐" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CUSTOM_RATIO, "自定义比率" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RECORD_ENABLE, "录制支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RECORD_PATH, "录像另存为..." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RECORD_USE_OUTPUT_DIRECTORY, "保存录像到输出文件夹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_MATCH_IDX, "视图匹配编号" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_MATCH_IDX, "选择要查看的比赛。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FORCE_ASPECT, "保持宽高比" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SELECT_FROM_PLAYLIST, "从列表中选择" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RESUME, "继续" ) MSG_HASH( MENU_ENUM_SUBLABEL_RESUME, "退出菜单并继续游戏。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_VIEW_MATCHES, "查看匹配的 %u 个列表" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_CREATE_OPTION, "从这个匹配中创建代码" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_DELETE_OPTION, "删除此匹配项" ) MSG_HASH( /* FIXME Still exists in a comment about being removed */ MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_FOOTER_OPACITY, "底部不透明度" ) MSG_HASH( /* FIXME Still exists in a comment about being removed */ MENU_ENUM_SUBLABEL_MATERIALUI_MENU_FOOTER_OPACITY, "修改底部图形的不透明度。" ) MSG_HASH( /* FIXME Still exists in a comment about being removed */ MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_HEADER_OPACITY, "顶部不透明度" ) MSG_HASH( /* FIXME Still exists in a comment about being removed */ MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY, "修改顶部图形的不透明度。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE, "联机" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_RDB_ENTRY_START_CONTENT, "启动游戏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_HISTORY_PATH, "游戏历史路径" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CRT_SWITCH_RESOLUTION_OUTPUT_DISPLAY_ID, "输出显示器标识" ) MSG_HASH( MENU_ENUM_SUBLABEL_CRT_SWITCH_RESOLUTION_OUTPUT_DISPLAY_ID, "选择连接到CRT显示器的输出端口。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HELP, "帮助文档" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HELP_AUDIO_VIDEO_TROUBLESHOOTING, "音频/视频故障排除" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HELP_CHANGE_VIRTUAL_GAMEPAD, "更改虚拟手柄遮罩" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HELP_LOADING_CONTENT, "加载游戏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HELP_SCANNING_CONTENT, "扫描游戏" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HELP_WHAT_IS_A_CORE, "什么是「核心」?" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_HELP_SEND_DEBUG_INFO, "发送调试信息" ) MSG_HASH( MENU_ENUM_SUBLABEL_HELP_SEND_DEBUG_INFO, "发送设备诊断信息和全能模拟器配置到我们的服务器进行分析。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MANAGEMENT, "数据库设置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_DELAY_FRAMES, "在线游戏延迟帧数" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_LAN_SCAN_SETTINGS, "扫描本地网络" ) MSG_HASH( MENU_ENUM_SUBLABEL_NETPLAY_LAN_SCAN_SETTINGS, "在局域网内搜索并连接联网游戏的主机。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_MODE, "联机客户端" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SPECTATOR_MODE_ENABLE, "启用在线游戏旁观者" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEEVOS_DESCRIPTION, "描述" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FRAME_THROTTLE_ENABLE, "限制最大运行速度" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_START_SEARCH, "开始搜索新金手指" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_START_SEARCH, "开始搜索新的金手指。比特数可以改变。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_CONTINUE_SEARCH, "继续搜索" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_CONTINUE_SEARCH, "继续搜索新一个金手指。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_LIST_HARDCORE, "成就 (硬核模式)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_DETAILS, "金手指详情" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_CHEAT_DETAILS, "管理金手指详细设置。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_SEARCH, "开始或继续金手指搜索" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_CHEAT_SEARCH, "开始或继续金手指搜索。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CHEAT_NUM_PASSES, "金手指通过" ) MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_NUM_PASSES, "增加或减少金手指数量。" ) /* Unused (Needs Confirmation) */ MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X, "左摇杆 X" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y, "左摇杆 Y" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X, "右摇杆 X" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y, "右摇杆 Y" ) MSG_HASH( MENU_ENUM_LABEL_CHEAT_SEARCH_SETTINGS, "开始或继续金手指搜索" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST, "数据库 Cursor List" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_DEVELOPER, "数据库 - 过滤器 : 开发者" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_PUBLISHER, "数据库 - 过滤器 : 发行方" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_ORIGIN, "数据库 - 过滤器 : 源产地" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_FRANCHISE, "数据库 - 过滤器 : Franchise" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_ESRB_RATING, "数据库 - 过滤器:ESRB 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_ELSPA_RATING, "数据库 - 过滤器:ELSPA 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_PEGI_RATING, "数据库 - 过滤器:PEGI 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_CERO_RATING, "数据库 - 过滤器:CERO 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_BBFC_RATING, "数据库 - 过滤器:BBFC 评分" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_MAX_USERS, "数据库 - 过滤器 : 最大用户数" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_RELEASEDATE_BY_MONTH, "数据库 - 过滤器 : 发行月份" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_RELEASEDATE_BY_YEAR, "数据库 - 过滤器 : 发行年份" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_EDGE_MAGAZINE_ISSUE, "数据库 - 过滤器 : Edge Magazine Issue" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_EDGE_MAGAZINE_RATING, "数据库 - 过滤器 : Edge Magazine Rating" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_DATABASE_INFO, "数据库信息" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONFIG, "配置" ) MSG_HASH( /* FIXME Seems related to MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIRECTORY, possible duplicate */ MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIR, "下载" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_SETTINGS, "在线游戏设置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SLANG_SUPPORT, "Slang 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FBO_SUPPORT, "OpenGL/Direct3D 纹理渲染 (多层着色器) 支持" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CONTENT_DIR, "游戏" ) MSG_HASH( MENU_ENUM_SUBLABEL_CONTENT_DIR, "通常由 Libretro/RetroArch 的打包开发者设置,指向素材文件夹。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_ASK_ARCHIVE, "询问" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_ENUM_CONTROLS, "基本菜单控制" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_ENUM_CONTROLS_CONFIRM, "确认/确定" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_ENUM_CONTROLS_INFO, "信息" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_ENUM_CONTROLS_QUIT, "退出" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_ENUM_CONTROLS_SCROLL_UP, "向上滚动" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_ENUM_CONTROLS_START, "默认值" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_ENUM_CONTROLS_TOGGLE_KEYBOARD, "切换键盘" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BASIC_MENU_ENUM_CONTROLS_TOGGLE_MENU, "切换菜单" ) /* Discord Status */ MSG_HASH( MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, "菜单内" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISCORD_IN_GAME, "游戏内" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISCORD_IN_GAME_PAUSED, "游戏内 (暂停)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISCORD_STATUS_PLAYING, "正在播放" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_DISCORD_STATUS_PAUSED, "已暂停" ) /* Notifications */ MSG_HASH( /* FIXME Should be MSG_ */ MENU_ENUM_LABEL_VALUE_NETPLAY_START_WHEN_LOADED, "联机游戏将在内容加载后开始。" ) MSG_HASH( /* FIXME Should be MSG_ */ MENU_ENUM_LABEL_VALUE_NETPLAY_LOAD_CONTENT_MANUALLY, "无法找到合适的核心或游戏文件,请手动加载。" ) MSG_HASH( /* FIXME Should be MSG_ */ MENU_ENUM_LABEL_VALUE_VIDEO_DRIVER_FALLBACK, "您的系统图形驱动与当前全能模拟器的视频驱动不兼容,回退到「%s」驱动。请重启全能模拟器以使更改生效。" ) MSG_HASH( /* FIXME Should be MSG_ */ MENU_ENUM_LABEL_VALUE_SIDELOAD_CORE_SUCCESS, "核心安装成功" ) MSG_HASH( /* FIXME Should be MSG_ */ MENU_ENUM_LABEL_VALUE_SIDELOAD_CORE_ERROR, "核心安装失败" ) MSG_HASH( MSG_CHEAT_DELETE_ALL_INSTRUCTIONS, "按右键五次删除所有金手指。" ) MSG_HASH( MSG_FAILED_TO_SAVE_DEBUG_INFO, "保存调试信息失败。" ) MSG_HASH( MSG_FAILED_TO_SEND_DEBUG_INFO, "向服务器发送调试信息失败。" ) MSG_HASH( MSG_SENDING_DEBUG_INFO, "正在发送调试信息..." ) MSG_HASH( MSG_SENT_DEBUG_INFO, "成功发送调试信息到服务器。您的 ID 是 %u。" ) MSG_HASH( MSG_PRESS_TWO_MORE_TIMES_TO_SEND_DEBUG_INFO, "再按两次,将诊断信息提交给全能模拟器团队。" ) MSG_HASH( MSG_PRESS_ONE_MORE_TIME_TO_SEND_DEBUG_INFO, "再按一次,将诊断信息提交给全能模拟器团队。" ) MSG_HASH( MSG_AUDIO_MIXER_VOLUME, "全局混音器音量" ) MSG_HASH( MSG_NETPLAY_LAN_SCAN_COMPLETE, "联机游戏主机扫描完成。" ) MSG_HASH( MSG_SORRY_UNIMPLEMENTED_CORES_DONT_DEMAND_CONTENT_NETPLAY, "对不起,未实现:不加载游戏内容的核心无法加入联机游戏。" ) MSG_HASH( MSG_NATIVE, "原生" ) MSG_HASH( MSG_DEVICE_DISCONNECTED_FROM_PORT, "设备已从端口上断开" ) MSG_HASH( MSG_UNKNOWN_NETPLAY_COMMAND_RECEIVED, "收到未知的联机命令" ) MSG_HASH( MSG_FILE_ALREADY_EXISTS_SAVING_TO_BACKUP_BUFFER, "文件已存在。保存到备份缓存" ) MSG_HASH( MSG_GOT_CONNECTION_FROM, "收到来自「%s」的连接" ) MSG_HASH( MSG_GOT_CONNECTION_FROM_NAME, "收到来自「%s (%s)」的连接" ) MSG_HASH( MSG_PUBLIC_ADDRESS, "Netplay 端口映射成功" ) MSG_HASH( MSG_UPNP_FAILED, "Netplay UPNP 端口映射失败" ) MSG_HASH( MSG_NO_ARGUMENTS_SUPPLIED_AND_NO_MENU_BUILTIN, "未提供参数也没有内建菜单,正在显示帮助..." ) MSG_HASH( MSG_SETTING_DISK_IN_TRAY, "正在将光盘放到托盘上" ) MSG_HASH( MSG_WAITING_FOR_CLIENT, "正在等待客户端 ..." ) MSG_HASH( MSG_NETPLAY_YOU_HAVE_LEFT_THE_GAME, "您已离开游戏" ) MSG_HASH( MSG_NETPLAY_YOU_HAVE_JOINED_AS_PLAYER_N, "您已作为玩家「%u」加入" ) MSG_HASH( MSG_NETPLAY_YOU_HAVE_JOINED_WITH_INPUT_DEVICES_S, "您已通过输入设备「%.*s」加入" ) MSG_HASH( MSG_NETPLAY_PLAYER_S_LEFT, "玩家「%.*s」已离开游戏" ) MSG_HASH( MSG_NETPLAY_S_HAS_JOINED_AS_PLAYER_N, "「%.*s」已加入为玩家「%u」" ) MSG_HASH( MSG_NETPLAY_S_HAS_JOINED_WITH_INPUT_DEVICES_S, "「%.*s」已通过输入设备「%.*s」加入" ) MSG_HASH( MSG_NETPLAY_NOT_RETROARCH, "联机尝试失败,因为对方没有运行全能模拟器,或者运行的版本太旧。" ) MSG_HASH( MSG_NETPLAY_OUT_OF_DATE, "联机玩家运行旧版本的全能模拟器。无法连接。" ) MSG_HASH( MSG_NETPLAY_DIFFERENT_VERSIONS, "警告:联机玩家运行不同版本的全能模拟器。如果遇到问题,请改用相同版本。" ) MSG_HASH( MSG_NETPLAY_DIFFERENT_CORES, "联机玩家运行不同的核心。无法连接。" ) MSG_HASH( MSG_NETPLAY_DIFFERENT_CORE_VERSIONS, "警告:联机玩家运行不同版本的核心。如果遇到问题,请改用相同版本。" ) MSG_HASH( MSG_NETPLAY_ENDIAN_DEPENDENT, "核心不支持这些系统架构之间的联机" ) MSG_HASH( MSG_NETPLAY_PLATFORM_DEPENDENT, "核心不支持不同系统架构之间的联机" ) MSG_HASH( MSG_NETPLAY_ENTER_PASSWORD, "请输入联机服务器密码:" ) MSG_HASH( MSG_DISCORD_CONNECTION_REQUEST, "您是否想要接受此玩家的连接:" ) MSG_HASH( MSG_NETPLAY_INCORRECT_PASSWORD, "密码错误" ) MSG_HASH( MSG_NETPLAY_SERVER_NAMED_HANGUP, "「%s」已断开连接" ) MSG_HASH( MSG_NETPLAY_SERVER_HANGUP, "一个联机客户端已断开" ) MSG_HASH( MSG_NETPLAY_CLIENT_HANGUP, "联机已断开" ) MSG_HASH( MSG_NETPLAY_CANNOT_PLAY_UNPRIVILEGED, "您没有游戏权限" ) MSG_HASH( MSG_NETPLAY_CANNOT_PLAY_NO_SLOTS, "玩家数量已满" ) MSG_HASH( MSG_NETPLAY_CANNOT_PLAY_NOT_AVAILABLE, "请求的输入设备不可用" ) MSG_HASH( MSG_NETPLAY_CANNOT_PLAY, "无法切换到游戏模式" ) MSG_HASH( MSG_NETPLAY_PEER_PAUSED, "联机玩家「%s」暂停" ) MSG_HASH( MSG_NETPLAY_CHANGED_NICK, "您的昵称已更改为「%s」" ) MSG_HASH( MSG_AUDIO_VOLUME, "音频音量" ) MSG_HASH( MSG_AUTODETECT, "自动检测" ) MSG_HASH( MSG_AUTOLOADING_SAVESTATE_FROM, "自动加载状态存储于" ) MSG_HASH( MSG_CAPABILITIES, "容量" ) MSG_HASH( MSG_CONNECTING_TO_NETPLAY_HOST, "正在连接联机主机" ) MSG_HASH( MSG_CONNECTING_TO_PORT, "正在连接端口" ) MSG_HASH( MSG_CONNECTION_SLOT, "连接席位" ) MSG_HASH( MSG_FETCHING_CORE_LIST, "正在获取核心列表..." ) MSG_HASH( MSG_CORE_LIST_FAILED, "获取核心列表失败!" ) MSG_HASH( MSG_LATEST_CORE_INSTALLED, "已安装最新版:" ) MSG_HASH( MSG_UPDATING_CORE, "正在更新核心:" ) MSG_HASH( MSG_DOWNLOADING_CORE, "正在下载核心:" ) MSG_HASH( MSG_EXTRACTING_CORE, "正在解压核心:" ) MSG_HASH( MSG_CORE_INSTALLED, "已安装核心:" ) MSG_HASH( MSG_CORE_INSTALL_FAILED, "安装核心失败:" ) MSG_HASH( MSG_SCANNING_CORES, "正在扫描核心..." ) MSG_HASH( MSG_CHECKING_CORE, "正在检查核心:" ) MSG_HASH( MSG_ALL_CORES_UPDATED, "所有已安装的核心已是最新版本" ) MSG_HASH( MSG_ALL_CORES_SWITCHED_PFD, "所有支持的核心已切换到 Play 商店版本" ) MSG_HASH( MSG_NUM_CORES_UPDATED, "已更新核心:" ) MSG_HASH( MSG_NUM_CORES_LOCKED, "跳过核心:" ) MSG_HASH( MSG_CORE_UPDATE_DISABLED, "核心更新禁用——核心已锁定:" ) MSG_HASH( MSG_PLAYLIST_MANAGER_RESETTING_CORES, "正在重置核心:" ) MSG_HASH( MSG_PLAYLIST_MANAGER_CORES_RESET, "已重置核心:" ) MSG_HASH( MSG_PLAYLIST_MANAGER_CLEANING_PLAYLIST, "正在清理列表:" ) MSG_HASH( MSG_PLAYLIST_MANAGER_PLAYLIST_CLEANED, "已清理列表:" ) MSG_HASH( MSG_PLAYLIST_MANAGER_REFRESH_MISSING_CONFIG, "刷新失败 - 播放列表中没有有效的扫描记录: " ) MSG_HASH( MSG_PLAYLIST_MANAGER_REFRESH_INVALID_CONTENT_DIR, "刷新失败 - 无效/缺少内容目录: " ) MSG_HASH( MSG_PLAYLIST_MANAGER_REFRESH_INVALID_SYSTEM_NAME, "刷新失败 - 无效/缺失的系统名称: " ) MSG_HASH( MSG_PLAYLIST_MANAGER_REFRESH_INVALID_CORE, "刷新失败 - 无效核心: " ) MSG_HASH( MSG_PLAYLIST_MANAGER_REFRESH_INVALID_DAT_FILE, "刷新失败 - 无效/缺少 游玩的DAT文件: " ) MSG_HASH( MSG_PLAYLIST_MANAGER_REFRESH_DAT_FILE_TOO_LARGE, "刷新失败 - 游玩DAT文件过大 (内存不足): " ) MSG_HASH( MSG_ADDED_TO_FAVORITES, "收藏" ) MSG_HASH( MSG_ADD_TO_FAVORITES_FAILED, "收藏失败:列表已满" ) MSG_HASH( MSG_SET_CORE_ASSOCIATION, "已设置核心:" ) MSG_HASH( MSG_RESET_CORE_ASSOCIATION, "游戏列表条目的核心关联已重置。" ) MSG_HASH( MSG_APPENDED_DISK, "附加光盘" ) MSG_HASH( MSG_FAILED_TO_APPEND_DISK, "附加光盘失败" ) MSG_HASH( MSG_APPLICATION_DIR, "应用程序文件夹" ) MSG_HASH( MSG_APPLYING_CHEAT, "正在应用金手指更改。" ) MSG_HASH( MSG_APPLYING_PATCH, "正在应用补丁:%s" ) MSG_HASH( MSG_APPLYING_SHADER, "应用着色器" ) MSG_HASH( MSG_AUDIO_MUTED, "静音。" ) MSG_HASH( MSG_AUDIO_UNMUTED, "取消静音。" ) MSG_HASH( MSG_AUTOCONFIG_FILE_ERROR_SAVING, "控制器配置文件保存错误。" ) MSG_HASH( MSG_AUTOCONFIG_FILE_SAVED_SUCCESSFULLY, "控制器配置文件保存成功。" ) MSG_HASH( MSG_AUTOSAVE_FAILED, "无法初始化自动保存。" ) MSG_HASH( MSG_AUTO_SAVE_STATE_TO, "自动保存状态至" ) MSG_HASH( MSG_BLOCKING_SRAM_OVERWRITE, "阻止覆盖游戏存档" ) MSG_HASH( MSG_BRINGING_UP_COMMAND_INTERFACE_ON_PORT, "带上命令接口于端口" ) MSG_HASH( MSG_BYTES, "字节" ) MSG_HASH( MSG_CANNOT_INFER_NEW_CONFIG_PATH, "无法推断新的配置路径,使用当前时间。" ) MSG_HASH( MSG_CHEEVOS_HARDCORE_MODE_ENABLE, "成就硬核模式已启用,状态存储和回溯被禁用。" ) MSG_HASH( MSG_COMPARING_WITH_KNOWN_MAGIC_NUMBERS, "与已知的magic numbers比较..." ) MSG_HASH( MSG_COMPILED_AGAINST_API, "未按照 API 编译" ) MSG_HASH( MSG_CONFIG_DIRECTORY_NOT_SET, "未设置配置文件夹,无法保存新的配置。" ) MSG_HASH( MSG_CONNECTED_TO, "连接至" ) MSG_HASH( MSG_CONTENT_CRC32S_DIFFER, "游戏的 CRC32 校验和不同。无法使用不同的游戏。" ) MSG_HASH( MSG_CONTENT_LOADING_SKIPPED_IMPLEMENTATION_WILL_DO_IT, "跳过游戏加载。实现将自行加载。" ) MSG_HASH( MSG_CORE_DOES_NOT_SUPPORT_SAVESTATES, "核心不支持状态存储。" ) MSG_HASH( MSG_CORE_OPTIONS_FILE_CREATED_SUCCESSFULLY, "已创建核心选项文件。" ) MSG_HASH( MSG_CORE_OPTIONS_FILE_REMOVED_SUCCESSFULLY, "已移除核心选项文件。" ) MSG_HASH( MSG_CORE_OPTIONS_RESET, "所有核心选项已重置为默认值。" ) MSG_HASH( MSG_CORE_OPTIONS_FLUSHED, "核心选项保存到:" ) MSG_HASH( MSG_CORE_OPTIONS_FLUSH_FAILED, "核心选项保存失败:" ) MSG_HASH( MSG_COULD_NOT_FIND_ANY_NEXT_DRIVER, "找不到更多驱动程序。" ) MSG_HASH( MSG_COULD_NOT_FIND_COMPATIBLE_SYSTEM, "找不到兼容的系统。" ) MSG_HASH( MSG_COULD_NOT_FIND_VALID_DATA_TRACK, "无法找到有效的数据轨" ) MSG_HASH( MSG_COULD_NOT_OPEN_DATA_TRACK, "无法打开数据轨" ) MSG_HASH( MSG_COULD_NOT_READ_CONTENT_FILE, "无法读取游戏文件" ) MSG_HASH( MSG_COULD_NOT_READ_MOVIE_HEADER, "无法读取视频头部信息。" ) MSG_HASH( MSG_COULD_NOT_READ_STATE_FROM_MOVIE, "无法读取视频状态。" ) MSG_HASH( MSG_CRC32_CHECKSUM_MISMATCH, "游戏的 CRC32 校验码与回放不一致。回放极有可能会不同步。" ) MSG_HASH( MSG_CUSTOM_TIMING_GIVEN, "指定了自定义时间" ) MSG_HASH( MSG_DECOMPRESSION_ALREADY_IN_PROGRESS, "解压缩已在进行中。" ) MSG_HASH( MSG_DECOMPRESSION_FAILED, "解压缩失败。" ) MSG_HASH( MSG_DETECTED_VIEWPORT_OF, "检测到的视图" ) MSG_HASH( MSG_DID_NOT_FIND_A_VALID_CONTENT_PATCH, "未找到有效的游戏补丁。" ) MSG_HASH( MSG_DISCONNECT_DEVICE_FROM_A_VALID_PORT, "从有效端口断开设备。" ) MSG_HASH( MSG_DISK_CLOSED, "关闭虚拟盘片。" ) MSG_HASH( MSG_DISK_EJECTED, "弹出虚拟光盘托盘。" ) MSG_HASH( MSG_DOWNLOADING, "正在下载" ) MSG_HASH( MSG_INDEX_FILE, "索引" ) MSG_HASH( MSG_DOWNLOAD_FAILED, "下载失败" ) MSG_HASH( MSG_ERROR, "错误" ) MSG_HASH( MSG_ERROR_LIBRETRO_CORE_REQUIRES_CONTENT, "Libretro 核心需要加载游戏才能运行。" ) MSG_HASH( MSG_ERROR_LIBRETRO_CORE_REQUIRES_SPECIAL_CONTENT, "Libretro 核心需要加载特定游戏才能运行。" ) MSG_HASH( MSG_ERROR_LIBRETRO_CORE_REQUIRES_VFS, "核心不支持 VFS,且加载本地副本失败" ) MSG_HASH( MSG_ERROR_PARSING_ARGUMENTS, "解析命令行时出现错误。" ) MSG_HASH( MSG_ERROR_SAVING_CORE_OPTIONS_FILE, "保存核心选项文件时出现错误。" ) MSG_HASH( MSG_ERROR_REMOVING_CORE_OPTIONS_FILE, "删除核心选项文件时出现错误。" ) MSG_HASH( MSG_ERROR_SAVING_REMAP_FILE, "保存自定义键位文件时出现错误。" ) MSG_HASH( MSG_ERROR_REMOVING_REMAP_FILE, "删除重映射时出错。" ) MSG_HASH( MSG_ERROR_SAVING_SHADER_PRESET, "保存预设着色器文件时出现错误。" ) MSG_HASH( MSG_EXTERNAL_APPLICATION_DIR, "外部应用程序文件夹" ) MSG_HASH( MSG_EXTRACTING, "正在解压" ) MSG_HASH( MSG_EXTRACTING_FILE, "解压文件" ) MSG_HASH( MSG_FAILED_SAVING_CONFIG_TO, "无法将配置文件保存到" ) MSG_HASH( MSG_FAILED_TO_ACCEPT_INCOMING_SPECTATOR, "同意旁观失败。" ) MSG_HASH( MSG_FAILED_TO_ALLOCATE_MEMORY_FOR_PATCHED_CONTENT, "为打过补丁后的游戏分配内存失败..." ) MSG_HASH( MSG_FAILED_TO_APPLY_SHADER, "应用着色器失败。" ) MSG_HASH( MSG_FAILED_TO_APPLY_SHADER_PRESET, "应用着色器预设失败:" ) MSG_HASH( MSG_FAILED_TO_BIND_SOCKET, "端口绑定失败。" ) MSG_HASH( MSG_FAILED_TO_CREATE_THE_DIRECTORY, "创建文件夹失败。" ) MSG_HASH( MSG_FAILED_TO_EXTRACT_CONTENT_FROM_COMPRESSED_FILE, "从压缩包中解压游戏失败" ) MSG_HASH( MSG_FAILED_TO_GET_NICKNAME_FROM_CLIENT, "从客户端获取昵称失败。" ) MSG_HASH( MSG_FAILED_TO_LOAD, "无法加载" ) MSG_HASH( MSG_FAILED_TO_LOAD_CONTENT, "加载游戏失败" ) MSG_HASH( MSG_FAILED_TO_LOAD_MOVIE_FILE, "载入视频文件失败" ) MSG_HASH( MSG_FAILED_TO_LOAD_OVERLAY, "加载遮罩失败:" ) MSG_HASH( MSG_FAILED_TO_LOAD_STATE, "加载状态失败于" ) MSG_HASH( MSG_FAILED_TO_OPEN_LIBRETRO_CORE, "打开libretro核心失败" ) MSG_HASH( MSG_FAILED_TO_PATCH, "补丁应用失败" ) MSG_HASH( MSG_FAILED_TO_RECEIVE_HEADER_FROM_CLIENT, "接收客户端报文失败。" ) MSG_HASH( MSG_FAILED_TO_RECEIVE_NICKNAME, "接收昵称失败。" ) MSG_HASH( MSG_FAILED_TO_RECEIVE_NICKNAME_FROM_HOST, "从主机接收昵称失败。" ) MSG_HASH( MSG_FAILED_TO_RECEIVE_NICKNAME_SIZE_FROM_HOST, "从主机接收昵称大小失败。" ) MSG_HASH( MSG_FAILED_TO_RECEIVE_SRAM_DATA_FROM_HOST, "从主机接收游戏存档数据失败。" ) MSG_HASH( MSG_FAILED_TO_REMOVE_DISK_FROM_TRAY, "从托盘中移除光盘失败。" ) MSG_HASH( MSG_FAILED_TO_REMOVE_TEMPORARY_FILE, "移除临时文件失败" ) MSG_HASH( MSG_FAILED_TO_SAVE_SRAM, "保存游戏存档失败" ) MSG_HASH( MSG_FAILED_TO_LOAD_SRAM, "加载 SRAM 失败" ) MSG_HASH( MSG_FAILED_TO_SAVE_STATE_TO, "保存状态于此失败" ) MSG_HASH( MSG_FAILED_TO_SEND_NICKNAME, "发送昵称失败。" ) MSG_HASH( MSG_FAILED_TO_SEND_NICKNAME_SIZE, "发送昵称尺寸失败。" ) MSG_HASH( MSG_FAILED_TO_SEND_NICKNAME_TO_CLIENT, "发送昵称至客户端失败。" ) MSG_HASH( MSG_FAILED_TO_SEND_NICKNAME_TO_HOST, "发送昵称至宿主端失败。" ) MSG_HASH( MSG_FAILED_TO_SEND_SRAM_DATA_TO_CLIENT, "发送游戏存档数据至客户端失败。" ) MSG_HASH( MSG_FAILED_TO_START_AUDIO_DRIVER, "音频驱动启动失败,将在无音频模式下继续启动。" ) MSG_HASH( MSG_FAILED_TO_START_MOVIE_RECORD, "开始视频录制失败。" ) MSG_HASH( MSG_FAILED_TO_START_RECORDING, "开始录制失败。" ) MSG_HASH( MSG_FAILED_TO_TAKE_SCREENSHOT, "截屏失败。" ) MSG_HASH( MSG_FAILED_TO_UNDO_LOAD_STATE, "撤消加载状态失败。" ) MSG_HASH( MSG_FAILED_TO_UNDO_SAVE_STATE, "撤消保存状态失败。" ) MSG_HASH( MSG_FAILED_TO_UNMUTE_AUDIO, "取消静音失败。" ) MSG_HASH( MSG_FATAL_ERROR_RECEIVED_IN, "收到严重错误于" ) MSG_HASH( MSG_FILE_NOT_FOUND, "未找到文件" ) MSG_HASH( MSG_FOUND_AUTO_SAVESTATE_IN, "找到自动状态存储于" ) MSG_HASH( MSG_FOUND_DISK_LABEL, "找到光盘标签" ) MSG_HASH( MSG_FOUND_FIRST_DATA_TRACK_ON_FILE, "找到第一个数据轨道于文件" ) MSG_HASH( MSG_FOUND_LAST_STATE_SLOT, "已找到最后的状态卡槽" ) MSG_HASH( MSG_FOUND_SHADER, "找到着色器" ) MSG_HASH( MSG_FRAMES, "帧" ) MSG_HASH( MSG_GOT_INVALID_DISK_INDEX, "得到无效的盘号。" ) MSG_HASH( MSG_GRAB_MOUSE_STATE, "抓取鼠标状态" ) MSG_HASH( MSG_GAME_FOCUS_ON, "游戏焦点开" ) MSG_HASH( MSG_GAME_FOCUS_OFF, "游戏焦点关" ) MSG_HASH( MSG_HW_RENDERED_MUST_USE_POSTSHADED_RECORDING, "全能模拟器核心时硬件渲染的。必须也使用着色器后录制。" ) MSG_HASH( MSG_INFLATED_CHECKSUM_DID_NOT_MATCH_CRC32, "净化校验和与 CRC32 不匹配。" ) MSG_HASH( MSG_INPUT_CHEAT, "输入金手指" ) MSG_HASH( MSG_INPUT_CHEAT_FILENAME, "输入金手指文件名" ) MSG_HASH( MSG_INPUT_PRESET_FILENAME, "输入预置文件名" ) MSG_HASH( MSG_INPUT_RENAME_ENTRY, "重命名标题" ) MSG_HASH( MSG_INTERFACE, "接口" ) MSG_HASH( MSG_INTERNAL_STORAGE, "内部存储" ) MSG_HASH( MSG_REMOVABLE_STORAGE, "移动存储" ) MSG_HASH( MSG_INVALID_NICKNAME_SIZE, "无效的昵称长度。" ) MSG_HASH( MSG_IN_BYTES, "B" ) MSG_HASH( MSG_IN_MEGABYTES, "MB" ) MSG_HASH( MSG_IN_GIGABYTES, "GB" ) MSG_HASH( MSG_LIBRETRO_ABI_BREAK, "是根据不同版本的全能模拟器实现编译的。" ) MSG_HASH( MSG_LIBRETRO_FRONTEND, "为libretro而设计的前端" ) MSG_HASH( MSG_LOADED_STATE_FROM_SLOT, "加载卡槽 #%d 的状态。" ) MSG_HASH( MSG_LOADED_STATE_FROM_SLOT_AUTO, "加载卡槽 #%d (自动) 的状态。" ) MSG_HASH( MSG_LOADING, "正在加载" ) MSG_HASH( MSG_FIRMWARE, "一个或多个固件文件丢失" ) MSG_HASH( MSG_LOADING_CONTENT_FILE, "正在加载游戏文件" ) MSG_HASH( MSG_LOADING_HISTORY_FILE, "正在读取历史文件" ) MSG_HASH( MSG_LOADING_FAVORITES_FILE, "正在加载收藏文件" ) MSG_HASH( MSG_LOADING_STATE, "正在加载状态" ) MSG_HASH( MSG_MEMORY, "内存" ) MSG_HASH( MSG_MOVIE_FILE_IS_NOT_A_VALID_BSV1_FILE, "视频不是有效的BSV1文件。" ) MSG_HASH( MSG_MOVIE_FORMAT_DIFFERENT_SERIALIZER_VERSION, "视频格式看起来使用了不同的序列化版本。很有可能失败。" ) MSG_HASH( MSG_MOVIE_PLAYBACK_ENDED, "视频回放结束。" ) MSG_HASH( MSG_MOVIE_RECORD_STOPPED, "正在停止视频录制。" ) MSG_HASH( MSG_NETPLAY_FAILED, "初始化联机游戏失败。" ) MSG_HASH( MSG_NO_CONTENT_STARTING_DUMMY_CORE, "没有游戏,启动虚拟核心。" ) MSG_HASH( MSG_NO_SAVE_STATE_HAS_BEEN_OVERWRITTEN_YET, "尚未覆盖状态存储。" ) MSG_HASH( MSG_NO_STATE_HAS_BEEN_LOADED_YET, "尚未加载状态。" ) MSG_HASH( MSG_OVERRIDES_ERROR_SAVING, "保存独立配置时出错。" ) MSG_HASH( MSG_OVERRIDES_SAVED_SUCCESSFULLY, "独立配置保存成功。" ) MSG_HASH( MSG_PAUSED, "暂停。" ) MSG_HASH( MSG_PROGRAM, "全能模拟器" ) MSG_HASH( MSG_READING_FIRST_DATA_TRACK, "读取第一条数据轨..." ) MSG_HASH( MSG_RECORDING_TERMINATED_DUE_TO_RESIZE, "录制因改变大小而停止。" ) MSG_HASH( MSG_RECORDING_TO, "录制到" ) MSG_HASH( MSG_REDIRECTING_CHEATFILE_TO, "重定向金手指文件至" ) MSG_HASH( MSG_REDIRECTING_SAVEFILE_TO, "重定向游戏存档文件至" ) MSG_HASH( MSG_REDIRECTING_SAVESTATE_TO, "正在重定向状态存储至" ) MSG_HASH( MSG_REMAP_FILE_SAVED_SUCCESSFULLY, "自定义键位文件已保存。" ) MSG_HASH( MSG_REMAP_FILE_REMOVED_SUCCESSFULLY, "重映射文件已成功移除。" ) MSG_HASH( MSG_REMOVED_DISK_FROM_TRAY, "从托盘中移除光盘。" ) MSG_HASH( MSG_REMOVING_TEMPORARY_CONTENT_FILE, "移除临时游戏文件" ) MSG_HASH( MSG_RESET, "重置" ) MSG_HASH( MSG_RESTARTING_RECORDING_DUE_TO_DRIVER_REINIT, "重启录制由于驱动器重新初始化。" ) MSG_HASH( MSG_RESTORED_OLD_SAVE_STATE, "已恢复旧的状态存储。" ) MSG_HASH( MSG_RESTORING_DEFAULT_SHADER_PRESET_TO, "重置着色器预设到" ) MSG_HASH( MSG_REVERTING_SAVEFILE_DIRECTORY_TO, "还原存档文件夹到" ) MSG_HASH( MSG_REVERTING_SAVESTATE_DIRECTORY_TO, "正在还原状态存储文件夹到" ) MSG_HASH( MSG_REWINDING, "正在回溯。" ) MSG_HASH( MSG_REWIND_INIT, "初始化回溯缓冲区大小" ) MSG_HASH( MSG_REWIND_INIT_FAILED, "初始化回放缓存失败。 回放功能关闭。" ) MSG_HASH( MSG_REWIND_INIT_FAILED_THREADED_AUDIO, "实现使用了线程音频。无法使用回溯。" ) MSG_HASH( MSG_REWIND_REACHED_END, "到达回溯缓存末端。" ) MSG_HASH( MSG_SAVED_NEW_CONFIG_TO, "已保存新配置到" ) MSG_HASH( MSG_SAVED_STATE_TO_SLOT, "已保存状态到卡槽 #%d。" ) MSG_HASH( MSG_SAVED_STATE_TO_SLOT_AUTO, "已保存状态到卡槽 #%d (自动)。" ) MSG_HASH( MSG_SAVED_SUCCESSFULLY_TO, "成功保存至" ) MSG_HASH( MSG_SAVING_RAM_TYPE, "保存 RAM 类型" ) MSG_HASH( MSG_SAVING_STATE, "正在保存状态" ) MSG_HASH( MSG_SCANNING, "扫描中" ) MSG_HASH( MSG_SCANNING_OF_DIRECTORY_FINISHED, "已完成对文件夹的扫描" ) MSG_HASH( MSG_SENDING_COMMAND, "发送指令" ) MSG_HASH( MSG_SEVERAL_PATCHES_ARE_EXPLICITLY_DEFINED, "几个补丁被明确定义,正在忽略全部..." ) MSG_HASH( MSG_SHADER, "着色器" ) MSG_HASH( MSG_SHADER_PRESET_SAVED_SUCCESSFULLY, "预设着色器已加载。" ) MSG_HASH( MSG_SKIPPING_SRAM_LOAD, "跳过游戏存档加载。" ) MSG_HASH( MSG_SLOW_MOTION, "慢动作。" ) MSG_HASH( MSG_FAST_FORWARD, "快进。" ) MSG_HASH( MSG_SLOW_MOTION_REWIND, "慢动作回溯。" ) MSG_HASH( MSG_SRAM_WILL_NOT_BE_SAVED, "游戏存档不会被保存。" ) MSG_HASH( MSG_STARTING_MOVIE_PLAYBACK, "开始回放视频。" ) MSG_HASH( MSG_STARTING_MOVIE_RECORD_TO, "正在启动视频录制到" ) MSG_HASH( MSG_STATE_SIZE, "状态大小" ) MSG_HASH( MSG_STATE_SLOT, "状态卡槽" ) MSG_HASH( MSG_TAKING_SCREENSHOT, "截屏。" ) MSG_HASH( MSG_SCREENSHOT_SAVED, "截屏已保存" ) MSG_HASH( MSG_ACHIEVEMENT_UNLOCKED, "成就已解锁" ) MSG_HASH( MSG_CHANGE_THUMBNAIL_TYPE, "更改缩略图类型" ) MSG_HASH( MSG_TOGGLE_FULLSCREEN_THUMBNAILS, "全屏缩略图" ) MSG_HASH( MSG_TOGGLE_CONTENT_METADATA, "切换元数据" ) MSG_HASH( MSG_NO_THUMBNAIL_AVAILABLE, "无可用缩略图" ) MSG_HASH( MSG_PRESS_AGAIN_TO_QUIT, "再按一次退出..." ) MSG_HASH( MSG_TO, "到" ) MSG_HASH( MSG_UNDID_LOAD_STATE, "已撤销状态加载。" ) MSG_HASH( MSG_UNDOING_SAVE_STATE, "正在撤销保存状态" ) MSG_HASH( MSG_UNKNOWN, "未知" ) MSG_HASH( MSG_UNPAUSED, "取消暂停。" ) MSG_HASH( MSG_UNRECOGNIZED_COMMAND, "收到无法识别的命令 \"%s\"。\n" ) MSG_HASH( MSG_USING_CORE_NAME_FOR_NEW_CONFIG, "使用核心名称作为新配置。" ) MSG_HASH( MSG_USING_LIBRETRO_DUMMY_CORE_RECORDING_SKIPPED, "正在使用 libretro 虚设核心。跳过录制。" ) MSG_HASH( MSG_VALUE_CONNECT_DEVICE_FROM_A_VALID_PORT, "从有效端口连接设备。" ) MSG_HASH( MSG_VALUE_DISCONNECTING_DEVICE_FROM_PORT, "从端口断开设备" ) MSG_HASH( MSG_VALUE_REBOOTING, "正在重启..." ) MSG_HASH( MSG_VALUE_SHUTTING_DOWN, "正在关机……" ) MSG_HASH( MSG_VERSION_OF_LIBRETRO_API, "libretro API 版本" ) MSG_HASH( MSG_VIEWPORT_SIZE_CALCULATION_FAILED, "可视区域尺寸计算失败!将继续使用原始数据,这很可能不会正常工作。" ) MSG_HASH( MSG_VIRTUAL_DISK_TRAY_EJECT, "弹出虚拟光驱失败。" ) MSG_HASH( MSG_VIRTUAL_DISK_TRAY_CLOSE, "收回虚拟光驱托盘失败。" ) MSG_HASH( MSG_AUTOLOADING_SAVESTATE_FAILED, "从 \"%s\" 自动加载状态存档失败。" ) MSG_HASH( MSG_AUTOLOADING_SAVESTATE_SUCCEEDED, "从 “%s” 自动加载状态存档成功。" ) MSG_HASH( MSG_DEVICE_NOT_CONFIGURED, "未配置" ) MSG_HASH( MSG_DEVICE_NOT_CONFIGURED_FALLBACK, "用户未设置,使用备用设置。" ) MSG_HASH( MSG_BLUETOOTH_SCAN_COMPLETE, "蓝牙扫描完成。" ) MSG_HASH( MSG_BLUETOOTH_PAIRING_REMOVED, "配对已删除。重新启动重启以重新连接/配对。" ) MSG_HASH( MSG_WIFI_SCAN_COMPLETE, "Wi-Fi 扫描完成。" ) MSG_HASH( MSG_SCANNING_BLUETOOTH_DEVICES, "正在扫描蓝牙设备..." ) MSG_HASH( MSG_SCANNING_WIRELESS_NETWORKS, "扫描无线网络..." ) MSG_HASH( MSG_ENABLING_WIRELESS, "正在启用 Wi-Fi..." ) MSG_HASH( MSG_DISABLING_WIRELESS, "正在禁用 Wi-Fi..." ) MSG_HASH( MSG_DISCONNECTING_WIRELESS, "正在断开 Wi-Fi..." ) MSG_HASH( MSG_NETPLAY_LAN_SCANNING, "扫描联机游戏主机..." ) MSG_HASH( MSG_PREPARING_FOR_CONTENT_SCAN, "准备扫描游戏…" ) MSG_HASH( MSG_INPUT_ENABLE_SETTINGS_PASSWORD, "输入密码" ) MSG_HASH( MSG_INPUT_ENABLE_SETTINGS_PASSWORD_OK, "密码正确。" ) MSG_HASH( MSG_INPUT_ENABLE_SETTINGS_PASSWORD_NOK, "密码不正确。" ) MSG_HASH( MSG_INPUT_KIOSK_MODE_PASSWORD, "请输入密码" ) MSG_HASH( MSG_INPUT_KIOSK_MODE_PASSWORD_OK, "密码正确。" ) MSG_HASH( MSG_INPUT_KIOSK_MODE_PASSWORD_NOK, "密码错误。" ) MSG_HASH( MSG_CONFIG_OVERRIDE_LOADED, "配置覆盖已加载。" ) MSG_HASH( MSG_GAME_REMAP_FILE_LOADED, "游戏重映射文件已加载。" ) MSG_HASH( MSG_DIRECTORY_REMAP_FILE_LOADED, "游戏文件夹重映射文件已加载。" ) MSG_HASH( MSG_CORE_REMAP_FILE_LOADED, "核心重映射文件已加载。" ) MSG_HASH( MSG_RUNAHEAD_ENABLED, "已启用超前运行。已移除延迟帧数:%u。" ) MSG_HASH( MSG_RUNAHEAD_ENABLED_WITH_SECOND_INSTANCE, "次要实例启用超前运行。已移除延迟帧:%u。" ) MSG_HASH( MSG_RUNAHEAD_DISABLED, "超前运行已禁用。" ) MSG_HASH( MSG_RUNAHEAD_CORE_DOES_NOT_SUPPORT_SAVESTATES, "超前运行已禁用,因为这个核心不支持状态存储。" ) MSG_HASH( MSG_SCANNING_OF_FILE_FINISHED, "文件扫描完成" ) MSG_HASH( MSG_CHEAT_INIT_SUCCESS, "启动金手指搜索成功" ) MSG_HASH( MSG_CHEAT_INIT_FAIL, "启动金手指搜索失败" ) MSG_HASH( MSG_CHEAT_SEARCH_NOT_INITIALIZED, "搜索尚未初始化/启动" ) MSG_HASH( MSG_CHEAT_SEARCH_FOUND_MATCHES, "新的匹配数量 = %u" ) MSG_HASH( MSG_CHEAT_SEARCH_ADDED_MATCHES_SUCCESS, "已添加 %u 个匹配" ) MSG_HASH( MSG_CHEAT_SEARCH_ADDED_MATCHES_FAIL, "添加匹配失败" ) MSG_HASH( MSG_CHEAT_SEARCH_ADD_MATCH_SUCCESS, "已从匹配创建代码" ) MSG_HASH( MSG_CHEAT_SEARCH_ADD_MATCH_FAIL, "创建代码失败" ) MSG_HASH( MSG_CHEAT_SEARCH_DELETE_MATCH_SUCCESS, "已删除匹配" ) MSG_HASH( MSG_CHEAT_SEARCH_ADDED_MATCHES_TOO_MANY, "没有足够的空间。最多能同时使用 100 个金手指。" ) MSG_HASH( MSG_CHEAT_ADD_TOP_SUCCESS, "新的金手指已添加到列表顶部。" ) MSG_HASH( MSG_CHEAT_ADD_BOTTOM_SUCCESS, "新的金手指已添加到列表底部。" ) MSG_HASH( MSG_CHEAT_DELETE_ALL_SUCCESS, "所有金手指已删除。" ) MSG_HASH( MSG_CHEAT_ADD_BEFORE_SUCCESS, "在此金手指之前添加了新的金手指。" ) MSG_HASH( MSG_CHEAT_ADD_AFTER_SUCCESS, "在此金手指之后添加了新的金手指。" ) MSG_HASH( MSG_CHEAT_COPY_BEFORE_SUCCESS, "在此金手指之前复制。" ) MSG_HASH( MSG_CHEAT_COPY_AFTER_SUCCESS, "在此金手指之后复制。" ) MSG_HASH( MSG_CHEAT_DELETE_SUCCESS, "金手指已删除。" ) MSG_HASH( MSG_DEVICE_CONFIGURED_IN_PORT, "配置于端口:" ) MSG_HASH( MSG_FAILED_TO_SET_DISK, "放置光盘失败" ) MSG_HASH( MSG_FAILED_TO_SET_INITIAL_DISK, "无法放置上次使用的光盘..." ) MSG_HASH( MSG_FAILED_TO_CONNECT_TO_CLIENT, "无法连接到客户端" ) MSG_HASH( MSG_FAILED_TO_CONNECT_TO_HOST, "无法连接到主机" ) MSG_HASH( MSG_NETPLAY_HOST_FULL, "联网主机已满" ) MSG_HASH( MSG_FAILED_TO_RECEIVE_HEADER_FROM_HOST, "接收主机端报文失败" ) MSG_HASH( MSG_CHEEVOS_HARDCORE_MODE_DISABLED, "已加载状态存储。成就硬核模式在当前游戏中已经禁用。" ) MSG_HASH( MSG_CHEEVOS_HARDCORE_MODE_DISABLED_CHEAT, "金手指已激活。成就硬核模式在当前游戏中已经禁用。" ) MSG_HASH( MSG_RESAMPLER_QUALITY_LOWEST, "最低" ) MSG_HASH( MSG_RESAMPLER_QUALITY_LOWER, "较低" ) MSG_HASH( MSG_RESAMPLER_QUALITY_NORMAL, "一般" ) MSG_HASH( MSG_RESAMPLER_QUALITY_HIGHER, "较高" ) MSG_HASH( MSG_RESAMPLER_QUALITY_HIGHEST, "最高" ) MSG_HASH( MSG_MISSING_ASSETS, "警告:素材缺失,请使用在线更新" ) MSG_HASH( MSG_RGUI_MISSING_FONTS, "警告:语言所需的字体缺失,请使用在线更新" ) MSG_HASH( MSG_RGUI_INVALID_LANGUAGE, "警告:不支持的语言 - 使用英语" ) MSG_HASH( MSG_DUMPING_DISC, "正在吐出光盘..." ) MSG_HASH( MSG_DRIVE_NUMBER, "驱动器 %d" ) MSG_HASH( MSG_LOAD_CORE_FIRST, "请先加载核心。" ) MSG_HASH( MSG_DISC_DUMP_FAILED_TO_READ_FROM_DRIVE, "读取光驱失败。光盘转储中止。" ) MSG_HASH( MSG_DISC_DUMP_FAILED_TO_WRITE_TO_DISK, "写入磁盘失败。光盘转储中止。" ) MSG_HASH( MSG_NO_DISC_INSERTED, "光驱中没有光盘。" ) MSG_HASH( MSG_SHADER_PRESET_REMOVED_SUCCESSFULLY, "着色器预设已被成功移除。" ) MSG_HASH( MSG_ERROR_REMOVING_SHADER_PRESET, "移除着色器预设出错。" ) MSG_HASH( MSG_MANUAL_CONTENT_SCAN_DAT_FILE_INVALID, "选择的街机 DAT 文件无效" ) MSG_HASH( MSG_MANUAL_CONTENT_SCAN_DAT_FILE_TOO_LARGE, "选择的街机 DAT 文件太大 (没有足够内存)" ) MSG_HASH( MSG_MANUAL_CONTENT_SCAN_DAT_FILE_LOAD_ERROR, "加载街机 DAT 文件失败 (无效格式?)" ) MSG_HASH( MSG_MANUAL_CONTENT_SCAN_INVALID_CONFIG, "手动扫描配置无效" ) MSG_HASH( MSG_MANUAL_CONTENT_SCAN_INVALID_CONTENT, "未检测到有效游戏" ) MSG_HASH( MSG_MANUAL_CONTENT_SCAN_START, "正在扫描游戏:" ) MSG_HASH( MSG_MANUAL_CONTENT_SCAN_PLAYLIST_CLEANUP, "正在检查当前条目: " ) MSG_HASH( MSG_MANUAL_CONTENT_SCAN_IN_PROGRESS, "逐行扫描: " ) MSG_HASH( MSG_MANUAL_CONTENT_SCAN_M3U_CLEANUP, "正在清理 M3U 条目:" ) MSG_HASH( MSG_MANUAL_CONTENT_SCAN_END, "扫描完成:" ) MSG_HASH( MSG_CORE_BACKUP_SCANNING_CORE, "正在扫描核心:" ) MSG_HASH( MSG_CORE_BACKUP_ALREADY_EXISTS, "当前安装核心的备份已存在:" ) MSG_HASH( MSG_BACKING_UP_CORE, "正在备份核心:" ) MSG_HASH( MSG_PRUNING_CORE_BACKUP_HISTORY, "删除过时的备份:" ) MSG_HASH( MSG_CORE_BACKUP_COMPLETE, "核心备份完成:" ) MSG_HASH( MSG_CORE_RESTORATION_ALREADY_INSTALLED, "选中的核心备份已安装过了:" ) MSG_HASH( MSG_RESTORING_CORE, "正在还原核心:" ) MSG_HASH( MSG_CORE_RESTORATION_COMPLETE, "核心还原完毕:" ) MSG_HASH( MSG_CORE_INSTALLATION_ALREADY_INSTALLED, "选中的核心文件已安装过了:" ) MSG_HASH( MSG_INSTALLING_CORE, "正在安装核心:" ) MSG_HASH( MSG_CORE_INSTALLATION_COMPLETE, "核心安装完毕:" ) MSG_HASH( MSG_CORE_RESTORATION_INVALID_CONTENT, "选中的核心文件无效:" ) MSG_HASH( MSG_CORE_BACKUP_FAILED, "核心备份失败:" ) MSG_HASH( MSG_CORE_RESTORATION_FAILED, "核心还原失败:" ) MSG_HASH( MSG_CORE_INSTALLATION_FAILED, "核心安装失败:" ) MSG_HASH( MSG_CORE_RESTORATION_DISABLED, "核心还原禁用——核心已被锁定:" ) MSG_HASH( MSG_CORE_INSTALLATION_DISABLED, "核心安装禁用——核心已被锁定:" ) MSG_HASH( MSG_CORE_LOCK_FAILED, "锁定核心失败:" ) MSG_HASH( MSG_CORE_UNLOCK_FAILED, "解锁核心失败:" ) MSG_HASH( MSG_CORE_DELETE_DISABLED, "核心删除禁用——核心已被锁定:" ) MSG_HASH( MSG_UNSUPPORTED_VIDEO_MODE, "不支持的视频模式" ) MSG_HASH( MSG_CORE_INFO_CACHE_UNSUPPORTED, "无法写入核心信息所在目录 - 核心信息缓存将被禁用" ) /* Lakka */ MSG_HASH( MENU_ENUM_LABEL_VALUE_UPDATE_LAKKA, "更新 Lakka" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FRONTEND_NAME, "前端名称" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LAKKA_VERSION, "Lakka 版本" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REBOOT, "重启" ) /* Environment Specific Settings */ MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_SPLIT_JOYCON, "分开 Joy-Con 手柄" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_WIDGET_SCALE_FACTOR, "图形部件缩放倍数" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_WIDGET_SCALE_FACTOR, "绘制显示部件时应用手动缩放倍数覆盖。仅在「自动缩放图形部件」选项关闭时应用。可以独立于菜单缩放通知,指示和控制部件。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SCREEN_RESOLUTION, "屏幕分辨率" ) MSG_HASH( MSG_SCREEN_RESOLUTION_DEFAULT, "屏幕分辨率:默认" ) MSG_HASH( MSG_SCREEN_RESOLUTION_NO_DESC, "屏幕分辨率: %dx%d" ) MSG_HASH( MSG_SCREEN_RESOLUTION_DESC, "屏幕分辨率: %dx%d - %s" ) MSG_HASH( MSG_SCREEN_RESOLUTION_APPLYING_DEFAULT, "应用:默认" ) MSG_HASH( MSG_SCREEN_RESOLUTION_APPLYING_NO_DESC, "应用: %dx%d\n开始重置" ) MSG_HASH( MSG_SCREEN_RESOLUTION_RESETTING_DEFAULT, "重置为:默认" ) MSG_HASH( MSG_SCREEN_RESOLUTION_RESETTING_NO_DESC, "重置到: %dx%d" ) MSG_HASH( MSG_SCREEN_RESOLUTION_RESETTING_DESC, "重置到: %dx%d - %s" ) MSG_HASH( MENU_ENUM_SUBLABEL_SCREEN_RESOLUTION, "选择显示模式。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SHUTDOWN, "关机" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FILE_BROWSER_OPEN_UWP_PERMISSIONS, "启用外部文件访问" ) MSG_HASH( MENU_ENUM_SUBLABEL_FILE_BROWSER_OPEN_UWP_PERMISSIONS, "打开 Windows 文件访问权限设置" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_FILE_BROWSER_OPEN_PICKER, "打开..." ) MSG_HASH( MENU_ENUM_SUBLABEL_FILE_BROWSER_OPEN_PICKER, "使用系统文件选择器打开另一个文件夹" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_FILTER_FLICKER, "闪烁过滤器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_GAMMA, "视频 Gamma" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_SOFT_FILTER, "启用软件过滤器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BLUETOOTH_SETTINGS, "蓝牙" ) MSG_HASH( MENU_ENUM_SUBLABEL_BLUETOOTH_SETTINGS, "扫描蓝牙设备并连接它们。" ) MSG_HASH( MENU_ENUM_SUBLABEL_WIFI_SETTINGS, "扫描无线网络并且建立连接。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_WIFI_ENABLED, "启用 Wi-Fi" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_WIFI_NETWORK_SCAN, "连接到网络" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_WIFI_NETWORKS, "连接到网络" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_WIFI_DISCONNECT, "断开" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_VFILTER, "降低闪烁" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_VI_WIDTH, "设置 VI 屏幕宽度" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_OVERSCAN_CORRECTION_TOP, "过扫描矫正 (顶部)" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_OVERSCAN_CORRECTION_TOP, "调整显示过扫描裁减,减少图像大小指定扫描行数 (从屏幕顶部起)。可能会导致缩放瑕疵。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_OVERSCAN_CORRECTION_BOTTOM, "过扫描矫正 (底部)" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_OVERSCAN_CORRECTION_BOTTOM, "调整显示过扫描裁减,减少图像大小指定扫描行数 (从屏幕底部起)。可能会导致缩放瑕疵。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SUSTAINED_PERFORMANCE_MODE, "保持性能模式" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_PERFPOWER, "CPU 性能及功耗" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_POLICY_ENTRY, "策略" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_PERF_MODE, "调频模式" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_PERF_MODE_MANUAL, "手动" ) MSG_HASH( MENU_ENUM_SUBLABEL_VALUE_CPU_PERF_MODE_MANUAL, "允许手动调校 CPU 细节:调频器、频率等。仅推荐高阶用户使用。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_PERF_MODE_MANAGED_PERF, "高性能 (受管)" ) MSG_HASH( MENU_ENUM_SUBLABEL_VALUE_CPU_PERF_MODE_MANAGED_PERF, "默认推荐的模式。游玩时为最高性能,暂停或浏览菜单时将自动节能。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_PERF_MODE_MANAGED_PER_CONTEXT, "自定义受管" ) MSG_HASH( MENU_ENUM_SUBLABEL_VALUE_CPU_PERF_MODE_MANAGED_PER_CONTEXT, "菜单和游戏支持在指定模式下运行。如果是在游戏中,建议使用Performance、Ondemand 或 Schedutil。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_PERF_MODE_MAX_PERF, "最高性能" ) MSG_HASH( MENU_ENUM_SUBLABEL_VALUE_CPU_PERF_MODE_MAX_PERF, "总是最高性能:高频率,优体验。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_PERF_MODE_MIN_POWER, "最低功耗" ) MSG_HASH( MENU_ENUM_SUBLABEL_VALUE_CPU_PERF_MODE_MIN_POWER, "使用最低频率以进行节能。此选项适合电池供电的设备使用,但将极大降低性能。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_PERF_MODE_BALANCED, "平衡" ) MSG_HASH( MENU_ENUM_SUBLABEL_VALUE_CPU_PERF_MODE_BALANCED, "根据当前负载进行自动调节,此选项兼容大多数设备及模拟器,且有助节能。部分设备上,对性能要求较高的游戏及核心可能会降低性能。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_POLICY_MIN_FREQ, "最低频率" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_POLICY_MAX_FREQ, "最高频率" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_MANAGED_MIN_FREQ, "最低核心频率" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_MANAGED_MAX_FREQ, "最高核心频率" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_POLICY_GOVERNOR, "CPU 调频器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_POLICY_CORE_GOVERNOR, "核心调频器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CPU_POLICY_MENU_GOVERNOR, "菜单调频器" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_PAL60_ENABLE, "使用 PAL60 模式" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_META_RESTART_KEY, "重启程序" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_META_RESTART_KEY, "退出然后重启全能模拟器。激活某些菜单设置后需要重启 (例如更改菜单驱动)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_AUDIO_BLOCK_FRAMES, "块帧" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_PREFER_FRONT_TOUCH, "优先前置触摸" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_TOUCH_ENABLE, "触摸" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_ICADE_ENABLE, "键盘手柄映射" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_KEYBOARD_GAMEPAD_MAPPING_TYPE, "键盘手柄映射类型" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_SMALL_KEYBOARD_ENABLE, "小键盘" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_BLOCK_TIMEOUT, "输入屏蔽超时" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_BLOCK_TIMEOUT, "获取完整输入取样要等待的毫秒数。如果您在同时按下多个按键时遇到问题,请使用这个选项 (仅 Android 有效)。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_REBOOT, "显示「重启」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_REBOOT, "显示「重启」选项。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MENU_SHOW_SHUTDOWN, "显示「关机」" ) MSG_HASH( MENU_ENUM_SUBLABEL_MENU_SHOW_SHUTDOWN, "显示「关机」选项。" ) MSG_HASH( MSG_INTERNET, "互联网" ) MSG_HASH( MSG_INTERNET_RELAY, "互联网 (中继)" ) MSG_HASH( MSG_LOCAL, "本地" ) MSG_HASH( MSG_READ_WRITE, "内部存储状态: 读/写" ) MSG_HASH( MSG_READ_ONLY, "内部存储状态:只读" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_BRIGHTNESS_CONTROL, "屏幕亮度" ) MSG_HASH( MENU_ENUM_SUBLABEL_BRIGHTNESS_CONTROL, "提高或降低屏幕亮度。" ) #ifdef HAVE_LAKKA_SWITCH MSG_HASH( MENU_ENUM_LABEL_VALUE_SWITCH_GPU_PROFILE, "GPU 超频" ) MSG_HASH( MENU_ENUM_SUBLABEL_SWITCH_GPU_PROFILE, "超频或降频 Switch 的 GPU。" ) #endif #if defined(HAVE_LAKKA_SWITCH) || defined(HAVE_LIBNX) MSG_HASH( MENU_ENUM_LABEL_VALUE_SWITCH_CPU_PROFILE, "CPU 超频" ) MSG_HASH( MENU_ENUM_SUBLABEL_SWITCH_CPU_PROFILE, "超频 Switch 的 CPU。" ) #endif #ifdef HAVE_LAKKA MSG_HASH( MENU_ENUM_LABEL_VALUE_BLUETOOTH_ENABLE, "蓝牙" ) MSG_HASH( MENU_ENUM_SUBLABEL_BLUETOOTH_ENABLE, "开启或关闭蓝牙。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LAKKA_SERVICES, "服务" ) MSG_HASH( MENU_ENUM_SUBLABEL_SERVICES_SETTINGS, "管理操作系统层级的服务。" ) MSG_HASH( MENU_ENUM_SUBLABEL_SAMBA_ENABLE, "启用或者禁止网络文件夹共享(SAMBA)。" ) MSG_HASH( MENU_ENUM_SUBLABEL_SSH_ENABLE, "使用 SSH 远程访问命令行。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_LOCALAP_ENABLE, "Wi-Fi 接入点" ) MSG_HASH( MENU_ENUM_SUBLABEL_LOCALAP_ENABLE, "启用或禁用 Wi-Fi 接入点。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_TIMEZONE, "时区" ) MSG_HASH( MENU_ENUM_SUBLABEL_TIMEZONE, "选择您的时区以调整日期和时间。" ) MSG_HASH( MSG_LOCALAP_SWITCHING_OFF, "正在关闭 Wi-Fi 接入点。" ) MSG_HASH( MSG_WIFI_DISCONNECT_FROM, "正在断开 Wi-Fi “%s”。" ) MSG_HASH( MSG_WIFI_CONNECTING_TO, "正在连接 Wi-Fi %s" ) MSG_HASH( MSG_WIFI_EMPTY_SSID, "[无 SSID]" ) MSG_HASH( MSG_LOCALAP_ALREADY_RUNNING, "Wi-Fi 接入点已经启动" ) MSG_HASH( MSG_LOCALAP_NOT_RUNNING, "Wi-Fi 接入点没有运行" ) MSG_HASH( MSG_LOCALAP_STARTING, "启动 Wi-Fi 接入点,SSID=%s,Passkey=%s" ) MSG_HASH( MSG_LOCALAP_ERROR_CONFIG_CREATE, "无法创建 Wi-Fi 接入点配置文件。" ) MSG_HASH( MSG_LOCALAP_ERROR_CONFIG_PARSE, "错误配置文件——在 %s 中找不到 APNAME 或 PASSWORD" ) #endif #ifdef GEKKO MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_SCALE, "鼠标缩放" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_MOUSE_SCALE, "调整 Wii 遥控器光枪速度的 x/y 轴缩放。" ) #endif MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_TOUCH_SCALE, "触屏缩放" ) MSG_HASH( MENU_ENUM_SUBLABEL_INPUT_TOUCH_SCALE, "调整触摸屏坐标的 x/y 尺寸以适应操作系统的显示缩放。" ) #ifdef HAVE_ODROIDGO2 MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_RGA_SCALING, "RGA 缩放" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_RGA_SCALING, "RGA 缩放和双曲过滤。可能会破坏图形部件。" ) #else MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_CTX_SCALING, "场景特定缩放" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_CTX_SCALING, "硬件场景缩放 (如果可用)。" ) #endif #if defined(_3DS) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_3DS_LCD_BOTTOM, "3DS底部屏幕" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_3DS_LCD_BOTTOM, "启用屏幕底部的状态信息显示。禁用可以提升电池续航和性能。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_3DS_DISPLAY_MODE, "3DS 显示模式" ) MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_3DS_DISPLAY_MODE, "选择 3D 或 2D 显示模式。在 3D 模式下,快捷菜单的像素是方形的且有深度效果。而 2D 模式的性能最好。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CTR_VIDEO_MODE_2D_400X240, "2D (像素效果)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CTR_VIDEO_MODE_2D_800X240, "2D (高分辨率)" ) MSG_HASH( MSG_3DS_BOTTOM_MENU_DEFAULT, "点击触摸屏幕去\n到主菜单" ) MSG_HASH( MSG_3DS_BOTTOM_MENU_ASSET_NOT_FOUND, "在 assets/ctr 文件夹中未找到\nbottom_menu.png" ) MSG_HASH( MSG_3DS_BOTTOM_MENU_NO_STATE_DATA, "没有\n数据" ) MSG_HASH( MSG_3DS_BOTTOM_MENU_NO_STATE_THUMBNAIL, "没有\n截图" ) MSG_HASH( MSG_3DS_BOTTOM_MENU_RESUME, "继续游戏" ) MSG_HASH( MSG_3DS_BOTTOM_MENU_SAVE_STATE, "创建\n还原点" ) MSG_HASH( MSG_3DS_BOTTOM_MENU_LOAD_STATE, "加载\n还原点" ) #endif #ifdef HAVE_QT MSG_HASH( MENU_ENUM_LABEL_VALUE_QT_SCAN_FINISHED, "扫描完成。<br><br>\n为了是游戏被正确扫描,您必须:\n<ul><li>已下载了兼容的核心</li>\n<li>已更新了「核心信息文件」</li>\n<li>已更新了「Databases」</li>\n<li>更新后重启全能模拟器</li></ul>\n最后,游戏 ROM 必须匹配<a href=\"https://docs.libretro.com/guides/roms-playlists-thumbnails/#sources\">数据库</a>。如果仍然不行,<a href=\"https://www.github.com/libretro/RetroArch/issues\">请报告 BUG</a>。" ) #endif
19.50152
318
0.749432
23257cab912aa45220336d85d35e6690295f8c47
495
h
C
Telegram-2.8/Telegraph/Telegraph/TGUserInfoPhoneCollectionItemView.h
DZamataev/TelegramAppKit
479db564f5c202e8af848dac39ec7f6fdd928dff
[ "MIT" ]
3
2018-08-28T12:37:54.000Z
2021-11-19T03:23:26.000Z
Telegram-2.8/Telegraph/Telegraph/TGUserInfoPhoneCollectionItemView.h
DZamataev/TelegramAppKit
479db564f5c202e8af848dac39ec7f6fdd928dff
[ "MIT" ]
null
null
null
Telegram-2.8/Telegraph/Telegraph/TGUserInfoPhoneCollectionItemView.h
DZamataev/TelegramAppKit
479db564f5c202e8af848dac39ec7f6fdd928dff
[ "MIT" ]
4
2020-02-24T15:32:39.000Z
2021-11-19T03:23:20.000Z
/* * This is the source code of Telegram for iOS v. 1.1 * It is licensed under GNU GPL v. 2 or later. * You should have received a copy of the license in this archive (see LICENSE). * * Copyright Peter Iakovlev, 2013. */ #import "TGCollectionItemView.h" @interface TGUserInfoPhoneCollectionItemView : TGCollectionItemView - (void)setLabel:(NSString *)label; - (void)setPhone:(NSString *)phone; - (void)setPhoneColor:(UIColor *)phoneColor; - (void)setLastInList:(bool)lastInList; @end
24.75
80
0.735354
2325b107fbe42ee4b5d312a5591b324518412f51
4,556
h
C
gvb/gvb.h
arucil/gvbasic-simulator4cpp
be138cf8fcb11050c915349a258c6c465052ee60
[ "MIT" ]
29
2017-06-02T06:38:56.000Z
2022-03-02T13:28:02.000Z
gvb/gvb.h
arucil/gvbasic-simulator4cpp
be138cf8fcb11050c915349a258c6c465052ee60
[ "MIT" ]
1
2019-11-11T19:42:39.000Z
2019-11-17T23:46:32.000Z
gvb/gvb.h
arucil/gvbasic-simulator4cpp
be138cf8fcb11050c915349a258c6c465052ee60
[ "MIT" ]
5
2018-04-26T20:37:35.000Z
2020-03-07T05:18:33.000Z
#ifndef GVBASIC_GVB_H #define GVBASIC_GVB_H #include <vector> #include <unordered_map> #include <cstdio> #include <ctime> #include "node_man.h" #include "data_man.h" #include "random.h" #include "value.h" #include "file.h" #include "device.h" namespace gvbsim { class Stmt; class Dim; class Assign; class While; class DefFn; class Expr; class Id; class For; class Next; class ArrayAccess; class FuncCall; class Binary; class UserCall; class While; class If; class On; class Print; class Locate; class Poke; class Call; class Swap; class LRSet; class Read; class Open; class Write; class Input; class FInput; class Field; class GetPut; class Draw; class Line; class Box; class Circle; class Ellipse; class XPaint; class GVB { friend class Compiler; struct Loop { int line, label; union { Stmt *stmt; struct { For *stmt; double dest, step; } _for; }; public: Loop(Stmt *stmt) : stmt(stmt) { } }; struct Sub { int line, label; Stmt *stmt; // gosub的下一条语句 Sub(int line, int label, Stmt *stmt) : line(line), label(label), stmt(stmt) { } }; // random文的记录 struct Record { int len; // open语句定义的LEN int total; // field语句定义的len,可能小于上面的len std::vector<std::pair<int, std::string>> fields; }; public: // 单个值 struct Single { union { int ival; double rval; }; std::string sval; public: Single() = default; // 换成 {} 不行? Single(int ival) : ival(ival) { } Single(double rval) : rval(rval) { } Single(const std::string &s) : sval(s) { } Single(const char *s) : sval(s) { } }; // 数组 struct Array { std::vector<unsigned> bounds; std::vector<Single> vals; }; public: typedef int Quit; private: Device m_device; Stmt *m_head; Stmt *m_current; std::vector<Single> m_stack; Single m_top; std::vector<Sub> m_subs; std::vector<Loop> m_loops; std::unordered_map<std::string, DefFn *> m_funcs; // 用户定义函数 std::unordered_map<std::string, Single> m_envVar; std::unordered_map<std::string, Array> m_envArray; Random m_rand; NodeManager m_nodeMan; DataManager m_dataMan; File m_files[3]; Record m_records[3]; int m_line, m_label; public: GVB(); ~GVB(); void build(std::FILE *fp); bool isBuilt() const { return static_cast<bool>(m_head); } void execute(uint32_t seed = static_cast<uint32_t>(std::time(nullptr))); // 返回是否重置成功 bool reset(uint32_t seed = static_cast<uint32_t>(std::time(nullptr))); bool step(); // 返回是否可以继续执行 Device &device() { return m_device; } decltype(m_envVar) &getVars() { return m_envVar; } decltype(m_envArray) &getArrays() { return m_envArray; } private: void clearEnv(); void clearStack(); void clearFiles(); void traverse(); void exe_dim(Dim *); void exe_assign(Assign *); void exe_for(For *); Stmt *exe_next(Next *); Stmt *exe_while(While *); Stmt *exe_wend(); void exe_print(Print *); Stmt *exe_if(If *); Stmt *exe_on(On *); void exe_locate(Locate *); void exe_poke(Poke *); void exe_call(Call *); void exe_swap(Swap *); void exe_read(Read *); void exe_lrset(LRSet *); void exe_open(Open *); void exe_write(Write *); void exe_finput(FInput *); void exe_input(Input *); void exe_field(Field *); void exe_put(GetPut *); void exe_get(GetPut *); void exe_draw(Draw *); void exe_line(Line *); void exe_box(Box *); void exe_circle(Circle *); void exe_ellipse(Ellipse *); void exe_paint(XPaint *); void eval(Expr *); void evalPop(Expr *); void eval_func(FuncCall *); void eval_binary(Binary *); void eval_usercall(UserCall *); Single &getValue(Id *); void checkIntRange(double r, const char *); uint8_t getCoord(Expr *, const char *, const char *); Device::DrawMode getDrawMode(Expr *); bool getFillType(Expr *); private: static void error(int line, int label, const char *s, ...); static std::string &removeAllOf(std::string &, const char *, size_t); static bool isZero(double r); static bool greater(double, double); static bool less(double, double); static bool greaterEqual(double, double); static bool lessEqual(double, double); static bool notEqual(double, double); static bool equal(double, double); static bool inRangeCO(double, double, double); public: static double str2d(const std::string &); // 不识别inf和nan }; } #endif //GVBASIC_GVB_H
20.899083
75
0.63806
23280a44eaeb6355d280ee59bf7ab00e2959ab2f
7,127
h
C
Plugins/Bugsnag/Source/Bugsnag/Private/Android/JavaObjectWrapper.h
bugsnag/bugsnag-unreal
6847b3d6af7461fa3b12379878baeba473956576
[ "MIT" ]
2
2022-01-10T08:30:38.000Z
2022-02-22T09:01:58.000Z
Plugins/Bugsnag/Source/Bugsnag/Private/Android/JavaObjectWrapper.h
bugsnag/bugsnag-unreal
6847b3d6af7461fa3b12379878baeba473956576
[ "MIT" ]
3
2022-01-26T17:04:57.000Z
2022-02-25T11:37:22.000Z
Plugins/Bugsnag/Source/Bugsnag/Private/Android/JavaObjectWrapper.h
bugsnag/bugsnag-unreal
6847b3d6af7461fa3b12379878baeba473956576
[ "MIT" ]
null
null
null
// Copyright 2021 Bugsnag. All Rights Reserved. #pragma once #include "JNIUtilities.h" #include "Shorthand.h" #include "Templates/SharedPointer.h" #include <jni.h> class FJavaObjectWrapper { public: FJavaObjectWrapper(JNIEnv* Env, const JNIReferenceCache* Cache, jobject JavaObject) : JavaObject(JavaObject) , Cache(Cache) , Env(Env) { } jobject GetJavaObject() { return JavaObject; } template <typename Interface, typename InstanceType> TArray<TSharedRef<Interface>> GetListItems(jmethodID Method) const { TArray<TSharedRef<Interface>> Items; jobject jItems = (*Env).CallObjectMethod(JavaObject, Method); ReturnValueOnException(Env, Items); ReturnValueOnFail(jItems, Items); jint Len = (*Env).CallIntMethod(jItems, Cache->ListSize); ReturnValueOnException(Env, Items); for (jint Index = 0; Index < Len; Index++) { jobject jItem = (*Env).CallObjectMethod(jItems, Cache->ListGet, Index); ContinueOnException(Env); Items.Add(MakeShared<InstanceType>(Env, Cache, jItem)); } return Items; } template <typename T> void SetPrimitiveObjectField(jclass PrimitiveClass, jmethodID PrimitiveConstructor, jmethodID Method, bool IsNullable, const TOptional<T> Value) const { if (Value.IsSet()) { jobject jValue = (*Env).NewObject(PrimitiveClass, PrimitiveConstructor, Value.GetValue()); ReturnVoidOnException(Env); (*Env).CallVoidMethod(JavaObject, Method, jValue); } else if (IsNullable) { (*Env).CallVoidMethod(JavaObject, Method, nullptr); } FAndroidPlatformJNI::CheckAndClearException(Env); } template <typename T> TOptional<T> GetIntObjectField(jmethodID Method) const { jobject jValue = (*Env).CallObjectMethod(JavaObject, Method); ReturnValueOnException(Env, TOptional<T>()); ReturnValueOnFail(jValue, TOptional<T>()); // might be nullable jlong Value = (*Env).CallLongMethod(jValue, Cache->NumberIntValue); ReturnValueOnException(Env, TOptional<T>()); return TOptional<T>(Value); } template <typename T> TOptional<T> GetLongObjectField(jmethodID Method) const { jobject jValue = (*Env).CallObjectMethod(JavaObject, Method); ReturnValueOnException(Env, TOptional<T>()); ReturnValueOnFail(jValue, TOptional<T>()); // might be nullable jlong Value = (*Env).CallLongMethod(jValue, Cache->NumberLongValue); ReturnValueOnException(Env, TOptional<T>()); return TOptional<T>(Value); } template <typename T> void SetIntObjectField(jmethodID Method, bool IsNullable, const TOptional<T> Value) const { SetPrimitiveObjectField(Cache->IntegerClass, Cache->IntegerConstructor, Method, IsNullable, Value); } template <typename T> void SetLongObjectField(jmethodID Method, bool IsNullable, const TOptional<T> Value) const { SetPrimitiveObjectField(Cache->LongClass, Cache->LongConstructor, Method, IsNullable, Value); } TOptional<bool> GetBoolField(jmethodID Method) { jboolean jValue = (*Env).CallBooleanMethod(JavaObject, Method); return FAndroidPlatformJNI::CheckAndClearException(Env) ? TOptional<bool>() : TOptional<bool>(jValue == JNI_TRUE); } TOptional<bool> GetBoolObjectField(jmethodID Method) const { jobject jValue = (*Env).CallObjectMethod(JavaObject, Method); ReturnValueOnException(Env, TOptional<bool>()); ReturnValueOnFail(jValue, TOptional<bool>()); // boolean objects are nullable jboolean Value = (*Env).CallBooleanMethod(jValue, Cache->BooleanBooleanValue); ReturnValueOnException(Env, TOptional<bool>()); return TOptional<bool>(Value == JNI_TRUE); } void SetBoolObjectField(jmethodID Method, bool IsNullable, const TOptional<bool> Value) const { TOptional<jboolean> jValue = Value.IsSet() ? TOptional<jboolean>(Value.GetValue() ? JNI_TRUE : JNI_FALSE) : TOptional<jboolean>(); SetPrimitiveObjectField(Cache->BooleanClass, Cache->BooleanConstructor, Method, IsNullable, jValue); } void SetStringField(jmethodID Method, bool IsNullable, const TOptional<FString>& Value) const { if (Value.IsSet()) { jstring jString = FAndroidPlatformJNI::ParseFString(Env, Value.GetValue()); ReturnVoidIf(!jString); (*Env).CallVoidMethod(JavaObject, Method, jString); FAndroidPlatformJNI::CheckAndClearException(Env); } else if (IsNullable) { (*Env).CallVoidMethod(JavaObject, Method, nullptr); FAndroidPlatformJNI::CheckAndClearException(Env); } } const FString GetStringField(jmethodID Method) const { jobject jValue = (*Env).CallObjectMethod(JavaObject, Method); FAndroidPlatformJNI::CheckAndClearException(Env); return FAndroidPlatformJNI::ParseJavaString(Env, Cache, jValue); } const FDateTime GetDateField(jmethodID Method) const { jobject jValue = (*Env).CallObjectMethod(JavaObject, Method); FAndroidPlatformJNI::CheckAndClearException(Env); return FAndroidPlatformJNI::ParseDateTime(Env, Cache, jValue); } void SetDateField(jmethodID Method, bool IsNullable, TOptional<FDateTime> Value) const { if (Value.IsSet()) { jobject jValue = FAndroidPlatformJNI::ParseJavaDate(Env, Cache, Value.GetValue()); ReturnVoidOnException(Env); (*Env).CallVoidMethod(JavaObject, Method, jValue); } else if (IsNullable) { (*Env).CallVoidMethod(JavaObject, Method, nullptr); } FAndroidPlatformJNI::CheckAndClearException(Env); } void SetField(jmethodID Method, bool IsNullable, jobject Value) const { ReturnVoidIf(!Value && !IsNullable); (*Env).CallVoidMethod(JavaObject, Method, Value); FAndroidPlatformJNI::CheckAndClearException(Env); } TSharedPtr<FJsonObject> GetJsonObjectField(jmethodID Method) const { jobject jValue = (*Env).CallObjectMethod(JavaObject, Method); ReturnValueOnException(Env, MakeShareable(new FJsonObject)); return FAndroidPlatformJNI::ConvertJavaMapToJson(Env, Cache, jValue); } const TSharedPtr<TArray<FString>> GetStringArrayField(jmethodID Method) const { TSharedPtr<TArray<FString>> Array = MakeShareable(new TArray<FString>); jobjectArray jArray = (jobjectArray)(*Env).CallObjectMethod(JavaObject, Method); ReturnValueOnException(Env, Array); jsize Len = (*Env).GetArrayLength(jArray); ReturnValueOnException(Env, Array); for (jsize Index = 0; Index < Len; Index++) { jobject jItem = (*Env).GetObjectArrayElement(jArray, Index); ReturnValueOnException(Env, Array); Array->Add(FAndroidPlatformJNI::ParseJavaString(Env, Cache, jItem)); } return Array; } void SetStringArrayField(jmethodID Method, const TSharedPtr<TArray<FString>>& Value) const { jobjectArray jArray = nullptr; if (Value.IsValid()) { int32 Length = (*Value).Num(); jArray = (*Env).NewObjectArray(Length, Cache->StringClass, NULL); ReturnVoidOnException(Env); for (int32 Index = 0; Index < Length; Index++) { jstring jItem = FAndroidPlatformJNI::ParseFString(Env, (*Value)[Index]); if (jItem) { (*Env).SetObjectArrayElement(jArray, Index, jItem); FAndroidPlatformJNI::CheckAndClearException(Env); } } } (*Env).CallVoidMethod(JavaObject, Method, jArray); FAndroidPlatformJNI::CheckAndClearException(Env); } protected: JNIEnv* Env; const JNIReferenceCache* Cache; const jobject JavaObject; };
32.99537
151
0.744072
23290757c33f24a78e8b2666e2338b56031c2f55
1,471
h
C
Engine/Renderer/Public/Renderer/Camera.h
mezox/SummitEngine
73d0c6e78e8a0ef32c6c135524c911aad7635955
[ "MIT" ]
null
null
null
Engine/Renderer/Public/Renderer/Camera.h
mezox/SummitEngine
73d0c6e78e8a0ef32c6c135524c911aad7635955
[ "MIT" ]
null
null
null
Engine/Renderer/Public/Renderer/Camera.h
mezox/SummitEngine
73d0c6e78e8a0ef32c6c135524c911aad7635955
[ "MIT" ]
null
null
null
#pragma once #include <Renderer/RendererBase.h> #include <Core/Platform.h> #include <Math/Matrix4.h> #include "Transform.h" namespace Renderer { enum class ProjectionType { Perspective, Orthographic }; class RENDERER_API Frustum { public: float fieldOfViewX; float fieldOfViewY; float nearPlane{ 0.0f }; float farPlane{ 0.0f }; }; class RENDERER_API Camera { public: DECLARE_NOCOPY_NOMOVE(Camera) public: Camera(); void Update(uint32_t w, uint32_t h); NO_DISCARD const Vector3f& GetForward() const noexcept; NO_DISCARD const Vector3f& GetRight() const noexcept; NO_DISCARD const Vector3f& GetUp() const noexcept; NO_DISCARD const Matrix4& GetOrientation() const noexcept; NO_DISCARD const Matrix4& GetViewMatrix() const noexcept; NO_DISCARD const Matrix4& GetProjectionMatrix() const noexcept; Transform mTransform; private: void OnViewportChange(uint32_t w, uint32_t h); private: ProjectionType mProjectionType{ ProjectionType::Perspective}; Matrix4 mViewMatrix; Matrix4 mProjectionMatrix; Vector3f mForwardUnit; Vector3f mRightUnit; Vector3f mUpUnit; Vector3f mBackwardUnit; Vector3f mLeftUnit; Vector3f mDownUnit; }; }
23.725806
71
0.616587
232b2a1e042ed2dc6b5b718eefe48bcc218480d9
1,217
h
C
Aplicacion Movil/generated/bundles/login-transition/build/Android/Preview/app/src/main/include/Fuse.Triggers.WhileDisabled.h
marferfer/SpinOff-LoL
a9dba8ac9dd476ec1ef94712d9a8e76d3b45aca8
[ "Apache-2.0" ]
null
null
null
Aplicacion Movil/generated/bundles/login-transition/build/Android/Preview/app/src/main/include/Fuse.Triggers.WhileDisabled.h
marferfer/SpinOff-LoL
a9dba8ac9dd476ec1ef94712d9a8e76d3b45aca8
[ "Apache-2.0" ]
null
null
null
Aplicacion Movil/generated/bundles/login-transition/build/Android/Preview/app/src/main/include/Fuse.Triggers.WhileDisabled.h
marferfer/SpinOff-LoL
a9dba8ac9dd476ec1ef94712d9a8e76d3b45aca8
[ "Apache-2.0" ]
null
null
null
// This file was generated based on C:/Users/JuanJose/AppData/Local/Fusetools/Packages/Fuse.Triggers/1.9.0/Disabled.uno. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Fuse.Animations.IBase-d3bd6f2e.h> #include <Fuse.Animations.IUnwr-594abe9.h> #include <Fuse.Binding.h> #include <Fuse.INotifyUnrooted.h> #include <Fuse.IProperties.h> #include <Fuse.ISourceLocation.h> #include <Fuse.Scripting.IScriptObject.h> #include <Fuse.Triggers.WhileEn-fb4c6c6e.h> #include <Uno.Collections.ICollection-1.h> #include <Uno.Collections.IEnumerable-1.h> #include <Uno.Collections.IList-1.h> namespace g{namespace Fuse{namespace Triggers{struct WhileDisabled;}}} namespace g{ namespace Fuse{ namespace Triggers{ // public sealed class WhileDisabled :39 // { ::g::Fuse::Triggers::WhileEnabledDisabledTrigger_type* WhileDisabled_typeof(); void WhileDisabled__ctor_7_fn(WhileDisabled* __this); void WhileDisabled__get_IsActive_fn(WhileDisabled* __this, bool* __retval); void WhileDisabled__New2_fn(WhileDisabled** __retval); struct WhileDisabled : ::g::Fuse::Triggers::WhileEnabledDisabledTrigger { void ctor_7(); static WhileDisabled* New2(); }; // } }}} // ::g::Fuse::Triggers
32.891892
120
0.777321
232b904d924b890e86d38e6b6e3b7bf6f2feadeb
2,621
h
C
include/craftd/Regexp.h
PrecipiceGames/craftd
237b9ef3063736380414a459fe4261781570ef39
[ "BSD-2-Clause" ]
2
2015-07-08T08:22:13.000Z
2016-04-23T13:34:46.000Z
include/craftd/Regexp.h
PrecipiceGames/craftd
237b9ef3063736380414a459fe4261781570ef39
[ "BSD-2-Clause" ]
null
null
null
include/craftd/Regexp.h
PrecipiceGames/craftd
237b9ef3063736380414a459fe4261781570ef39
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (c) 2010-2011 Kevin M. Bowling, <kevin.bowling@kev009.com>, USA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef CRAFTD_REGEXP_H #define CRAFTD_REGEXP_H #include <pcre.h> typedef enum _CDRegexpOption { CDRegexpNone = 0, CDRegexpCaseInsensitive = PCRE_CASELESS, CDRegexpExtended = PCRE_EXTENDED, CDRegexpMultiline = PCRE_MULTILINE, CDRegexpDotAll = PCRE_DOTALL } CDRegexpOption; #define CD_REGEXP_I PCRE_CASELESS #define CD_REGEXP_X PCRE_EXTENDED #define CD_REGEXP_M PCRE_MULTILINE #define CD_REGEXP_S PCRE_DOTALL #include <craftd/String.h> typedef struct _CDRegexp { char* string; int options; pcre* pattern; pcre_extra* study; } CDRegexp; typedef struct _CDRegexpMatches { size_t matched; size_t length; CDString** item; } CDRegexpMatches; CDRegexp* CD_CreateRegexp (char* regexp, int options); void CD_DestroyRegexp (CDRegexp* self); void CD_DestroyRegexpKeepString (CDRegexp* self); CDRegexpMatches* CD_CreateRegexpMatches (size_t length); void CD_DestroyRegexpMatches (CDRegexpMatches* self); CDRegexpMatches* CD_RegexpMatch (CDRegexp* self, CDString* string); CDRegexpMatches* CD_RegexpMatchString (char* regexp, int options, CDString* string); CDRegexpMatches* CD_RegexpMatchCString (char* regexp, int options, char* string); bool CD_RegexpTest (CDRegexp* self, CDString* string); #endif
32.7625
84
0.766883
232f02c3322845e5793d2599784ab1b0768cb823
459
h
C
deps/cpp-sdk/types/Prop.h
YannBCF/sdk-crash
083ba03b7c4bbabd3efed109d1e30e5ff5b2f65b
[ "MIT" ]
21
2019-05-09T07:34:43.000Z
2022-02-17T19:12:35.000Z
deps/cpp-sdk/types/Prop.h
YannBCF/sdk-crash
083ba03b7c4bbabd3efed109d1e30e5ff5b2f65b
[ "MIT" ]
19
2019-08-04T10:51:55.000Z
2022-03-03T16:57:00.000Z
deps/cpp-sdk/types/Prop.h
YannBCF/sdk-crash
083ba03b7c4bbabd3efed109d1e30e5ff5b2f65b
[ "MIT" ]
22
2019-05-09T16:46:05.000Z
2022-03-27T01:06:17.000Z
#pragma once #include <iostream> #include <cstdint> namespace alt { struct Prop { uint16_t drawableId = 0; uint8_t textureId = 0; Prop() = default; Prop(uint16_t _drawableId, uint8_t _textureId) : drawableId(_drawableId), textureId(_textureId) { } friend std::ostream &operator<<(std::ostream &stream, const Prop &prop) { stream << "Prop{ " << (int)prop.drawableId << ", " << (int)prop.textureId << " }"; return stream; } }; }
18.36
85
0.64488
232f70fc69093f88c3107f09c021371ce8ecc4ea
1,565
h
C
gcommon/source/gmathmatrix.h
DavidCoenFish/ancient-code-0
243fb47b9302a77f9b9392b6e3f90bba2ef3c228
[ "Unlicense" ]
null
null
null
gcommon/source/gmathmatrix.h
DavidCoenFish/ancient-code-0
243fb47b9302a77f9b9392b6e3f90bba2ef3c228
[ "Unlicense" ]
null
null
null
gcommon/source/gmathmatrix.h
DavidCoenFish/ancient-code-0
243fb47b9302a77f9b9392b6e3f90bba2ef3c228
[ "Unlicense" ]
null
null
null
// // gmathmatrix.h // GCommon // // Created by David Coen on 2011 06 01 // Copyright Pleasure seeking morons 2011. All rights reserved. // #ifndef _gmathmatrix_h_ #define _gmathmatrix_h_ #include "gcommon.h" template< typename IN_TYPE > class GMathMatrix { private: ~GMathMatrix(); public: // < m, n > * < n, p > = < m, p > static void MatrixMul( const IN_TYPE* const in_lhs, const IN_TYPE* const in_rhs, const GS32 in_m, const GS32 in_n, const GS32 in_p, IN_TYPE* const out_data ); static const IN_TYPE Determinant2( const IN_TYPE in_d0_0, const IN_TYPE in_d0_1, const IN_TYPE in_d1_0, const IN_TYPE in_d1_1 ); static const IN_TYPE Determinant3( const IN_TYPE in_d0_0, const IN_TYPE in_d0_1, const IN_TYPE in_d0_2, const IN_TYPE in_d1_0, const IN_TYPE in_d1_1, const IN_TYPE in_d1_2, const IN_TYPE in_d2_0, const IN_TYPE in_d2_1, const IN_TYPE in_d2_2 ); static const IN_TYPE Determinant4( const IN_TYPE in_d0_0, const IN_TYPE in_d0_1, const IN_TYPE in_d0_2, const IN_TYPE in_d0_3, const IN_TYPE in_d1_0, const IN_TYPE in_d1_1, const IN_TYPE in_d1_2, const IN_TYPE in_d1_3, const IN_TYPE in_d2_0, const IN_TYPE in_d2_1, const IN_TYPE in_d2_2, const IN_TYPE in_d2_3, const IN_TYPE in_d3_0, const IN_TYPE in_d3_1, const IN_TYPE in_d3_2, const IN_TYPE in_d3_3 ); static void Inverse4( IN_TYPE* const out_data, const IN_TYPE* const in_src ); static void Inverse3( IN_TYPE* const out_data, const IN_TYPE* const in_src ); }; #endif //_gmathmatrix_h_
20.064103
64
0.722684
232f7d06be4e05fe75196817e1d51bd649e3e2ff
15,353
h
C
plugins/community/repos/Valley/src/Dexter/sawGap2_wavetable/sawGap2_17.h
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
233
2018-07-02T16:49:36.000Z
2022-02-27T21:45:39.000Z
plugins/community/repos/Valley/src/Dexter/sawGap2_wavetable/sawGap2_17.h
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
24
2018-07-09T11:32:15.000Z
2022-01-07T01:45:43.000Z
plugins/community/repos/Valley/src/Dexter/sawGap2_wavetable/sawGap2_17.h
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
24
2018-07-14T21:55:30.000Z
2021-05-04T04:20:34.000Z
#ifndef WAVETABLE_SAWGAP2_17_H #define WAVETABLE_SAWGAP2_17_H #define WAVETABLE_SAWGAP2_17_LENGTH 1024 static long sawGap2_17_tableLength = 1024; static float sawGap2_17_waveTable[WAVETABLE_SAWGAP2_17_LENGTH] = { 0.000000e+00, 2.234221e-03, 4.468560e-03, 6.702900e-03, 8.937240e-03, 1.117158e-02, 1.340592e-02, 1.564026e-02, 1.787460e-02, 2.010882e-02, 2.234316e-02, 2.457750e-02, 2.681184e-02, 2.904618e-02, 3.128052e-02, 3.351486e-02, 3.574920e-02, 3.798342e-02, 4.021776e-02, 4.245210e-02, 4.468644e-02, 4.692078e-02, 4.915512e-02, 5.138946e-02, 5.362380e-02, 5.585802e-02, 5.809236e-02, 6.032670e-02, 6.256104e-02, 6.479537e-02, 6.702971e-02, 6.926405e-02, 7.149839e-02, 7.373261e-02, 7.596695e-02, 7.820129e-02, 8.043563e-02, 8.266997e-02, 8.490431e-02, 8.713865e-02, 8.937299e-02, 9.160721e-02, 9.384155e-02, 9.607589e-02, 9.831023e-02, 1.005446e-01, 1.027789e-01, 1.050133e-01, 1.072476e-01, 1.094818e-01, 1.117162e-01, 1.139505e-01, 1.161848e-01, 1.184192e-01, 1.206535e-01, 1.228878e-01, 1.251222e-01, 1.273564e-01, 1.295907e-01, 1.318251e-01, 1.340594e-01, 1.362938e-01, 1.385281e-01, 1.407624e-01, 1.429968e-01, 1.452310e-01, 1.474653e-01, 1.496997e-01, 1.519340e-01, 1.541684e-01, 1.564027e-01, 1.586370e-01, 1.608714e-01, 1.631056e-01, 1.653399e-01, 1.675743e-01, 1.698086e-01, 1.720430e-01, 1.742773e-01, 1.765116e-01, 1.787460e-01, 1.809802e-01, 1.832145e-01, 1.854489e-01, 1.876832e-01, 1.899176e-01, 1.921519e-01, 1.943862e-01, 1.966206e-01, 1.988548e-01, 2.010891e-01, 2.033235e-01, 2.055578e-01, 2.077922e-01, 2.100265e-01, 2.122608e-01, 2.144952e-01, 2.167294e-01, 2.189637e-01, 2.211981e-01, 2.234324e-01, 2.256668e-01, 2.279011e-01, 2.301354e-01, 2.323698e-01, 2.346040e-01, 2.368383e-01, 2.390727e-01, 2.413070e-01, 2.435414e-01, 2.457757e-01, 2.480100e-01, 2.502444e-01, 2.524786e-01, 2.547129e-01, 2.569473e-01, 2.591816e-01, 2.614160e-01, 2.636503e-01, 2.658846e-01, 2.681190e-01, 2.703532e-01, 2.725875e-01, 2.748219e-01, 2.770562e-01, 2.792906e-01, 2.815249e-01, 2.837592e-01, 2.859936e-01, 2.882278e-01, 2.904621e-01, 2.926965e-01, 2.949308e-01, 2.971652e-01, 2.993995e-01, 3.016338e-01, 3.038682e-01, 3.061024e-01, 3.083367e-01, 3.105711e-01, 3.128054e-01, 3.150398e-01, 3.172741e-01, 3.195084e-01, 3.217428e-01, 3.239770e-01, 3.262113e-01, 3.284457e-01, 3.306800e-01, 3.329144e-01, 3.351487e-01, 3.373830e-01, 3.396174e-01, 3.418516e-01, 3.440859e-01, 3.463203e-01, 3.485546e-01, 3.507890e-01, 3.530233e-01, 3.552576e-01, 3.574920e-01, 3.597262e-01, 3.619605e-01, 3.641949e-01, 3.664292e-01, 3.686635e-01, 3.708979e-01, 3.731322e-01, 3.753666e-01, 3.776008e-01, 3.798351e-01, 3.820695e-01, 3.843038e-01, 3.865381e-01, 3.887725e-01, 3.910068e-01, 3.932412e-01, 3.954754e-01, 3.977097e-01, 3.999441e-01, 4.021784e-01, 4.044127e-01, 4.066471e-01, 4.088814e-01, 4.111158e-01, 4.133500e-01, 4.155843e-01, 4.178187e-01, 4.200530e-01, 4.222873e-01, 4.245217e-01, 4.267560e-01, 4.289904e-01, 4.312246e-01, 4.334589e-01, 4.356933e-01, 4.379276e-01, 4.401619e-01, 4.423963e-01, 4.446306e-01, 4.468650e-01, 4.490992e-01, 4.513335e-01, 4.535679e-01, 4.558022e-01, 4.580365e-01, 4.602709e-01, 4.625052e-01, 4.647396e-01, 4.669738e-01, 4.692081e-01, 4.714425e-01, 4.736768e-01, 4.759111e-01, 4.781455e-01, 4.803798e-01, 4.826142e-01, 4.848484e-01, 4.870827e-01, 4.893171e-01, 4.915514e-01, 4.937857e-01, 4.960201e-01, 4.982544e-01, 5.004888e-01, 5.027230e-01, 5.049573e-01, 5.071917e-01, 5.094260e-01, 5.116603e-01, 5.138947e-01, 5.161290e-01, 5.183634e-01, 5.205976e-01, 5.228319e-01, 5.250663e-01, 5.273006e-01, 5.295349e-01, 5.317693e-01, 5.340036e-01, 5.362380e-01, 5.384722e-01, 5.407065e-01, 5.429409e-01, 5.451752e-01, 5.474095e-01, 5.496439e-01, 5.518782e-01, 5.541126e-01, 5.563468e-01, 5.585811e-01, 5.608155e-01, 5.630498e-01, 5.652841e-01, 5.675185e-01, 5.697528e-01, 5.719872e-01, 5.742214e-01, 5.764557e-01, 5.786901e-01, 5.809244e-01, 5.831587e-01, 5.853931e-01, 5.876274e-01, 5.898618e-01, 5.920960e-01, 5.943303e-01, 5.965647e-01, 5.987990e-01, 6.010333e-01, 6.032677e-01, 6.055020e-01, 6.077363e-01, 6.099706e-01, 6.122049e-01, 6.144392e-01, 6.166736e-01, 6.189079e-01, 6.211423e-01, 6.233766e-01, 6.256109e-01, 6.278452e-01, 6.300795e-01, 6.323138e-01, 6.345482e-01, 6.367825e-01, 6.390169e-01, 6.412512e-01, 6.434855e-01, 6.457198e-01, 6.479541e-01, 6.501884e-01, 6.524228e-01, 6.546571e-01, 6.568915e-01, 6.591258e-01, 6.613601e-01, 6.635944e-01, 6.658287e-01, 6.680630e-01, 6.702974e-01, 6.725317e-01, 6.747661e-01, 6.770004e-01, 6.792347e-01, 6.814690e-01, 6.837033e-01, 6.859376e-01, 6.881720e-01, 6.904063e-01, 6.926407e-01, 6.948750e-01, 6.971093e-01, 6.993436e-01, 7.015779e-01, 7.038122e-01, 7.060466e-01, 7.082809e-01, 7.105153e-01, 7.127496e-01, 7.149839e-01, 7.172182e-01, 7.194525e-01, 7.216868e-01, 7.239212e-01, 7.261555e-01, 7.283899e-01, 7.306242e-01, 7.328585e-01, 7.350928e-01, 7.373271e-01, 7.395614e-01, 7.417958e-01, 7.440301e-01, 7.462645e-01, 7.484988e-01, 7.507331e-01, 7.529674e-01, 7.552017e-01, 7.574360e-01, 7.596704e-01, 7.619047e-01, 7.641391e-01, 7.663734e-01, 7.686077e-01, 7.708420e-01, 7.730763e-01, 7.753106e-01, 7.775450e-01, 7.797793e-01, 7.820137e-01, 7.842480e-01, 7.864823e-01, 7.887166e-01, 7.909509e-01, 7.931852e-01, 7.954196e-01, 7.976539e-01, 7.998883e-01, 8.021226e-01, 8.043569e-01, 8.065912e-01, 8.088255e-01, 8.110598e-01, 8.132942e-01, 8.155285e-01, 8.177629e-01, 8.199972e-01, 8.222315e-01, 8.244658e-01, 8.267001e-01, 8.289344e-01, 8.311688e-01, 8.334031e-01, 8.356375e-01, 8.378718e-01, 8.401061e-01, 8.423404e-01, 8.445747e-01, 8.468090e-01, 8.490434e-01, 8.512777e-01, 8.535120e-01, 8.557464e-01, 8.579807e-01, 8.602149e-01, 8.624493e-01, 8.646836e-01, 8.669180e-01, 8.691523e-01, 8.713866e-01, 8.736210e-01, 8.758553e-01, 8.780895e-01, 8.803239e-01, 8.825582e-01, 8.847926e-01, 8.870269e-01, 8.892612e-01, 8.914956e-01, 8.937299e-01, 8.959641e-01, 8.981985e-01, 9.004328e-01, 9.026672e-01, 9.049015e-01, 9.071358e-01, 9.093702e-01, 9.116045e-01, 9.138387e-01, 9.160731e-01, 9.183074e-01, 9.205418e-01, 9.227761e-01, 9.250104e-01, 9.272448e-01, 9.294791e-01, 9.317133e-01, 9.339477e-01, 9.361820e-01, 9.384164e-01, 9.406507e-01, 9.428850e-01, 9.451194e-01, 9.473537e-01, 9.495879e-01, 9.518223e-01, 9.540566e-01, 9.562910e-01, 9.585253e-01, 9.607596e-01, 9.629940e-01, 9.652283e-01, 9.674625e-01, 9.696969e-01, 9.719312e-01, 9.741656e-01, 9.763999e-01, 9.786342e-01, 9.808686e-01, 9.831029e-01, 9.853371e-01, 9.875715e-01, 9.898058e-01, 9.920402e-01, 9.942745e-01, 9.965088e-01, 9.987432e-01, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, -1.000000e+00, -9.977658e-01, -9.955314e-01, -9.932971e-01, -9.910628e-01, -9.888284e-01, -9.865941e-01, -9.843597e-01, -9.821254e-01, -9.798912e-01, -9.776568e-01, -9.754225e-01, -9.731882e-01, -9.709538e-01, -9.687195e-01, -9.664851e-01, -9.642508e-01, -9.620166e-01, -9.597822e-01, -9.575479e-01, -9.553136e-01, -9.530792e-01, -9.508449e-01, -9.486105e-01, -9.463762e-01, -9.441420e-01, -9.419076e-01, -9.396733e-01, -9.374390e-01, -9.352046e-01, -9.329703e-01, -9.307359e-01, -9.285016e-01, -9.262674e-01, -9.240330e-01, -9.217987e-01, -9.195644e-01, -9.173300e-01, -9.150957e-01, -9.128613e-01, -9.106270e-01, -9.083928e-01, -9.061584e-01, -9.039241e-01, -9.016898e-01, -8.994554e-01, -8.972211e-01, -8.949867e-01, -8.927524e-01, -8.905182e-01, -8.882838e-01, -8.860495e-01, -8.838152e-01, -8.815808e-01, -8.793465e-01, -8.771122e-01, -8.748778e-01, -8.726436e-01, -8.704093e-01, -8.681749e-01, -8.659406e-01, -8.637062e-01, -8.614719e-01, -8.592376e-01, -8.570032e-01, -8.547690e-01, -8.525347e-01, -8.503003e-01, -8.480660e-01, -8.458316e-01, -8.435973e-01, -8.413630e-01, -8.391286e-01, -8.368944e-01, -8.346601e-01, -8.324257e-01, -8.301914e-01, -8.279570e-01, -8.257227e-01, -8.234884e-01, -8.212540e-01, -8.190198e-01, -8.167855e-01, -8.145511e-01, -8.123168e-01, -8.100824e-01, -8.078481e-01, -8.056138e-01, -8.033794e-01, -8.011452e-01, -7.989109e-01, -7.966765e-01, -7.944422e-01, -7.922078e-01, -7.899735e-01, -7.877392e-01, -7.855048e-01, -7.832706e-01, -7.810363e-01, -7.788019e-01, -7.765676e-01, -7.743332e-01, -7.720989e-01, -7.698646e-01, -7.676302e-01, -7.653960e-01, -7.631617e-01, -7.609273e-01, -7.586930e-01, -7.564586e-01, -7.542243e-01, -7.519900e-01, -7.497556e-01, -7.475214e-01, -7.452871e-01, -7.430527e-01, -7.408184e-01, -7.385840e-01, -7.363497e-01, -7.341154e-01, -7.318810e-01, -7.296468e-01, -7.274125e-01, -7.251781e-01, -7.229438e-01, -7.207094e-01, -7.184751e-01, -7.162408e-01, -7.140064e-01, -7.117722e-01, -7.095379e-01, -7.073035e-01, -7.050692e-01, -7.028348e-01, -7.006005e-01, -6.983662e-01, -6.961318e-01, -6.938976e-01, -6.916633e-01, -6.894289e-01, -6.871946e-01, -6.849602e-01, -6.827259e-01, -6.804916e-01, -6.782572e-01, -6.760230e-01, -6.737887e-01, -6.715543e-01, -6.693200e-01, -6.670856e-01, -6.648513e-01, -6.626170e-01, -6.603826e-01, -6.581484e-01, -6.559141e-01, -6.536797e-01, -6.514454e-01, -6.492110e-01, -6.469767e-01, -6.447424e-01, -6.425080e-01, -6.402738e-01, -6.380395e-01, -6.358051e-01, -6.335708e-01, -6.313365e-01, -6.291021e-01, -6.268678e-01, -6.246334e-01, -6.223992e-01, -6.201649e-01, -6.179305e-01, -6.156962e-01, -6.134619e-01, -6.112275e-01, -6.089932e-01, -6.067588e-01, -6.045246e-01, -6.022903e-01, -6.000559e-01, -5.978216e-01, -5.955873e-01, -5.933529e-01, -5.911186e-01, -5.888842e-01, -5.866500e-01, -5.844157e-01, -5.821813e-01, -5.799470e-01, -5.777127e-01, -5.754783e-01, -5.732440e-01, -5.710096e-01, -5.687754e-01, -5.665411e-01, -5.643067e-01, -5.620724e-01, -5.598381e-01, -5.576037e-01, -5.553694e-01, -5.531350e-01, -5.509008e-01, -5.486665e-01, -5.464321e-01, -5.441978e-01, -5.419635e-01, -5.397291e-01, -5.374948e-01, -5.352604e-01, -5.330262e-01, -5.307919e-01, -5.285575e-01, -5.263232e-01, -5.240889e-01, -5.218545e-01, -5.196202e-01, -5.173858e-01, -5.151516e-01, -5.129173e-01, -5.106829e-01, -5.084486e-01, -5.062143e-01, -5.039799e-01, -5.017456e-01, -4.995112e-01, -4.972770e-01, -4.950427e-01, -4.928083e-01, -4.905740e-01, -4.883397e-01, -4.861053e-01, -4.838710e-01, -4.816366e-01, -4.794024e-01, -4.771681e-01, -4.749337e-01, -4.726994e-01, -4.704651e-01, -4.682307e-01, -4.659964e-01, -4.637620e-01, -4.615278e-01, -4.592935e-01, -4.570591e-01, -4.548248e-01, -4.525905e-01, -4.503561e-01, -4.481218e-01, -4.458874e-01, -4.436532e-01, -4.414189e-01, -4.391845e-01, -4.369502e-01, -4.347159e-01, -4.324815e-01, -4.302472e-01, -4.280128e-01, -4.257786e-01, -4.235443e-01, -4.213099e-01, -4.190756e-01, -4.168413e-01, -4.146069e-01, -4.123726e-01, -4.101382e-01, -4.079040e-01, -4.056697e-01, -4.034353e-01, -4.012010e-01, -3.989667e-01, -3.967323e-01, -3.944980e-01, -3.922637e-01, -3.900294e-01, -3.877951e-01, -3.855608e-01, -3.833264e-01, -3.810921e-01, -3.788577e-01, -3.766234e-01, -3.743891e-01, -3.721548e-01, -3.699205e-01, -3.676862e-01, -3.654518e-01, -3.632175e-01, -3.609831e-01, -3.587488e-01, -3.565145e-01, -3.542802e-01, -3.520459e-01, -3.498116e-01, -3.475772e-01, -3.453429e-01, -3.431085e-01, -3.408742e-01, -3.386399e-01, -3.364056e-01, -3.341713e-01, -3.319370e-01, -3.297026e-01, -3.274683e-01, -3.252339e-01, -3.229996e-01, -3.207653e-01, -3.185310e-01, -3.162967e-01, -3.140624e-01, -3.118280e-01, -3.095937e-01, -3.073593e-01, -3.051250e-01, -3.028907e-01, -3.006564e-01, -2.984221e-01, -2.961878e-01, -2.939534e-01, -2.917191e-01, -2.894847e-01, -2.872504e-01, -2.850161e-01, -2.827818e-01, -2.805475e-01, -2.783132e-01, -2.760788e-01, -2.738445e-01, -2.716101e-01, -2.693758e-01, -2.671415e-01, -2.649072e-01, -2.626729e-01, -2.604386e-01, -2.582042e-01, -2.559699e-01, -2.537355e-01, -2.515012e-01, -2.492669e-01, -2.470326e-01, -2.447983e-01, -2.425640e-01, -2.403296e-01, -2.380953e-01, -2.358609e-01, -2.336266e-01, -2.313923e-01, -2.291580e-01, -2.269237e-01, -2.246894e-01, -2.224550e-01, -2.202207e-01, -2.179863e-01, -2.157520e-01, -2.135177e-01, -2.112834e-01, -2.090491e-01, -2.068148e-01, -2.045804e-01, -2.023461e-01, -2.001117e-01, -1.978774e-01, -1.956431e-01, -1.934088e-01, -1.911745e-01, -1.889402e-01, -1.867058e-01, -1.844715e-01, -1.822371e-01, -1.800028e-01, -1.777685e-01, -1.755342e-01, -1.732999e-01, -1.710656e-01, -1.688312e-01, -1.665969e-01, -1.643625e-01, -1.621282e-01, -1.598939e-01, -1.576596e-01, -1.554253e-01, -1.531910e-01, -1.509566e-01, -1.487223e-01, -1.464880e-01, -1.442536e-01, -1.420193e-01, -1.397851e-01, -1.375507e-01, -1.353164e-01, -1.330820e-01, -1.308477e-01, -1.286134e-01, -1.263790e-01, -1.241447e-01, -1.219105e-01, -1.196761e-01, -1.174418e-01, -1.152074e-01, -1.129731e-01, -1.107388e-01, -1.085044e-01, -1.062701e-01, -1.040359e-01, -1.018015e-01, -9.956717e-02, -9.733284e-02, -9.509850e-02, -9.286416e-02, -9.062982e-02, -8.839548e-02, -8.616126e-02, -8.392692e-02, -8.169258e-02, -7.945824e-02, -7.722390e-02, -7.498956e-02, -7.275522e-02, -7.052088e-02, -6.828666e-02, -6.605232e-02, -6.381798e-02, -6.158364e-02, -5.934930e-02, -5.711496e-02, -5.488062e-02, -5.264628e-02, -5.041206e-02, -4.817772e-02, -4.594338e-02, -4.370904e-02, -4.147470e-02, -3.924036e-02, -3.700602e-02, -3.477168e-02, -3.253746e-02, -3.030312e-02, -2.806878e-02, -2.583444e-02, -2.360010e-02, -2.136576e-02, -1.913142e-02, -1.689708e-02, -1.466286e-02, -1.242852e-02, -1.019418e-02, -7.959843e-03, -5.725503e-03, -3.491163e-03, -1.256824e-03 }; #endif // WAVETABLE_SAWGAP2_17_H
207.472973
244
0.680909
232f9768dcebf3d0a1930278f08231f08909bc14
3,198
h
C
e2studio_project_CAN/ra_cfg/fsp_cfg/r_canfd_cfg.h
micro-ROS/micro_ros_renesas_testbench
56a25d9e7340eb902b697f68261eb607b2bd0587
[ "Apache-2.0" ]
null
null
null
e2studio_project_CAN/ra_cfg/fsp_cfg/r_canfd_cfg.h
micro-ROS/micro_ros_renesas_testbench
56a25d9e7340eb902b697f68261eb607b2bd0587
[ "Apache-2.0" ]
24
2021-08-31T06:47:23.000Z
2022-03-23T07:25:48.000Z
e2studio_project_CAN/ra_cfg/fsp_cfg/r_canfd_cfg.h
micro-ROS/micro_ros_renesas_testbench
56a25d9e7340eb902b697f68261eb607b2bd0587
[ "Apache-2.0" ]
1
2022-03-18T13:59:23.000Z
2022-03-18T13:59:23.000Z
/* generated configuration header file - do not edit */ #ifndef R_CANFD_CFG_H_ #define R_CANFD_CFG_H_ /* Buffer RAM used: 304 bytes */ #define CANFD_CFG_PARAM_CHECKING_ENABLE ((BSP_CFG_PARAM_CHECKING_ENABLE)) #define CANFD_CFG_AFL_CH0_RULE_NUM (64) #define CANFD_CFG_AFL_CH1_RULE_NUM (64) #define CANFD_CFG_GLOBAL_ERROR_CH ((1U)) #define CANFD_CFG_FD_STANDARD ((0)) #define CANFD_CFG_FD_PROTOCOL_EXCEPTION ((0)) #define CANFD_CFG_GLOBAL_ERR_SOURCES (R_CANFD_CFDGCTR_DEIE_Msk | R_CANFD_CFDGCTR_MEIE_Msk | R_CANFD_CFDGCTR_CMPOFIE_Msk | 0x3) #define CANFD_CFG_TX_PRIORITY ((R_CANFD_CFDGCFG_TPRI_Msk)) #define CANFD_CFG_DLC_CHECK ((0)) #define CANFD_CFG_FD_OVERFLOW ((0)) #define CANFD_CFG_RXMB_NUMBER (0) #define CANFD_CFG_RXMB_SIZE ((7)) #define CANFD_CFG_GLOBAL_ERR_IPL ((3)) #define CANFD_CFG_RX_FIFO_IPL ((3)) #define CANFD_CFG_RXFIFO0_INT_THRESHOLD ((0U)) #define CANFD_CFG_RXFIFO0_DEPTH ((1)) #define CANFD_CFG_RXFIFO0_PAYLOAD ((7)) #define CANFD_CFG_RXFIFO0_INT_MODE ((R_CANFD_CFDRFCC_RFIE_Msk | R_CANFD_CFDRFCC_RFIM_Msk)) #define CANFD_CFG_RXFIFO0_ENABLE ((1)) #define CANFD_CFG_RXFIFO1_INT_THRESHOLD ((3U)) #define CANFD_CFG_RXFIFO1_DEPTH ((3)) #define CANFD_CFG_RXFIFO1_PAYLOAD ((7)) #define CANFD_CFG_RXFIFO1_INT_MODE ((R_CANFD_CFDRFCC_RFIE_Msk | R_CANFD_CFDRFCC_RFIM_Msk)) #define CANFD_CFG_RXFIFO1_ENABLE ((0)) #define CANFD_CFG_RXFIFO2_INT_THRESHOLD ((3U)) #define CANFD_CFG_RXFIFO2_DEPTH ((3)) #define CANFD_CFG_RXFIFO2_PAYLOAD ((7)) #define CANFD_CFG_RXFIFO2_INT_MODE ((R_CANFD_CFDRFCC_RFIE_Msk | R_CANFD_CFDRFCC_RFIM_Msk)) #define CANFD_CFG_RXFIFO2_ENABLE ((0)) #define CANFD_CFG_RXFIFO3_INT_THRESHOLD ((3U)) #define CANFD_CFG_RXFIFO3_DEPTH ((3)) #define CANFD_CFG_RXFIFO3_PAYLOAD ((7)) #define CANFD_CFG_RXFIFO3_INT_MODE ((R_CANFD_CFDRFCC_RFIE_Msk | R_CANFD_CFDRFCC_RFIM_Msk)) #define CANFD_CFG_RXFIFO3_ENABLE ((0)) #define CANFD_CFG_RXFIFO4_INT_THRESHOLD ((3U)) #define CANFD_CFG_RXFIFO4_DEPTH ((3)) #define CANFD_CFG_RXFIFO4_PAYLOAD ((7)) #define CANFD_CFG_RXFIFO4_INT_MODE ((R_CANFD_CFDRFCC_RFIE_Msk | R_CANFD_CFDRFCC_RFIM_Msk)) #define CANFD_CFG_RXFIFO4_ENABLE ((0)) #define CANFD_CFG_RXFIFO5_INT_THRESHOLD ((3U)) #define CANFD_CFG_RXFIFO5_DEPTH ((3)) #define CANFD_CFG_RXFIFO5_PAYLOAD ((7)) #define CANFD_CFG_RXFIFO5_INT_MODE ((R_CANFD_CFDRFCC_RFIE_Msk | R_CANFD_CFDRFCC_RFIM_Msk)) #define CANFD_CFG_RXFIFO5_ENABLE ((0)) #define CANFD_CFG_RXFIFO6_INT_THRESHOLD ((3U)) #define CANFD_CFG_RXFIFO6_DEPTH ((3)) #define CANFD_CFG_RXFIFO6_PAYLOAD ((7)) #define CANFD_CFG_RXFIFO6_INT_MODE ((R_CANFD_CFDRFCC_RFIE_Msk | R_CANFD_CFDRFCC_RFIM_Msk)) #define CANFD_CFG_RXFIFO6_ENABLE ((0)) #define CANFD_CFG_RXFIFO7_INT_THRESHOLD ((3U)) #define CANFD_CFG_RXFIFO7_DEPTH ((3)) #define CANFD_CFG_RXFIFO7_PAYLOAD ((7)) #define CANFD_CFG_RXFIFO7_INT_MODE ((R_CANFD_CFDRFCC_RFIE_Msk | R_CANFD_CFDRFCC_RFIM_Msk)) #define CANFD_CFG_RXFIFO7_ENABLE ((0)) #endif /* R_CANFD_CFG_H_ */
43.808219
130
0.744215
2330a4858a703f1a6a5f8134698fd3b7a85272f0
344
h
C
Classes/iOS/FrameworkSupport/SpriteKit/JSBSKCropNode.h
kishikawakatsumi/JavaScriptBridge
e28d6345aa3ddf23ce28091a29b62c8dd9bdb1dc
[ "MIT" ]
273
2015-01-10T13:54:29.000Z
2022-02-15T03:45:28.000Z
Classes/iOS/FrameworkSupport/SpriteKit/JSBSKCropNode.h
GavinZw/JavaScriptBridge
e28d6345aa3ddf23ce28091a29b62c8dd9bdb1dc
[ "MIT" ]
2
2015-04-26T17:29:52.000Z
2015-08-03T08:58:58.000Z
Classes/iOS/FrameworkSupport/SpriteKit/JSBSKCropNode.h
GavinZw/JavaScriptBridge
e28d6345aa3ddf23ce28091a29b62c8dd9bdb1dc
[ "MIT" ]
61
2015-01-06T13:15:43.000Z
2020-11-25T02:13:18.000Z
#import <SpriteKit/SKNode.h> #import <SpriteKit/SpriteKitBase.h> @import SpriteKit; @import JavaScriptCore; @protocol JSBSKNode; @protocol JSBSKCropNode <JSExport, JSBSKNode> #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" @property (retain) SKNode *maskNode; #pragma clang diagnostic pop @end
18.105263
60
0.790698
2331ecd2dda91232ac56dfe4d797977d44947246
59,698
h
C
src/methods.h
pyokagan/pycsdl2
4bd77699d753e53dc01f3f488f924e3262a3bd26
[ "Zlib" ]
null
null
null
src/methods.h
pyokagan/pycsdl2
4bd77699d753e53dc01f3f488f924e3262a3bd26
[ "Zlib" ]
null
null
null
src/methods.h
pyokagan/pycsdl2
4bd77699d753e53dc01f3f488f924e3262a3bd26
[ "Zlib" ]
null
null
null
/* * pycsdl2 * Copyright (c) 2015 Paul Tan <pyokagan@pyokagan.name> * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from * the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must * not claim that you wrote the original software. If you use this * software in a product, an acknowledgment in the product * documentation would be appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must * not be misrepresented as being the original software. * 3. This notice may not be removed or altered from any source * distribution. */ /** * \file methods.h * \brief csdl2 list of module methods. */ #ifndef _PYCSDL2_METHODS_H_ #define _PYCSDL2_METHODS_H_ #include <Python.h> #include "../include/pycsdl2.h" #include "distutils.h" #include "error.h" #include "events.h" #include "init.h" #include "keycode.h" #include "pixels.h" #include "rect.h" #include "render.h" #include "rwops.h" #include "surface.h" #include "video.h" /** * \brief csdl2 methods definitions. * * \sa PyCSDL2_Module */ static PyMethodDef PyCSDL2_Methods[] = { /* audio.h */ {"SDL_AUDIO_BITSIZE", (PyCFunction) PyCSDL2_AUDIO_BITSIZE, METH_VARARGS | METH_KEYWORDS, "SDL_AUDIO_BITSIZE(x: int) -> int\n" "\n" "Returns the sample bit size of the audio format `x`.\n" "\n" "This is equivalent to the value of:\n" "\n" " x & SDL_AUDIO_MASK_BITSIZE\n" }, {"SDL_AUDIO_ISFLOAT", (PyCFunction) PyCSDL2_AUDIO_ISFLOAT, METH_VARARGS | METH_KEYWORDS, "SDL_AUDIO_ISFLOAT(x: int) -> bool\n" "\n" "Returns True if the audio format `x` is a floating point format,\n" "False otherwise.\n" "\n" "This is equivalent to the value of:\n" "\n" " bool(x & SDL_AUDIO_MASK_DATATYPE)\n" }, {"SDL_AUDIO_ISBIGENDIAN", (PyCFunction) PyCSDL2_AUDIO_ISBIGENDIAN, METH_VARARGS | METH_KEYWORDS, "SDL_AUDIO_ISBIGENDIAN(x: int) -> bool\n" "\n" "Returns True if the audio format `x` is a big endian format, False\n" "otherwise.\n" "\n" "This is equivalent to the value of:\n" "\n" " bool(x & SDL_AUDIO_MASK_ENDIAN)\n" }, {"SDL_AUDIO_ISSIGNED", (PyCFunction) PyCSDL2_AUDIO_ISSIGNED, METH_VARARGS | METH_KEYWORDS, "SDL_AUDIO_ISSIGNED(x: int) -> bool\n" "\n" "Returns True if the audio format `x` is a signed format, False\n" "otherwise.\n" "\n" "This is equivalent to the value of:\n" "\n" " bool(x & SDL_AUDIO_MASK_SIGNED)\n" }, {"SDL_AUDIO_ISINT", (PyCFunction) PyCSDL2_AUDIO_ISINT, METH_VARARGS | METH_KEYWORDS, "SDL_AUDIO_ISINT(x: int) -> bool\n" "\n" "Returns True if the audio format `x` is an integer format, False\n" "otherwise.\n" "\n" "This is equivalent to the value of:\n" "\n" " not SDL_AUDIO_ISFLOAT(x)\n" }, {"SDL_AUDIO_ISLITTLEENDIAN", (PyCFunction) PyCSDL2_AUDIO_ISLITTLEENDIAN, METH_VARARGS | METH_KEYWORDS, "SDL_AUDIO_ISLITTLEENDIAN(x: int) -> bool\n" "\n" "Returns True if the audio format `x` is a little endian format, False\n" "otherwise.\n" "\n" "This is equivalent to the value of:\n" "\n" " not SDL_AUDIO_ISBIGENDIAN(x)\n" }, {"SDL_AUDIO_ISUNSIGNED", (PyCFunction) PyCSDL2_AUDIO_ISUNSIGNED, METH_VARARGS | METH_KEYWORDS, "SDL_AUDIO_ISUNSIGNED(x: int) -> bool\n" "\n" "Returns True if the audio format is an unsigned format, False\n" "otherwise.\n" "\n" "This is equivalent to the value of:\n" "\n" " not SDL_AUDIO_ISSIGNED(x)\n" }, {"SDL_GetNumAudioDrivers", (PyCFunction) PyCSDL2_GetNumAudioDrivers, METH_VARARGS | METH_KEYWORDS, "SDL_GetNumAudioDrivers() -> int\n" "\n" "Returns the number of built in audio drivers.\n" }, {"SDL_GetAudioDriver", (PyCFunction) PyCSDL2_GetAudioDriver, METH_VARARGS | METH_KEYWORDS, "SDL_GetAudioDriver(index: int) -> str\n" "\n" "Returns the name of the audio driver at the requested index.\n" }, {"SDL_AudioInit", (PyCFunction) PyCSDL2_AudioInit, METH_VARARGS | METH_KEYWORDS, "SDL_AudioInit(driver_name: str or None) -> None\n" "\n" "Initializes a particular audio driver. If `driver_name` is None, the\n" "first available audio driver will be used.\n" "\n" "This function is used internally, and should not be used unless you\n" "have a specific need to designate the audio driver you want to use.\n" "Use SDL_Init() or SDL_InitSubSystem() instead.\n" }, {"SDL_AudioQuit", (PyCFunction) PyCSDL2_AudioQuit, METH_VARARGS | METH_KEYWORDS, "SDL_AudioQuit() -> None\n" "\n" "Use this function to shut down audio if you initialized it with\n" "SDL_AudioInit()\n" "\n" "This function is used internally, and should not be used unless you\n" "have a specific need to designate the audio driver you want to use.\n" "Use SDL_Init() or SDL_InitSubSystem() instead.\n" }, {"SDL_GetCurrentAudioDriver", (PyCFunction) PyCSDL2_GetCurrentAudioDriver, METH_VARARGS | METH_KEYWORDS, "SDL_GetCurrentAudioDriver() -> str or None\n" "\n" "Returns the name of the current audio driver, or None if no driver\n" "has been initialized.\n" }, {"SDL_OpenAudio", (PyCFunction) PyCSDL2_OpenAudio, METH_VARARGS | METH_KEYWORDS, "SDL_OpenAudio(desired: SDL_AudioSpec, obtained: SDL_AudioSpec or None)\n" " -> None\n" "\n" "Opens the audio device with the `desired` output format, placing the\n" "actual hardware parameters in the `obtained` SDL_AudioSpec.\n" "\n" "If `obtained` is None, the output format of the audio device is\n" "guaranteed to match the `desired` SDL_AudioSpec. SDL will convert\n" "the audio data to the actual hardware audio format if necessary.\n" "If `obtained` is None, `desired` will have fields modified.\n" "\n" "This is a legacy means of opening the audio device. Use\n" "SDL_OpenAudioDevice() instead.\n" }, {"SDL_GetNumAudioDevices", (PyCFunction) PyCSDL2_GetNumAudioDevices, METH_VARARGS | METH_KEYWORDS, "SDL_GetNumAudioDevices(iscapture: bool) -> int\n" "\n" "Returns the number of available devices exposed by the current driver,\n" "or -1 if an explicit list of devices cannot be determined.\n" "\n" "The `iscapture` argument is for future expansion and should always be\n" "False for now.\n" "\n" "This function may trigger a complete redetection of available\n" "hardware, which is an expensive operation.\n" }, {"SDL_GetAudioDeviceName", (PyCFunction) PyCSDL2_GetAudioDeviceName, METH_VARARGS | METH_KEYWORDS, "SDL_GetAudioDeviceName(index: int, iscapture: bool) -> str\n" "\n" "Returns the name of the audio device at the requested `index`.\n" "\n" "The values returned by this function reflect the latest call to\n" "SDL_GetNumAudioDevices(). Re-call that function to re-detect\n" "available hardware.\n" }, {"SDL_OpenAudioDevice", (PyCFunction) PyCSDL2_OpenAudioDevice, METH_VARARGS | METH_KEYWORDS, "SDL_OpenAudioDevice(device: str or None, iscapture: bool,\n" " desired: SDL_AudioSpec,\n" " obtained: SDL_AudioSpec or None,\n" " allowed_changes: int) -> SDL_AudioDevice\n" "\n" "Opens a specific audio device.\n" "\n" "device\n" " The device name as reported by SDL_GetAudioDeviceName(). If None,\n" " the default device is used.\n" "\n" "iscapture\n" " True to specify the device should be obtained for recording, not\n" " playback.\n" "\n" "desired\n" " A SDL_AudioSpec specifying the audio callback and desired output\n" " format.\n" "\n" "obtained\n" " If a SDL_AudioSpec is provided, it will be filled in with the\n" " actual output format. Depending on the value of `allowed_changes`,\n" " this can differ from the `desired` SDL_AudioSpec.\n" "\n" "allowed_changes\n" " If set to 0, SDL will transparently handle all differences between\n" " the `desired` output format and the actual hardware. This handling\n" " can be selectively disabled by specifying zero or more of the\n" " following flags OR'd together:\n" "\n" " * SDL_AUDIO_ALLOW_FREQUENCY_CHANGE\n" " * SDL_AUDIO_ALLOW_FORMAT_CHANGE\n" " * SDL_AUDIO_ALLOW_CHANNELS_CHANGE\n" " * SDL_AUDIO_ALLOW_ANY_CHANGE\n" "\n" " If these flags are set, the corresponding fields in the `obtained`\n" " SDL_AudioSpec will be set to the values of the actual hardware\n" " audio output format.\n" "\n" "Newly-opened audio devices start in the paused state. Use\n" "SDL_PauseAudioDevice() to unpause the device and start playing\n" "sound.\n" }, {"SDL_GetAudioStatus", (PyCFunction) PyCSDL2_GetAudioStatus, METH_VARARGS | METH_KEYWORDS, "SDL_GetAudioStatus() -> int\n" "\n" "Returns the playback status of the audio device, which is one of\n" "SDL_AUDIO_STOPPED, SDL_AUDIO_PLAYING or SDL_AUDIO_PAUSED.\n" }, {"SDL_GetAudioDeviceStatus", (PyCFunction) PyCSDL2_GetAudioDeviceStatus, METH_VARARGS | METH_KEYWORDS, "SDL_GetAudioDeviceStatus(dev: SDL_AudioDevice) -> int\n" "\n" "Returns the playback status of the specified audio device, which is\n" "one of SDL_AUDIO_STOPPED, SDL_AUDIO_PLAYING or SDL_AUDIO_PAUSED.\n" }, {"SDL_PauseAudio", (PyCFunction) PyCSDL2_PauseAudio, METH_VARARGS | METH_KEYWORDS, "SDL_PauseAudio(pause_on: bool) -> None\n" "\n" "Pause or unpause audio playback on the audio device. If `pause_on`\n" "is True, the audio device will be paused, and if `pause_on` is False,\n" "the audio device will be unpaused.\n" "\n" "When the audio device is paused, silence will be written to the audio\n" "device and the audio callback is guaranteed to not be called.\n" }, {"SDL_PauseAudioDevice", (PyCFunction) PyCSDL2_PauseAudioDevice, METH_VARARGS | METH_KEYWORDS, "SDL_PauseAudioDevice(dev: SDL_AudioDevice, pause_on: bool) -> None\n" "\n" "Pause or unpause audio playback on the specified device. If `pause_on`\n" "is True, the device `dev` will be paused, and if `pause_on` is False,\n" "the device `dev` will be unpaused.\n" "\n" "When the device is paused, silence will be written to the audio device\n" "and the audio callback is guaranteed to not be called.\n" }, {"SDL_LoadWAV_RW", (PyCFunction) PyCSDL2_LoadWAV_RW, METH_VARARGS | METH_KEYWORDS, "SDL_LoadWAV_RW(src: SDL_RWops, freesrc: bool)\n" " -> (SDL_AudioSpec, buffer, int)\n" "\n" "Loads a WAVE from the SDL_RWops data source. Returns a 3-tuple\n" "containing a SDL_AudioSpec, a byte buffer, and the buffer's size in\n" "bytes as an integer. The SDL_AudioSpec is filled with the audio data\n" "format of the wave source data, and the byte buffer contains the audio\n" "data. If `freesrc` is True, the data source will be freed.\n" }, {"SDL_LoadWAV", (PyCFunction) PyCSDL2_LoadWAV, METH_VARARGS | METH_KEYWORDS, "SDL_LoadWAV(file: str) -> (SDL_AudioSpec, buffer, int)\n" "\n" "Loads a WAVE from `file`. Returns a 3-tuple containing a\n" "SDL_AudioSpec, a byte buffer and the buffer's size in bytes as an\n" "integer. The SDL_AudioSpec is filled with the audio data format of\n" "the wave source data, and the byte buffer contains the audio data.\n" }, {"SDL_FreeWAV", (PyCFunction) PyCSDL2_FreeWAV, METH_VARARGS | METH_KEYWORDS, "SDL_FreeWAV(audio_buf) -> None\n" "\n" "Frees the wave data buffer allocated by SDL_LoadWAV() or\n" "SDL_LoadWAV_RW().\n" "\n" "There is no need to explicitly call this function. The buffer returned\n" "by SDL_LoadWAV() or SDL_LoadWAV_RW() will automatically call this\n" "function as part of its destructor.\n" }, {"SDL_BuildAudioCVT", (PyCFunction) PyCSDL2_BuildAudioCVT, METH_VARARGS | METH_KEYWORDS, "SDL_BuildAudioCVT(cvt: SDL_AudioCVT, src_format: int,\n" " src_channels: int, src_rate: int, dst_format: int,\n" " dst_channels: int, dst_rate: int) -> bool\n" "\n" "Initialize a SDL_AudioCVT structure for conversion.\n" "\n" "cvt\n" " A SDL_AudioCVT structure to be filled in with audio conversion\n" " information.\n" "\n" "src_format\n" " The source format of the audio data. One of the audio data format\n" " constants (AUDIO_*).\n" "\n" "src_channels\n" " The number of channels in the source.\n" "\n" "src_rate\n" " The frequency (sample-frames-per-second) of the source.\n" "\n" "dst_format\n" " The destination format of the audio data. One of the audio data\n" " format constants (AUDIO_*).\n" "\n" "dst_channels\n" " The number of channels in the destination.\n" "\n" "dst_rate\n" " The frequency (sample-frames-per-second) of the destination.\n" "\n" "Returns True if conversion is needed, False otherwise.\n" }, {"SDL_ConvertAudio", (PyCFunction) PyCSDL2_ConvertAudio, METH_VARARGS | METH_KEYWORDS, "SDL_ConvertAudio(cvt: SDL_AudioCVT) -> None\n" "\n" "Convert the audio data as specified by the SDL_AudioCVT structure,\n" "with the following requirements:\n" "\n" "The SDL_AudioCVT structure must first be initialized with\n" "SDL_BuildAudioCVT().\n" "\n" "The application then needs to set the SDL_AudioCVT structure's `buf`\n" "attribute to the audio buffer containing the source audio data, and\n" "`len` to the size, in bytes, of the source data.\n" "\n" "This same buffer is used for data conversion, and will contain the\n" "converted audio data after calling this function. The converted audio\n" "data, or any of the intermediate conversion data, may be larger than\n" "the source data, and thus the actual size of the buffer must be\n" "at least ``len * len_mult`` bytes long.\n" "\n" "SDL_ConvertAudio() will write the converted audio data to the buffer,\n" "and will set `len_cvt` to the size in bytes of the converted audio\n" "data.\n" }, {"SDL_MixAudio", (PyCFunction) PyCSDL2_MixAudio, METH_VARARGS | METH_KEYWORDS, "SDL_MixAudio(dst: buffer, src: buffer, len: int, volume: int) -> None\n" "\n" "This function is a legacy means of mixing audio, and is equivalent\n" "to calling:\n" "\n" " SDL_MixAudioFormat(dst, src, format, len, volume)\n" "\n" "where `format` is the obtained format of the audio device from the\n" "legacy SDL_OpenAudio() function.\n" "\n" "dst\n" " The destination buffer for the mixed audio.\n" "\n" "src\n" " The source audio buffer to be mixed in.\n" "\n" "len\n" " The length of the source and destination buffers in bytes.\n" "\n" "volume\n" " Ranges from 0 to 128, and should be set to SDL_MIX_MAXVOLUME\n" " for full audio volume.\n" }, {"SDL_MixAudioFormat", (PyCFunction) PyCSDL2_MixAudioFormat, METH_VARARGS | METH_KEYWORDS, "SDL_MixAudioFormat(dst: buffer, src: buffer, format: int, len: int,\n" " volume: int) -> None\n" "\n" "Mix audio data in a specified format.\n" "\n" "This takes a source audio buffer, and mixes it into the destination\n" "audio buffer, performing addition, volume adjustment, and overflow\n" "clipping.\n" "\n" "dst\n" " The destination for the mixed audio.\n" "\n" "src\n" " The source audio data to be mixed in.\n" "\n" "format\n" " The audio format. One of the audio data format constants.(AUDIO_*)\n" "\n" "len\n" " The length of the source and destination buffers in bytes.\n" "\n" "volume\n" " Ranges from 0 to 128, and should be set to SDL_MIX_MAXVOLUME\n" " for full audio volume.\n" }, {"SDL_LockAudio", (PyCFunction) PyCSDL2_LockAudio, METH_VARARGS | METH_KEYWORDS, "SDL_LockAudio() -> None\n" "\n" "This function is a legacy means of locking the audio device. Use\n" "SDL_LockAudioDevice() instead.\n" }, {"SDL_LockAudioDevice", (PyCFunction) PyCSDL2_LockAudioDevice, METH_VARARGS | METH_KEYWORDS, "SDL_LockAudioDevice(dev: SDL_AudioDevice) -> None\n" "\n" "Lock out the audio callback function for a specified audio device.\n" }, {"SDL_UnlockAudio", (PyCFunction) PyCSDL2_UnlockAudio, METH_VARARGS | METH_KEYWORDS, "SDL_UnlockAudio() -> None\n" "\n" "This function is a legacy means of unlocking the audio device. Use\n" "SDL_UnlockAudioDevice() instead.\n" }, {"SDL_UnlockAudioDevice", (PyCFunction) PyCSDL2_UnlockAudioDevice, METH_VARARGS | METH_KEYWORDS, "SDL_UnlockAudioDevice(dev: SDL_AudioDevice) -> None\n" "\n" "Unlock the audio callback function for a specified audio device.\n" }, {"SDL_CloseAudio", (PyCFunction) PyCSDL2_CloseAudio, METH_VARARGS | METH_KEYWORDS, "SDL_CloseAudio() -> None\n" "\n" "Shuts down audio processing and closes the audio device.\n" }, {"SDL_CloseAudioDevice", (PyCFunction) PyCSDL2_CloseAudioDevice, METH_VARARGS | METH_KEYWORDS, "SDL_CloseAudioDevice(dev: SDL_AudioDevice) -> None\n" "\n" "Shuts down audio processing and closes the specified device.\n" "\n" "There is no need to explictly call this function. SDL_AudioDevice will\n" "automatically call this function as part of its destructor.\n" }, /* distutils.h */ {"PyCSDL2_GetSystemSDL", (PyCFunction) PyCSDL2_GetSystemSDL, METH_VARARGS | METH_KEYWORDS, "PyCSDL2_GetSystemSDL() -> dict or None\n" "\n" "Returns a dict with the keys 'include_dirs', 'define_macros',\n" "'undef_macros', 'extra_compile_args', 'library_dirs', 'libraries',\n" "'runtime_library_dirs' and 'extra_link_args' corresponding to\n" "attributes of the same name in distutils.extension.Extension which\n" "were used to link csdl2 against the system's SDL2 library. Returns\n" "None if csdl2 was statically linked to SDL2."}, /* events.h */ {"SDL_PumpEvents", (PyCFunction) PyCSDL2_PumpEvents, METH_VARARGS | METH_KEYWORDS, "SDL_PumpEvents() -> None\n" "\n" "Pumps the event loop, gathering events from the input devices.\n" "\n" "This function updates the event queue and internal input device\n" "state.\n" "\n" "SDL_PollEvent() and SDL_WaitEvent() implicitly calls this\n" "function.\n" "\n" "This should only be run in the thread that sets the video mode.\n" }, {"SDL_PeepEvents", (PyCFunction) PyCSDL2_PeepEvents, METH_VARARGS | METH_KEYWORDS, "SDL_PeepEvents(events, numevents: int, action: int, minType: int,\n" " maxType: int) -> int\n" "\n" "If `action` is SDL_ADDEVENT, up to `numevents` events from `events`\n" "will be added to the back of the event queue. Returns the number of\n" "events added.\n" "\n" "If `action` is SDL_PEEKEVENT, up to `numevents` events from the front\n" "of the event queue, within the specified `minType` and `maxType`, will\n" "be returned in `events`, but will not be removed from the queue.\n" "Returns the number of events peeked.\n" "\n" "If `action` is SDL_GETEVENT, up to `numevents` events from the front\n" "of the event queue, within the specified `minType` and `maxType`, will\n" "be returned in `events`, and removed from the queue. Returns the\n" "number of events retrieved.\n" }, {"SDL_FlushEvents", (PyCFunction) PyCSDL2_FlushEvents, METH_VARARGS | METH_KEYWORDS, "SDL_FlushEvents(minType: int, maxType: int) -> None\n" "\n" "Removes all events from the event queue within the specified `minType`\n" "and `maxType`.\n" "\n" "This function only affects currently queued events. If you wish to\n" "make sure that all pending OS events are flushed, you can call\n" "SDL_PumpEvents() on the main thread immediately before\n" "SDL_FlushEvents().\n" }, {"SDL_PollEvent", (PyCFunction) PyCSDL2_PollEvent, METH_VARARGS | METH_KEYWORDS, "SDL_PollEvent(event) -> bool\n" "\n" "Polls for currently pending events.\n" "\n" "If `event` is not None, the next event is removed from the queue and\n" "stored in `event`.\n" "\n" "If `event` is None, no event will be removed from the queue.\n" "\n" "Returns True if there are events in the queue, False otherwise.\n" }, {"SDL_PushEvent", (PyCFunction) PyCSDL2_PushEvent, METH_VARARGS | METH_KEYWORDS, "SDL_PushEvent(event) -> bool\n" "\n" "Copies `event` into the event queue. Returns True on success, or False\n" "if the event was filtered.\n" "\n" "For pushing application-specific events, please use\n" "SDL_RegisterEvents() to get an event type that does not conflict with\n" "other code that also wants its own custom event types.\n" }, /* init.h */ {"SDL_Init", (PyCFunction) PyCSDL2_Init, METH_VARARGS | METH_KEYWORDS, "SDL_Init(flags: int) -> None\n" "\n" "Initializes the subsystems specified by `flags`, which is one or more\n" "of the following constants OR'ed together:\n" "\n" "* SDL_INIT_TIMER\n" "* SDL_INIT_AUDIO\n" "* SDL_INIT_VIDEO (implies SDL_INIT_EVENTS)\n" "* SDL_INIT_JOYSTICK (implies SDL_INIT_EVENTS)\n" "* SDL_INIT_HAPTIC\n" "* SDL_INIT_GAMECONTROLLER (implies SDL_INIT_JOYSTICK)\n" "* SDL_INIT_EVENTS\n" "\n" "Alternatively, pass SDL_INIT_EVERYTHING to initialize all subsystems.\n" "\n" "Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup\n" "signal handlers for some commonly ignored fatal signals like SIGSEGV.\n" }, {"SDL_InitSubSystem", (PyCFunction) PyCSDL2_InitSubSystem, METH_VARARGS | METH_KEYWORDS, "SDL_InitSubSystem(flags: int) -> None\n" "\n" "Initialize specific subsystems.\n" "\n" "`flags` is one or more of the following constants OR'd together:\n" "\n" "* SDL_INIT_TIMER\n" "* SDL_INIT_AUDIO\n" "* SDL_INIT_VIDEO (implies SDL_INIT_EVENTS)\n" "* SDL_INIT_JOYSTICK (implies SDL_INIT_EVENTS)\n" "* SDL_INIT_HAPTIC\n" "* SDL_INIT_GAMECONTROLLER (implies SDL_INIT_JOYSTICK)\n" "* SDL_INIT_EVENTS\n" "\n" "Alternatively, pass SDL_INIT_EVERYTHING to initialize all subsystems.\n" "\n" "Subsystem initialization is ref-counted. You must call\n" "SDL_QuitSubSystem() for each SDL_InitSubSystem() to correctly\n" "shutdown a subsystem manually (or call SDL_Quit() to force a\n" "shutdown.) If a subsystem is already loaded then this call will\n" "increase the refcount and return.\n" }, {"SDL_QuitSubSystem", (PyCFunction) PyCSDL2_QuitSubSystem, METH_VARARGS | METH_KEYWORDS, "SDL_QuitSubSystem(flags: int) -> None\n" "\n" "Shut down specific subsystems.\n" "\n" "`flags` is one or more of the following constants OR'd together:\n" "\n" "* SDL_INIT_TIMER\n" "* SDL_INIT_AUDIO\n" "* SDL_INIT_VIDEO\n" "* SDL_INIT_JOYSTICK\n" "* SDL_INIT_HAPTIC\n" "* SDL_INIT_GAMECONTROLLER\n" "* SDL_INIT_EVENTS\n" "\n" "Alternatively, pass SDL_INIT_EVERYTHING to shut down all subsystems.\n" "\n" "Subsystem initialization is ref-counted. SDL_QuitSubSystem() will\n" "decrement the refcount for each of the specified subsystems, and if\n" "the refcount of a subsystem reaches 0 that subsystem is shut down.\n" "\n" "If you start a subsystem using a call to that subsystem's init\n" "function (e.g. SDL_VideoInit() instead of SDL_Init() or\n" "SDL_InitSubSystem()), SDL_QuitSubSystem() will not work. You will need\n" "to use that subsystem's quit function (e.g. SDL_VideoQuit()) directly\n" "instead.\n" "\n" "You still need to call SDL_Quit() even if you close all open\n" "subsystems with SDL_QuitSubSystem().\n" }, {"SDL_WasInit", (PyCFunction) PyCSDL2_WasInit, METH_VARARGS | METH_KEYWORDS, "SDL_WasInit(flags: int) -> int\n" "\n" "Return a mask of the specified subsystems which have previously been\n" "initialized.\n" "\n" "If `flags` is 0, return a mask of all initialized subsystems.\n" }, {"SDL_Quit", (PyCFunction) PyCSDL2_Quit, METH_VARARGS | METH_KEYWORDS, "SDL_Quit() -> None\n" "\n" "Clean up all initialized subsystems. This should be called upon all\n" "exit conditions.\n" }, /* keycode.h */ {"SDL_SCANCODE_TO_KEYCODE", (PyCFunction) PyCSDL2_SCANCODE_TO_KEYCODE, METH_VARARGS | METH_KEYWORDS, "SDL_SCANCODE_TO_KEYCODE(scancode: int) -> int\n" }, /* pixels.h */ {"SDL_AllocFormat", (PyCFunction) PyCSDL2_AllocFormat, METH_VARARGS | METH_KEYWORDS, "SDL_AllocFormat(pixel_format: int) -> SDL_PixelFormat\n" "\n" "Returns a SDL_PixelFormat corresponding to `pixel_format`, where\n" "`pixel_format` is one of the SDL_PIXELFORMAT_* constants.\n" }, {"SDL_FreeFormat", (PyCFunction) PyCSDL2_FreeFormat, METH_VARARGS | METH_KEYWORDS, "SDL_FreeFormat(format: SDL_PixelFormat) -> None\n" "\n" "Frees the SDL_PixelFormat `format`.\n" "\n" "There is no need to manually call this function. SDL_PixelFormat will\n" "automatically call this function as part of its destructor.\n" }, {"SDL_AllocPalette", (PyCFunction) PyCSDL2_AllocPalette, METH_VARARGS | METH_KEYWORDS, "SDL_AllocPalette(ncolors: int) -> SDL_Palette\n" "\n" "Returns a new SDL_Palette with `ncolors` number of colors.\n" "\n" "The color values are initialized to white.\n" }, {"SDL_FreePalette", (PyCFunction) PyCSDL2_FreePalette, METH_VARARGS | METH_KEYWORDS, "SDL_FreePalette(palette: SDL_Palette) -> None\n" "\n" "Frees the SDL_Palette `palette`.\n" "\n" "There is no need to manually call this function. SDL_Palette will\n" "automatically call this function as part of its destructor.\n" }, /* rect.h */ {"SDL_HasIntersection", (PyCFunction) PyCSDL2_HasIntersection, METH_VARARGS | METH_KEYWORDS, "SDL_HasIntersection(A: SDL_Rect, B: SDL_Rect) -> bool\n" "\n" "Returns True if rectangles `A` and `B` are intersecting, False\n" "otherwise. If either argument is None the function will return\n" "False.\n" }, /* render.h */ {"SDL_GetNumRenderDrivers", (PyCFunction) PyCSDL2_GetNumRenderDrivers, METH_VARARGS | METH_KEYWORDS, "SDL_GetNumRenderDrivers() -> int\n" "\n" "Gets the number of 2D rendering drivers available for the current\n" "display.\n" }, {"SDL_GetRenderDriverInfo", (PyCFunction) PyCSDL2_GetRenderDriverInfo, METH_VARARGS | METH_KEYWORDS, "SDL_GetRenderDriverInfo(index: int) -> SDL_RendererInfo\n" "\n" "Gets information about a specific 2D rendering driver for the current\n" "display.\n" "\n" "`index` is the index of the driver to query information about. It must\n" "be within the range 0 to SDL_GetNumRenderDrivers()-1.\n" }, {"SDL_CreateWindowAndRenderer", (PyCFunction) PyCSDL2_CreateWindowAndRenderer, METH_VARARGS | METH_KEYWORDS, "SDL_CreateWindowAndRenderer(width: int, height: int,\n" " window_flags: int)\n" " -> (SDL_Window, SDL_Renderer)\n" "\n" "Creates a window and a default renderer.\n" "\n" "`width` and `height` specifies the width and height of the window.\n" "\n" "`flags` must be 0, or one or more of the following OR'd together:\n" "`SDL_WINDOW_FULLSCREEN`, `SDL_WINDOW_OPENGL`, `SDL_WINDOW_SHOWN`,\n" "`SDL_WINDOW_HIDDEN`, `SDL_WINDOW_BORDERLESS`, `SDL_WINDOW_RESIZABLE`,\n" "`SDL_WINDOW_RESIZABLE`, `SDL_WINDOW_MINIMIZED`,\n" "`SDL_WINDOW_MAXIMIZED`, `SDL_WINDOW_INPUT_GRABBED`,\n" "`SDL_WINDOW_INPUT_FOCUS`, `SDL_WINDOW_MOUSE_FOCUS`,\n" "`SDL_WINDOW_FULLSCREEN_DESKTOP`.\n" }, {"SDL_CreateRenderer", (PyCFunction) PyCSDL2_CreateRenderer, METH_VARARGS | METH_KEYWORDS, "SDL_CreateRenderer(window: SDL_Window, index: int, flags: int)\n" " -> SDL_Renderer\n" "\n" "Creates a SDL_Renderer for `window`. `index` is the index of the\n" "rendering driver to initialize, or -1 to initialize the first one\n" "supporting `flags`. `flags` can be 0, or one or more SDL_RENDERER_*\n" "flags OR'ed together.\n" }, {"SDL_CreateSoftwareRenderer", (PyCFunction) PyCSDL2_CreateSoftwareRenderer, METH_VARARGS | METH_KEYWORDS, "SDL_CreateSoftwareRenderer(surface: SDL_Surface) -> SDL_Renderer\n" "\n" "Creates a SDL_Renderer for `surface`.\n" }, {"SDL_GetRenderer", (PyCFunction) PyCSDL2_GetRenderer, METH_VARARGS | METH_KEYWORDS, "SDL_GetRenderer(window: SDL_Window) -> SDL_Renderer or None\n" "\n" "Returns the renderer associated with a window.\n" }, {"SDL_GetRendererInfo", (PyCFunction) PyCSDL2_GetRendererInfo, METH_VARARGS | METH_KEYWORDS, "SDL_GetRendererInfo(renderer: SDL_Renderer) -> SDL_RendererInfo\n" "\n" "Gets information about a rendering context.\n" }, {"SDL_GetRendererOutputSize", (PyCFunction) PyCSDL2_GetRendererOutputSize, METH_VARARGS | METH_KEYWORDS, "SDL_GetRendererOutputSize(renderer: SDL_Renderer) -> (int, int)\n" "\n" "Get the output size of a rendering context.\n" }, {"SDL_CreateTexture", (PyCFunction) PyCSDL2_CreateTexture, METH_VARARGS | METH_KEYWORDS, "SDL_CreateTexture(renderer: SDL_Renderer, format: int, access: int,\n" " w: int, h: int) -> SDL_Texture\n" "\n" "Creates a texture for a rendering context with the specified\n" "properties:\n" "\n" "renderer\n" " The rendering context.\n" "\n" "format\n" " One of the SDL_PIXELFORMAT_* constants. Defines the pixel format\n" " of the texture.\n" "\n" "access\n" " One of the SDL_TEXTUREACCESS_* constants. Defines how the texture\n" " can be accessed:\n" "\n" " * SDL_TEXTUREACCESS_STATIC -- changes rarely, not lockable.\n" " * SDL_TEXTUREACCESS_STREAMING -- changes frequently, lockable.\n" " * SDL_TEXTUREACCESS_TARGET -- can be used as a render target.\n" "\n" "w\n" " Width of the texture in pixels.\n" "\n" "h\n" " Height of the texture in pixels.\n" }, {"SDL_CreateTextureFromSurface", (PyCFunction) PyCSDL2_CreateTextureFromSurface, METH_VARARGS | METH_KEYWORDS, "SDL_CreateTextureFromSurface(renderer: SDL_Renderer,\n" " surface: SDL_Surface) -> SDL_Texture\n" "\n" "Creates a texture for a rendering context with the pixel data of an\n" "existing surface.\n" "\n" "The surface is not modified or freed by this function. The texture\n" "will be created with SDL_TEXTUREACCESS_STATIC.\n" }, {"SDL_QueryTexture", (PyCFunction) PyCSDL2_QueryTexture, METH_VARARGS | METH_KEYWORDS, "SDL_QueryTexture(texture: SDL_Texture) -> (int, int, int, int)\n" "\n" "Query the attributes of a texture, returning a (int, int, int, int)\n" "tuple with the following:\n" "\n" "* The texture's raw pixel format. One of the SDL_PIXELFORMAT_*\n" " constants.\n" "* The texture's access. One of the SDL_TEXTUREACCESS_* constants.\n" "* The texture's width, in pixels.\n" "* The texture's height, in pixels.\n" }, {"SDL_SetTextureColorMod", (PyCFunction) PyCSDL2_SetTextureColorMod, METH_VARARGS | METH_KEYWORDS, "SDL_SetTextureColorMod(texture: SDL_Texture, r: int, g: int, b: int)\n" " -> None\n" "\n" "Sets an additional color value (r, g, b) used in render copy\n" "operations.\n" "\n" "When the texture is rendered, during the copy operation each source\n" "color channel is modulated by the appropriate color value according\n" "to the following formula:\n" "\n" " srcC = srcC * (color / 255)\n" }, {"SDL_GetTextureColorMod", (PyCFunction) PyCSDL2_GetTextureColorMod, METH_VARARGS | METH_KEYWORDS, "SDL_GetTextureColorMod(texture: SDL_Texture) -> (int, int, int)\n" "\n" "Returns the additional color value (r, hg, b) multiplied into render\n" "copy operations.\n" }, {"SDL_SetTextureAlphaMod", (PyCFunction) PyCSDL2_SetTextureAlphaMod, METH_VARARGS | METH_KEYWORDS, "SDL_SetTextureAlphaMod(texture: SDL_Texture, alpha: int) -> None\n" "\n" "Sets an additional alpha value multiplied into render copy operations.\n" "The alpha value must be within the range 0-255.\n" "\n" "When the texture is rendered, during the copy operation the source\n" "alpha value would be modulated by this alpha value according to the\n" "following formula:\n" "\n" " srcA - srcA * (alpha / 255)\n" }, {"SDL_GetTextureAlphaMod", (PyCFunction) PyCSDL2_GetTextureAlphaMod, METH_VARARGS | METH_KEYWORDS, "SDL_GetTextureAlphaMod(texture: SDL_Texture) -> int\n" "\n" "Returns the additional alpha value multiplied into render copy\n" "operations. It is within the range 0-255.\n" }, {"SDL_SetTextureBlendMode", (PyCFunction) PyCSDL2_SetTextureBlendMode, METH_VARARGS | METH_KEYWORDS, "SDL_SetTextureBlendMode(texture: SDL_Texture, blendMode: int) -> None\n" "\n" "Sets the blend mode for a texture, where `blendMode` is one of:\n" "\n" "SDL_BLENDMODE_NONE:\n" " No blending.\n" " dstRGBA = srcRGBA\n" "\n" "SDL_BLENDMODE_ADD:\n" " Alpha blending.\n" " dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA))\n" " dstA = srcA + (dstA * (1-srcA))\n" "\n" "SDL_BLENDMODE_ADD:\n" " Additive blending.\n" " dstRGB = (srcRGB * srcA) + dstRGB\n" " dstA = dstA\n" "\n" "SDL_BLENDMODE_MOD:\n" " Color modulate.\n" " dstRGB = srcRGB * dstRGB\n" " dstA = dstA\n" }, {"SDL_GetTextureBlendMode", (PyCFunction) PyCSDL2_GetTextureBlendMode, METH_VARARGS | METH_KEYWORDS, "SDL_GetTextureBlendMode(texture: SDL_Texture) -> int\n" "\n" "Returns the blend mode used for texture copy operations. It is one of\n" "the SDL_BLENDMODE_* constants.\n" }, {"SDL_UpdateTexture", (PyCFunction) PyCSDL2_UpdateTexture, METH_VARARGS | METH_KEYWORDS, "SDL_UpdateTexture(texture: SDL_Texture, rect: SDL_Rect, pixels: buffer,\n" " pitch: int) -> None\n" "\n" "Updates the given texture rectangle with new pixel data.\n" "\n" "texture\n" " The texture to update.\n" "\n" "rect\n" " The area to update, or None to update the entire texture.\n" "\n" "pixels\n" " The raw pixel data.\n" "\n" "pitch\n" " The number of bytes in a row of pixel data, including padding\n" " between lines.\n" }, {"SDL_LockTexture", (PyCFunction) PyCSDL2_LockTexture, METH_VARARGS | METH_KEYWORDS, "SDL_LockTexture(texture: SDL_Texture, rect: SDL_Rect) -> (buffer, int)\n" "\n" "Locks a portion of the texture for write-only pixel access.\n" "\n" "texture\n" " The texture to update.\n" "\n" "rect\n" " The area to lock for access, or None to lock the entire texture.\n" "\n" "Returns a tuple (pixels, pitch), where `pixels` is a buffer with the\n" "locked pixel data, and `pitch` is the integer length of one row in\n" "bytes.\n" }, {"SDL_UnlockTexture", (PyCFunction) PyCSDL2_UnlockTexture, METH_VARARGS | METH_KEYWORDS, "SDL_UnlockTexture(texture: SDL_Texture) -> None\n" "\n" "Unlocks a texture, uploading any changes to video memory.\n" }, {"SDL_RenderTargetSupported", (PyCFunction) PyCSDL2_RenderTargetSupported, METH_VARARGS | METH_KEYWORDS, "SDL_RenderTargetSupported(renderer: SDL_Renderer) -> bool\n" "\n" "Returns whether a renderer supports the use of render targets.\n" }, {"SDL_SetRenderTarget", (PyCFunction) PyCSDL2_SetRenderTarget, METH_VARARGS | METH_KEYWORDS, "SDL_SetRenderTarget(renderer: SDL_Renderer, texture: SDL_Texture)\n" " -> None\n" "\n" "Sets `texture` as the current rendering target, or None for the\n" "default rendering target.\n" "\n" "The targeted texture must be created with the SDL_TEXTUREACCESS_TARGET\n" "flag.\n" }, {"SDL_GetRenderTarget", (PyCFunction) PyCSDL2_GetRenderTarget, METH_VARARGS | METH_KEYWORDS, "SDL_GetRenderTarget(renderer: SDL_Renderer) -> SDL_Texture or None\n" "\n" "Returns the current render target, or None for the default render\n" "target.\n" }, {"SDL_RenderSetLogicalSize", (PyCFunction) PyCSDL2_RenderSetLogicalSize, METH_VARARGS | METH_KEYWORDS, "SDL_RenderSetLogicalSize(renderer: SDL_Renderer, w: int, h: int)\n" " -> None\n" "\n" "Sets the device independent resolution for rendering to `w` x `h`.\n" }, {"SDL_RenderGetLogicalSize", (PyCFunction) PyCSDL2_RenderGetLogicalSize, METH_VARARGS | METH_KEYWORDS, "SDL_RenderGetLogicalSize(renderer: SDL_Renderer) -> (int, int)\n" "\n" "Returns the width and height of the renderer's device independent\n" "resolution for rendering.\n" "\n" "If the renderer did not have its logical size set by\n" "SDL_RenderSetLogicalSize(), the function returns (0, 0).\n" }, {"SDL_RenderSetViewport", (PyCFunction) PyCSDL2_RenderSetViewport, METH_VARARGS | METH_KEYWORDS, "SDL_RenderSetViewport(renderer: SDL_Renderer, rect: SDL_Rect) -> None\n" "\n" "Sets the drawing area `rect` for rendering on the current target.\n" "\n" "If `rect` is None, the drawing area is set to the entire target.\n" "\n" "When the window is resized, the current viewport is automatically\n" "centered within the new window size.\n" }, {"SDL_RenderGetViewport", (PyCFunction) PyCSDL2_RenderGetViewport, METH_VARARGS | METH_KEYWORDS, "SDL_RenderGetViewport(renderer: SDL_Renderer) -> SDL_Rect\n" "\n" "Returns the drawing area for the current target.\n" }, {"SDL_RenderSetClipRect", (PyCFunction) PyCSDL2_RenderSetClipRect, METH_VARARGS | METH_KEYWORDS, "SDL_RenderSetClipRect(renderer: SDL_Renderer, rect: SDL_Rect or None)\n" " -> None\n" }, {"SDL_RenderGetClipRect", (PyCFunction) PyCSDL2_RenderGetClipRect, METH_VARARGS | METH_KEYWORDS, "SDL_RenderGetClipRect(renderer: SDL_Renderer) -> SDL_Rect\n" }, {"SDL_RenderSetScale", (PyCFunction) PyCSDL2_RenderSetScale, METH_VARARGS | METH_KEYWORDS, "SDL_RenderSetScale(renderer: SDL_Renderer, scaleX: float,\n" " scaleY: float) -> None\n" }, {"SDL_RenderGetScale", (PyCFunction) PyCSDL2_RenderGetScale, METH_VARARGS | METH_KEYWORDS, "SDL_RenderGetScale(renderer: SDL_Renderer) -> (float, float)\n" }, {"SDL_SetRenderDrawColor", (PyCFunction) PyCSDL2_SetRenderDrawColor, METH_VARARGS | METH_KEYWORDS, "SDL_SetRenderDrawColor(renderer: SDL_Renderer, r: int, g: int, b: int,\n" " a: int) -> None\n" "\n" "Sets the color used for drawing primitives and for SDL_RenderClear()\n" }, {"SDL_GetRenderDrawColor", (PyCFunction) PyCSDL2_GetRenderDrawColor, METH_VARARGS | METH_KEYWORDS, "SDL_GetRenderDrawColor(renderer: SDL_Renderer) -> (int, int, int, int)\n" "\n" "Returns the color (r, g, b, a) used for drawing operations.\n" }, {"SDL_SetRenderDrawBlendMode", (PyCFunction) PyCSDL2_SetRenderDrawBlendMode, METH_VARARGS | METH_KEYWORDS, "SDL_SetRenderDrawBlendMode(renderer: SDL_Renderer, blendMode: int)\n" " -> None\n" }, {"SDL_GetRenderDrawBlendMode", (PyCFunction) PyCSDL2_GetRenderDrawBlendMode, METH_VARARGS | METH_KEYWORDS, "SDL_GetRenderDrawBlendMode(renderer: SDL_Renderer) -> int\n" }, {"SDL_RenderClear", (PyCFunction) PyCSDL2_RenderClear, METH_VARARGS | METH_KEYWORDS, "SDL_RenderClear(renderer: SDL_Renderer) -> None\n" "\n" "Clears the current rendering target with the current drawing color.\n" "The entire rendering target is cleared, ignoring the viewport.\n" }, {"SDL_RenderDrawPoint", (PyCFunction) PyCSDL2_RenderDrawPoint, METH_VARARGS | METH_KEYWORDS, "SDL_RenderDrawPoint(renderer: SDL_Renderer, x: int, y: int) -> None\n" "\n" "Draw a point (x, y) on the current rendering target.\n" }, {"SDL_RenderDrawPoints", (PyCFunction) PyCSDL2_RenderDrawPoints, METH_VARARGS | METH_KEYWORDS, "SDL_RenderDrawPoints(renderer: SDL_Renderer, points: buffer,\n" " count: int) -> None\n" "\n" "Draw multiple points on the current rendering target.\n" "\n" "points\n" " An array of SDL_Points that represents the points to draw.\n" "\n" "count\n" " The number of points to draw.\n" }, {"SDL_RenderDrawLine", (PyCFunction) PyCSDL2_RenderDrawLine, METH_VARARGS | METH_KEYWORDS, "SDL_RenderDrawLine(renderer: SDL_Renderer, x1: int, y1: int, x2: int,\n" " y2: int) -> None\n" "\n" "Draw a line with endpoints (x1, y1) and (x2, y2) on the current\n" "rendering target.\n" }, {"SDL_RenderDrawLines", (PyCFunction) PyCSDL2_RenderDrawLines, METH_VARARGS | METH_KEYWORDS, "SDL_RenderDrawLines(renderer: SDL_Renderer, points: buffer,\n" " count: int) -> None\n" "\n" "Draw a series of connected lines on the current rendering target.\n" "\n" "points\n" " An array of SDL_Points representing points along the lines.\n" "\n" "count\n" " The number of points, drawing count-1 lines.\n" }, {"SDL_RenderDrawRect", (PyCFunction) PyCSDL2_RenderDrawRect, METH_VARARGS | METH_KEYWORDS, "SDL_RenderDrawRect(renderer: SDL_Renderer, rect: SDL_Rect or None)\n" "\n" "Draw a rectangle on the current rendering target. If `rect` is None,\n" "draw an outline on the entire rendering target.\n" }, {"SDL_RenderDrawRects", (PyCFunction) PyCSDL2_RenderDrawRects, METH_VARARGS | METH_KEYWORDS, "SDL_RenderDrawRects(renderer: SDL_Renderer, rects: buffer, count: int)\n" " -> None\n" "\n" "Draw some number of rectangles on the current rendering target.\n" "\n" "rects\n" " An array of SDL_Rects representing the rectangles to be drawn.\n" "\n" "count\n" " The number of rectangles.\n" }, {"SDL_RenderFillRect", (PyCFunction) PyCSDL2_RenderFillRect, METH_VARARGS | METH_KEYWORDS, "SDL_RenderFillRect(renderer: SDL_Renderer, rect: SDL_Rect or None)\n" " -> None\n" "\n" "Fills a rectangle `rect` on the current rendering target with the\n" "current drawing color.\n" "\n" "If `rect` is None, the entire rendering target will be filled.\n" }, {"SDL_RenderFillRects", (PyCFunction) PyCSDL2_RenderFillRects, METH_VARARGS | METH_KEYWORDS, "SDL_RenderFillRects(renderer: SDL_Renderer, rects: buffer, count: int)\n" " -> None\n" "\n" "Fill some number of rectangles on the current rendering target with\n" "the current drawing color.\n" "\n" "rects\n" " An array of SDL_Rects representing the rectangles to be filled.\n" "\n" "count\n" " The number of rectangles.\n" }, {"SDL_RenderCopy", (PyCFunction) PyCSDL2_RenderCopy, METH_VARARGS | METH_KEYWORDS, "SDL_RenderCopy(renderer: SDL_Renderer, texture: SDL_Texture,\n" " srcrect: SDL_Rect, dstrect: SDL_Rect) -> None\n" "\n" "Copies a portion of the texture to the current rendering target.\n" "\n" "renderer\n" " The rendering context.\n" "\n" "texture\n" " The source texture.\n" "\n" "srcrect\n" " The source rectangle, or None for the entire texture.\n" "\n" "dstrect\n" " The destination rectangle, or None for the entire rendering target.\n" " The texture will be stretched to fill the given rectangle.\n" }, {"SDL_RenderCopyEx", (PyCFunction) PyCSDL2_RenderCopyEx, METH_VARARGS | METH_KEYWORDS, "SDL_RenderCopyEx(renderer: SDL_Renderer, texture: SDL_Texture,\n" " srcrect: SDL_Rect, dstrect: SDL_Rect, angle: float,\n" " center: SDL_Point, flip: int) -> None\n" "\n" "Copies a portion of the texture to the current rendering target,\n" "optionally rotating it by an angle around the given center and also\n" "flipping it top-bottom and/or left-right.\n" "\n" "renderer\n" " The rendering context.\n" "\n" "texture\n" " The source texture.\n" "\n" "srcrect\n" " The source rectangle, or None for the entire texture.\n" "\n" "dstrect\n" " The destination rectangle, or None for the entire rendering\n" " target. The texture will be stretched to fill the given rectangle.\n" "\n" "angle\n" " An angle in degrees that indicates the rotation that will be\n" " applied to `dstrect`.\n" "\n" "center\n" " The point around which `dstrect` will be rotated. If None,\n" " rotation will be done around ``(dstrect.w/2, dstrect.h/2)``.\n" "\n" "flip\n" " Indicates which flipping actions should be performed on the\n" " texture. One or more of SDL_FLIP_NONE, SDL_FLIP_HORIZONTAL and/or\n" " SDL_FLIP_VERTICAL OR'd together.\n" }, {"SDL_RenderReadPixels", (PyCFunction) PyCSDL2_RenderReadPixels, METH_VARARGS | METH_KEYWORDS, "SDL_RenderReadPixels(renderer: SDL_Renderer, rect: SDL_Rect,\n" " format: int, pixels: buffer, pitch: int) -> None\n" "\n" "Read pixels from the current rendering target.\n" "\n" "renderer\n" " The rendering context.\n" "\n" "rect\n" " An SDL_Rect representing the area to read, or None for the entire\n" " render target.\n" "\n" "format\n" " The desired format of the pixel data (one of the SDL_PIXELFORMAT_*\n" " constants), or 0 to use the format of the rendering target.\n" "\n" "pixels\n" " The buffer to be filled in with the pixel data.\n" "\n" "pitch\n" " The pitch of the pixels buffer.\n" }, {"SDL_RenderPresent", (PyCFunction) PyCSDL2_RenderPresent, METH_VARARGS | METH_KEYWORDS, "SDL_RenderPresent(renderer: SDL_Renderer) -> None\n" "\n" "Updates the screen with any rendering performed since the previous\n" "call.\n" }, {"SDL_DestroyTexture", (PyCFunction) PyCSDL2_DestroyTexture, METH_VARARGS | METH_KEYWORDS, "SDL_DestroyTexture(texture: SDL_Texture) -> None\n" "\n" "Destroys the specified texture, freeing its resources.\n" "\n" "There is no need to explictly call this function. SDL_Texture will\n" "automatically call it upon cleanup.\n" }, {"SDL_DestroyRenderer", (PyCFunction) PyCSDL2_DestroyRenderer, METH_VARARGS | METH_KEYWORDS, "SDL_DestroyRenderer(renderer: SDL_Renderer) -> None\n" "\n" "Destroys `renderer`, freeing up its associated SDL_Texture's and\n" "resources.\n" "\n" "There is no need to manually call this function. SDL_Renderer will\n" "automatically call this function as part of its destructor.\n" "\n" "Once destroyed, do not access the renderer. Doing so will at best\n" "raise errors and at worse crash the interpreter.\n" }, {"SDL_GL_BindTexture", (PyCFunction) PyCSDL2_GL_BindTexture, METH_VARARGS | METH_KEYWORDS, "SDL_GL_BindTexture(texture: SDL_Texture) -> (float, float)\n" "\n" "Bind the texture to the current OpenGL/ES/ES2 context for use with\n" "OpenGL instructions. Returns the texture width and height as a tuple.\n" }, {"SDL_GL_UnbindTexture", (PyCFunction) PyCSDL2_GL_UnbindTexture, METH_VARARGS | METH_KEYWORDS, "SDL_GL_UnbindTexture(texture: SDL_Texture) -> None\n" "\n" "Unbind a texture from the current OpenGL/ES/ES2 context.\n" }, /* rwops.h */ {"SDL_RWFromFile", (PyCFunction) PyCSDL2_RWFromFile, METH_VARARGS | METH_KEYWORDS, "SDL_RWFromFile(file: str, mode: str) -> SDL_RWops\n" "\n" "Creates a SDL_RWops for reading from and/or writing to `file`.\n" "\n" "`mode` is one of the following:\n" "\n" "* 'r' -- Open a file for reading. The file must exist.\n" "* 'w' -- Create an empty file for writing. If a file with the same\n" " name already exists its content is erased and the file is treated\n" " as a new empty file.\n" "* 'a' -- Append to a file. Writing operations append data at the end\n" " of the file. The file is created if it does not exist.\n" "* 'r+' -- Open a file for both reading and writing. The file must\n" " exist.\n" "* 'w+' -- Create an empty file for both reading and writing. If a file\n" " with the same name already exists its contents are erased and the\n" " file is treated as a new empty file.\n" "* 'a+' -- Open a file for reading and appending. All writing\n" " operations are performed at the end of the file. You can seek the\n" " internal pointer to anywhere in the file for reading, but writing\n" " operations will move it back to the end of the file. The file is\n" " created if it does not exist.\n" }, {"SDL_AllocRW", (PyCFunction) PyCSDL2_AllocRW, METH_VARARGS | METH_KEYWORDS, "SDL_AllocRW() -> SDL_RWops\n" "\n" "Allocates and returns a new SDL_RWops structure.\n" }, {"SDL_FreeRW", (PyCFunction) PyCSDL2_FreeRW, METH_VARARGS | METH_KEYWORDS, "SDL_FreeRW(area: SDL_RWops) -> None\n" "\n" "Frees a SDL_RWops structure allocated by SDL_AllocRW()\n" }, {"SDL_RWsize", (PyCFunction) PyCSDL2_RWsize, METH_VARARGS | METH_KEYWORDS, "SDL_RWsize(context: SDL_RWops) -> int\n" "\n" "Returns the size of the data stream in the SDL_RWops context.\n" }, {"SDL_RWseek", (PyCFunction) PyCSDL2_RWseek, METH_VARARGS | METH_KEYWORDS, "SDL_RWseek(context: SDL_RWops, offset: int, whence: int) -> int\n" "\n" "Seeks to `offset` relative to `whence`, where `whence` is one of:\n" "\n" " * RW_SEEK_SET -- seek from the beginning of data\n" " * RW_SEEK_CUR -- seek relative to the current read point\n" " * RW_SEEK_END -- seek relative to the end of data\n" "\n" "Returns the final offset in the data stream after the seek.\n" }, {"SDL_RWread", (PyCFunction) PyCSDL2_RWread, METH_VARARGS | METH_KEYWORDS, "SDL_RWread(context: SDL_RWops, ptr: buffer, size: int, maxnum: int)\n" " -> int\n" "\n" "Reads up to `maxnum` objects, each of size `size` bytes, from the data\n" "source to the buffer `ptr`. Returns the number of objects read, or 0\n" "at the end of file. This function may read less objects than\n" "requested.\n" }, {"SDL_RWwrite", (PyCFunction) PyCSDL2_RWwrite, METH_VARARGS | METH_KEYWORDS, "SDL_RWwrite(context: SDL_RWops, ptr: buffer, size: int, num: int)\n" " -> int\n" "\n" "Writes exactly `num` objects, each `size` bytes, from the buffer\n" "`ptr`. If this fails for any reason, it will return less than `num`\n" "to show how far the write progressed. On success, it returns `num`.\n" }, {"SDL_RWclose", (PyCFunction) PyCSDL2_RWclose, METH_VARARGS | METH_KEYWORDS, "SDL_RWclose(context: SDL_RWops) -> None\n" "\n" "Closes and cleans up the data stream. The SDL_RWops object will\n" "be freed.\n" "\n" "Note that even if an error occurs, the SDL_RWops object will still be\n" "invalidated.\n" }, /* surface.h */ {"SDL_MUSTLOCK", (PyCFunction) PyCSDL2_MUSTLOCK, METH_VARARGS | METH_KEYWORDS, "SDL_MUSTLOCK(surface: SDL_Surface) -> bool\n" "\n" "Returns True if `surface` needs to be locked before access.\n" }, {"SDL_CreateRGBSurface", (PyCFunction) PyCSDL2_CreateRGBSurface, METH_VARARGS | METH_KEYWORDS, "SDL_CreateRGBSurface(flags: int, width: int, height: int, depth: int,\n" " Rmask: int, Gmask: int, Bmask: int, Amask: int)\n" " -> SDL_Surface\n" "\n" "Creates and returns a new SDL_Surface with the specified properties:\n" "\n" "flags\n" " The flags are unused and should be set to 0.\n" "\n" "width\n" " The width of the surface in pixels.\n" "\n" "height\n" " The height of the surface in pixels.\n" "\n" "depth\n" " The depth of the surface in bits. If `depth` is 4 or 8 bits, an\n" " empty palette is allocated for the surface. If `depth` is greater\n" " than 8 bits, the pixel format is set using the `[RGBA]mask`\n" " parameters.\n" "\n" "Rmask, Gmask, Bmask, Amask\n" " These parameters are the bitmasks used to extract that color from\n" " a pixel. Setting them to 0 sets a default value based on the\n" " depth. Setting `Amask` to 0 results in an `Amask` of 0.\n" }, {"SDL_CreateRGBSurfaceFrom", (PyCFunction) PyCSDL2_CreateRGBSurfaceFrom, METH_VARARGS | METH_KEYWORDS, "SDL_CreateRGBSurfaceFrom(pixels: buffer, width: int, height: int,\n" " depth: int, pitch: int, Rmask: int,\n" " Gmask: int, Bmask: int, Amask: int)\n" " -> SDL_Surface\n" "\n" "Creates and returns a new SDL_Surface with the specified properties:\n" "\n" "pixels\n" " A buffer containing the pixel data.\n" "\n" "width\n" " The width of the surface in pixels.\n" "\n" "height\n" " The height of the surface in pixels.\n" "\n" "depth\n" " The depth of the surface in bits. If `depth` is 4 or 8 bits, an\n" " empty palette is allocated for the surface. If `depth` is greater\n" " than 8 bits, the pixel format is set using the `[RGBA]mask`\n" " parameters.\n" "\n" "Rmask, Gmask, Bmask, Amask\n" " These parameters are the bitmasks used to extract that color from\n" " a pixel. Setting them to 0 sets a default value based on the\n" " depth. Setting `Amask` to 0 results in an `Amask` of 0.\n" }, {"SDL_FreeSurface", (PyCFunction) PyCSDL2_FreeSurface, METH_VARARGS | METH_KEYWORDS, "SDL_FreeSurface(surface: SDL_Surface) -> None\n" "\n" "Frees the surface.\n" "\n" "There is no need to manually call this function. SDL_Surface will\n" "automatically call this function as part of its destructor.\n" "\n" "Once freed, do not access the surface. Doing so will at best raise\n" "errors and at worse crash the interpreter.\n" }, {"SDL_LoadBMP_RW", (PyCFunction) PyCSDL2_LoadBMP_RW, METH_VARARGS | METH_KEYWORDS, "SDL_LoadBMP_RW(src: SDL_RWops, freesrc: bool) -> SDL_Surface\n" "\n" "Load a BMP image from a seekable SDL data stream. (memory or file).\n" "If `freesrc` is True, the stream will be closed after being read.\n" }, {"SDL_LoadBMP", (PyCFunction) PyCSDL2_LoadBMP, METH_VARARGS | METH_KEYWORDS, "SDL_LoadBMP(file: str) -> SDL_Surface)\n" "\n" "Load a surface from a BMP file.\n" }, /* video.h */ {"SDL_CreateWindow", (PyCFunction) PyCSDL2_CreateWindow, METH_VARARGS | METH_KEYWORDS, "SDL_CreateWindow(title: str, x: int, y: int, w: int, h: int,\n" " flags: int) -> SDL_Window\n" "\n" "Create a window with the specified `title`, position (`x`, `y`),\n" "dimensions `w` x `h`, and flags `flags`.\n" "\n" "`flags` can be one or more of following OR'ed together:\n" "`SDL_WINDOW_FULLSCREEN`, `SDL_WINDOW_OPENGL`, `SDL_WINDOW_SHOWN`,\n" "`SDL_WINDOW_HIDDEN`, `SDL_WINDOW_BORDERLESS`, `SDL_WINDOW_RESIZABLE`,\n" "`SDL_WINDOW_RESIZABLE`, `SDL_WINDOW_MINIMIZED`,\n" "`SDL_WINDOW_MAXIMIZED`, `SDL_WINDOW_INPUT_GRABBED`,\n" "`SDL_WINDOW_INPUT_FOCUS`, `SDL_WINDOW_MOUSE_FOCUS`,\n" "`SDL_WINDOW_FULLSCREEN_DESKTOP`.\n"}, {"SDL_GetWindowTitle", (PyCFunction) PyCSDL2_GetWindowTitle, METH_VARARGS | METH_KEYWORDS, "SDL_GetWindowTitle(window: SDL_Window) -> str\n" "\n" "Returns the title of the window, or an empty string if there is no\n" "title.\n" }, {"SDL_DestroyWindow", (PyCFunction) PyCSDL2_DestroyWindow, METH_VARARGS | METH_KEYWORDS, "SDL_DestroyWindow(window: SDL_Surface) -> None\n" "\n" "Destroys a window, freeing up its resources.\n" "\n" "There is no need to manually call this function. SDL_Window will\n" "automatically call it as part of its destructor.\n" "\n" "Once destroyed, do not access the window. Doing so will at best raise\n" "errors and at worse crash the interpreter.\n" }, /* End */ {0} }; #endif /* _PYCSDL2_METHODS_H_ */
35.075206
80
0.637894
23323444c86d0fd64aa6a62007fe40109639c486
3,085
h
C
Interactive/InteractorStyleImageWithDrag.h
jingtangliao/ff
d308fe62045e241a4822bb855df97ee087420d9b
[ "Apache-2.0" ]
39
2015-01-01T07:59:51.000Z
2021-10-01T18:11:46.000Z
Interactive/InteractorStyleImageWithDrag.h
jingtangliao/ff
d308fe62045e241a4822bb855df97ee087420d9b
[ "Apache-2.0" ]
1
2019-04-24T09:56:15.000Z
2019-04-24T14:45:46.000Z
Interactive/InteractorStyleImageWithDrag.h
jingtangliao/ff
d308fe62045e241a4822bb855df97ee087420d9b
[ "Apache-2.0" ]
18
2015-01-11T15:10:23.000Z
2022-02-24T20:02:10.000Z
/*========================================================================= * * Copyright David Doria 2012 daviddoria@gmail.com * * 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.txt * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *=========================================================================*/ #ifndef InteractorStyleImageWithDrag_H #define InteractorStyleImageWithDrag_H #include <vtkCommand.h> #include <vtkInteractorStyleTrackballActor.h> #include <vtkSmartPointer.h> /** This interactor to allow us to zoom and pan the image while * still moving images with Pickable=true * To use this, you must do, in this order: * this->InteractorStyle->SetCurrentRenderer(this->Renderer); * this->Interactor->SetInteractorStyle(this->InteractorStyle); * this->InteractorStyle->Init(); */ class CustomTrackballStyle; class CustomImageStyle; class InteractorStyleImageWithDrag : public vtkInteractorStyleTrackballActor { public: static InteractorStyleImageWithDrag* New(); vtkTypeMacro(InteractorStyleImageWithDrag,vtkInteractorStyleTrackballActor); InteractorStyleImageWithDrag(); void Init(); void SetCurrentRenderer(vtkRenderer* const renderer); void SetImageOrientation(const double* const, const double* const ); CustomImageStyle* GetImageStyle(); CustomTrackballStyle* GetTrackballStyle(); void PatchMoved(); private: vtkSmartPointer<CustomImageStyle> ImageStyle; vtkSmartPointer<CustomTrackballStyle> TrackballStyle; }; //////////////////////////////// ///// CustomImageStyle ///////// //////////////////////////////// #include <vtkInteractorStyleImage.h> class CustomTrackballStyle; // Define interaction style class CustomImageStyle : public vtkInteractorStyleImage { public: static CustomImageStyle* New(); vtkTypeMacro(CustomImageStyle,vtkInteractorStyleImage); void OnLeftButtonDown(); void SetOtherStyle(CustomTrackballStyle* const style); private: CustomTrackballStyle* OtherStyle; }; class CustomImageStyle; //////////////////////////////// ///// CustomTrackballStyle ///// //////////////////////////////// // Define interaction style class CustomTrackballStyle : public vtkInteractorStyleTrackballActor { public: const static unsigned int PatchesMovedEvent = vtkCommand::UserEvent + 1; static CustomTrackballStyle* New(); vtkTypeMacro(CustomTrackballStyle,vtkInteractorStyleTrackballActor); void OnLeftButtonDown(); void OnLeftButtonUp(); void OnMiddleButtonDown(); void OnRightButtonDown(); void SetOtherStyle(CustomImageStyle* const style); private: CustomImageStyle* OtherStyle; }; #endif
26.144068
78
0.702755
2332d121a5bdfaf0cd99d80ab2157d4c202c016d
9,343
h
C
MdePkg/Include/Protocol/HiiConfigKeyword.h
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
3,861
2019-09-04T10:10:11.000Z
2022-03-31T15:46:28.000Z
MdePkg/Include/Protocol/HiiConfigKeyword.h
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
461
2019-09-24T10:26:56.000Z
2022-03-26T13:22:32.000Z
MdePkg/Include/Protocol/HiiConfigKeyword.h
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
654
2019-09-05T11:42:37.000Z
2022-03-30T02:42:32.000Z
/** @file The file provides the mechanism to set and get the values associated with a keyword exposed through a x-UEFI- prefixed configuration language namespace. Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent @par Revision Reference: This Protocol was introduced in UEFI Specification 2.5. **/ #ifndef __EFI_CONFIG_KEYWORD_HANDLER_H__ #define __EFI_CONFIG_KEYWORD_HANDLER_H__ #define EFI_CONFIG_KEYWORD_HANDLER_PROTOCOL_GUID \ { \ 0x0a8badd5, 0x03b8, 0x4d19, {0xb1, 0x28, 0x7b, 0x8f, 0x0e, 0xda, 0xa5, 0x96 } \ } //*********************************************************** // Progress Errors //*********************************************************** #define KEYWORD_HANDLER_NO_ERROR 0x00000000 #define KEYWORD_HANDLER_NAMESPACE_ID_NOT_FOUND 0x00000001 #define KEYWORD_HANDLER_MALFORMED_STRING 0x00000002 #define KEYWORD_HANDLER_KEYWORD_NOT_FOUND 0x00000004 #define KEYWORD_HANDLER_INCOMPATIBLE_VALUE_DETECTED 0x00000008 #define KEYWORD_HANDLER_ACCESS_NOT_PERMITTED 0x00000010 #define KEYWORD_HANDLER_UNDEFINED_PROCESSING_ERROR 0x80000000 typedef struct _EFI_CONFIG_KEYWORD_HANDLER_PROTOCOL EFI_CONFIG_KEYWORD_HANDLER_PROTOCOL; /** This function accepts a <MultiKeywordResp> formatted string, finds the associated keyword owners, creates a <MultiConfigResp> string from it and forwards it to the EFI_HII_ROUTING_PROTOCOL.RouteConfig function. If there is an issue in resolving the contents of the KeywordString, then the function returns an error and also sets the Progress and ProgressErr with the appropriate information about where the issue occurred and additional data about the nature of the issue. In the case when KeywordString containing multiple keywords, when an EFI_NOT_FOUND error is generated during processing the second or later keyword element, the system storage associated with earlier keywords is not modified. All elements of the KeywordString must successfully pass all tests for format and access prior to making any modifications to storage. In the case when EFI_DEVICE_ERROR is returned from the processing of a KeywordString containing multiple keywords, the state of storage associated with earlier keywords is undefined. @param This Pointer to the EFI_KEYWORD_HANDLER _PROTOCOL instance. @param KeywordString A null-terminated string in <MultiKeywordResp> format. @param Progress On return, points to a character in the KeywordString. Points to the string's NULL terminator if the request was successful. Points to the most recent '&' before the first failing name / value pair (or the beginning of the string if the failure is in the first name / value pair) if the request was not successful. @param ProgressErr If during the processing of the KeywordString there was a failure, this parameter gives additional information about the possible source of the problem. The various errors are defined in "Related Definitions" below. @retval EFI_SUCCESS The specified action was completed successfully. @retval EFI_INVALID_PARAMETER One or more of the following are TRUE: 1. KeywordString is NULL. 2. Parsing of the KeywordString resulted in an error. See Progress and ProgressErr for more data. @retval EFI_NOT_FOUND An element of the KeywordString was not found. See ProgressErr for more data. @retval EFI_OUT_OF_RESOURCES Required system resources could not be allocated. See ProgressErr for more data. @retval EFI_ACCESS_DENIED The action violated system policy. See ProgressErr for more data. @retval EFI_DEVICE_ERROR An unexpected system error occurred. See ProgressErr for more data. **/ typedef EFI_STATUS (EFIAPI *EFI_CONFIG_KEYWORD_HANDLER_SET_DATA) ( IN EFI_CONFIG_KEYWORD_HANDLER_PROTOCOL *This, IN CONST EFI_STRING KeywordString, OUT EFI_STRING *Progress, OUT UINT32 *ProgressErr ); /** This function accepts a <MultiKeywordRequest> formatted string, finds the underlying keyword owners, creates a <MultiConfigRequest> string from it and forwards it to the EFI_HII_ROUTING_PROTOCOL.ExtractConfig function. If there is an issue in resolving the contents of the KeywordString, then the function returns an EFI_INVALID_PARAMETER and also set the Progress and ProgressErr with the appropriate information about where the issue occurred and additional data about the nature of the issue. In the case when KeywordString is NULL, or contains multiple keywords, or when EFI_NOT_FOUND is generated while processing the keyword elements, the Results string contains values returned for all keywords processed prior to the keyword generating the error but no values for the keyword with error or any following keywords. @param This Pointer to the EFI_KEYWORD_HANDLER _PROTOCOL instance. @param NameSpaceId A null-terminated string containing the platform configuration language to search through in the system. If a NULL is passed in, then it is assumed that any platform configuration language with the prefix of "x-UEFI-" are searched. @param KeywordString A null-terminated string in <MultiKeywordRequest> format. If a NULL is passed in the KeywordString field, all of the known keywords in the system for the NameSpaceId specified are returned in the Results field. @param Progress On return, points to a character in the KeywordString. Points to the string's NULL terminator if the request was successful. Points to the most recent '&' before the first failing name / value pair (or the beginning of the string if the failure is in the first name / value pair) if the request was not successful. @param ProgressErr If during the processing of the KeywordString there was a failure, this parameter gives additional information about the possible source of the problem. See the definitions in SetData() for valid value definitions. @param Results A null-terminated string in <MultiKeywordResp> format is returned which has all the values filled in for the keywords in the KeywordString. This is a callee-allocated field, and must be freed by the caller after being used. @retval EFI_SUCCESS The specified action was completed successfully. @retval EFI_INVALID_PARAMETER One or more of the following are TRUE: 1.Progress, ProgressErr, or Results is NULL. 2.Parsing of the KeywordString resulted in an error. See Progress and ProgressErr for more data. @retval EFI_NOT_FOUND An element of the KeywordString was not found. See ProgressErr for more data. @retval EFI_NOT_FOUND The NamespaceId specified was not found. See ProgressErr for more data. @retval EFI_OUT_OF_RESOURCES Required system resources could not be allocated. See ProgressErr for more data. @retval EFI_ACCESS_DENIED The action violated system policy. See ProgressErr for more data. @retval EFI_DEVICE_ERROR An unexpected system error occurred. See ProgressErr for more data. **/ typedef EFI_STATUS (EFIAPI *EFI_CONFIG_KEYWORD_HANDLER_GET_DATA) ( IN EFI_CONFIG_KEYWORD_HANDLER_PROTOCOL *This, IN CONST EFI_STRING NameSpaceId, OPTIONAL IN CONST EFI_STRING KeywordString, OPTIONAL OUT EFI_STRING *Progress, OUT UINT32 *ProgressErr, OUT EFI_STRING *Results ); /// /// The EFI_CONFIG_KEYWORD_HANDLER_PROTOCOL provides the mechanism /// to set and get the values associated with a keyword exposed /// through a x-UEFI- prefixed configuration language namespace /// struct _EFI_CONFIG_KEYWORD_HANDLER_PROTOCOL { EFI_CONFIG_KEYWORD_HANDLER_SET_DATA SetData; EFI_CONFIG_KEYWORD_HANDLER_GET_DATA GetData; }; extern EFI_GUID gEfiConfigKeywordHandlerProtocolGuid; #endif
46.715
92
0.648828
23349b6d681f9c01bcc4905c16fb13798c552aad
452
h
C
Controllers/FreeCameraController/FSEGTFreeCameraControllerDelegate.h
demensdeum/FlameSteelEngineGameToolkit
56d461da694028fcebb7cb68c3955b8145112440
[ "MIT" ]
null
null
null
Controllers/FreeCameraController/FSEGTFreeCameraControllerDelegate.h
demensdeum/FlameSteelEngineGameToolkit
56d461da694028fcebb7cb68c3955b8145112440
[ "MIT" ]
null
null
null
Controllers/FreeCameraController/FSEGTFreeCameraControllerDelegate.h
demensdeum/FlameSteelEngineGameToolkit
56d461da694028fcebb7cb68c3955b8145112440
[ "MIT" ]
null
null
null
#ifndef FSEGTFREECAMERACONTROLLERDELEGATEDEFINED #define FSEGTFREECAMERACONTROLLERDELEGATEDEFINED #include <memory> using namespace std; namespace FlameSteelCore { class Object; }; using namespace FlameSteelCore; class FSEGTFreeCameraController; class FSEGTFreeCameraControllerDelegate { public: virtual void freeCameraControllerDidUpdateCamera(shared_ptr<FSEGTFreeCameraController> freeCameraController, shared_ptr<Object> camera); }; #endif
19.652174
137
0.853982
2334b54ea731d0e30156af2df5ec13d0a080f103
1,201
h
C
Pixen Application/Grid/PXGridSettingsController.h
cooljeanius/Pixen
e6cdb76de6ba6b2c2a6d6524fa01f95478bea85c
[ "MIT" ]
1
2020-10-20T02:29:08.000Z
2020-10-20T02:29:08.000Z
Pixen Application/Grid/PXGridSettingsController.h
cooljeanius/Pixen
e6cdb76de6ba6b2c2a6d6524fa01f95478bea85c
[ "MIT" ]
null
null
null
Pixen Application/Grid/PXGridSettingsController.h
cooljeanius/Pixen
e6cdb76de6ba6b2c2a6d6524fa01f95478bea85c
[ "MIT" ]
null
null
null
// // PXGridSettingsController.h // Pixen // // Copyright 2005-2012 Pixen Project. All rights reserved. // @interface PXGridSettingsController : NSWindowController { @private NSColorWell *_colorWell; NSButton *_shouldDrawCheckBox; NSTextField *_colorLabel; NSTextField *_sizeLabel; int _width; int _height; NSColor *_color; BOOL _shouldDraw; id _delegate; } @property (nonatomic, assign) IBOutlet NSColorWell *colorWell; @property (nonatomic, assign) IBOutlet NSButton *shouldDrawCheckBox; @property (nonatomic, assign) IBOutlet NSTextField *colorLabel; @property (nonatomic, assign) IBOutlet NSTextField *sizeLabel; @property (nonatomic, assign) int width; @property (nonatomic, assign) int height; @property (nonatomic, retain) NSColor *color; @property (nonatomic, assign) BOOL shouldDraw; @property (nonatomic, assign) id delegate; - (IBAction)update:(id)sender; - (IBAction)useAsDefaults:(id)sender; - (IBAction)displayHelp:(id)sender; @end @interface NSObject (PXGridSettingsPrompterDelegate) - (void)gridSettingsController:(PXGridSettingsController *)controller updatedWithSize:(NSSize)size color:(NSColor *)color shouldDraw:(BOOL)shouldDraw; @end
23.54902
69
0.765196
23363f639e9c7320dea8376f424f13c68ee26d50
71
h
C
jeff/common/include/jefflib.h
jeffphi/advent-of-code-2018
8e54bd23ebfe42fcbede315f0ab85db903551532
[ "MIT" ]
1
2018-12-23T01:40:07.000Z
2018-12-23T01:40:07.000Z
jeff/common/include/jefflib.h
jeffphi/advent-of-code-2018
8e54bd23ebfe42fcbede315f0ab85db903551532
[ "MIT" ]
null
null
null
jeff/common/include/jefflib.h
jeffphi/advent-of-code-2018
8e54bd23ebfe42fcbede315f0ab85db903551532
[ "MIT" ]
null
null
null
int Foo(); bool GetStringInput(std::vector<std::string> &vectStrings);
23.666667
59
0.746479
2336556e0f38cd691ca69e80fd8d779da780db35
642
h
C
snobot_sim/src/main/native/include/SnobotSim/SimulatorComponents/AdxWrappers/AdxGyroWrapper.h
bashterm/SnobotSim
665aa199074dfc9d48a6b49f20bd515d6f9d5659
[ "MIT" ]
null
null
null
snobot_sim/src/main/native/include/SnobotSim/SimulatorComponents/AdxWrappers/AdxGyroWrapper.h
bashterm/SnobotSim
665aa199074dfc9d48a6b49f20bd515d6f9d5659
[ "MIT" ]
null
null
null
snobot_sim/src/main/native/include/SnobotSim/SimulatorComponents/AdxWrappers/AdxGyroWrapper.h
bashterm/SnobotSim
665aa199074dfc9d48a6b49f20bd515d6f9d5659
[ "MIT" ]
1
2019-05-27T23:25:53.000Z
2019-05-27T23:25:53.000Z
/* * AdxGyroWrapper.h * * Created on: Nov 23, 2017 * Author: PJ */ #pragma once #include <memory> #include "ADXRS450_SpiGyroWrapperData.h" #include "SnobotSim/ModuleWrapper/AModuleWrapper.h" #include "SnobotSim/ModuleWrapper/Interfaces/IGyroWrapper.h" #include "SnobotSim/ModuleWrapper/Interfaces/ISpiWrapper.h" class AdxGyroWrapper : public AModuleWrapper, public ISpiWrapper, public IGyroWrapper { public: explicit AdxGyroWrapper(int aPort); virtual ~AdxGyroWrapper(); void SetAngle(double aAngle) override; double GetAngle() override; protected: std::shared_ptr<hal::ADXRS450_SpiGyroWrapper> mGyro; };
22.137931
85
0.753894
2336985c769a5803d047ac1a3e2665e6f9e84a4c
767
c
C
Problem/baekjoon/1157.c
1Dongmin/practice
375bf01b28a126a9c25df31eb2558677fb80b3f2
[ "MIT" ]
null
null
null
Problem/baekjoon/1157.c
1Dongmin/practice
375bf01b28a126a9c25df31eb2558677fb80b3f2
[ "MIT" ]
null
null
null
Problem/baekjoon/1157.c
1Dongmin/practice
375bf01b28a126a9c25df31eb2558677fb80b3f2
[ "MIT" ]
null
null
null
#include <stdio.h> int main(void) { char wd[1000001]; int max = 0, alp[26] = {0}, wbhi = 0, manyalp = 0; scanf("%s", wd, 1); for(int i = 0; wd[i] != 0; i++){ for (int k = 0; k < 26; k++) { if (k + 97 == wd[i]) { alp[k] += 1; } if (k + 65 == wd[i]) { alp[k] += 1; } } } for (int k = 0; k < 26; k++){ if(alp[k] > max){ max = alp[k]; manyalp = k; } } for (int k = 0; k < 26; k++){ if(alp[k] == max){ wbhi += 1; } } if(wbhi > 1) { printf("?"); } else{ printf("%c", manyalp + 65); } //printf("\nMax: %d\nwbhi: %d\nmanyalp: %d\n", max, wbhi, manyalp); return 0; }
21.305556
71
0.346806
2337420ddef3c0fc4daca4ee9ac46c18bc054ea5
768
h
C
External/libigl-2.1.0/include/igl/pinv.h
RokKos/eol-cloth
b9c6f55f25ba17f33532ea5eefa41fedd29c5206
[ "MIT" ]
null
null
null
External/libigl-2.1.0/include/igl/pinv.h
RokKos/eol-cloth
b9c6f55f25ba17f33532ea5eefa41fedd29c5206
[ "MIT" ]
null
null
null
External/libigl-2.1.0/include/igl/pinv.h
RokKos/eol-cloth
b9c6f55f25ba17f33532ea5eefa41fedd29c5206
[ "MIT" ]
null
null
null
#ifndef IGL_PINV_H #define IGL_PINV_H #include "igl_inline.h" namespace igl { // Compute the Moore-Penrose pseudoinverse // // Inputs: // A m by n matrix // tol tolerance (if negative then default is used) // Outputs: // X n by m matrix so that A*X*A = A and X*A*X = X and A*X = (A*X)' and // (X*A) = (X*A)' template <typename DerivedA, typename DerivedX> void pinv( const Eigen::MatrixBase<DerivedA> & A, typename DerivedA::Scalar tol, Eigen::PlainObjectBase<DerivedX> & X); // Wrapper using default tol template <typename DerivedA, typename DerivedX> void pinv( const Eigen::MatrixBase<DerivedA> & A, Eigen::PlainObjectBase<DerivedX> & X); } #ifndef IGL_STATIC_LIBRARY # include "pinv.cpp" #endif #endif
25.6
76
0.66276
23397eb761a5ef37cbf28342098a87964ac70eb8
1,890
h
C
engine/config_private.h
b1v1r/ironbee
97b453afd9c3dc70342c6183a875bde22c9c4a76
[ "Apache-2.0" ]
148
2015-01-10T01:53:39.000Z
2022-03-20T20:48:12.000Z
engine/config_private.h
ErikHendriks/ironbee
97b453afd9c3dc70342c6183a875bde22c9c4a76
[ "Apache-2.0" ]
8
2015-03-09T15:50:36.000Z
2020-10-10T19:23:06.000Z
engine/config_private.h
ErikHendriks/ironbee
97b453afd9c3dc70342c6183a875bde22c9c4a76
[ "Apache-2.0" ]
46
2015-03-08T22:45:42.000Z
2022-01-15T13:47:59.000Z
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You 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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ****************************************************************************/ /** * @file * @brief IronBee -- IronBee Private Configuration * * @author Sam Baskinger <sbaskinger@qualys.com> */ #ifndef _CONFIG_PRIVATE_H_ #define _CONFIG_PRIVATE_H_ #include <ironbee/config.h> /** * @param[in] cp Configuration parser. * @param[in] file The file to parse. * @param[in] eof_mask This is boolean AND'ed with the EOF flag sent to ragel. * If @a eof_mask if false, then ragel will never know that the * input stream has ended. This is the case when including * files. Only the top-level file parser will * set this to true so Ragel is told when the * top-level file is done being parsed. * @returns * - IB_OK on success. * - IB_EALLOC on allocation errors. * - Others appropriate to the error. See error log for details. */ ib_status_t DLL_LOCAL ib_cfgparser_parse_private(ib_cfgparser_t *cp, const char *file, bool eof_mask); #endif /* _CONFIG_PRIVATE_H_ */
39.375
80
0.659259
233cc29cde0538e6846374b3ed173b779acc7b04
8,599
h
C
util/include/util/tc_json.h
julianyang/TarsCpp
5973e2c58ebff7926f055c94b37d71281783f828
[ "BSD-3-Clause" ]
386
2018-09-11T06:17:10.000Z
2022-03-31T05:59:41.000Z
util/include/util/tc_json.h
julianyang/TarsCpp
5973e2c58ebff7926f055c94b37d71281783f828
[ "BSD-3-Clause" ]
128
2018-09-12T03:43:33.000Z
2022-03-24T10:03:54.000Z
util/include/util/tc_json.h
julianyang/TarsCpp
5973e2c58ebff7926f055c94b37d71281783f828
[ "BSD-3-Clause" ]
259
2018-09-19T08:50:37.000Z
2022-03-11T07:17:56.000Z
 /** * Tencent is pleased to support the open source community by making Tars available. * * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * * Unless required by applicable law or agreed to in writing, software distributed * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ #ifndef __TC_JSON_H #define __TC_JSON_H #include <string> #include <unordered_map> #include <vector> #include <assert.h> #include <stdio.h> #include "util/tc_autoptr.h" using namespace std; namespace tars { /** * 编解码抛出的异常 * Exception thrown by codec */ struct TC_Json_Exception : public TC_Exception { TC_Json_Exception(const string &buffer) : TC_Exception(buffer){}; ~TC_Json_Exception() throw(){}; }; enum eJsonType { eJsonTypeString, eJsonTypeNum, eJsonTypeObj, eJsonTypeArray, eJsonTypeBoolean }; /* * json类型的基类。没有任何意义 * Base class of type json.No meaning. */ class JsonValue : public TC_HandleBase { public: virtual eJsonType getType()=0; virtual ~JsonValue() { } }; typedef TC_AutoPtr<JsonValue> JsonValuePtr; /* * json类型 string类型 例如"dd\ndfd" * json type string type for example: "dd\ndfd" */ class JsonValueString : public JsonValue { public: JsonValueString(const string & s):value(s) { } JsonValueString() { } eJsonType getType() { return eJsonTypeString; } virtual ~JsonValueString() { } string value; }; typedef TC_AutoPtr<JsonValueString> JsonValueStringPtr; /* * json类型 number类型 例如 1.5e8 * json type number type for example: 1.5e8 */ class JsonValueNum : public JsonValue { public: JsonValueNum(double d,bool b=false):value(d),lvalue(d),isInt(b) { } JsonValueNum(int64_t d,bool b=true):value(d), lvalue(d),isInt(b) { } JsonValueNum() { isInt=false; value=0.0f; lvalue = 0; } eJsonType getType() { return eJsonTypeNum; } virtual ~JsonValueNum(){} public: double value; int64_t lvalue; bool isInt; }; typedef TC_AutoPtr<JsonValueNum> JsonValueNumPtr; /* * json类型 object类型 例如 {"aa","bb"} * json type object type for example: {"aa","bb"} */ class JsonValueObj: public JsonValue { public: eJsonType getType() { return eJsonTypeObj; } const JsonValuePtr &get(const char *name) { auto it = value.find(name); if(it == value.end()) { char s[64]; snprintf(s, sizeof(s), "get obj error(key is not exists)[key:%s]", name); throw TC_Json_Exception(s); } return it->second; } virtual ~JsonValueObj(){} public: unordered_map<string,JsonValuePtr> value; }; typedef TC_AutoPtr<JsonValueObj> JsonValueObjPtr; /* * json类型 array类型 例如 ["aa","bb"] * json type array type for example: ["aa","bb"] */ class JsonValueArray: public JsonValue { public: eJsonType getType() { return eJsonTypeArray; } void push_back(const JsonValuePtr & p) { value.push_back(p); } virtual ~JsonValueArray(){} public: vector<JsonValuePtr> value; }; typedef TC_AutoPtr<JsonValueArray> JsonValueArrayPtr; /* * json类型 boolean类型 例如 true * json type boolean type for example: true */ class JsonValueBoolean : public JsonValue { public: eJsonType getType() { return eJsonTypeBoolean; } bool getValue() { return value; } virtual ~JsonValueBoolean(){} public: bool value; }; typedef TC_AutoPtr<JsonValueBoolean> JsonValueBooleanPtr; /* * 分析json字符串用到的 读字符的类 * Classes for parsing read characters used in JSON strings */ class BufferJsonReader { /*buffer*/ const char * _buf; ///< 缓冲区 /*buffer length*/ size_t _buf_len; ///< 缓冲区长度 /*current location*/ size_t _cur; ///< 当前位置 public: BufferJsonReader () :_buf(NULL),_buf_len(0), _cur(0) {} void reset() { _cur = 0;} void setBuffer(const char * buf, size_t len) { _buf = buf; _buf_len = len; _cur = 0; } void setBuffer(const std::vector<char> &buf) { _buf = buf.data(); _buf_len = buf.size(); _cur = 0; } size_t getCur() { return _cur; } const char * getPoint() { return _buf+_cur; } char read() { check(); _cur ++; return *(_buf+_cur-1); } char get() { check(); return *(_buf+_cur); } char getBack() { assert(_cur>0); return *(_buf+_cur-1); } void back() { assert(_cur>0); _cur--; } void check() { if (_cur + 1 > _buf_len) { char s[64]; snprintf(s, sizeof(s), "buffer overflow when peekBuf, over %u.", (uint32_t)_buf_len); throw TC_Json_Exception(s); } } bool hasEnd() { return _cur >= _buf_len; } }; /* * 分析json的类。都是static * Analyze json's classes.All static. */ class TC_Json { public: //json类型到字符串的转换 //Conversion of JSON type to string static string writeValue(const JsonValuePtr & p); static void writeValue(const JsonValuePtr & p, string& ostr); static void writeValue(const JsonValuePtr & p, vector<char>& buf); //json字符串到json结构的转换 //Conversion of JSON string to JSON structure static JsonValuePtr getValue(const string & str); static JsonValuePtr getValue(const vector<char>& buf); private: //string 类型到json字符串 //string type to json string static void writeString(const JsonValueStringPtr & p, string& ostr); static void writeString(const string & s, string& ostr); //num 类型到json字符串 //num type to json string static void writeNum(const JsonValueNumPtr & p, string& ostr); //obj 类型到json字符串 //obj type to json string static void writeObj(const JsonValueObjPtr & p, string& ostr); //array 类型到json字符串 //array type to json string static void writeArray(const JsonValueArrayPtr & p, string& ostr); //boolean 类型到json字符串 //boolean type to json string static void writeBoolean(const JsonValueBooleanPtr & p, string& ostr); //读取json的value类型 也就是所有的json类型 如果不符合规范会抛异常 //Reading json's value type means that all JSON types throw an exception if they do not conform to the specification static JsonValuePtr getValue(BufferJsonReader & reader); //读取json的object 如果不符合规范会抛异常 //Reading json's object throws an exception if it does not conform to the specification static JsonValueObjPtr getObj(BufferJsonReader & reader); //读取json的array(数组) 如果不符合规范会抛异常 //Reading json's array (array) throws an exception if it does not conform to the specification static JsonValueArrayPtr getArray(BufferJsonReader & reader); //读取json的string 如 "dfdf" 如果不符合规范会抛异常 //A string reading json, such as "dfdf", throws an exception if it does not conform to the specification static JsonValueStringPtr getString(BufferJsonReader & reader,char head='\"'); //读取json的数字 如 -213.56 如果不符合规范会抛异常 //Reading JSON numbers such as -213.56 throws an exception if it does not conform to the specification static JsonValueNumPtr getNum(BufferJsonReader & reader,char head); //读取json的boolean值 如 true false 如果不符合规范会抛异常 //Reading json's Boolean value such as true false throws an exception if it does not conform to the specification static JsonValueBooleanPtr getBoolean(BufferJsonReader & reader,char c); //读取json的 null 如果不符合规范会抛异常 //Reading json's null throws an exception if it does not conform to the specification static JsonValuePtr getNull(BufferJsonReader & reader,char c); //获取16进制形式的值 如\u003f 如果不符合规范会抛异常 //Judging whether a character meets json's definition of a blank character Gets a value in hexadecimal form such as \u003f Throws an exception if it does not conform to the specification static uint32_t getHex(BufferJsonReader & reader); //判断一个字符是否符合json定义的空白字符 //Determines whether a character matches a json-defined blank character static bool isspace(char c); }; class TC_JsonWriteOstream { public: static void writeValue(const JsonValuePtr & p, ostream& ostr); private: //string 类型到json字符串 //stirng type to json string static void writeString(const JsonValueStringPtr & p, ostream& ostr); static void writeString(const string & s, ostream& ostr); //num 类型到json字符串 //num type to json string static void writeNum(const JsonValueNumPtr & p, ostream& ostr); //obj 类型到json字符串 //obj type to json string static void writeObj(const JsonValueObjPtr & p, ostream& ostr); //array 类型到json字符串 //array type to json string static void writeArray(const JsonValueArrayPtr & p, ostream& ostr); //boolean 类型到json字符串 //boolean type to json string static void writeBoolean(const JsonValueBooleanPtr & p, ostream& ostr); }; } #endif
22.688654
187
0.721014
233d5496c8ed55a2abc5d6977882bc10dae00365
7,782
c
C
pydread/pydread.c
ICRC-BME/pydread
cb59b4943e6d7dbfb333738abec5835010d3c9ab
[ "Apache-2.0" ]
null
null
null
pydread/pydread.c
ICRC-BME/pydread
cb59b4943e6d7dbfb333738abec5835010d3c9ab
[ "Apache-2.0" ]
null
null
null
pydread/pydread.c
ICRC-BME/pydread
cb59b4943e6d7dbfb333738abec5835010d3c9ab
[ "Apache-2.0" ]
null
null
null
#include "pydread.h" #include <numpy/arrayobject.h> #include <numpy/npy_math.h> static PyObject *read_d_header(PyObject *self, PyObject *args){ si1 *py_file_path; D_HEADER *header; FILE *fp; PyObject *sh, *xh, *out_tuple; // --- Parse the input --- if (!PyArg_ParseTuple(args,"s", &py_file_path)){ return NULL; } fp = fopen(py_file_path,"rb"); header = read_header(fp); sh = map_d_standard_header(header->sh); xh = map_d_extended_header(header); out_tuple = PyTuple_New(2); PyTuple_SetItem(out_tuple, 0, sh); PyTuple_SetItem(out_tuple, 1, xh); // !!!!!!!!!!!!!!!!!!!!!!!! // TODO - free the header structures!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // !!!!!!!!!!!!!!!!!!!!!!!!!!!! fclose(fp); return out_tuple; } static PyObject *read_d_data(PyObject *self, PyObject *args){ si1 *py_file_path; PyObject *py_channel_map; ui8 py_start_samp; ui8 py_stop_samp; ui2 i,*channel_map,n_channels; si4 precision; PyObject *temp_item, *py_array_out; FILE *fp; D_HEADER *header; void *numpy_arr_data; if (!PyArg_ParseTuple(args,"sO!kk", &py_file_path, &PyList_Type, &py_channel_map, &py_start_samp, &py_stop_samp)){ return NULL; } // Initialize numpy import_array(); // Convert python list to C array n_channels = (ui2) PyList_Size(py_channel_map); channel_map = malloc(sizeof(ui2)*n_channels); for (i=0;i<n_channels;++i){ temp_item = PyList_GetItem(py_channel_map,i); channel_map[i] = PyLong_AsLong(temp_item); } // Open the file fp = fopen(py_file_path,"rb"); // Get the header header = read_header(fp); // Get the precision precision = get_prec(header->sh); // Allocate create numpy array with specified dtype npy_intp dims[2] = {py_stop_samp-py_start_samp,n_channels}; if ( precision == PREC_UI1 ){ py_array_out = PyArray_SimpleNew(2, dims, NPY_UINT8); numpy_arr_data = PyArray_GETPTR2(py_array_out, 0, 0); } else if (precision == PREC_SI2){ py_array_out = PyArray_SimpleNew(2, dims, NPY_INT16); numpy_arr_data = PyArray_GETPTR2(py_array_out, 0, 0); } else if (precision == PREC_SI4){ py_array_out = PyArray_SimpleNew(2, dims, NPY_INT32); numpy_arr_data = PyArray_GETPTR2(py_array_out, 0, 0); } else if (precision == PREC_SF4){ py_array_out = PyArray_SimpleNew(2, dims, NPY_FLOAT32); numpy_arr_data = PyArray_GETPTR2(py_array_out, 0, 0); } else{ py_array_out = PyArray_SimpleNew(2, dims, NPY_INT32); numpy_arr_data = PyArray_GETPTR2(py_array_out, 0, 0); } read_data(fp, header, numpy_arr_data, channel_map, n_channels, py_start_samp, py_stop_samp); fclose(fp); free(header); return py_array_out; } PyObject *map_d_standard_header(S_HEADER *sh){ PyObject *sh_dict;//, *d_val; // Create output dictionary sh_dict = PyDict_New(); // Insert entries into dictionary PyDict_SetItemString(sh_dict,"sign",Py_BuildValue("s", sh->sign)); PyDict_SetItemString(sh_dict,"ftype",Py_BuildValue("b", sh->ftype)); PyDict_SetItemString(sh_dict,"nchan",Py_BuildValue("B", sh->nchan)); PyDict_SetItemString(sh_dict,"naux",Py_BuildValue("B", sh->naux)); PyDict_SetItemString(sh_dict,"fsamp",Py_BuildValue("H", sh->fsamp)); PyDict_SetItemString(sh_dict,"nsamp",Py_BuildValue("I", sh->nsamp)); PyDict_SetItemString(sh_dict,"d_val",Py_BuildValue("B", sh->d_val)); PyDict_SetItemString(sh_dict,"unit",Py_BuildValue("B", sh->unit)); PyDict_SetItemString(sh_dict,"zero",Py_BuildValue("H", sh->zero)); PyDict_SetItemString(sh_dict,"data_offset",Py_BuildValue("H", sh->data_org)); PyDict_SetItemString(sh_dict,"xhdr_offset",Py_BuildValue("h", sh->xhdr_org)); // Map dval //d_val = map_d_val(sh->data_info); PyDict_SetItemString(sh_dict,"data_info",map_d_val(sh->data_info)); return sh_dict; } PyObject *map_d_val(D_VAL *d_val){ PyObject *d_val_dict; // Create output dictionary d_val_dict = PyDict_New(); // Insert entries into dictionary PyDict_SetItemString(d_val_dict,"data_invalid",Py_BuildValue("b", d_val->data_invalid)); PyDict_SetItemString(d_val_dict,"data_packed",Py_BuildValue("b", d_val->data_packed)); PyDict_SetItemString(d_val_dict,"block_structure",Py_BuildValue("b", d_val->block_structure)); PyDict_SetItemString(d_val_dict,"polarity",Py_BuildValue("b", d_val->polarity)); PyDict_SetItemString(d_val_dict,"data_calib",Py_BuildValue("b", d_val->data_calib)); PyDict_SetItemString(d_val_dict,"data_modified",Py_BuildValue("b", d_val->data_modified)); PyDict_SetItemString(d_val_dict,"data_cell_size",Py_BuildValue("b", d_val->data_cell_size)); return d_val_dict; } PyObject *map_d_extended_header(D_HEADER *h){ PyObject *xh_dict; PyObject *channel_list, *tag_list, *tag; si4 i; xh_dict = PyDict_New(); PyDict_SetItemString(xh_dict,"time_info",Py_BuildValue("I", h->xh->time_info)); PyDict_SetItemString(xh_dict,"data_info",Py_BuildValue("s", h->xh->data_info)); PyDict_SetItemString(xh_dict,"patient_id",Py_BuildValue("I", h->xh->patient_id_number)); PyDict_SetItemString(xh_dict,"fractional_sampling_frequency",Py_BuildValue("f", h->xh->fractional_sampling_frequency)); if (h->xh->project_name[0]) PyDict_SetItemString(xh_dict, "project_name", Py_BuildValue("s", h->xh->project_name)); else PyDict_SetItemString(xh_dict, "project_name", Py_None); // Channels channel_list = PyList_New(0); // Number of channels could be passed but this hardly matters since it is done only once. for (i=0;i<h->sh->nchan;++i){ PyList_Append(channel_list,Py_BuildValue("s",h->xh->channel_names[i])); } PyDict_SetItemString(xh_dict,"channel_names",channel_list); // Tags if (h->xh->tags != NULL){ tag_list = PyList_New(h->xh->corr_tag_table_info.list_len/4); if (h->xh->corr_tag_table_info.list_len > 0){ for (i=0;i<h->xh->corr_tag_table_info.list_len/4;++i){ tag = PyList_New(3); PyList_SET_ITEM(tag,0,Py_BuildValue("I",h->xh->tags[i].tag_pos)); PyList_SET_ITEM(tag,1,Py_BuildValue("H",h->xh->tags[i].tag_class)); PyList_SET_ITEM(tag,2,Py_BuildValue("H",h->xh->tags[i].tag_selected)); PyList_SET_ITEM(tag_list,i,tag); } } PyDict_SetItemString(xh_dict,"tags",tag_list); } return xh_dict; } // static PyObject *create_eashdr_dtype() // { // import_array(); // // Numpy array out // PyObject *op; // PyArray_Descr *descr; // // Build dictionary // op = Py_BuildValue("[(s, s, i),\ // (s, s, i),\ // (s, s, i),\ // (s, s, i),\ // (s, s, i),\ // (s, s, i)]", // "sign", "S", EASHDR_SIGN_BYTES, // "ftype", "S", 1, // "nchan", "u1", 1, // "naux", "u1", 1, // "fsamp", "u2", 1, // "nasamp", "u4", 1, // "d_val", "b", 1, // "unit", "u1", 1, // "zero", "i2", 1, // "data_org", "u2", 1, // "data_xhdr_org", "i2", 1); // PyArray_DescrConverter(op, &descr); // Py_DECREF(op); // PyDict_SetItemString(sh_dict,"data_info",map_d_val(sh->data_info)); // return (PyObject *) descr; // }
31.763265
123
0.613338
233e0d88d0195522b59c5321dc3a610bd6d3ee59
3,820
h
C
av1/common/obmc.h
parthibx24/aom
5f40861bd3b890a4b5aed27c06ef9a60eea2a8a9
[ "BSD-2-Clause" ]
190
2017-09-06T19:55:48.000Z
2022-02-11T22:26:29.000Z
av1/common/obmc.h
abrown/aom
1d7e51a96cd432c5fe53416ab1f0a162a7e905e3
[ "BSD-2-Clause" ]
30
2017-10-02T09:26:11.000Z
2021-06-05T22:06:34.000Z
av1/common/obmc.h
abrown/aom
1d7e51a96cd432c5fe53416ab1f0a162a7e905e3
[ "BSD-2-Clause" ]
27
2017-09-14T11:46:01.000Z
2022-03-23T09:00:53.000Z
/* * Copyright (c) 2017, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent. */ #ifndef AOM_AV1_COMMON_OBMC_H_ #define AOM_AV1_COMMON_OBMC_H_ typedef void (*overlappable_nb_visitor_t)(MACROBLOCKD *xd, int rel_mi_row, int rel_mi_col, uint8_t op_mi_size, int dir, MB_MODE_INFO *nb_mi, void *fun_ctxt, const int num_planes); static INLINE void foreach_overlappable_nb_above(const AV1_COMMON *cm, MACROBLOCKD *xd, int nb_max, overlappable_nb_visitor_t fun, void *fun_ctxt) { if (!xd->up_available) return; const int num_planes = av1_num_planes(cm); int nb_count = 0; const int mi_col = xd->mi_col; // prev_row_mi points into the mi array, starting at the beginning of the // previous row. MB_MODE_INFO **prev_row_mi = xd->mi - mi_col - 1 * xd->mi_stride; const int end_col = AOMMIN(mi_col + xd->n4_w, cm->mi_cols); uint8_t mi_step; for (int above_mi_col = mi_col; above_mi_col < end_col && nb_count < nb_max; above_mi_col += mi_step) { MB_MODE_INFO **above_mi = prev_row_mi + above_mi_col; mi_step = AOMMIN(mi_size_wide[above_mi[0]->sb_type], mi_size_wide[BLOCK_64X64]); // If we're considering a block with width 4, it should be treated as // half of a pair of blocks with chroma information in the second. Move // above_mi_col back to the start of the pair if needed, set above_mbmi // to point at the block with chroma information, and set mi_step to 2 to // step over the entire pair at the end of the iteration. if (mi_step == 1) { above_mi_col &= ~1; above_mi = prev_row_mi + above_mi_col + 1; mi_step = 2; } if (is_neighbor_overlappable(*above_mi)) { ++nb_count; fun(xd, 0, above_mi_col - mi_col, AOMMIN(xd->n4_w, mi_step), 0, *above_mi, fun_ctxt, num_planes); } } } static INLINE void foreach_overlappable_nb_left(const AV1_COMMON *cm, MACROBLOCKD *xd, int nb_max, overlappable_nb_visitor_t fun, void *fun_ctxt) { if (!xd->left_available) return; const int num_planes = av1_num_planes(cm); int nb_count = 0; // prev_col_mi points into the mi array, starting at the top of the // previous column const int mi_row = xd->mi_row; MB_MODE_INFO **prev_col_mi = xd->mi - 1 - mi_row * xd->mi_stride; const int end_row = AOMMIN(mi_row + xd->n4_h, cm->mi_rows); uint8_t mi_step; for (int left_mi_row = mi_row; left_mi_row < end_row && nb_count < nb_max; left_mi_row += mi_step) { MB_MODE_INFO **left_mi = prev_col_mi + left_mi_row * xd->mi_stride; mi_step = AOMMIN(mi_size_high[left_mi[0]->sb_type], mi_size_high[BLOCK_64X64]); if (mi_step == 1) { left_mi_row &= ~1; left_mi = prev_col_mi + (left_mi_row + 1) * xd->mi_stride; mi_step = 2; } if (is_neighbor_overlappable(*left_mi)) { ++nb_count; fun(xd, left_mi_row - mi_row, 0, AOMMIN(xd->n4_h, mi_step), 1, *left_mi, fun_ctxt, num_planes); } } } #endif // AOM_AV1_COMMON_OBMC_H_
42.444444
80
0.622775
233faf83f19665e9475f5f666d53931776bb4b53
214
h
C
util/fastMarching/priorite.h
Arceus02/hyogo
94f2a32a838a8d7f06720fe20b9239d52127f45f
[ "MIT" ]
null
null
null
util/fastMarching/priorite.h
Arceus02/hyogo
94f2a32a838a8d7f06720fe20b9239d52127f45f
[ "MIT" ]
null
null
null
util/fastMarching/priorite.h
Arceus02/hyogo
94f2a32a838a8d7f06720fe20b9239d52127f45f
[ "MIT" ]
null
null
null
#pragma once #include <vector> #include "pointDist.h" class FilePriorite { std::vector<PointDist> v; public: FilePriorite(); bool empty() const; void push(PointDist d); PointDist pop(); };
12.588235
29
0.64486
23406fbf560c5cd879f1e374c4aec350e04443bd
6,992
h
C
Gems/ScriptCanvas/Code/Include/ScriptCanvas/Debugger/ClientTransceiver.h
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
1
2022-03-12T14:13:45.000Z
2022-03-12T14:13:45.000Z
Gems/ScriptCanvas/Code/Include/ScriptCanvas/Debugger/ClientTransceiver.h
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
3
2021-09-08T03:41:27.000Z
2022-03-12T01:01:29.000Z
Gems/ScriptCanvas/Code/Include/ScriptCanvas/Debugger/ClientTransceiver.h
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
null
null
null
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <AzCore/Component/EntityId.h> #include <AzCore/Component/TickBus.h> #include <ScriptCanvas/Core/Core.h> #include <AzCore/EBus/EBus.h> #include <Debugger/Bus.h> #include <Debugger/Messages/Notify.h> #include "APIArguments.h" #include "Logger.h" #include "LogReader.h" namespace ScriptCanvas { namespace Debugger { /** * ClientTransceiver * listens to debugger service messages on the target manager bus, and translates them * to ServiceNotifications * * listens to client requests, and translates them to debugger client request messages * * listens to target manager client messages and translated them to service notifications */ class ClientTransceiver : public Message::NotificationVisitor , public AzFramework::TargetManagerClient::Bus::Handler , public AzFramework::TmMsgBus::Handler , public AZ::SystemTickBus::Handler , public ClientRequestsBus::Handler , public ClientUIRequestBus::Handler { using Mutex = AZStd::recursive_mutex; using Lock = AZStd::lock_guard<Mutex>; public: AZ_CLASS_ALLOCATOR(ClientTransceiver, AZ::SystemAllocator, 0); AZ_RTTI(ClientTransceiver, "{C6F5ACDC-5415-48FE-A7C3-E6398FDDED33}"); ClientTransceiver(); ~ClientTransceiver(); ////////////////////////////////////////////////////////////////////////// // ClientRequests AzFramework::TargetContainer EnumerateAvailableNetworkTargets() override; bool HasValidConnection() const override; bool IsConnected(const AzFramework::TargetInfo&) const override; bool IsConnectedToSelf() const override; AzFramework::TargetInfo GetNetworkTarget() override; void AddBreakpoint(const Breakpoint&) override; void AddVariableChangeBreakpoint(const VariableChangeBreakpoint&) override; void Break() override; void Continue() override; void RemoveBreakpoint(const Breakpoint&) override; void RemoveVariableChangeBreakpoint(const VariableChangeBreakpoint&) override; void SetVariableValue() override; void StepOver() override; void GetAvailableScriptTargets() override; void GetActiveEntities() override; void GetActiveGraphs() override; void GetVariableValue() override; ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // TargetManagerClient void DesiredTargetConnected(bool connected) override; void DesiredTargetChanged(AZ::u32 newId, AZ::u32 oldId); void TargetJoinedNetwork(AzFramework::TargetInfo info) override; void TargetLeftNetwork(AzFramework::TargetInfo info) override; ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // TmMsgBus void OnReceivedMsg(AzFramework::TmMsgPtr msg) override; ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // Message processing void Visit(Message::ActiveEntitiesResult& notification) override; void Visit(Message::ActiveGraphsResult& notification) override; void Visit(Message::AnnotateNode& notification) override; void Visit(Message::AvailableScriptTargetsResult& notification) override; void Visit(Message::BreakpointAdded& notification) override; void Visit(Message::BreakpointHit& notification) override; void Visit(Message::Connected& notification) override; void Visit(Message::Disconnected& notification) override; void Visit(Message::Continued& notification) override; void Visit(Message::GraphActivated& notification) override; void Visit(Message::GraphDeactivated& notification) override; void Visit(Message::SignaledInput& notification) override; void Visit(Message::SignaledOutput& notification) override; void Visit(Message::VariableChanged& notification) override; ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // SystemTickBus void OnSystemTick() override; ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // ClientUIRequestBus void StartEditorSession() override; void StopEditorSession() override; void StartLogging(ScriptTarget& initialTargets) override; void StopLogging() override; void AddEntityLoggingTarget(const AZ::EntityId& entityId, const ScriptCanvas::GraphIdentifier& assetId) override; void RemoveEntityLoggingTarget(const AZ::EntityId& entityId, const ScriptCanvas::GraphIdentifier& assetId) override; void AddGraphLoggingTarget(const AZ::Data::AssetId& assetId) override; void RemoveGraphLoggingTarget(const AZ::Data::AssetId& assetId) override; ////////////////////////////////////////////////////////////////////////// protected: void DiscoverNetworkTargets(); void BreakpointAdded(const Breakpoint& breakpoint); void ClearMessages(); void ProcessMessages(); private: void DisconnectFromTarget(); void CleanupConnection(); Mutex m_mutex; bool m_breakOnNext = true; AzFramework::TargetInfo m_selfTarget; bool m_resetDesiredTarget = false; AzFramework::TargetInfo m_previousDesiredInfo; AzFramework::TargetInfo m_currentTarget; ScriptTarget m_connectionState; AzFramework::TargetContainer m_networkTargets; AZStd::unordered_set<Breakpoint> m_breakpointsActive; AZStd::unordered_set<Breakpoint> m_breakpointsInactive; ScriptTarget m_addCache; ScriptTarget m_removeCache; Mutex m_msgMutex; AzFramework::TmMsgQueue m_msgQueue; }; } }
42.895706
128
0.555635
2342ec007583b988f044c130ce2f1cb1f2d5bcb4
179
h
C
DataBase/SQLite3/vs2019/mdb/mdb/CFileRW.h
znvmk/Study
861c73c62ba8bbfbfc2152b999ead35cd548e6a7
[ "WTFPL" ]
2
2020-11-27T02:58:18.000Z
2021-07-06T09:42:24.000Z
CPP/VisualStudio/other project/sqliteProj/mdb/mdb/CFileRW.h
znvmk/Study
861c73c62ba8bbfbfc2152b999ead35cd548e6a7
[ "WTFPL" ]
null
null
null
CPP/VisualStudio/other project/sqliteProj/mdb/mdb/CFileRW.h
znvmk/Study
861c73c62ba8bbfbfc2152b999ead35cd548e6a7
[ "WTFPL" ]
1
2020-11-27T02:59:06.000Z
2020-11-27T02:59:06.000Z
#pragma once class CFileRW { public: CFileRW(); ~CFileRW(); public: public: void FileWriteCodeTableExport(CString CodeTableExport); void FileReadCodeTableExport(); };
9.944444
56
0.731844
23469476e264fd8bacdc56682dcf2e23c5a84c2b
7,421
c
C
qmk_firmware/tmk_core/common/mousekey.c
igagis/best84kb
e4f58e0138b0835b39e636d69658183a8e74594e
[ "MIT" ]
142
2017-03-14T05:27:34.000Z
2022-03-31T20:19:06.000Z
tmk_keyboard/tmk_core/common/mousekey.c
4sStylZ/ThinkmatrixNoteBook
46714e5ded82e214efd84af9a595c2e61480c605
[ "WTFPL" ]
10
2015-10-31T15:16:14.000Z
2019-03-12T13:25:29.000Z
tmk_keyboard/tmk_core/common/mousekey.c
4sStylZ/ThinkmatrixNoteBook
46714e5ded82e214efd84af9a595c2e61480c605
[ "WTFPL" ]
39
2017-09-25T12:48:30.000Z
2022-01-08T14:07:28.000Z
/* Copyright 2011 Jun Wako <wakojun@gmail.com> This program 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 2 of the License, or (at your option) any later version. This program 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. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdint.h> #include "keycode.h" #include "host.h" #include "timer.h" #include "print.h" #include "debug.h" #include "mousekey.h" static report_mouse_t mouse_report = {}; static uint8_t mousekey_repeat = 0; static uint8_t mousekey_accel = 0; static void mousekey_debug(void); /* * Mouse keys acceleration algorithm * http://en.wikipedia.org/wiki/Mouse_keys * * speed = delta * max_speed * (repeat / time_to_max)**((1000+curve)/1000) */ /* milliseconds between the initial key press and first repeated motion event (0-2550) */ uint8_t mk_delay = MOUSEKEY_DELAY/10; /* milliseconds between repeated motion events (0-255) */ uint8_t mk_interval = MOUSEKEY_INTERVAL; /* steady speed (in action_delta units) applied each event (0-255) */ uint8_t mk_max_speed = MOUSEKEY_MAX_SPEED; /* number of events (count) accelerating to steady speed (0-255) */ uint8_t mk_time_to_max = MOUSEKEY_TIME_TO_MAX; /* ramp used to reach maximum pointer speed (NOT SUPPORTED) */ //int8_t mk_curve = 0; /* wheel params */ uint8_t mk_wheel_max_speed = MOUSEKEY_WHEEL_MAX_SPEED; uint8_t mk_wheel_time_to_max = MOUSEKEY_WHEEL_TIME_TO_MAX; static uint16_t last_timer = 0; static uint8_t move_unit(void) { uint16_t unit; if (mousekey_accel & (1<<0)) { unit = (MOUSEKEY_MOVE_DELTA * mk_max_speed)/4; } else if (mousekey_accel & (1<<1)) { unit = (MOUSEKEY_MOVE_DELTA * mk_max_speed)/2; } else if (mousekey_accel & (1<<2)) { unit = (MOUSEKEY_MOVE_DELTA * mk_max_speed); } else if (mousekey_repeat == 0) { unit = MOUSEKEY_MOVE_DELTA; } else if (mousekey_repeat >= mk_time_to_max) { unit = MOUSEKEY_MOVE_DELTA * mk_max_speed; } else { unit = (MOUSEKEY_MOVE_DELTA * mk_max_speed * mousekey_repeat) / mk_time_to_max; } return (unit > MOUSEKEY_MOVE_MAX ? MOUSEKEY_MOVE_MAX : (unit == 0 ? 1 : unit)); } static uint8_t wheel_unit(void) { uint16_t unit; if (mousekey_accel & (1<<0)) { unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed)/4; } else if (mousekey_accel & (1<<1)) { unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed)/2; } else if (mousekey_accel & (1<<2)) { unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed); } else if (mousekey_repeat == 0) { unit = MOUSEKEY_WHEEL_DELTA; } else if (mousekey_repeat >= mk_wheel_time_to_max) { unit = MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed; } else { unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed * mousekey_repeat) / mk_wheel_time_to_max; } return (unit > MOUSEKEY_WHEEL_MAX ? MOUSEKEY_WHEEL_MAX : (unit == 0 ? 1 : unit)); } void mousekey_task(void) { if (timer_elapsed(last_timer) < (mousekey_repeat ? mk_interval : mk_delay*10)) return; if (mouse_report.x == 0 && mouse_report.y == 0 && mouse_report.v == 0 && mouse_report.h == 0) return; if (mousekey_repeat != UINT8_MAX) mousekey_repeat++; if (mouse_report.x > 0) mouse_report.x = move_unit(); if (mouse_report.x < 0) mouse_report.x = move_unit() * -1; if (mouse_report.y > 0) mouse_report.y = move_unit(); if (mouse_report.y < 0) mouse_report.y = move_unit() * -1; /* diagonal move [1/sqrt(2) = 0.7] */ if (mouse_report.x && mouse_report.y) { mouse_report.x *= 0.7; mouse_report.y *= 0.7; } if (mouse_report.v > 0) mouse_report.v = wheel_unit(); if (mouse_report.v < 0) mouse_report.v = wheel_unit() * -1; if (mouse_report.h > 0) mouse_report.h = wheel_unit(); if (mouse_report.h < 0) mouse_report.h = wheel_unit() * -1; mousekey_send(); } void mousekey_on(uint8_t code) { if (code == KC_MS_UP) mouse_report.y = move_unit() * -1; else if (code == KC_MS_DOWN) mouse_report.y = move_unit(); else if (code == KC_MS_LEFT) mouse_report.x = move_unit() * -1; else if (code == KC_MS_RIGHT) mouse_report.x = move_unit(); else if (code == KC_MS_WH_UP) mouse_report.v = wheel_unit(); else if (code == KC_MS_WH_DOWN) mouse_report.v = wheel_unit() * -1; else if (code == KC_MS_WH_LEFT) mouse_report.h = wheel_unit() * -1; else if (code == KC_MS_WH_RIGHT) mouse_report.h = wheel_unit(); else if (code == KC_MS_BTN1) mouse_report.buttons |= MOUSE_BTN1; else if (code == KC_MS_BTN2) mouse_report.buttons |= MOUSE_BTN2; else if (code == KC_MS_BTN3) mouse_report.buttons |= MOUSE_BTN3; else if (code == KC_MS_BTN4) mouse_report.buttons |= MOUSE_BTN4; else if (code == KC_MS_BTN5) mouse_report.buttons |= MOUSE_BTN5; else if (code == KC_MS_ACCEL0) mousekey_accel |= (1<<0); else if (code == KC_MS_ACCEL1) mousekey_accel |= (1<<1); else if (code == KC_MS_ACCEL2) mousekey_accel |= (1<<2); } void mousekey_off(uint8_t code) { if (code == KC_MS_UP && mouse_report.y < 0) mouse_report.y = 0; else if (code == KC_MS_DOWN && mouse_report.y > 0) mouse_report.y = 0; else if (code == KC_MS_LEFT && mouse_report.x < 0) mouse_report.x = 0; else if (code == KC_MS_RIGHT && mouse_report.x > 0) mouse_report.x = 0; else if (code == KC_MS_WH_UP && mouse_report.v > 0) mouse_report.v = 0; else if (code == KC_MS_WH_DOWN && mouse_report.v < 0) mouse_report.v = 0; else if (code == KC_MS_WH_LEFT && mouse_report.h < 0) mouse_report.h = 0; else if (code == KC_MS_WH_RIGHT && mouse_report.h > 0) mouse_report.h = 0; else if (code == KC_MS_BTN1) mouse_report.buttons &= ~MOUSE_BTN1; else if (code == KC_MS_BTN2) mouse_report.buttons &= ~MOUSE_BTN2; else if (code == KC_MS_BTN3) mouse_report.buttons &= ~MOUSE_BTN3; else if (code == KC_MS_BTN4) mouse_report.buttons &= ~MOUSE_BTN4; else if (code == KC_MS_BTN5) mouse_report.buttons &= ~MOUSE_BTN5; else if (code == KC_MS_ACCEL0) mousekey_accel &= ~(1<<0); else if (code == KC_MS_ACCEL1) mousekey_accel &= ~(1<<1); else if (code == KC_MS_ACCEL2) mousekey_accel &= ~(1<<2); if (mouse_report.x == 0 && mouse_report.y == 0 && mouse_report.v == 0 && mouse_report.h == 0) mousekey_repeat = 0; } void mousekey_send(void) { mousekey_debug(); host_mouse_send(&mouse_report); last_timer = timer_read(); } void mousekey_clear(void) { mouse_report = (report_mouse_t){}; mousekey_repeat = 0; mousekey_accel = 0; } static void mousekey_debug(void) { if (!debug_mouse) return; print("mousekey [btn|x y v h](rep/acl): ["); phex(mouse_report.buttons); print("|"); print_decs(mouse_report.x); print(" "); print_decs(mouse_report.y); print(" "); print_decs(mouse_report.v); print(" "); print_decs(mouse_report.h); print("]("); print_dec(mousekey_repeat); print("/"); print_dec(mousekey_accel); print(")\n"); }
37.670051
100
0.667026
23471f4b525f26dc6d4d0c57acabdb175296f3ff
1,718
h
C
chrome/browser/sync/sessions/sync_sessions_web_contents_router_factory.h
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
chrome/browser/sync/sessions/sync_sessions_web_contents_router_factory.h
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
chrome/browser/sync/sessions/sync_sessions_web_contents_router_factory.h
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSIONS_WEB_CONTENTS_ROUTER_FACTORY_H_ #define CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSIONS_WEB_CONTENTS_ROUTER_FACTORY_H_ #include "base/macros.h" #include "components/keyed_service/content/browser_context_keyed_service_factory.h" class Profile; namespace base { template <typename T> struct DefaultSingletonTraits; } // namespace base namespace sync_sessions { class SyncSessionsWebContentsRouter; class SyncSessionsWebContentsRouterFactory : public BrowserContextKeyedServiceFactory { public: // Get the SyncSessionsWebContentsRouter service for |profile|, creating one // if needed. static SyncSessionsWebContentsRouter* GetForProfile(Profile* profile); // Get the singleton instance of the factory. static SyncSessionsWebContentsRouterFactory* GetInstance(); // Creates a SyncSessionsWebContentsRouter service for |context|. static SyncSessionsWebContentsRouter* BuildSyncSessionsWebContentsRouter( content::BrowserContext* context); private: friend struct base::DefaultSingletonTraits< SyncSessionsWebContentsRouterFactory>; SyncSessionsWebContentsRouterFactory(); ~SyncSessionsWebContentsRouterFactory() override; // Overridden from BrowserContextKeyedServiceFactory. KeyedService* BuildServiceInstanceFor( content::BrowserContext* context) const override; DISALLOW_COPY_AND_ASSIGN(SyncSessionsWebContentsRouterFactory); }; } // namespace sync_sessions #endif // CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSIONS_WEB_CONTENTS_ROUTER_FACTORY_H_
32.415094
84
0.824796
2347d7c4b514d05641df18c6ea06f275b2dbd558
296
h
C
ChartJSWrapper/ChartJSWrapper-IOS/AppDelegate.h
gyetvan-andras/Chart.js-ObjC-Wrapper
3c20bb53dbf0d17d636699d0e4155bd73840600a
[ "MIT" ]
83
2015-04-28T21:37:10.000Z
2021-11-25T03:53:14.000Z
ChartJSWrapper/ChartJSWrapper-IOS/AppDelegate.h
gyetvan-andras/Chart.js-ObjC-Wrapper
3c20bb53dbf0d17d636699d0e4155bd73840600a
[ "MIT" ]
1
2017-02-18T07:04:05.000Z
2017-02-26T06:51:03.000Z
ChartJSWrapper/ChartJSWrapper-IOS/AppDelegate.h
gyetvan-andras/Chart.js-ObjC-Wrapper
3c20bb53dbf0d17d636699d0e4155bd73840600a
[ "MIT" ]
23
2015-04-29T20:00:24.000Z
2020-03-27T16:27:06.000Z
// // AppDelegate.h // ChartJSWrapper-IOS // // Created by András Gyetván on 24/03/15. // Copyright (c) 2015 Gyetván András. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
17.411765
60
0.716216
2347dbef1943e3f4071fdc3c18602dd8eeddf34e
1,788
c
C
src/asn-rrlp/SeqOf-GANSSDataBits.c
belozorov63/SUPL
34e90b18a127388fbef706ef600c2e4e32c87b7b
[ "BSD-2-Clause" ]
2
2017-09-22T07:28:13.000Z
2021-04-06T01:28:42.000Z
src/asn-rrlp/SeqOf-GANSSDataBits.c
belozorov63/SUPL
34e90b18a127388fbef706ef600c2e4e32c87b7b
[ "BSD-2-Clause" ]
null
null
null
src/asn-rrlp/SeqOf-GANSSDataBits.c
belozorov63/SUPL
34e90b18a127388fbef706ef600c2e4e32c87b7b
[ "BSD-2-Clause" ]
1
2017-05-09T13:37:44.000Z
2017-05-09T13:37:44.000Z
/* * Generated by asn1c-0.9.22 (http://lionet.info/asn1c) * From ASN.1 module "RRLP-Components" * found in "../rrlp-components.asn" */ #include "SeqOf-GANSSDataBits.h" static asn_per_constraints_t asn_PER_type_SeqOf_GANSSDataBits_constr_1 = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, 0, 0 /* No PER value map */ }; static asn_TYPE_member_t asn_MBR_SeqOf_GANSSDataBits_1[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, &asn_DEF_GANSSDataBit, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "" }, }; static ber_tlv_tag_t asn_DEF_SeqOf_GANSSDataBits_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_SeqOf_GANSSDataBits_specs_1 = { sizeof(struct SeqOf_GANSSDataBits), offsetof(struct SeqOf_GANSSDataBits, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; asn_TYPE_descriptor_t asn_DEF_SeqOf_GANSSDataBits = { "SeqOf-GANSSDataBits", "SeqOf-GANSSDataBits", SEQUENCE_OF_free, SEQUENCE_OF_print, SEQUENCE_OF_constraint, SEQUENCE_OF_decode_ber, SEQUENCE_OF_encode_der, SEQUENCE_OF_decode_xer, SEQUENCE_OF_encode_xer, SEQUENCE_OF_decode_uper, SEQUENCE_OF_encode_uper, 0, /* Use generic outmost tag fetcher */ asn_DEF_SeqOf_GANSSDataBits_tags_1, sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1) /sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1[0]), /* 1 */ asn_DEF_SeqOf_GANSSDataBits_tags_1, /* Same as above */ sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1) /sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1[0]), /* 1 */ &asn_PER_type_SeqOf_GANSSDataBits_constr_1, asn_MBR_SeqOf_GANSSDataBits_1, 1, /* Single element */ &asn_SPC_SeqOf_GANSSDataBits_specs_1 /* Additional specs */ };
30.827586
74
0.758389
234a38780184e904f313218fff8a0e463185f4f1
1,971
c
C
qemu_mode/qemu-2.10.0/roms/u-boot/board/mpc8308_p1m/mpc8308_p1m.c
braymar/afl
a6b2dad6bbd9c9401814e088582bc04a074651eb
[ "Apache-2.0" ]
31
2018-01-16T17:11:44.000Z
2022-03-16T13:51:24.000Z
qemu_mode/qemu-2.10.0/roms/u-boot/board/mpc8308_p1m/mpc8308_p1m.c
braymar/afl
a6b2dad6bbd9c9401814e088582bc04a074651eb
[ "Apache-2.0" ]
1
2021-04-29T09:08:08.000Z
2021-05-08T07:57:06.000Z
qemu_mode/qemu-2.10.0/roms/u-boot/board/mpc8308_p1m/mpc8308_p1m.c
braymar/afl
a6b2dad6bbd9c9401814e088582bc04a074651eb
[ "Apache-2.0" ]
30
2018-05-02T08:43:27.000Z
2022-01-23T03:25:54.000Z
/* * Copyright (C) 2010 Freescale Semiconductor, Inc. * Copyright (C) 2010 Ilya Yanok, Emcraft Systems, yanok@emcraft.com * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <i2c.h> #include <libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h> #include <netdev.h> #include <asm/io.h> #include <asm/fsl_serdes.h> #include <asm/fsl_mpc83xx_serdes.h> DECLARE_GLOBAL_DATA_PTR; int checkboard(void) { printf("Board: MPC8308 P1M\n"); return 0; } static struct pci_region pcie_regions_0[] = { { .bus_start = CONFIG_SYS_PCIE1_MEM_BASE, .phys_start = CONFIG_SYS_PCIE1_MEM_PHYS, .size = CONFIG_SYS_PCIE1_MEM_SIZE, .flags = PCI_REGION_MEM, }, { .bus_start = CONFIG_SYS_PCIE1_IO_BASE, .phys_start = CONFIG_SYS_PCIE1_IO_PHYS, .size = CONFIG_SYS_PCIE1_IO_SIZE, .flags = PCI_REGION_IO, }, }; void pci_init_board(void) { immap_t *immr = (immap_t *)CONFIG_SYS_IMMR; sysconf83xx_t *sysconf = &immr->sysconf; law83xx_t *pcie_law = sysconf->pcielaw; struct pci_region *pcie_reg[] = { pcie_regions_0 }; fsl_setup_serdes(CONFIG_FSL_SERDES1, FSL_SERDES_PROTO_PEX, FSL_SERDES_CLK_100, FSL_SERDES_VDD_1V); /* Deassert the resets in the control register */ out_be32(&sysconf->pecr1, 0xE0008000); udelay(2000); /* Configure PCI Express Local Access Windows */ out_be32(&pcie_law[0].bar, CONFIG_SYS_PCIE1_BASE & LAWBAR_BAR); out_be32(&pcie_law[0].ar, LBLAWAR_EN | LBLAWAR_512MB); mpc83xx_pcie_init(1, pcie_reg); } #if defined(CONFIG_OF_BOARD_SETUP) int ft_board_setup(void *blob, bd_t *bd) { ft_cpu_setup(blob, bd); fsl_fdt_fixup_dr_usb(blob, bd); return 0; } #endif int board_eth_init(bd_t *bis) { int rv, num_if = 0; /* Initialize TSECs first */ rv = cpu_eth_init(bis); if (rv >= 0) num_if += rv; else printf("ERROR: failed to initialize TSECs.\n"); rv = pci_eth_init(bis); if (rv >= 0) num_if += rv; else printf("ERROR: failed to initialize PCI Ethernet.\n"); return num_if; }
21.193548
68
0.719939
234c3ba8b0abf63279c85b2a0104adf8c751a99a
6,047
h
C
code/JuceLibraryCode/modules/juce_audio_processors/format_types/VST3_SDK/base/thread/include/flock.h
azerty-waves/VCA-Video-Controlled-by-Audio
f089e5bce70fcb4e6812bf620123e37f0ad91afb
[ "MIT" ]
199
2015-02-01T03:01:58.000Z
2022-01-12T18:52:24.000Z
Frameworks/JuceModules/juce_audio_processors/format_types/VST3_SDK/base/thread/include/flock.h
soundigy/protoplug
6060a3bcb3213ce890a9b781d29f702099127ddd
[ "MIT" ]
41
2015-02-18T13:44:47.000Z
2022-03-21T17:59:40.000Z
Frameworks/JuceModules/juce_audio_processors/format_types/VST3_SDK/base/thread/include/flock.h
steveschow/protoplug
3f06f4965d84b66f8f6a51dab6000c3ff8ac43c7
[ "MIT" ]
31
2015-03-10T08:53:20.000Z
2022-03-22T22:33:48.000Z
//------------------------------------------------------------------------ // Project : SDK Base // Version : 1.0 // // Category : Helpers // Filename : base/thread/include/flock.h // Created by : Steinberg, 1995 // Description : locks // //----------------------------------------------------------------------------- // LICENSE // (c) 2018, Steinberg Media Technologies GmbH, All Rights Reserved //----------------------------------------------------------------------------- // 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. // * Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // * Neither the name of the Steinberg Media Technologies nor the names of its // contributors may be used to endorse or promote products derived from this // software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE // OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED // OF THE POSSIBILITY OF SUCH DAMAGE. //----------------------------------------------------------------------------- //---------------------------------------------------------------------------------- /** @file base/thread/include/flock.h Locks. */ /** @defgroup baseLocks Locks */ //---------------------------------------------------------------------------------- #pragma once #include "base/source/fobject.h" #include "pluginterfaces/base/ftypes.h" #if SMTG_PTHREADS #include <pthread.h> #elif SMTG_OS_WINDOWS struct CRITSECT // CRITICAL_SECTION { void* DebugInfo; // PRTL_CRITICAL_SECTION_DEBUG DebugInfo; Steinberg::int32 LockCount; // LONG LockCount; Steinberg::int32 RecursionCount; // LONG RecursionCount; void* OwningThread; // HANDLE OwningThread void* LockSemaphore; // HANDLE LockSemaphore Steinberg::int32 SpinCount; // ULONG_PTR SpinCount }; #endif namespace Steinberg { namespace Base { namespace Thread { //------------------------------------------------------------------------ /** Lock interface declaration. @ingroup baseLocks */ //------------------------------------------------------------------------ struct ILock { //------------------------------------------------------------------------ virtual ~ILock () {} /** Enables lock. */ virtual void lock () = 0; /** Disables lock. */ virtual void unlock () = 0; /** Tries to disable lock. */ virtual bool trylock () = 0; //------------------------------------------------------------------------ }; //------------------------------------------------------------------------ /** FLock declaration. @ingroup baseLocks */ //------------------------------------------------------------------------ class FLock : public ILock { public: //------------------------------------------------------------------------ /** Lock constructor. * @param name lock name */ FLock (const char8* name = "FLock"); /** Lock destructor. */ ~FLock (); //-- ILock ----------------------------------------------------------- virtual void lock () SMTG_OVERRIDE; virtual void unlock () SMTG_OVERRIDE; virtual bool trylock () SMTG_OVERRIDE; //------------------------------------------------------------------------ protected: #if SMTG_PTHREADS pthread_mutex_t mutex; ///< Mutex object #elif SMTG_OS_WINDOWS CRITSECT section; ///< Critical section object #endif }; //------------------------------------------------------------------------ /** FLockObj declaration. Reference counted lock @ingroup baseLocks */ //------------------------------------------------------------------------ class FLockObject : public FObject, public FLock { public: OBJ_METHODS (FLockObject, FObject) }; //------------------------------------------------------------------------ /** FGuard - automatic object for locks. @ingroup baseLocks */ //------------------------------------------------------------------------ class FGuard { public: //------------------------------------------------------------------------ /** FGuard constructor. * @param _lock guard this lock */ FGuard (ILock& _lock) : lock (_lock) { lock.lock (); } /** FGuard destructor. */ ~FGuard () { lock.unlock (); } //------------------------------------------------------------------------ private: ILock& lock; ///< guarded lock }; //------------------------------------------------------------------------ /** Conditional Guard - Locks only if valid lock is passed. @ingroup baseLocks */ //------------------------------------------------------------------------ class FConditionalGuard { public: //------------------------------------------------------------------------ /** FConditionGuard constructor. * @param _lock guard this lock */ FConditionalGuard (FLock* _lock) : lock (_lock) { if (lock) lock->lock (); } /** FConditionGuard destructor. */ ~FConditionalGuard () { if (lock) lock->unlock (); } //------------------------------------------------------------------------ private: FLock* lock; ///< guarded lock }; } // Thread } // Base } // Steinberg
32.86413
85
0.488011
234d4da7e6b07fad9538d58d0d8ebebea68dd8a8
2,832
h
C
src/support/sorted_vector.h
phated/binaryen
50e66800dc28d67ea1cc88172f459df1ca96507d
[ "Apache-2.0" ]
35
2015-10-30T01:32:47.000Z
2015-11-12T13:23:30.000Z
src/support/sorted_vector.h
sthagen/binaryen
ce592cbdc8e58f36e7f39a3bd24b403f43adae34
[ "Apache-2.0" ]
1
2015-11-06T05:17:09.000Z
2015-11-11T21:50:00.000Z
src/support/sorted_vector.h
sthagen/binaryen
ce592cbdc8e58f36e7f39a3bd24b403f43adae34
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2017 WebAssembly Community Group participants * * 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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // A vector of sorted elements. // #ifndef wasm_support_sorted_vector_h #define wasm_support_sorted_vector_h #include "wasm.h" #include <vector> namespace wasm { struct SortedVector : public std::vector<Index> { SortedVector() = default; SortedVector merge(const SortedVector& other) const { SortedVector ret; ret.resize(size() + other.size()); Index i = 0, j = 0, t = 0; while (i < size() && j < other.size()) { auto left = (*this)[i]; auto right = other[j]; if (left < right) { ret[t++] = left; i++; } else if (left > right) { ret[t++] = right; j++; } else { ret[t++] = left; i++; j++; } } while (i < size()) { ret[t++] = (*this)[i]; i++; } while (j < other.size()) { ret[t++] = other[j]; j++; } ret.resize(t); return ret; } void insert(Index x) { auto it = std::lower_bound(begin(), end(), x); if (it == end()) { push_back(x); } else if (*it > x) { Index i = it - begin(); resize(size() + 1); std::move_backward(begin() + i, begin() + size() - 1, end()); (*this)[i] = x; } } bool erase(Index x) { auto it = std::lower_bound(begin(), end(), x); if (it != end() && *it == x) { std::move(it + 1, end(), it); resize(size() - 1); return true; } return false; } bool has(Index x) const { auto it = std::lower_bound(begin(), end(), x); return it != end() && *it == x; } template<typename T> SortedVector& filter(T keep) { size_t skip = 0; for (size_t i = 0; i < size(); i++) { if (keep((*this)[i])) { (*this)[i - skip] = (*this)[i]; } else { skip++; } } resize(size() - skip); return *this; } void verify() const { for (Index i = 1; i < size(); i++) { assert((*this)[i - 1] < (*this)[i]); } } void dump(const char* str = nullptr) const { std::cout << "SortedVector " << (str ? str : "") << ": "; for (auto x : *this) { std::cout << x << " "; } std::cout << '\n'; } }; } // namespace wasm #endif // wasm_support_sorted_vector_h
23.404959
75
0.536017
234dfc8211022497094c3a70d83191bb1477a428
33,219
c
C
src/keymgr.c
gillsoftab/kore
89085246e532c95fd59ac886218a5ec2d57b2071
[ "0BSD" ]
null
null
null
src/keymgr.c
gillsoftab/kore
89085246e532c95fd59ac886218a5ec2d57b2071
[ "0BSD" ]
null
null
null
src/keymgr.c
gillsoftab/kore
89085246e532c95fd59ac886218a5ec2d57b2071
[ "0BSD" ]
null
null
null
/* * Copyright (c) 2017-2021 Joris Vink <joris@coders.se> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* * The kore keymgr process is responsible for managing certificates * and their matching private keys. * * It is the only process in Kore that holds the private keys (the workers * do not have a copy of them in memory). * * When a worker requires the private key for signing it will send a message * to the keymgr with the to-be-signed data (KORE_MSG_KEYMGR_REQ). The keymgr * will perform the signing and respond with a KORE_MSG_KEYMGR_RESP message. * * The keymgr can transparently reload the private keys and certificates * for a configured domain when it receives a SIGUSR1. It it reloads them * it will send the newly loaded certificate chains to the worker processes * which will update their TLS contexts accordingly. * * If ACME is turned on the keymgr will also hold all account and domain * keys and will initiate the process of acquiring new certificates against * the ACME provider that is configured if those certificates do not exist * or are expired (or are expiring soon). */ #include <sys/types.h> #include <sys/mman.h> #include <sys/stat.h> #include <openssl/evp.h> #include <openssl/rsa.h> #include <openssl/rand.h> #include <openssl/sha.h> #include <openssl/x509.h> #include <openssl/x509v3.h> #include <ctype.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <signal.h> #include <unistd.h> #include "kore.h" #if defined(KORE_USE_ACME) #include "acme.h" #endif #define RAND_TMP_FILE "rnd.tmp" #define RAND_POLL_INTERVAL (1800 * 1000) #define RAND_FILE_SIZE 1024 #if defined(__linux__) #include "seccomp.h" /* The syscalls our keymgr is allowed to perform, only. */ static struct sock_filter filter_keymgr[] = { /* Deny these, but with EACCESS instead of dying. */ KORE_SYSCALL_DENY(ioctl, EACCES), /* Required to deal with private keys and certs. */ #if defined(SYS_open) KORE_SYSCALL_ALLOW(open), #endif KORE_SYSCALL_ALLOW(read), KORE_SYSCALL_ALLOW(lseek), KORE_SYSCALL_ALLOW(write), KORE_SYSCALL_ALLOW(close), #if defined(SYS_stat) KORE_SYSCALL_ALLOW(stat), #endif KORE_SYSCALL_ALLOW(fstat), #if defined(SYS_fstat64) KORE_SYSCALL_ALLOW(fstat64), #endif KORE_SYSCALL_ALLOW(futex), KORE_SYSCALL_ALLOW(writev), KORE_SYSCALL_ALLOW(openat), #if defined(SYS_access) KORE_SYSCALL_ALLOW(access), #endif KORE_SYSCALL_ALLOW(faccessat), /* Net related. */ #if defined(SYS_poll) KORE_SYSCALL_ALLOW(poll), #endif #if defined(SYS_send) KORE_SYSCALL_ALLOW(send), #endif KORE_SYSCALL_ALLOW(sendto), #if defined(SYS_recv) KORE_SYSCALL_ALLOW(recv), #endif KORE_SYSCALL_ALLOW(recvfrom), #if defined(SYS_epoll_wait) KORE_SYSCALL_ALLOW(epoll_wait), #endif KORE_SYSCALL_ALLOW(epoll_pwait), /* Process things. */ KORE_SYSCALL_ALLOW(exit), KORE_SYSCALL_ALLOW(kill), KORE_SYSCALL_ALLOW(getuid), KORE_SYSCALL_ALLOW(getpid), #if defined(SYS_arch_prctl) KORE_SYSCALL_ALLOW(arch_prctl), #endif KORE_SYSCALL_ALLOW(exit_group), KORE_SYSCALL_ALLOW(sigaltstack), #if defined(SYS_sigreturn) KORE_SYSCALL_ALLOW(sigreturn), #endif KORE_SYSCALL_ALLOW(rt_sigreturn), KORE_SYSCALL_ALLOW(rt_sigaction), KORE_SYSCALL_ALLOW(rt_sigprocmask), /* Other things. */ KORE_SYSCALL_ALLOW(brk), #if defined(SYS_mmap) KORE_SYSCALL_ALLOW(mmap), #endif #if defined(SYS_mmap2) KORE_SYSCALL_ALLOW(mmap2), #endif #if defined(SYS_madvise) KORE_SYSCALL_ALLOW(madvise), #endif KORE_SYSCALL_ALLOW(munmap), KORE_SYSCALL_ALLOW(clock_gettime), #if defined(__NR_getrandom) KORE_SYSCALL_ALLOW(getrandom), #endif #if defined(KORE_USE_ACME) #if defined(SYS_mkdir) KORE_SYSCALL_ALLOW(mkdir), #endif KORE_SYSCALL_ALLOW(mkdirat), KORE_SYSCALL_ALLOW(umask), #endif }; #endif struct key { EVP_PKEY *pkey; struct kore_domain *dom; TAILQ_ENTRY(key) list; }; char *rand_file = NULL; static TAILQ_HEAD(, key) keys; static int initialized = 0; #if defined(KORE_USE_ACME) #define ACME_ORDER_STATE_INIT 1 #define ACME_ORDER_STATE_SUBMIT 2 #define ACME_X509_EXPIRATION 120 #define ACME_TLS_ALPN_01_OID "1.3.6.1.5.5.7.1.31" #define ACME_RENEWAL_THRESHOLD 5 #define ACME_RENEWAL_TIMER (3600 * 1000) /* UTCTIME in format of YYMMDDHHMMSSZ */ #define ASN1_UTCTIME_LEN 13 /* GENERALIZEDTIME in format of YYYYMMDDHHMMSSZ */ #define ASN1_GENERALIZEDTIME_LEN 15 /* Set to 1 when we receive KORE_ACME_PROC_READY. */ static int acmeproc_ready = 0; /* Renewal timer for all domains under acme control. */ static struct kore_timer *acme_renewal = NULL; /* oid for acme extension. */ static int acme_oid = -1; struct acme_order { int state; struct kore_timer *timer; char *domain; }; static char *keymgr_bignum_base64(const BIGNUM *); static void keymgr_acme_init(void); static void keymgr_acme_renewal(void *, u_int64_t); static void keymgr_acme_check(struct kore_domain *); static void keymgr_acme_sign(struct kore_msg *, const void *); static void keymgr_acme_ready(struct kore_msg *, const void *); static void keymgr_acme_domainkey(struct kore_domain *, struct key *); static void keymgr_acme_order_create(const char *); static void keymgr_acme_order_redo(void *, u_int64_t); static void keymgr_acme_order_start(void *, u_int64_t); static void keymgr_x509_ext(STACK_OF(X509_EXTENSION) *, int, const char *, ...); static void keymgr_acme_csr(const struct kore_keyreq *, struct key *); static void keymgr_acme_install_cert(const void *, size_t, struct key *); static void keymgr_acme_order_failed(const void *, size_t, struct key *); static void keymgr_acme_challenge_cert(const void *, size_t, struct key *); static int keymgr_x509_not_after(X509 *, time_t *); static int keymgr_asn1_convert_utctime(const ASN1_TIME *, time_t *); static int keymgr_asn1_convert_generalizedtime(const void *, size_t, time_t *); #endif /* KORE_USE_ACME */ static void keymgr_reload(void); static void keymgr_load_randfile(void); static void keymgr_save_randfile(void); static struct key *keymgr_load_privatekey(const char *); static void keymgr_load_domain_privatekey(struct kore_domain *); static void keymgr_msg_recv(struct kore_msg *, const void *); static void keymgr_entropy_request(struct kore_msg *, const void *); static void keymgr_certificate_request(struct kore_msg *, const void *); static void keymgr_submit_certificates(struct kore_domain *, u_int16_t); static void keymgr_submit_file(u_int8_t, struct kore_domain *, const char *, u_int16_t, int); static void keymgr_x509_msg(const char *, const void *, size_t, int, int); static void keymgr_rsa_encrypt(struct kore_msg *, const void *, struct key *); static void keymgr_ecdsa_sign(struct kore_msg *, const void *, struct key *); int keymgr_active = 0; char *keymgr_root_path = NULL; char *keymgr_runas_user = NULL; #if defined(__OpenBSD__) #if defined(KORE_USE_ACME) static const char *keymgr_pledges = "stdio rpath wpath cpath"; #else static const char *keymgr_pledges = "stdio rpath"; #endif #endif void kore_keymgr_run(void) { int quit; u_int64_t now, netwait, last_seed; if (keymgr_active == 0) fatalx("%s: called with keymgr_active == 0", __func__); quit = 0; kore_server_closeall(); kore_module_cleanup(); net_init(); kore_timer_init(); kore_connection_init(); kore_platform_event_init(); kore_msg_worker_init(); kore_msg_register(KORE_MSG_KEYMGR_REQ, keymgr_msg_recv); kore_msg_register(KORE_MSG_ENTROPY_REQ, keymgr_entropy_request); kore_msg_register(KORE_MSG_CERTIFICATE_REQ, keymgr_certificate_request); #if defined(__linux__) /* Drop all enabled seccomp filters, and add only ours. */ kore_seccomp_drop(); kore_seccomp_filter("keymgr", filter_keymgr, KORE_FILTER_LEN(filter_keymgr)); #endif #if defined(KORE_USE_PYTHON) kore_msg_unregister(KORE_PYTHON_SEND_OBJ); #endif kore_worker_privdrop(keymgr_runas_user, keymgr_root_path); if (!kore_quiet) kore_log(LOG_NOTICE, "key manager started (pid#%d)", getpid()); if (rand_file != NULL) { keymgr_load_randfile(); keymgr_save_randfile(); } else if (!kore_quiet) { kore_log(LOG_WARNING, "no rand_file location specified"); } RAND_poll(); last_seed = 0; initialized = 1; keymgr_reload(); #if defined(__OpenBSD__) if (pledge(keymgr_pledges, NULL) == -1) fatalx("failed to pledge keymgr process"); #endif #if defined(KORE_USE_ACME) acme_oid = OBJ_create(ACME_TLS_ALPN_01_OID, "acme", "acmeIdentifier"); X509V3_EXT_add_alias(acme_oid, NID_subject_key_identifier); #endif while (quit != 1) { now = kore_time_ms(); if ((now - last_seed) > RAND_POLL_INTERVAL) { RAND_poll(); last_seed = now; } netwait = kore_timer_next_run(now); kore_platform_event_wait(netwait); if (sig_recv != 0) { switch (sig_recv) { case SIGQUIT: case SIGINT: case SIGTERM: quit = 1; break; case SIGUSR1: keymgr_reload(); break; default: break; } sig_recv = 0; } if (quit) break; now = kore_time_ms(); kore_timer_run(now); kore_connection_prune(KORE_CONNECTION_PRUNE_DISCONNECT); } kore_keymgr_cleanup(1); kore_platform_event_cleanup(); kore_connection_cleanup(); net_cleanup(); } void kore_keymgr_cleanup(int final) { struct key *key, *next; if (final && !kore_quiet) kore_log(LOG_NOTICE, "cleaning up keys"); if (initialized == 0) return; for (key = TAILQ_FIRST(&keys); key != NULL; key = next) { next = TAILQ_NEXT(key, list); TAILQ_REMOVE(&keys, key, list); EVP_PKEY_free(key->pkey); kore_free(key); } } static void keymgr_reload(void) { struct kore_server *srv; struct kore_domain *dom; if (!kore_quiet) kore_log(LOG_INFO, "(re)loading certificates, keys and CRLs"); kore_keymgr_cleanup(0); TAILQ_INIT(&keys); #if defined(KORE_USE_ACME) keymgr_acme_init(); #endif kore_domain_callback(keymgr_load_domain_privatekey); /* can't use kore_domain_callback() due to dst parameter. */ LIST_FOREACH(srv, &kore_servers, list) { if (srv->tls == 0) continue; TAILQ_FOREACH(dom, &srv->domains, list) keymgr_submit_certificates(dom, KORE_MSG_WORKER_ALL); } } static void keymgr_submit_certificates(struct kore_domain *dom, u_int16_t dst) { if (access(dom->certfile, R_OK) == -1) { #if defined(KORE_USE_ACME) if (dom->acme && errno == ENOENT) return; #endif fatalx("cannot read '%s' for %s: %s", dom->certfile, dom->domain, errno_s); } keymgr_submit_file(KORE_MSG_CERTIFICATE, dom, dom->certfile, dst, 0); if (dom->crlfile != NULL) keymgr_submit_file(KORE_MSG_CRL, dom, dom->crlfile, dst, 1); } static void keymgr_submit_file(u_int8_t id, struct kore_domain *dom, const char *file, u_int16_t dst, int can_fail) { int fd; struct stat st; u_int8_t *payload; if ((fd = open(file, O_RDONLY)) == -1) { if (errno == ENOENT && can_fail) return; fatalx("open(%s): %s", file, errno_s); } if (fstat(fd, &st) == -1) fatalx("stat(%s): %s", file, errno_s); if (!S_ISREG(st.st_mode)) fatalx("%s is not a file", file); payload = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); if (payload == MAP_FAILED) fatalx("mmap(): %s", errno_s); keymgr_x509_msg(dom->domain, payload, st.st_size, dst, id); (void)munmap(payload, st.st_size); close(fd); } static void keymgr_load_randfile(void) { int fd; struct stat st; ssize_t ret; size_t total; u_int8_t buf[RAND_FILE_SIZE]; if (rand_file == NULL) return; if ((fd = open(rand_file, O_RDONLY)) == -1) fatalx("open(%s): %s", rand_file, errno_s); if (fstat(fd, &st) == -1) fatalx("stat(%s): %s", rand_file, errno_s); if (!S_ISREG(st.st_mode)) fatalx("%s is not a file", rand_file); if (st.st_size != RAND_FILE_SIZE) fatalx("%s has an invalid size", rand_file); total = 0; while (total != RAND_FILE_SIZE) { ret = read(fd, buf, sizeof(buf)); if (ret == 0) fatalx("EOF on %s", rand_file); if (ret == -1) { if (errno == EINTR) continue; fatalx("read(%s): %s", rand_file, errno_s); } total += (size_t)ret; RAND_seed(buf, (int)ret); OPENSSL_cleanse(buf, sizeof(buf)); } (void)close(fd); if (unlink(rand_file) == -1) { kore_log(LOG_WARNING, "failed to unlink %s: %s", rand_file, errno_s); } } static void keymgr_save_randfile(void) { int fd; struct stat st; ssize_t ret; u_int8_t buf[RAND_FILE_SIZE]; if (rand_file == NULL) return; if (stat(RAND_TMP_FILE, &st) != -1) { kore_log(LOG_WARNING, "removing stale %s file", RAND_TMP_FILE); (void)unlink(RAND_TMP_FILE); } if (RAND_bytes(buf, sizeof(buf)) != 1) { kore_log(LOG_WARNING, "RAND_bytes: %s", ssl_errno_s); goto cleanup; } if ((fd = open(RAND_TMP_FILE, O_CREAT | O_TRUNC | O_WRONLY, 0400)) == -1) { kore_log(LOG_WARNING, "failed to open %s: %s - random data not written", RAND_TMP_FILE, errno_s); goto cleanup; } ret = write(fd, buf, sizeof(buf)); if (ret == -1 || (size_t)ret != sizeof(buf)) { kore_log(LOG_WARNING, "failed to write random data"); (void)close(fd); (void)unlink(RAND_TMP_FILE); goto cleanup; } if (close(fd) == -1) kore_log(LOG_WARNING, "close(%s): %s", RAND_TMP_FILE, errno_s); if (rename(RAND_TMP_FILE, rand_file) == -1) { kore_log(LOG_WARNING, "rename(%s, %s): %s", RAND_TMP_FILE, rand_file, errno_s); (void)unlink(rand_file); (void)unlink(RAND_TMP_FILE); } cleanup: OPENSSL_cleanse(buf, sizeof(buf)); } static void keymgr_load_domain_privatekey(struct kore_domain *dom) { struct key *key; if (dom->server->tls == 0) return; key = keymgr_load_privatekey(dom->certkey); if (key->pkey == NULL) { #if defined(KORE_USE_ACME) if (dom->acme) keymgr_acme_domainkey(dom, key); #endif if (key->pkey == NULL) { fatalx("failed to load private key for '%s' (%s)", dom->domain, errno_s); } } key->dom = dom; kore_log(LOG_INFO, "loaded private key for '%s'", dom->domain); } static struct key * keymgr_load_privatekey(const char *path) { struct key *key; key = kore_calloc(1, sizeof(*key)); TAILQ_INSERT_TAIL(&keys, key, list); /* Caller should check if pkey was loaded. */ if (path) key->pkey = kore_rsakey_load(path); return (key); } static void keymgr_certificate_request(struct kore_msg *msg, const void *data) { struct kore_server *srv; struct kore_domain *dom; LIST_FOREACH(srv, &kore_servers, list) { if (srv->tls == 0) continue; TAILQ_FOREACH(dom, &srv->domains, list) keymgr_submit_certificates(dom, msg->src); } } static void keymgr_entropy_request(struct kore_msg *msg, const void *data) { u_int8_t buf[RAND_FILE_SIZE]; if (RAND_bytes(buf, sizeof(buf)) != 1) { kore_log(LOG_WARNING, "failed to generate entropy for worker %u: %s", msg->src, ssl_errno_s); return; } /* No cleanse, this stuff is leaked in the kernel path anyway. */ kore_msg_send(msg->src, KORE_MSG_ENTROPY_RESP, buf, sizeof(buf)); } static void keymgr_msg_recv(struct kore_msg *msg, const void *data) { const struct kore_keyreq *req; struct key *key; if (msg->length < sizeof(*req)) return; req = (const struct kore_keyreq *)data; if (msg->length != (sizeof(*req) + req->data_len)) return; if (req->domain[KORE_DOMAINNAME_LEN] != '\0') return; key = NULL; TAILQ_FOREACH(key, &keys, list) { if (key->dom == NULL) continue; if (!strcmp(key->dom->domain, req->domain)) break; } if (key == NULL) return; switch (msg->id) { case KORE_MSG_KEYMGR_REQ: switch (EVP_PKEY_id(key->pkey)) { case EVP_PKEY_RSA: keymgr_rsa_encrypt(msg, data, key); break; case EVP_PKEY_EC: keymgr_ecdsa_sign(msg, data, key); break; default: break; } break; #if defined(KORE_USE_ACME) case KORE_ACME_CSR_REQUEST: keymgr_acme_csr(req, key); break; case KORE_ACME_ORDER_FAILED: keymgr_acme_order_failed(req->data, req->data_len, key); break; case KORE_ACME_CHALLENGE_CERT: keymgr_acme_challenge_cert(req->data, req->data_len, key); break; case KORE_ACME_INSTALL_CERT: keymgr_acme_install_cert(req->data, req->data_len, key); break; #endif } } static void keymgr_rsa_encrypt(struct kore_msg *msg, const void *data, struct key *key) { int ret; RSA *rsa; const struct kore_keyreq *req; size_t keylen; u_int8_t buf[1024]; req = (const struct kore_keyreq *)data; rsa = EVP_PKEY_get0_RSA(key->pkey); keylen = RSA_size(rsa); if (req->data_len > keylen || keylen > sizeof(buf)) return; ret = RSA_private_encrypt(req->data_len, req->data, buf, rsa, req->padding); if (ret != RSA_size(rsa)) return; kore_msg_send(msg->src, KORE_MSG_KEYMGR_RESP, buf, ret); } static void keymgr_ecdsa_sign(struct kore_msg *msg, const void *data, struct key *key) { size_t len; EC_KEY *ec; const struct kore_keyreq *req; unsigned int siglen; u_int8_t sig[1024]; req = (const struct kore_keyreq *)data; ec = EVP_PKEY_get0_EC_KEY(key->pkey); len = ECDSA_size(ec); if (req->data_len > len || len > sizeof(sig)) return; if (ECDSA_sign(EVP_PKEY_NONE, req->data, req->data_len, sig, &siglen, ec) == 0) return; if (siglen > sizeof(sig)) return; kore_msg_send(msg->src, KORE_MSG_KEYMGR_RESP, sig, siglen); } static void keymgr_x509_msg(const char *domain, const void *data, size_t len, int target, int msg) { struct kore_buf buf; struct kore_x509_msg hdr; memset(&hdr, 0, sizeof(hdr)); hdr.data_len = len; if (kore_strlcpy(hdr.domain, domain, sizeof(hdr.domain)) >= sizeof(hdr.domain)) fatalx("%s: domain truncated", __func__); kore_buf_init(&buf, sizeof(hdr) + len); kore_buf_append(&buf, &hdr, sizeof(hdr)); kore_buf_append(&buf, data, len); kore_msg_send(target, msg, buf.data, buf.offset); kore_buf_cleanup(&buf); } #if defined(KORE_USE_ACME) static void keymgr_acme_init(void) { RSA *rsa; struct key *key; char *e, *n; int needsreg; const BIGNUM *be, *bn; if (acme_provider == NULL) return; if (mkdir(KORE_ACME_CERTDIR, 0700) == -1) { if (errno != EEXIST) fatalx("mkdir(%s): %s", KORE_ACME_CERTDIR, errno_s); } umask(S_IWGRP | S_IWOTH | S_IRGRP | S_IROTH); needsreg = 0; acmeproc_ready = 0; key = keymgr_load_privatekey(KORE_ACME_ACCOUNT_KEY); if (acme_renewal != NULL) kore_timer_remove(acme_renewal); acme_renewal = kore_timer_add(keymgr_acme_renewal, ACME_RENEWAL_TIMER, NULL, 0); if (key->pkey == NULL) { kore_log(LOG_NOTICE, "generating new ACME account key"); key->pkey = kore_rsakey_generate(KORE_ACME_ACCOUNT_KEY); needsreg = 1; } else { kore_log(LOG_INFO, "loaded existing ACME account key"); } rsa = EVP_PKEY_get0_RSA(key->pkey); RSA_get0_key(rsa, &bn, &be, NULL); e = keymgr_bignum_base64(be); n = keymgr_bignum_base64(bn); kore_msg_send(KORE_WORKER_ACME, KORE_ACME_RSAKEY_E, e, strlen(e)); kore_msg_send(KORE_WORKER_ACME, KORE_ACME_RSAKEY_N, n, strlen(n)); kore_free(e); kore_free(n); if (needsreg) { kore_msg_send(KORE_WORKER_ACME, KORE_ACME_ACCOUNT_CREATE, NULL, 0); } else { kore_msg_send(KORE_WORKER_ACME, KORE_ACME_ACCOUNT_RESOLVE, NULL, 0); } kore_msg_register(KORE_ACME_SIGN, keymgr_acme_sign); kore_msg_register(KORE_ACME_CSR_REQUEST, keymgr_msg_recv); kore_msg_register(KORE_ACME_PROC_READY, keymgr_acme_ready); kore_msg_register(KORE_ACME_ORDER_FAILED, keymgr_msg_recv); kore_msg_register(KORE_ACME_INSTALL_CERT, keymgr_msg_recv); kore_msg_register(KORE_ACME_CHALLENGE_CERT, keymgr_msg_recv); } static void keymgr_acme_domainkey(struct kore_domain *dom, struct key *key) { char *p; kore_log(LOG_NOTICE, "generated new domain key for %s", dom->domain); if ((p = strrchr(dom->certkey, '/')) == NULL) fatalx("invalid certkey path '%s'", dom->certkey); *p = '\0'; if (mkdir(dom->certkey, 0700) == -1) { if (errno != EEXIST) fatalx("mkdir(%s): %s", dom->certkey, errno_s); } *p = '/'; key->pkey = kore_rsakey_generate(dom->certkey); } static void keymgr_acme_order_create(const char *domain) { struct acme_order *order; order = kore_calloc(1, sizeof(*order)); order->state = ACME_ORDER_STATE_INIT; order->domain = kore_strdup(domain); order->timer = kore_timer_add(keymgr_acme_order_start, 1000, order, KORE_TIMER_ONESHOT); } static void keymgr_acme_order_redo(void *udata, u_int64_t now) { struct kore_domain *dom = udata; kore_log(LOG_INFO, "[%s] redoing order", dom->domain); keymgr_acme_order_create(dom->domain); } static void keymgr_acme_order_start(void *udata, u_int64_t now) { struct acme_order *order = udata; switch (order->state) { case ACME_ORDER_STATE_INIT: if (acmeproc_ready == 0) break; order->state = ACME_ORDER_STATE_SUBMIT; /* fallthrough */ case ACME_ORDER_STATE_SUBMIT: kore_msg_send(KORE_WORKER_ACME, KORE_ACME_ORDER_CREATE, order->domain, strlen(order->domain)); kore_free(order->domain); kore_free(order); order = NULL; break; default: fatalx("%s: unknown order state %d", __func__, order->state); } if (order != NULL) { order->timer = kore_timer_add(keymgr_acme_order_start, 5000, order, KORE_TIMER_ONESHOT); } } static void keymgr_acme_ready(struct kore_msg *msg, const void *data) { acmeproc_ready = 1; kore_log(LOG_INFO, "acme process ready to receive orders"); keymgr_acme_renewal(NULL, kore_time_ms()); } static void keymgr_acme_check(struct kore_domain *dom) { FILE *fp; int days; X509 *x509; time_t expires, now; if (dom->acme == 0) return; if (access(dom->certfile, R_OK) == -1) { if (errno == ENOENT) { keymgr_acme_order_create(dom->domain); return; } kore_log(LOG_ERR, "access(%s): %s", dom->certfile, errno_s); return; } if ((fp = fopen(dom->certfile, "r")) == NULL) { kore_log(LOG_ERR, "fopen(%s): %s", dom->certfile, errno_s); return; } if ((x509 = PEM_read_X509(fp, NULL, NULL, NULL)) == NULL) { fclose(fp); kore_log(LOG_ERR, "PEM_read_X509: %s", ssl_errno_s); return; } fclose(fp); if (!keymgr_x509_not_after(x509, &expires)) { X509_free(x509); return; } time(&now); days = (expires - now) / 86400; kore_log(LOG_INFO, "%s certificate expires in %d days", dom->domain, days); if (days <= ACME_RENEWAL_THRESHOLD) { kore_log(LOG_INFO, "%s renewing certificate", dom->domain); keymgr_acme_order_create(dom->domain); } X509_free(x509); } static void keymgr_acme_renewal(void *udata, u_int64_t now) { kore_domain_callback(keymgr_acme_check); } static void keymgr_acme_sign(struct kore_msg *msg, const void *data) { u_int32_t id; struct kore_buf buf; const u_int8_t *ptr; u_int8_t *sig; EVP_MD_CTX *ctx; struct key *key; char *b64; unsigned int siglen; TAILQ_FOREACH(key, &keys, list) { if (key->dom == NULL) break; } if (key == NULL) fatalx("%s: missing key", __func__); if (msg->length < sizeof(id)) fatalx("%s: invalid length (%zu)", __func__, msg->length); ptr = data; memcpy(&id, ptr, sizeof(id)); ptr += sizeof(id); msg->length -= sizeof(id); sig = kore_calloc(1, EVP_PKEY_size(key->pkey)); if ((ctx = EVP_MD_CTX_create()) == NULL) fatalx("EVP_MD_CTX_create: %s", ssl_errno_s); if (!EVP_SignInit_ex(ctx, EVP_sha256(), NULL)) fatalx("EVP_SignInit_ex: %s", ssl_errno_s); if (!EVP_SignUpdate(ctx, ptr, msg->length)) fatalx("EVP_SignUpdate: %s", ssl_errno_s); if (!EVP_SignFinal(ctx, sig, &siglen, key->pkey)) fatalx("EVP_SignFinal: %s", ssl_errno_s); if (!kore_base64url_encode(sig, siglen, &b64, KORE_BASE64_RAW)) fatalx("%s: failed to b64url encode signed data", __func__); kore_buf_init(&buf, siglen + sizeof(id)); kore_buf_append(&buf, &id, sizeof(id)); kore_buf_append(&buf, b64, strlen(b64)); kore_msg_send(KORE_WORKER_ACME, KORE_ACME_SIGN_RESULT, buf.data, buf.offset); EVP_MD_CTX_destroy(ctx); kore_free(sig); kore_free(b64); kore_buf_cleanup(&buf); } static void keymgr_acme_install_cert(const void *data, size_t len, struct key *key) { int fd; ssize_t ret; fd = open(key->dom->certfile, O_CREAT | O_TRUNC | O_WRONLY, 0700); if (fd == -1) fatal("open(%s): %s", key->dom->certfile, errno_s); kore_log(LOG_INFO, "writing %zu bytes of data", len); for (;;) { ret = write(fd, data, len); if (ret == -1) { if (errno == EINTR) continue; fatal("write(%s): %s", key->dom->certfile, errno_s); } break; } if ((size_t)ret != len) { fatal("incorrect write on %s (%zd/%zu)", key->dom->certfile, ret, len); } if (close(fd) == -1) { kore_log(LOG_NOTICE, "close error on '%s' (%s)", key->dom->certfile, errno_s); } keymgr_submit_certificates(key->dom, KORE_MSG_WORKER_ALL); keymgr_x509_msg(key->dom->domain, NULL, 0, KORE_MSG_WORKER_ALL, KORE_ACME_CHALLENGE_CLEAR_CERT); } static void keymgr_acme_order_failed(const void *data, size_t len, struct key *key) { u_int32_t retry; if (len != sizeof(retry)) { kore_log(LOG_ERR, "%s: invalid payload (%zu)", __func__, len); return; } memcpy(&retry, data, len); kore_timer_add(keymgr_acme_order_redo, retry, key->dom, KORE_TIMER_ONESHOT); } static void keymgr_acme_challenge_cert(const void *data, size_t len, struct key *key) { STACK_OF(X509_EXTENSION) *sk; size_t idx; time_t now; X509_EXTENSION *ext; X509_NAME *name; X509 *x509; const u_int8_t *digest; int slen, i; u_int8_t *cert, *uptr; char hex[(SHA256_DIGEST_LENGTH * 2) + 1]; kore_log(LOG_INFO, "[%s] generating tls-alpn-01 challenge cert", key->dom->domain); if (len != SHA256_DIGEST_LENGTH) fatalx("invalid digest length of %zu bytes", len); digest = data; for (idx = 0; idx < SHA256_DIGEST_LENGTH; idx++) { slen = snprintf(hex + (idx * 2), sizeof(hex) - (idx * 2), "%02x", digest[idx]); if (slen == -1 || (size_t)slen >= sizeof(hex)) fatal("failed to convert digest to hex"); } if ((x509 = X509_new()) == NULL) fatalx("X509_new(): %s", ssl_errno_s); if (!X509_set_version(x509, 2)) fatalx("X509_set_version(): %s", ssl_errno_s); time(&now); if (!ASN1_INTEGER_set(X509_get_serialNumber(x509), now)) fatalx("ASN1_INTEGER_set(): %s", ssl_errno_s); if (!X509_gmtime_adj(X509_get_notBefore(x509), 0)) fatalx("X509_gmtime_adj(): %s", ssl_errno_s); if (!X509_gmtime_adj(X509_get_notAfter(x509), ACME_X509_EXPIRATION)) fatalx("X509_gmtime_adj(): %s", ssl_errno_s); if (!X509_set_pubkey(x509, key->pkey)) fatalx("X509_set_pubkey(): %s", ssl_errno_s); if ((name = X509_get_subject_name(x509)) == NULL) fatalx("X509_get_subject_name(): %s", ssl_errno_s); if (!X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, (const unsigned char *)key->dom->domain, -1, -1, 0)) fatalx("X509_NAME_add_entry_by_txt(): CN %s", ssl_errno_s); if (!X509_set_issuer_name(x509, name)) fatalx("X509_set_issuer_name(): %s", ssl_errno_s); sk = sk_X509_EXTENSION_new_null(); keymgr_x509_ext(sk, acme_oid, "critical,%s", hex); keymgr_x509_ext(sk, NID_subject_alt_name, "DNS:%s", key->dom->domain); for (i = 0; i < sk_X509_EXTENSION_num(sk); i++) { ext = sk_X509_EXTENSION_value(sk, i); if (!X509_add_ext(x509, ext, 0)) fatalx("X509_add_ext(): %s", ssl_errno_s); } if (!X509_sign(x509, key->pkey, EVP_sha256())) fatalx("X509_sign(): %s", ssl_errno_s); if ((slen = i2d_X509(x509, NULL)) <= 0) fatalx("i2d_X509: %s", ssl_errno_s); cert = kore_calloc(1, slen); uptr = cert; if (i2d_X509(x509, &uptr) <= 0) fatalx("i2d_X509: %s", ssl_errno_s); keymgr_x509_msg(key->dom->domain, cert, slen, KORE_MSG_WORKER_ALL, KORE_ACME_CHALLENGE_SET_CERT); kore_free(cert); X509_free(x509); sk_X509_EXTENSION_pop_free(sk, X509_EXTENSION_free); } static void keymgr_acme_csr(const struct kore_keyreq *req, struct key *key) { int len; STACK_OF(X509_EXTENSION) *sk; X509_REQ *csr; X509_NAME *name; u_int8_t *data, *uptr; kore_log(LOG_INFO, "[%s] creating CSR", req->domain); if ((csr = X509_REQ_new()) == NULL) fatal("X509_REQ_new: %s", ssl_errno_s); if (!X509_REQ_set_version(csr, 3)) fatalx("X509_REQ_set_version(): %s", ssl_errno_s); if (!X509_REQ_set_pubkey(csr, key->pkey)) fatalx("X509_REQ_set_pubkey(): %s", ssl_errno_s); if ((name = X509_REQ_get_subject_name(csr)) == NULL) fatalx("X509_REQ_get_subject_name(): %s", ssl_errno_s); if (!X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, (const unsigned char *)key->dom->domain, -1, -1, 0)) fatalx("X509_NAME_add_entry_by_txt(): %s", ssl_errno_s); sk = sk_X509_EXTENSION_new_null(); keymgr_x509_ext(sk, NID_subject_alt_name, "DNS:%s", key->dom->domain); if (!X509_REQ_add_extensions(csr, sk)) fatalx("X509_REQ_add_extensions(): %s", ssl_errno_s); if (!X509_REQ_sign(csr, key->pkey, EVP_sha256())) fatalx("X509_REQ_sign(): %s", ssl_errno_s); if ((len = i2d_X509_REQ(csr, NULL)) <= 0) fatalx("i2d_X509_REQ: %s", ssl_errno_s); data = kore_calloc(1, len); uptr = data; if (i2d_X509_REQ(csr, &uptr) <= 0) fatalx("i2d_X509_REQ: %s", ssl_errno_s); keymgr_x509_msg(key->dom->domain, data, len, KORE_WORKER_ACME, KORE_ACME_CSR_RESPONSE); kore_free(data); X509_REQ_free(csr); sk_X509_EXTENSION_pop_free(sk, X509_EXTENSION_free); } static void keymgr_x509_ext(STACK_OF(X509_EXTENSION) *sk, int extnid, const char *fmt, ...) { int len; va_list args; X509_EXTENSION *ext; char buf[1024]; va_start(args, fmt); len = vsnprintf(buf, sizeof(buf), fmt, args); va_end(args); if (len == -1 || (size_t)len >= sizeof(buf)) fatalx("failed to create buffer for extension %d", extnid); if ((ext = X509V3_EXT_conf_nid(NULL, NULL, extnid, buf)) == NULL) { fatalx("X509V3_EXT_conf_nid(%d, %s): %s", extnid, buf, ssl_errno_s); } sk_X509_EXTENSION_push(sk, ext); } static char * keymgr_bignum_base64(const BIGNUM *bn) { int len; void *buf; char *encoded; len = BN_num_bytes(bn); buf = kore_calloc(1, len); if (BN_bn2bin(bn, buf) != len) fatalx("BN_bn2bin: %s", ssl_errno_s); if (!kore_base64url_encode(buf, len, &encoded, KORE_BASE64_RAW)) fatalx("failed to base64 encode BIGNUM"); return (encoded); } static int keymgr_x509_not_after(X509 *x509, time_t *out) { const ASN1_TIME *na; int ret; ret = KORE_RESULT_ERROR; if ((na = X509_get_notAfter(x509)) == NULL) { kore_log(LOG_ERR, "no notAfter date in x509"); return (KORE_RESULT_ERROR); } switch (na->type) { case V_ASN1_UTCTIME: ret = keymgr_asn1_convert_utctime(na, out); break; case V_ASN1_GENERALIZEDTIME: ret = keymgr_asn1_convert_generalizedtime(na->data, na->length, out); break; default: kore_log(LOG_ERR, "invalid notAfter type (%d)", na->type); break; } return (ret); } static int keymgr_asn1_convert_utctime(const ASN1_TIME *na, time_t *out) { int len, year; char buf[ASN1_GENERALIZEDTIME_LEN + 1]; if (na->length != ASN1_UTCTIME_LEN) { kore_log(LOG_ERR, "invalid UTCTIME: too short (%d)", na->length); return (KORE_RESULT_ERROR); } if (!isdigit(na->data[0]) || !isdigit(na->data[1])) { kore_log(LOG_ERR, "invalid UTCTIME: YY are not digits"); return (KORE_RESULT_ERROR); } year = (na->data[0] - '0') * 10 + (na->data[1] - '0'); /* RFC 5280 says years >= 50 are interpreted as 19YY */ if (year >= 50) year = 1900 + year; else year = 2000 + year; /* Convert it to GENERALIZEDTIME format and call that parser. */ len = snprintf(buf, sizeof(buf), "%04d%.*s", year, na->length - 2, (const char *)na->data+ 2); if (len == -1 || (size_t)len >= sizeof(buf)) { kore_log(LOG_ERR, "invalid UTCTIME: failed to convert"); return (KORE_RESULT_ERROR); } return (keymgr_asn1_convert_generalizedtime(buf, len, out)); } static int keymgr_asn1_convert_generalizedtime(const void *ptr, size_t len, time_t *out) { size_t i; struct tm tm; const u_int8_t *buf; if (len != ASN1_GENERALIZEDTIME_LEN) { kore_log(LOG_ERR, "invalid GENERALIZEDTIME: too short (%zu)", len); return (KORE_RESULT_ERROR); } buf = ptr; for (i = 0; i < len - 1; i++) { if (!isdigit(buf[i])) { kore_log(LOG_ERR, "invalid GENERALIZEDTIME: invalid bytes"); return (KORE_RESULT_ERROR); } } /* RFC 5280 states that Zulu time must be used (Z). */ if (buf[i] != 'Z') { kore_log(LOG_ERR, "invalid GENERALIZEDTIME: not Zulu time"); return (KORE_RESULT_ERROR); } memset(&tm, 0, sizeof(tm)); tm.tm_year = (buf[0] - '0') * 1000 + (buf[1] - '0') * 100 + (buf[2] - '0') * 10 + (buf[3] - '0'); tm.tm_mon = (buf[4] - '0') * 10 + (buf[5] - '0'); tm.tm_mday = (buf[6] - '0') * 10 + (buf[7] - '0'); tm.tm_hour = (buf[8] - '0') * 10 + (buf[9] - '0'); tm.tm_min = (buf[10] - '0') * 10 + (buf[11] - '0'); tm.tm_sec = (buf[12] - '0') * 10 + (buf[13] - '0'); tm.tm_mon = tm.tm_mon - 1; tm.tm_year = tm.tm_year - 1900; *out = mktime(&tm); return (KORE_RESULT_OK); } #endif
24.159273
79
0.700172
234ea5eadae0b59f7ea5fc1cbfc84869a707d7eb
119
h
C
showcase-sketches/digital_light_sensor/connect_wifi.h
leonmutschke/interactive-iot-showcase-boxes
265949a5f58b38c3ef3dfea8ea33ee97711054da
[ "MIT" ]
null
null
null
showcase-sketches/digital_light_sensor/connect_wifi.h
leonmutschke/interactive-iot-showcase-boxes
265949a5f58b38c3ef3dfea8ea33ee97711054da
[ "MIT" ]
null
null
null
showcase-sketches/digital_light_sensor/connect_wifi.h
leonmutschke/interactive-iot-showcase-boxes
265949a5f58b38c3ef3dfea8ea33ee97711054da
[ "MIT" ]
null
null
null
/** * Connecting ESP32 controller to wifi * * @author leonmutschke */ using namespace std; void connectToWifi();
11.9
38
0.697479
2350cb96d9ae5464cf8b2d0cdd39a8541d16694c
4,962
h
C
boards/AVR_MKS_GEN_L_V2/pins_MKS_GEN_L_V2.h
fzsombor/OpenAstroTracker-Firmware
f26af5146c5fb4b485c4f36d2ca35221238cbac3
[ "MIT" ]
1
2021-05-19T23:34:15.000Z
2021-05-19T23:34:15.000Z
boards/AVR_MKS_GEN_L_V2/pins_MKS_GEN_L_V2.h
M3larry/OpenAstroTracker-Firmware
79cdca37552fcd0f6f22236596245b04b06512a4
[ "MIT" ]
null
null
null
boards/AVR_MKS_GEN_L_V2/pins_MKS_GEN_L_V2.h
M3larry/OpenAstroTracker-Firmware
79cdca37552fcd0f6f22236596245b04b06512a4
[ "MIT" ]
null
null
null
/** * @brief a pins configuration file for an MKS Gen L V2.1 OAT. */ #pragma once // DRIVER_TYPE_ULN2003 requires 4 digital outputs in Arduino pin numbering #ifndef RA_IN1_PIN #define RA_IN1_PIN 63 #endif #ifndef RA_IN2_PIN #define RA_IN2_PIN 38 #endif #ifndef RA_IN3_PIN #define RA_IN3_PIN 54 #endif #ifndef RA_IN4_PIN #define RA_IN4_PIN 55 #endif #ifndef DEC_IN1_PIN #define DEC_IN1_PIN 64 #endif #ifndef DEC_IN2_PIN #define DEC_IN2_PIN 56 #endif #ifndef DEC_IN3_PIN #define DEC_IN3_PIN 60 #endif #ifndef DEC_IN4_PIN #define DEC_IN4_PIN 61 #endif // DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering #ifndef RA_STEP_PIN #define RA_STEP_PIN 54 // STEP #endif #ifndef RA_DIR_PIN #define RA_DIR_PIN 55 // DIR #endif #ifndef RA_EN_PIN #define RA_EN_PIN 38 // Enable #endif #ifndef RA_DIAG_PIN #define RA_DIAG_PIN 3 // only needed for autohome function #endif #ifndef RA_MS0_PIN #define RA_MS0_PIN 51 #endif #ifndef RA_MS1_PIN #define RA_MS1_PIN 52 #endif #ifndef RA_MS2_PIN #define RA_MS2_PIN 63 #endif // DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers #ifndef RA_SERIAL_PORT_TX #define RA_SERIAL_PORT_TX 40 // SoftwareSerial TX port #endif #ifndef RA_SERIAL_PORT_RX #define RA_SERIAL_PORT_RX 63 // SoftwareSerial RX port #endif #ifndef RA_DRIVER_ADDRESS #define RA_DRIVER_ADDRESS 0b00 #endif // DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering #ifndef DEC_STEP_PIN #define DEC_STEP_PIN 60 // STEP #endif #ifndef DEC_DIR_PIN #define DEC_DIR_PIN 61 // DIR #endif #ifndef DEC_EN_PIN #define DEC_EN_PIN 56 // Enable #endif #ifndef DEC_DIAG_PIN #define DEC_DIAG_PIN 14 // only needed for autohome function #endif #ifndef DEC_MS0_PIN #define DEC_MS0_PIN 51 #endif #ifndef DEC_MS1_PIN #define DEC_MS1_PIN 52 #endif #ifndef DEC_MS2_PIN #define DEC_MS2_PIN 64 #endif // DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers #ifndef DEC_SERIAL_PORT_TX #define DEC_SERIAL_PORT_TX 59 // SoftwareSerial TX port #endif #ifndef DEC_SERIAL_PORT_RX #define DEC_SERIAL_PORT_RX 64 // SoftwareSerial RX port #endif #ifndef DEC_DRIVER_ADDRESS #define DEC_DRIVER_ADDRESS 0b00 #endif #define SW_SERIAL_UART 1 // DRIVER_TYPE_ULN2003 requires 4 digital outputs in Arduino pin numbering #ifndef AZ_IN1_PIN #define AZ_IN1_PIN 65 #endif #ifndef AZ_IN2_PIN #define AZ_IN2_PIN 62 #endif #ifndef AZ_IN3_PIN #define AZ_IN3_PIN 46 #endif #ifndef AZ_IN4_PIN #define AZ_IN4_PIN 48 #endif #ifndef ALT_IN1_PIN #define ALT_IN1_PIN 66 #endif #ifndef ALT_IN2_PIN #define ALT_IN2_PIN 24 #endif #ifndef ALT_IN3_PIN #define ALT_IN3_PIN 26 #endif #ifndef ALT_IN4_PIN #define ALT_IN4_PIN 28 #endif // DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering #ifndef AZ_STEP_PIN #define AZ_STEP_PIN 46 // STEP #endif #ifndef AZ_DIR_PIN #define AZ_DIR_PIN 48 // DIR #endif #ifndef AZ_EN_PIN #define AZ_EN_PIN 62 // Enable #endif #ifndef AZ_DIAG_PIN #define AZ_DIAG_PIN 18 // only needed for autohome function #endif // DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers #ifndef AZ_SERIAL_PORT_TX #define AZ_SERIAL_PORT_TX 42 // SoftwareSerial TX port #endif #ifndef AZ_SERIAL_PORT_RX #define AZ_SERIAL_PORT_RX 65 // SoftwareSerial RX port #endif #ifndef AZ_DRIVER_ADDRESS #define AZ_DRIVER_ADDRESS 0b00 #endif // DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering #ifndef ALT_STEP_PIN #define ALT_STEP_PIN 26 // STEP #endif #ifndef ALT_DIR_PIN #define ALT_DIR_PIN 28 // DIR #endif #ifndef ALT_EN_PIN #define ALT_EN_PIN 24 // Enable #endif #ifndef ALT_DIAG_PIN #define ALT_DIAG_PIN 2 // only needed for autohome function #endif // DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers #ifndef ALT_SERIAL_PORT_TX #define ALT_SERIAL_PORT_TX 44 // SoftwareSerial TX port #endif #ifndef ALT_SERIAL_PORT_RX #define ALT_SERIAL_PORT_RX 66 // SoftwareSerial RX port #endif #ifndef ALT_DRIVER_ADDRESS #define ALT_DRIVER_ADDRESS 0b00 #endif //GPS pin configuration #ifndef GPS_SERIAL_PORT #define GPS_SERIAL_PORT Serial1 #endif // DISPLAY_TYPE_LCD_KEYPAD requires 6 digital & 1 analog output in Arduino pin numbering #ifndef LCD_PIN4 #define LCD_PIN4 57 #endif #ifndef LCD_PIN5 #define LCD_PIN5 6 #endif #ifndef LCD_PIN6 #define LCD_PIN6 45 #endif #ifndef LCD_PIN7 #define LCD_PIN7 5 #endif #ifndef LCD_PIN8 #define LCD_PIN8 43 #endif #ifndef LCD_PIN9 #define LCD_PIN9 47 #endif // DISPLAY_TYPE_LCD_KEYPAD requires 1 analog input in Arduino pin numbering #ifndef LCD_KEY_SENSE_PIN #define LCD_KEY_SENSE_PIN 58 #endif //Pin to turn on dew heater MOSFET #ifndef DEW_HEATER_PIN #define DEW_HEATER_PIN 10 #endif
24.204878
115
0.787586
2350ebd66490588c1bff2fa0389fe0204cae8758
1,274
c
C
libft/ft_strjoin.c
raja-moukhass/RTV1
3c69fe859aa692c0dbf121e341d228ec3369c943
[ "MIT" ]
null
null
null
libft/ft_strjoin.c
raja-moukhass/RTV1
3c69fe859aa692c0dbf121e341d228ec3369c943
[ "MIT" ]
null
null
null
libft/ft_strjoin.c
raja-moukhass/RTV1
3c69fe859aa692c0dbf121e341d228ec3369c943
[ "MIT" ]
null
null
null
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strjoin.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: ramoukha <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/04/27 16:59:34 by ramoukha #+# #+# */ /* Updated: 2019/05/19 06:29:34 by ramoukha ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" char *ft_strjoin(char const *s1, char const *s2) { int i; int j; char *str; if (s1 == NULL || s2 == NULL) return (NULL); i = ft_strlen(s1); j = ft_strlen(s2); if ((!s1) || (!s2)) return (NULL); if (!(str = (char *)malloc(sizeof(char) * (i + j) + 1))) return (NULL); ft_strcpy(str, s1); ft_strcat(str, s2); str[i + j] = '\0'; return (str); }
37.470588
80
0.238619
235153227dba741b683b2500f500f07679fcb634
6,148
c
C
src/libtcod/renderer_gl.c
libtcod/libtcod
c5efaa90957040bc7873e4b2dc953bd73ad342b4
[ "BSD-3-Clause" ]
686
2018-07-01T15:49:10.000Z
2022-03-30T14:13:40.000Z
src/libtcod/renderer_gl.c
libtcod/libtcod
c5efaa90957040bc7873e4b2dc953bd73ad342b4
[ "BSD-3-Clause" ]
99
2018-10-23T17:02:08.000Z
2022-03-29T18:47:47.000Z
src/libtcod/renderer_gl.c
libtcod/libtcod
c5efaa90957040bc7873e4b2dc953bd73ad342b4
[ "BSD-3-Clause" ]
76
2018-07-29T03:51:42.000Z
2022-03-26T03:10:10.000Z
/* BSD 3-Clause License * * Copyright © 2008-2021, Jice and the libtcod contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef NO_SDL #include "renderer_gl.h" #include <SDL.h> #include "../vendor/glad.h" #include "error.h" /** * Return a rectangle shaped for a tile at `x`,`y`. */ static SDL_Rect get_aligned_tile(const struct TCOD_Tileset* tileset, int x, int y) { SDL_Rect tile_rect = {x * tileset->tile_width, y * tileset->tile_height, tileset->tile_width, tileset->tile_height}; return tile_rect; } /** * Return the rectangle for the tile at `tile_id`. */ static SDL_Rect get_gl_atlas_tile(const struct TCOD_TilesetAtlasOpenGL* atlas, int tile_id) { return get_aligned_tile(atlas->tileset, tile_id % atlas->texture_columns, tile_id / atlas->texture_columns); } /** * Upload a single tile to the atlas texture. */ static int upload_gl_tile(struct TCOD_TilesetAtlasOpenGL* atlas, int tile_id) { SDL_Rect dest = get_gl_atlas_tile(atlas, tile_id); glBindTexture(GL_TEXTURE_2D, atlas->texture); glTexSubImage2D( GL_TEXTURE_2D, 0, dest.x, dest.y, dest.w, dest.h, GL_RGBA, GL_UNSIGNED_BYTE, atlas->tileset->pixels + (tile_id * atlas->tileset->tile_length)); glBindTexture(GL_TEXTURE_2D, 0); return 0; } /** * Setup a atlas texture and upload the tileset graphics. */ TCOD_NODISCARD static int prepare_gl_atlas(struct TCOD_TilesetAtlasOpenGL* atlas) { GLenum gl_error = glGetError(); if (gl_error) return TCOD_set_errorvf("Unexpected OpenGL error before texture allocation: %u", gl_error); int new_size = atlas->texture_size ? atlas->texture_size : 64; int max_size; glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max_size); int columns = 1; // Must be more than zero. int rows = 1; while (1) { if (atlas->tileset->tile_width == 0 || atlas->tileset->tile_height == 0) { break; // Avoid division by zero. } columns = new_size / atlas->tileset->tile_width; rows = new_size / atlas->tileset->tile_height; if (rows * columns >= atlas->tileset->tiles_capacity) { break; } new_size *= 2; } if (new_size > max_size) { TCOD_set_errorv("Tried to allocate a texture size above the maximum limit!"); return TCOD_E_ERROR; } if (new_size != atlas->texture_size) { atlas->texture_size = new_size; atlas->texture_columns = columns; atlas->texture_rows = rows; glBindTexture(GL_TEXTURE_2D, atlas->texture); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, atlas->texture_size, atlas->texture_size, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); glBindTexture(GL_TEXTURE_2D, 0); gl_error = glGetError(); switch (gl_error) { case GL_NO_ERROR: break; case GL_OUT_OF_MEMORY: TCOD_set_errorv("Out of memory while allocating texture atlas."); return TCOD_E_OUT_OF_MEMORY; default: return TCOD_set_errorvf("OpenGL error while allocating texture atlas: %u", gl_error); } for (int i = 0; i < atlas->tileset->tiles_count; ++i) { if (upload_gl_tile(atlas, i) < 0) { return -1; } } return 1; // Atlas texture has been resized and refreshed. } return 0; // No action. } /** * Respond to changes in a tileset. */ static int gl_atlas_on_tile_changed(struct TCOD_TilesetObserver* observer, int tile_id) { struct TCOD_TilesetAtlasOpenGL* atlas = observer->userdata; if (prepare_gl_atlas(atlas) == 1) { return 0; // Tile updated as a side-effect of prepare_gl_atlas. } return upload_gl_tile(atlas, tile_id); } struct TCOD_TilesetAtlasOpenGL* TCOD_gl_atlas_new(struct TCOD_Tileset* tileset) { if (!tileset) { return NULL; } struct TCOD_TilesetAtlasOpenGL* atlas = calloc(sizeof(*atlas), 1); if (!atlas) { return NULL; } atlas->observer = TCOD_tileset_observer_new(tileset); if (!atlas->observer) { TCOD_gl_atlas_delete(atlas); return NULL; } atlas->tileset = tileset; atlas->tileset->ref_count += 1; atlas->observer->userdata = atlas; atlas->observer->on_tile_changed = gl_atlas_on_tile_changed; glGenTextures(1, &atlas->texture); if (prepare_gl_atlas(atlas) < 0) { TCOD_gl_atlas_delete(atlas); return NULL; } return atlas; } void TCOD_gl_atlas_delete(struct TCOD_TilesetAtlasOpenGL* atlas) { if (!atlas) { return; } if (atlas->tileset) { TCOD_tileset_delete(atlas->tileset); } if (atlas->texture) { glDeleteTextures(1, &atlas->texture); } free(atlas); } #endif // NO_SDL
35.333333
118
0.709987
2351d8b2a73d03974f7bc159ac4890b58ec3ce14
441
h
C
grove_heartrate/grove_heartrate_class.h
JackyZhangFromSeeed/Grove_Driver_based_on_SULI2
4fe10a04119fdb4bb28f71c6ca2262d5b1940cf9
[ "MIT" ]
1
2016-05-25T12:39:17.000Z
2016-05-25T12:39:17.000Z
grove_heartrate/grove_heartrate_class.h
JackyZhangFromSeeed/Grove_Driver_based_on_SULI2
4fe10a04119fdb4bb28f71c6ca2262d5b1940cf9
[ "MIT" ]
null
null
null
grove_heartrate/grove_heartrate_class.h
JackyZhangFromSeeed/Grove_Driver_based_on_SULI2
4fe10a04119fdb4bb28f71c6ca2262d5b1940cf9
[ "MIT" ]
null
null
null
#ifndef __GROVE_HEARTRATE_CLASS_H__ #define __GROVE_HEARTRATE_CLASS_H__ #include "grove_heartrate.h" //GROVE_NAME "Grove_Heartrate" //IF_TYPE I2C //IMAGE_URL http://www.seeedstudio.com/wiki/File:Grove_-_Finger-clip_Heart_Rate_Sensor.jpg class GroveHeartrate { public: GroveHeartrate(int pinsda, int pinscl); bool write_setup(void); bool read_heartrate(uint8_t *lux); private: I2C_T *i2c; }; #endif
17.64
98
0.734694
2353682103d119de84d805859a2d0cb127c9bfd7
41,376
c
C
Read Only/gdb-7.12.1/gdb/proc-events.c
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/proc-events.c
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/proc-events.c
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
/* Machine-independent support for SVR4 /proc (process file system) Copyright (C) 1999-2017 Free Software Foundation, Inc. Written by Michael Snyder at Cygnus Solutions. Based on work by Fred Fish, Stu Grossman, Geoff Noer, and others. This program 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, or (at your option) any later version. This program 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. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Pretty-print "events of interest". This module includes pretty-print routines for: * faults (hardware exceptions) * signals (software interrupts) * syscalls FIXME: At present, the syscall translation table must be initialized, which is not true of the other translation tables. */ #include "defs.h" #ifdef NEW_PROC_API #define _STRUCTURED_PROC 1 #endif #include <sys/types.h> #include <sys/procfs.h> #ifdef HAVE_SYS_SYSCALL_H #include <sys/syscall.h> #endif #ifdef HAVE_SYS_FAULT_H #include <sys/fault.h> #endif #include "proc-utils.h" /* Much of the information used in the /proc interface, particularly for printing status information, is kept as tables of structures of the following form. These tables can be used to map numeric values to their symbolic names and to a string that describes their specific use. */ struct trans { int value; /* The numeric value. */ char *name; /* The equivalent symbolic value. */ char *desc; /* Short description of value. */ }; /* Pretty print syscalls. */ /* Syscall translation table. */ #define MAX_SYSCALLS 262 /* Pretty arbitrary. */ static char *syscall_table[MAX_SYSCALLS]; static void init_syscall_table (void) { #ifdef SYS_BSD_getime syscall_table[SYS_BSD_getime] = "BSD_getime"; #endif #ifdef SYS_BSDgetpgrp syscall_table[SYS_BSDgetpgrp] = "BSDgetpgrp"; #endif #ifdef SYS_BSDsetpgrp syscall_table[SYS_BSDsetpgrp] = "BSDsetpgrp"; #endif #ifdef SYS_acancel syscall_table[SYS_acancel] = "acancel"; #endif #ifdef SYS_accept syscall_table[SYS_accept] = "accept"; #endif #ifdef SYS_access syscall_table[SYS_access] = "access"; #endif #ifdef SYS_acct syscall_table[SYS_acct] = "acct"; #endif #ifdef SYS_acl syscall_table[SYS_acl] = "acl"; #endif #ifdef SYS_aclipc syscall_table[SYS_aclipc] = "aclipc"; #endif #ifdef SYS_adjtime syscall_table[SYS_adjtime] = "adjtime"; #endif #ifdef SYS_afs_syscall syscall_table[SYS_afs_syscall] = "afs_syscall"; #endif #ifdef SYS_alarm syscall_table[SYS_alarm] = "alarm"; #endif #ifdef SYS_alt_plock syscall_table[SYS_alt_plock] = "alt_plock"; #endif #ifdef SYS_alt_sigpending syscall_table[SYS_alt_sigpending] = "alt_sigpending"; #endif #ifdef SYS_async syscall_table[SYS_async] = "async"; #endif #ifdef SYS_async_daemon syscall_table[SYS_async_daemon] = "async_daemon"; #endif #ifdef SYS_audcntl syscall_table[SYS_audcntl] = "audcntl"; #endif #ifdef SYS_audgen syscall_table[SYS_audgen] = "audgen"; #endif #ifdef SYS_auditbuf syscall_table[SYS_auditbuf] = "auditbuf"; #endif #ifdef SYS_auditctl syscall_table[SYS_auditctl] = "auditctl"; #endif #ifdef SYS_auditdmp syscall_table[SYS_auditdmp] = "auditdmp"; #endif #ifdef SYS_auditevt syscall_table[SYS_auditevt] = "auditevt"; #endif #ifdef SYS_auditlog syscall_table[SYS_auditlog] = "auditlog"; #endif #ifdef SYS_auditsys syscall_table[SYS_auditsys] = "auditsys"; #endif #ifdef SYS_bind syscall_table[SYS_bind] = "bind"; #endif #ifdef SYS_block syscall_table[SYS_block] = "block"; #endif #ifdef SYS_brk syscall_table[SYS_brk] = "brk"; #endif #ifdef SYS_cachectl syscall_table[SYS_cachectl] = "cachectl"; #endif #ifdef SYS_cacheflush syscall_table[SYS_cacheflush] = "cacheflush"; #endif #ifdef SYS_cancelblock syscall_table[SYS_cancelblock] = "cancelblock"; #endif #ifdef SYS_cg_bind syscall_table[SYS_cg_bind] = "cg_bind"; #endif #ifdef SYS_cg_current syscall_table[SYS_cg_current] = "cg_current"; #endif #ifdef SYS_cg_ids syscall_table[SYS_cg_ids] = "cg_ids"; #endif #ifdef SYS_cg_info syscall_table[SYS_cg_info] = "cg_info"; #endif #ifdef SYS_cg_memloc syscall_table[SYS_cg_memloc] = "cg_memloc"; #endif #ifdef SYS_cg_processors syscall_table[SYS_cg_processors] = "cg_processors"; #endif #ifdef SYS_chdir syscall_table[SYS_chdir] = "chdir"; #endif #ifdef SYS_chflags syscall_table[SYS_chflags] = "chflags"; #endif #ifdef SYS_chmod syscall_table[SYS_chmod] = "chmod"; #endif #ifdef SYS_chown syscall_table[SYS_chown] = "chown"; #endif #ifdef SYS_chroot syscall_table[SYS_chroot] = "chroot"; #endif #ifdef SYS_clocal syscall_table[SYS_clocal] = "clocal"; #endif #ifdef SYS_clock_getres syscall_table[SYS_clock_getres] = "clock_getres"; #endif #ifdef SYS_clock_gettime syscall_table[SYS_clock_gettime] = "clock_gettime"; #endif #ifdef SYS_clock_settime syscall_table[SYS_clock_settime] = "clock_settime"; #endif #ifdef SYS_close syscall_table[SYS_close] = "close"; #endif #ifdef SYS_connect syscall_table[SYS_connect] = "connect"; #endif #ifdef SYS_context syscall_table[SYS_context] = "context"; #endif #ifdef SYS_creat syscall_table[SYS_creat] = "creat"; #endif #ifdef SYS_creat64 syscall_table[SYS_creat64] = "creat64"; #endif #ifdef SYS_devstat syscall_table[SYS_devstat] = "devstat"; #endif #ifdef SYS_dmi syscall_table[SYS_dmi] = "dmi"; #endif #ifdef SYS_door syscall_table[SYS_door] = "door"; #endif #ifdef SYS_dshmsys syscall_table[SYS_dshmsys] = "dshmsys"; #endif #ifdef SYS_dup syscall_table[SYS_dup] = "dup"; #endif #ifdef SYS_dup2 syscall_table[SYS_dup2] = "dup2"; #endif #ifdef SYS_evsys syscall_table[SYS_evsys] = "evsys"; #endif #ifdef SYS_evtrapret syscall_table[SYS_evtrapret] = "evtrapret"; #endif #ifdef SYS_exec syscall_table[SYS_exec] = "exec"; #endif #ifdef SYS_exec_with_loader syscall_table[SYS_exec_with_loader] = "exec_with_loader"; #endif #ifdef SYS_execv syscall_table[SYS_execv] = "execv"; #endif #ifdef SYS_execve syscall_table[SYS_execve] = "execve"; #endif #ifdef SYS_exit syscall_table[SYS_exit] = "exit"; #endif #ifdef SYS_exportfs syscall_table[SYS_exportfs] = "exportfs"; #endif #ifdef SYS_facl syscall_table[SYS_facl] = "facl"; #endif #ifdef SYS_fchdir syscall_table[SYS_fchdir] = "fchdir"; #endif #ifdef SYS_fchflags syscall_table[SYS_fchflags] = "fchflags"; #endif #ifdef SYS_fchmod syscall_table[SYS_fchmod] = "fchmod"; #endif #ifdef SYS_fchown syscall_table[SYS_fchown] = "fchown"; #endif #ifdef SYS_fchroot syscall_table[SYS_fchroot] = "fchroot"; #endif #ifdef SYS_fcntl syscall_table[SYS_fcntl] = "fcntl"; #endif #ifdef SYS_fdatasync syscall_table[SYS_fdatasync] = "fdatasync"; #endif #ifdef SYS_fdevstat syscall_table[SYS_fdevstat] = "fdevstat"; #endif #ifdef SYS_fdsync syscall_table[SYS_fdsync] = "fdsync"; #endif #ifdef SYS_filepriv syscall_table[SYS_filepriv] = "filepriv"; #endif #ifdef SYS_flock syscall_table[SYS_flock] = "flock"; #endif #ifdef SYS_flvlfile syscall_table[SYS_flvlfile] = "flvlfile"; #endif #ifdef SYS_fork syscall_table[SYS_fork] = "fork"; #endif #ifdef SYS_fork1 syscall_table[SYS_fork1] = "fork1"; #endif #ifdef SYS_forkall syscall_table[SYS_forkall] = "forkall"; #endif #ifdef SYS_fpathconf syscall_table[SYS_fpathconf] = "fpathconf"; #endif #ifdef SYS_fstat syscall_table[SYS_fstat] = "fstat"; #endif #ifdef SYS_fstat64 syscall_table[SYS_fstat64] = "fstat64"; #endif #ifdef SYS_fstatfs syscall_table[SYS_fstatfs] = "fstatfs"; #endif #ifdef SYS_fstatvfs syscall_table[SYS_fstatvfs] = "fstatvfs"; #endif #ifdef SYS_fstatvfs64 syscall_table[SYS_fstatvfs64] = "fstatvfs64"; #endif #ifdef SYS_fsync syscall_table[SYS_fsync] = "fsync"; #endif #ifdef SYS_ftruncate syscall_table[SYS_ftruncate] = "ftruncate"; #endif #ifdef SYS_ftruncate64 syscall_table[SYS_ftruncate64] = "ftruncate64"; #endif #ifdef SYS_fuser syscall_table[SYS_fuser] = "fuser"; #endif #ifdef SYS_fxstat syscall_table[SYS_fxstat] = "fxstat"; #endif #ifdef SYS_get_sysinfo syscall_table[SYS_get_sysinfo] = "get_sysinfo"; #endif #ifdef SYS_getaddressconf syscall_table[SYS_getaddressconf] = "getaddressconf"; #endif #ifdef SYS_getcontext syscall_table[SYS_getcontext] = "getcontext"; #endif #ifdef SYS_getdents syscall_table[SYS_getdents] = "getdents"; #endif #ifdef SYS_getdents64 syscall_table[SYS_getdents64] = "getdents64"; #endif #ifdef SYS_getdirentries syscall_table[SYS_getdirentries] = "getdirentries"; #endif #ifdef SYS_getdomainname syscall_table[SYS_getdomainname] = "getdomainname"; #endif #ifdef SYS_getdtablesize syscall_table[SYS_getdtablesize] = "getdtablesize"; #endif #ifdef SYS_getfh syscall_table[SYS_getfh] = "getfh"; #endif #ifdef SYS_getfsstat syscall_table[SYS_getfsstat] = "getfsstat"; #endif #ifdef SYS_getgid syscall_table[SYS_getgid] = "getgid"; #endif #ifdef SYS_getgroups syscall_table[SYS_getgroups] = "getgroups"; #endif #ifdef SYS_gethostid syscall_table[SYS_gethostid] = "gethostid"; #endif #ifdef SYS_gethostname syscall_table[SYS_gethostname] = "gethostname"; #endif #ifdef SYS_getitimer syscall_table[SYS_getitimer] = "getitimer"; #endif #ifdef SYS_getksym syscall_table[SYS_getksym] = "getksym"; #endif #ifdef SYS_getlogin syscall_table[SYS_getlogin] = "getlogin"; #endif #ifdef SYS_getmnt syscall_table[SYS_getmnt] = "getmnt"; #endif #ifdef SYS_getmsg syscall_table[SYS_getmsg] = "getmsg"; #endif #ifdef SYS_getpagesize syscall_table[SYS_getpagesize] = "getpagesize"; #endif #ifdef SYS_getpeername syscall_table[SYS_getpeername] = "getpeername"; #endif #ifdef SYS_getpgid syscall_table[SYS_getpgid] = "getpgid"; #endif #ifdef SYS_getpgrp syscall_table[SYS_getpgrp] = "getpgrp"; #endif #ifdef SYS_getpid syscall_table[SYS_getpid] = "getpid"; #endif #ifdef SYS_getpmsg syscall_table[SYS_getpmsg] = "getpmsg"; #endif #ifdef SYS_getpriority syscall_table[SYS_getpriority] = "getpriority"; #endif #ifdef SYS_getrlimit syscall_table[SYS_getrlimit] = "getrlimit"; #endif #ifdef SYS_getrlimit64 syscall_table[SYS_getrlimit64] = "getrlimit64"; #endif #ifdef SYS_getrusage syscall_table[SYS_getrusage] = "getrusage"; #endif #ifdef SYS_getsid syscall_table[SYS_getsid] = "getsid"; #endif #ifdef SYS_getsockname syscall_table[SYS_getsockname] = "getsockname"; #endif #ifdef SYS_getsockopt syscall_table[SYS_getsockopt] = "getsockopt"; #endif #ifdef SYS_gettimeofday syscall_table[SYS_gettimeofday] = "gettimeofday"; #endif #ifdef SYS_getuid syscall_table[SYS_getuid] = "getuid"; #endif #ifdef SYS_gtty syscall_table[SYS_gtty] = "gtty"; #endif #ifdef SYS_hrtsys syscall_table[SYS_hrtsys] = "hrtsys"; #endif #ifdef SYS_inst_sync syscall_table[SYS_inst_sync] = "inst_sync"; #endif #ifdef SYS_install_utrap syscall_table[SYS_install_utrap] = "install_utrap"; #endif #ifdef SYS_invlpg syscall_table[SYS_invlpg] = "invlpg"; #endif #ifdef SYS_ioctl syscall_table[SYS_ioctl] = "ioctl"; #endif #ifdef SYS_kaio syscall_table[SYS_kaio] = "kaio"; #endif #ifdef SYS_keyctl syscall_table[SYS_keyctl] = "keyctl"; #endif #ifdef SYS_kill syscall_table[SYS_kill] = "kill"; #endif #ifdef SYS_killpg syscall_table[SYS_killpg] = "killpg"; #endif #ifdef SYS_kloadcall syscall_table[SYS_kloadcall] = "kloadcall"; #endif #ifdef SYS_kmodcall syscall_table[SYS_kmodcall] = "kmodcall"; #endif #ifdef SYS_ksigaction syscall_table[SYS_ksigaction] = "ksigaction"; #endif #ifdef SYS_ksigprocmask syscall_table[SYS_ksigprocmask] = "ksigprocmask"; #endif #ifdef SYS_ksigqueue syscall_table[SYS_ksigqueue] = "ksigqueue"; #endif #ifdef SYS_lchown syscall_table[SYS_lchown] = "lchown"; #endif #ifdef SYS_link syscall_table[SYS_link] = "link"; #endif #ifdef SYS_listen syscall_table[SYS_listen] = "listen"; #endif #ifdef SYS_llseek syscall_table[SYS_llseek] = "llseek"; #endif #ifdef SYS_lseek syscall_table[SYS_lseek] = "lseek"; #endif #ifdef SYS_lseek64 syscall_table[SYS_lseek64] = "lseek64"; #endif #ifdef SYS_lstat syscall_table[SYS_lstat] = "lstat"; #endif #ifdef SYS_lstat64 syscall_table[SYS_lstat64] = "lstat64"; #endif #ifdef SYS_lvldom syscall_table[SYS_lvldom] = "lvldom"; #endif #ifdef SYS_lvlequal syscall_table[SYS_lvlequal] = "lvlequal"; #endif #ifdef SYS_lvlfile syscall_table[SYS_lvlfile] = "lvlfile"; #endif #ifdef SYS_lvlipc syscall_table[SYS_lvlipc] = "lvlipc"; #endif #ifdef SYS_lvlproc syscall_table[SYS_lvlproc] = "lvlproc"; #endif #ifdef SYS_lvlvfs syscall_table[SYS_lvlvfs] = "lvlvfs"; #endif #ifdef SYS_lwp_alarm syscall_table[SYS_lwp_alarm] = "lwp_alarm"; #endif #ifdef SYS_lwp_cond_broadcast syscall_table[SYS_lwp_cond_broadcast] = "lwp_cond_broadcast"; #endif #ifdef SYS_lwp_cond_signal syscall_table[SYS_lwp_cond_signal] = "lwp_cond_signal"; #endif #ifdef SYS_lwp_cond_wait syscall_table[SYS_lwp_cond_wait] = "lwp_cond_wait"; #endif #ifdef SYS_lwp_continue syscall_table[SYS_lwp_continue] = "lwp_continue"; #endif #ifdef SYS_lwp_create syscall_table[SYS_lwp_create] = "lwp_create"; #endif #ifdef SYS_lwp_exit syscall_table[SYS_lwp_exit] = "lwp_exit"; #endif #ifdef SYS_lwp_getprivate syscall_table[SYS_lwp_getprivate] = "lwp_getprivate"; #endif #ifdef SYS_lwp_info syscall_table[SYS_lwp_info] = "lwp_info"; #endif #ifdef SYS_lwp_kill syscall_table[SYS_lwp_kill] = "lwp_kill"; #endif #ifdef SYS_lwp_mutex_init syscall_table[SYS_lwp_mutex_init] = "lwp_mutex_init"; #endif #ifdef SYS_lwp_mutex_lock syscall_table[SYS_lwp_mutex_lock] = "lwp_mutex_lock"; #endif #ifdef SYS_lwp_mutex_trylock syscall_table[SYS_lwp_mutex_trylock] = "lwp_mutex_trylock"; #endif #ifdef SYS_lwp_mutex_unlock syscall_table[SYS_lwp_mutex_unlock] = "lwp_mutex_unlock"; #endif #ifdef SYS_lwp_private syscall_table[SYS_lwp_private] = "lwp_private"; #endif #ifdef SYS_lwp_self syscall_table[SYS_lwp_self] = "lwp_self"; #endif #ifdef SYS_lwp_sema_post syscall_table[SYS_lwp_sema_post] = "lwp_sema_post"; #endif #ifdef SYS_lwp_sema_trywait syscall_table[SYS_lwp_sema_trywait] = "lwp_sema_trywait"; #endif #ifdef SYS_lwp_sema_wait syscall_table[SYS_lwp_sema_wait] = "lwp_sema_wait"; #endif #ifdef SYS_lwp_setprivate syscall_table[SYS_lwp_setprivate] = "lwp_setprivate"; #endif #ifdef SYS_lwp_sigredirect syscall_table[SYS_lwp_sigredirect] = "lwp_sigredirect"; #endif #ifdef SYS_lwp_suspend syscall_table[SYS_lwp_suspend] = "lwp_suspend"; #endif #ifdef SYS_lwp_wait syscall_table[SYS_lwp_wait] = "lwp_wait"; #endif #ifdef SYS_lxstat syscall_table[SYS_lxstat] = "lxstat"; #endif #ifdef SYS_madvise syscall_table[SYS_madvise] = "madvise"; #endif #ifdef SYS_memcntl syscall_table[SYS_memcntl] = "memcntl"; #endif #ifdef SYS_mincore syscall_table[SYS_mincore] = "mincore"; #endif #ifdef SYS_mincore syscall_table[SYS_mincore] = "mincore"; #endif #ifdef SYS_mkdir syscall_table[SYS_mkdir] = "mkdir"; #endif #ifdef SYS_mkmld syscall_table[SYS_mkmld] = "mkmld"; #endif #ifdef SYS_mknod syscall_table[SYS_mknod] = "mknod"; #endif #ifdef SYS_mldmode syscall_table[SYS_mldmode] = "mldmode"; #endif #ifdef SYS_mmap syscall_table[SYS_mmap] = "mmap"; #endif #ifdef SYS_mmap64 syscall_table[SYS_mmap64] = "mmap64"; #endif #ifdef SYS_modadm syscall_table[SYS_modadm] = "modadm"; #endif #ifdef SYS_modctl syscall_table[SYS_modctl] = "modctl"; #endif #ifdef SYS_modload syscall_table[SYS_modload] = "modload"; #endif #ifdef SYS_modpath syscall_table[SYS_modpath] = "modpath"; #endif #ifdef SYS_modstat syscall_table[SYS_modstat] = "modstat"; #endif #ifdef SYS_moduload syscall_table[SYS_moduload] = "moduload"; #endif #ifdef SYS_mount syscall_table[SYS_mount] = "mount"; #endif #ifdef SYS_mprotect syscall_table[SYS_mprotect] = "mprotect"; #endif #ifdef SYS_mremap syscall_table[SYS_mremap] = "mremap"; #endif #ifdef SYS_msfs_syscall syscall_table[SYS_msfs_syscall] = "msfs_syscall"; #endif #ifdef SYS_msgctl syscall_table[SYS_msgctl] = "msgctl"; #endif #ifdef SYS_msgget syscall_table[SYS_msgget] = "msgget"; #endif #ifdef SYS_msgrcv syscall_table[SYS_msgrcv] = "msgrcv"; #endif #ifdef SYS_msgsnd syscall_table[SYS_msgsnd] = "msgsnd"; #endif #ifdef SYS_msgsys syscall_table[SYS_msgsys] = "msgsys"; #endif #ifdef SYS_msleep syscall_table[SYS_msleep] = "msleep"; #endif #ifdef SYS_msync syscall_table[SYS_msync] = "msync"; #endif #ifdef SYS_munmap syscall_table[SYS_munmap] = "munmap"; #endif #ifdef SYS_mvalid syscall_table[SYS_mvalid] = "mvalid"; #endif #ifdef SYS_mwakeup syscall_table[SYS_mwakeup] = "mwakeup"; #endif #ifdef SYS_naccept syscall_table[SYS_naccept] = "naccept"; #endif #ifdef SYS_nanosleep syscall_table[SYS_nanosleep] = "nanosleep"; #endif #ifdef SYS_nfssvc syscall_table[SYS_nfssvc] = "nfssvc"; #endif #ifdef SYS_nfssys syscall_table[SYS_nfssys] = "nfssys"; #endif #ifdef SYS_ngetpeername syscall_table[SYS_ngetpeername] = "ngetpeername"; #endif #ifdef SYS_ngetsockname syscall_table[SYS_ngetsockname] = "ngetsockname"; #endif #ifdef SYS_nice syscall_table[SYS_nice] = "nice"; #endif #ifdef SYS_nrecvfrom syscall_table[SYS_nrecvfrom] = "nrecvfrom"; #endif #ifdef SYS_nrecvmsg syscall_table[SYS_nrecvmsg] = "nrecvmsg"; #endif #ifdef SYS_nsendmsg syscall_table[SYS_nsendmsg] = "nsendmsg"; #endif #ifdef SYS_ntp_adjtime syscall_table[SYS_ntp_adjtime] = "ntp_adjtime"; #endif #ifdef SYS_ntp_gettime syscall_table[SYS_ntp_gettime] = "ntp_gettime"; #endif #ifdef SYS_nuname syscall_table[SYS_nuname] = "nuname"; #endif #ifdef SYS_obreak syscall_table[SYS_obreak] = "obreak"; #endif #ifdef SYS_old_accept syscall_table[SYS_old_accept] = "old_accept"; #endif #ifdef SYS_old_fstat syscall_table[SYS_old_fstat] = "old_fstat"; #endif #ifdef SYS_old_getpeername syscall_table[SYS_old_getpeername] = "old_getpeername"; #endif #ifdef SYS_old_getpgrp syscall_table[SYS_old_getpgrp] = "old_getpgrp"; #endif #ifdef SYS_old_getsockname syscall_table[SYS_old_getsockname] = "old_getsockname"; #endif #ifdef SYS_old_killpg syscall_table[SYS_old_killpg] = "old_killpg"; #endif #ifdef SYS_old_lstat syscall_table[SYS_old_lstat] = "old_lstat"; #endif #ifdef SYS_old_recv syscall_table[SYS_old_recv] = "old_recv"; #endif #ifdef SYS_old_recvfrom syscall_table[SYS_old_recvfrom] = "old_recvfrom"; #endif #ifdef SYS_old_recvmsg syscall_table[SYS_old_recvmsg] = "old_recvmsg"; #endif #ifdef SYS_old_send syscall_table[SYS_old_send] = "old_send"; #endif #ifdef SYS_old_sendmsg syscall_table[SYS_old_sendmsg] = "old_sendmsg"; #endif #ifdef SYS_old_sigblock syscall_table[SYS_old_sigblock] = "old_sigblock"; #endif #ifdef SYS_old_sigsetmask syscall_table[SYS_old_sigsetmask] = "old_sigsetmask"; #endif #ifdef SYS_old_sigvec syscall_table[SYS_old_sigvec] = "old_sigvec"; #endif #ifdef SYS_old_stat syscall_table[SYS_old_stat] = "old_stat"; #endif #ifdef SYS_old_vhangup syscall_table[SYS_old_vhangup] = "old_vhangup"; #endif #ifdef SYS_old_wait syscall_table[SYS_old_wait] = "old_wait"; #endif #ifdef SYS_oldquota syscall_table[SYS_oldquota] = "oldquota"; #endif #ifdef SYS_online syscall_table[SYS_online] = "online"; #endif #ifdef SYS_open syscall_table[SYS_open] = "open"; #endif #ifdef SYS_open64 syscall_table[SYS_open64] = "open64"; #endif #ifdef SYS_ovadvise syscall_table[SYS_ovadvise] = "ovadvise"; #endif #ifdef SYS_p_online syscall_table[SYS_p_online] = "p_online"; #endif #ifdef SYS_pagelock syscall_table[SYS_pagelock] = "pagelock"; #endif #ifdef SYS_pathconf syscall_table[SYS_pathconf] = "pathconf"; #endif #ifdef SYS_pause syscall_table[SYS_pause] = "pause"; #endif #ifdef SYS_pgrpsys syscall_table[SYS_pgrpsys] = "pgrpsys"; #endif #ifdef SYS_pid_block syscall_table[SYS_pid_block] = "pid_block"; #endif #ifdef SYS_pid_unblock syscall_table[SYS_pid_unblock] = "pid_unblock"; #endif #ifdef SYS_pipe syscall_table[SYS_pipe] = "pipe"; #endif #ifdef SYS_plock syscall_table[SYS_plock] = "plock"; #endif #ifdef SYS_poll syscall_table[SYS_poll] = "poll"; #endif #ifdef SYS_prctl syscall_table[SYS_prctl] = "prctl"; #endif #ifdef SYS_pread syscall_table[SYS_pread] = "pread"; #endif #ifdef SYS_pread64 syscall_table[SYS_pread64] = "pread64"; #endif #ifdef SYS_pread64 syscall_table[SYS_pread64] = "pread64"; #endif #ifdef SYS_prepblock syscall_table[SYS_prepblock] = "prepblock"; #endif #ifdef SYS_priocntl syscall_table[SYS_priocntl] = "priocntl"; #endif #ifdef SYS_priocntllst syscall_table[SYS_priocntllst] = "priocntllst"; #endif #ifdef SYS_priocntlset syscall_table[SYS_priocntlset] = "priocntlset"; #endif #ifdef SYS_priocntlsys syscall_table[SYS_priocntlsys] = "priocntlsys"; #endif #ifdef SYS_procblk syscall_table[SYS_procblk] = "procblk"; #endif #ifdef SYS_processor_bind syscall_table[SYS_processor_bind] = "processor_bind"; #endif #ifdef SYS_processor_exbind syscall_table[SYS_processor_exbind] = "processor_exbind"; #endif #ifdef SYS_processor_info syscall_table[SYS_processor_info] = "processor_info"; #endif #ifdef SYS_procpriv syscall_table[SYS_procpriv] = "procpriv"; #endif #ifdef SYS_profil syscall_table[SYS_profil] = "profil"; #endif #ifdef SYS_proplist_syscall syscall_table[SYS_proplist_syscall] = "proplist_syscall"; #endif #ifdef SYS_pset syscall_table[SYS_pset] = "pset"; #endif #ifdef SYS_ptrace syscall_table[SYS_ptrace] = "ptrace"; #endif #ifdef SYS_putmsg syscall_table[SYS_putmsg] = "putmsg"; #endif #ifdef SYS_putpmsg syscall_table[SYS_putpmsg] = "putpmsg"; #endif #ifdef SYS_pwrite syscall_table[SYS_pwrite] = "pwrite"; #endif #ifdef SYS_pwrite64 syscall_table[SYS_pwrite64] = "pwrite64"; #endif #ifdef SYS_quotactl syscall_table[SYS_quotactl] = "quotactl"; #endif #ifdef SYS_rdblock syscall_table[SYS_rdblock] = "rdblock"; #endif #ifdef SYS_read syscall_table[SYS_read] = "read"; #endif #ifdef SYS_readlink syscall_table[SYS_readlink] = "readlink"; #endif #ifdef SYS_readv syscall_table[SYS_readv] = "readv"; #endif #ifdef SYS_reboot syscall_table[SYS_reboot] = "reboot"; #endif #ifdef SYS_recv syscall_table[SYS_recv] = "recv"; #endif #ifdef SYS_recvfrom syscall_table[SYS_recvfrom] = "recvfrom"; #endif #ifdef SYS_recvmsg syscall_table[SYS_recvmsg] = "recvmsg"; #endif #ifdef SYS_rename syscall_table[SYS_rename] = "rename"; #endif #ifdef SYS_resolvepath syscall_table[SYS_resolvepath] = "resolvepath"; #endif #ifdef SYS_revoke syscall_table[SYS_revoke] = "revoke"; #endif #ifdef SYS_rfsys syscall_table[SYS_rfsys] = "rfsys"; #endif #ifdef SYS_rmdir syscall_table[SYS_rmdir] = "rmdir"; #endif #ifdef SYS_rpcsys syscall_table[SYS_rpcsys] = "rpcsys"; #endif #ifdef SYS_sbrk syscall_table[SYS_sbrk] = "sbrk"; #endif #ifdef SYS_schedctl syscall_table[SYS_schedctl] = "schedctl"; #endif #ifdef SYS_secadvise syscall_table[SYS_secadvise] = "secadvise"; #endif #ifdef SYS_secsys syscall_table[SYS_secsys] = "secsys"; #endif #ifdef SYS_security syscall_table[SYS_security] = "security"; #endif #ifdef SYS_select syscall_table[SYS_select] = "select"; #endif #ifdef SYS_semctl syscall_table[SYS_semctl] = "semctl"; #endif #ifdef SYS_semget syscall_table[SYS_semget] = "semget"; #endif #ifdef SYS_semop syscall_table[SYS_semop] = "semop"; #endif #ifdef SYS_semsys syscall_table[SYS_semsys] = "semsys"; #endif #ifdef SYS_send syscall_table[SYS_send] = "send"; #endif #ifdef SYS_sendmsg syscall_table[SYS_sendmsg] = "sendmsg"; #endif #ifdef SYS_sendto syscall_table[SYS_sendto] = "sendto"; #endif #ifdef SYS_set_program_attributes syscall_table[SYS_set_program_attributes] = "set_program_attributes"; #endif #ifdef SYS_set_speculative syscall_table[SYS_set_speculative] = "set_speculative"; #endif #ifdef SYS_set_sysinfo syscall_table[SYS_set_sysinfo] = "set_sysinfo"; #endif #ifdef SYS_setcontext syscall_table[SYS_setcontext] = "setcontext"; #endif #ifdef SYS_setdomainname syscall_table[SYS_setdomainname] = "setdomainname"; #endif #ifdef SYS_setegid syscall_table[SYS_setegid] = "setegid"; #endif #ifdef SYS_seteuid syscall_table[SYS_seteuid] = "seteuid"; #endif #ifdef SYS_setgid syscall_table[SYS_setgid] = "setgid"; #endif #ifdef SYS_setgroups syscall_table[SYS_setgroups] = "setgroups"; #endif #ifdef SYS_sethostid syscall_table[SYS_sethostid] = "sethostid"; #endif #ifdef SYS_sethostname syscall_table[SYS_sethostname] = "sethostname"; #endif #ifdef SYS_setitimer syscall_table[SYS_setitimer] = "setitimer"; #endif #ifdef SYS_setlogin syscall_table[SYS_setlogin] = "setlogin"; #endif #ifdef SYS_setpgid syscall_table[SYS_setpgid] = "setpgid"; #endif #ifdef SYS_setpgrp syscall_table[SYS_setpgrp] = "setpgrp"; #endif #ifdef SYS_setpriority syscall_table[SYS_setpriority] = "setpriority"; #endif #ifdef SYS_setregid syscall_table[SYS_setregid] = "setregid"; #endif #ifdef SYS_setreuid syscall_table[SYS_setreuid] = "setreuid"; #endif #ifdef SYS_setrlimit syscall_table[SYS_setrlimit] = "setrlimit"; #endif #ifdef SYS_setrlimit64 syscall_table[SYS_setrlimit64] = "setrlimit64"; #endif #ifdef SYS_setsid syscall_table[SYS_setsid] = "setsid"; #endif #ifdef SYS_setsockopt syscall_table[SYS_setsockopt] = "setsockopt"; #endif #ifdef SYS_settimeofday syscall_table[SYS_settimeofday] = "settimeofday"; #endif #ifdef SYS_setuid syscall_table[SYS_setuid] = "setuid"; #endif #ifdef SYS_sgi syscall_table[SYS_sgi] = "sgi"; #endif #ifdef SYS_sgifastpath syscall_table[SYS_sgifastpath] = "sgifastpath"; #endif #ifdef SYS_sgikopt syscall_table[SYS_sgikopt] = "sgikopt"; #endif #ifdef SYS_sginap syscall_table[SYS_sginap] = "sginap"; #endif #ifdef SYS_shmat syscall_table[SYS_shmat] = "shmat"; #endif #ifdef SYS_shmctl syscall_table[SYS_shmctl] = "shmctl"; #endif #ifdef SYS_shmdt syscall_table[SYS_shmdt] = "shmdt"; #endif #ifdef SYS_shmget syscall_table[SYS_shmget] = "shmget"; #endif #ifdef SYS_shmsys syscall_table[SYS_shmsys] = "shmsys"; #endif #ifdef SYS_shutdown syscall_table[SYS_shutdown] = "shutdown"; #endif #ifdef SYS_sigaction syscall_table[SYS_sigaction] = "sigaction"; #endif #ifdef SYS_sigaltstack syscall_table[SYS_sigaltstack] = "sigaltstack"; #endif #ifdef SYS_sigaltstack syscall_table[SYS_sigaltstack] = "sigaltstack"; #endif #ifdef SYS_sigblock syscall_table[SYS_sigblock] = "sigblock"; #endif #ifdef SYS_signal syscall_table[SYS_signal] = "signal"; #endif #ifdef SYS_signotify syscall_table[SYS_signotify] = "signotify"; #endif #ifdef SYS_signotifywait syscall_table[SYS_signotifywait] = "signotifywait"; #endif #ifdef SYS_sigpending syscall_table[SYS_sigpending] = "sigpending"; #endif #ifdef SYS_sigpoll syscall_table[SYS_sigpoll] = "sigpoll"; #endif #ifdef SYS_sigprocmask syscall_table[SYS_sigprocmask] = "sigprocmask"; #endif #ifdef SYS_sigqueue syscall_table[SYS_sigqueue] = "sigqueue"; #endif #ifdef SYS_sigreturn syscall_table[SYS_sigreturn] = "sigreturn"; #endif #ifdef SYS_sigsendset syscall_table[SYS_sigsendset] = "sigsendset"; #endif #ifdef SYS_sigsendsys syscall_table[SYS_sigsendsys] = "sigsendsys"; #endif #ifdef SYS_sigsetmask syscall_table[SYS_sigsetmask] = "sigsetmask"; #endif #ifdef SYS_sigstack syscall_table[SYS_sigstack] = "sigstack"; #endif #ifdef SYS_sigsuspend syscall_table[SYS_sigsuspend] = "sigsuspend"; #endif #ifdef SYS_sigvec syscall_table[SYS_sigvec] = "sigvec"; #endif #ifdef SYS_sigwait syscall_table[SYS_sigwait] = "sigwait"; #endif #ifdef SYS_sigwaitprim syscall_table[SYS_sigwaitprim] = "sigwaitprim"; #endif #ifdef SYS_sleep syscall_table[SYS_sleep] = "sleep"; #endif #ifdef SYS_so_socket syscall_table[SYS_so_socket] = "so_socket"; #endif #ifdef SYS_so_socketpair syscall_table[SYS_so_socketpair] = "so_socketpair"; #endif #ifdef SYS_sockconfig syscall_table[SYS_sockconfig] = "sockconfig"; #endif #ifdef SYS_socket syscall_table[SYS_socket] = "socket"; #endif #ifdef SYS_socketpair syscall_table[SYS_socketpair] = "socketpair"; #endif #ifdef SYS_sproc syscall_table[SYS_sproc] = "sproc"; #endif #ifdef SYS_sprocsp syscall_table[SYS_sprocsp] = "sprocsp"; #endif #ifdef SYS_sstk syscall_table[SYS_sstk] = "sstk"; #endif #ifdef SYS_stat syscall_table[SYS_stat] = "stat"; #endif #ifdef SYS_stat64 syscall_table[SYS_stat64] = "stat64"; #endif #ifdef SYS_statfs syscall_table[SYS_statfs] = "statfs"; #endif #ifdef SYS_statvfs syscall_table[SYS_statvfs] = "statvfs"; #endif #ifdef SYS_statvfs64 syscall_table[SYS_statvfs64] = "statvfs64"; #endif #ifdef SYS_stime syscall_table[SYS_stime] = "stime"; #endif #ifdef SYS_stty syscall_table[SYS_stty] = "stty"; #endif #ifdef SYS_subsys_info syscall_table[SYS_subsys_info] = "subsys_info"; #endif #ifdef SYS_swapctl syscall_table[SYS_swapctl] = "swapctl"; #endif #ifdef SYS_swapon syscall_table[SYS_swapon] = "swapon"; #endif #ifdef SYS_symlink syscall_table[SYS_symlink] = "symlink"; #endif #ifdef SYS_sync syscall_table[SYS_sync] = "sync"; #endif #ifdef SYS_sys3b syscall_table[SYS_sys3b] = "sys3b"; #endif #ifdef SYS_syscall syscall_table[SYS_syscall] = "syscall"; #endif #ifdef SYS_sysconfig syscall_table[SYS_sysconfig] = "sysconfig"; #endif #ifdef SYS_sysfs syscall_table[SYS_sysfs] = "sysfs"; #endif #ifdef SYS_sysi86 syscall_table[SYS_sysi86] = "sysi86"; #endif #ifdef SYS_sysinfo syscall_table[SYS_sysinfo] = "sysinfo"; #endif #ifdef SYS_sysmips syscall_table[SYS_sysmips] = "sysmips"; #endif #ifdef SYS_syssun syscall_table[SYS_syssun] = "syssun"; #endif #ifdef SYS_systeminfo syscall_table[SYS_systeminfo] = "systeminfo"; #endif #ifdef SYS_table syscall_table[SYS_table] = "table"; #endif #ifdef SYS_time syscall_table[SYS_time] = "time"; #endif #ifdef SYS_timedwait syscall_table[SYS_timedwait] = "timedwait"; #endif #ifdef SYS_timer_create syscall_table[SYS_timer_create] = "timer_create"; #endif #ifdef SYS_timer_delete syscall_table[SYS_timer_delete] = "timer_delete"; #endif #ifdef SYS_timer_getoverrun syscall_table[SYS_timer_getoverrun] = "timer_getoverrun"; #endif #ifdef SYS_timer_gettime syscall_table[SYS_timer_gettime] = "timer_gettime"; #endif #ifdef SYS_timer_settime syscall_table[SYS_timer_settime] = "timer_settime"; #endif #ifdef SYS_times syscall_table[SYS_times] = "times"; #endif #ifdef SYS_truncate syscall_table[SYS_truncate] = "truncate"; #endif #ifdef SYS_truncate64 syscall_table[SYS_truncate64] = "truncate64"; #endif #ifdef SYS_tsolsys syscall_table[SYS_tsolsys] = "tsolsys"; #endif #ifdef SYS_uadmin syscall_table[SYS_uadmin] = "uadmin"; #endif #ifdef SYS_ulimit syscall_table[SYS_ulimit] = "ulimit"; #endif #ifdef SYS_umask syscall_table[SYS_umask] = "umask"; #endif #ifdef SYS_umount syscall_table[SYS_umount] = "umount"; #endif #ifdef SYS_uname syscall_table[SYS_uname] = "uname"; #endif #ifdef SYS_unblock syscall_table[SYS_unblock] = "unblock"; #endif #ifdef SYS_unlink syscall_table[SYS_unlink] = "unlink"; #endif #ifdef SYS_unmount syscall_table[SYS_unmount] = "unmount"; #endif #ifdef SYS_usleep_thread syscall_table[SYS_usleep_thread] = "usleep_thread"; #endif #ifdef SYS_uswitch syscall_table[SYS_uswitch] = "uswitch"; #endif #ifdef SYS_utc_adjtime syscall_table[SYS_utc_adjtime] = "utc_adjtime"; #endif #ifdef SYS_utc_gettime syscall_table[SYS_utc_gettime] = "utc_gettime"; #endif #ifdef SYS_utime syscall_table[SYS_utime] = "utime"; #endif #ifdef SYS_utimes syscall_table[SYS_utimes] = "utimes"; #endif #ifdef SYS_utssys syscall_table[SYS_utssys] = "utssys"; #endif #ifdef SYS_vfork syscall_table[SYS_vfork] = "vfork"; #endif #ifdef SYS_vhangup syscall_table[SYS_vhangup] = "vhangup"; #endif #ifdef SYS_vtrace syscall_table[SYS_vtrace] = "vtrace"; #endif #ifdef SYS_wait syscall_table[SYS_wait] = "wait"; #endif #ifdef SYS_waitid syscall_table[SYS_waitid] = "waitid"; #endif #ifdef SYS_waitsys syscall_table[SYS_waitsys] = "waitsys"; #endif #ifdef SYS_write syscall_table[SYS_write] = "write"; #endif #ifdef SYS_writev syscall_table[SYS_writev] = "writev"; #endif #ifdef SYS_xenix syscall_table[SYS_xenix] = "xenix"; #endif #ifdef SYS_xmknod syscall_table[SYS_xmknod] = "xmknod"; #endif #ifdef SYS_xstat syscall_table[SYS_xstat] = "xstat"; #endif #ifdef SYS_yield syscall_table[SYS_yield] = "yield"; #endif } /* Prettyprint syscall NUM. */ void proc_prettyfprint_syscall (FILE *file, int num, int verbose) { if (syscall_table[num]) fprintf (file, "SYS_%s ", syscall_table[num]); else fprintf (file, "<Unknown syscall %d> ", num); } void proc_prettyprint_syscall (int num, int verbose) { proc_prettyfprint_syscall (stdout, num, verbose); } /* Prettyprint all syscalls in SYSSET. */ void proc_prettyfprint_syscalls (FILE *file, sysset_t *sysset, int verbose) { int i; for (i = 0; i < MAX_SYSCALLS; i++) if (prismember (sysset, i)) { proc_prettyfprint_syscall (file, i, verbose); } fprintf (file, "\n"); } void proc_prettyprint_syscalls (sysset_t *sysset, int verbose) { proc_prettyfprint_syscalls (stdout, sysset, verbose); } /* Prettyprint signals. */ /* Signal translation table, ordered ANSI-standard signals first, other signals second, with signals in each block ordered by their numerical values on a typical POSIX platform. */ static struct trans signal_table[] = { { 0, "<no signal>", "no signal" }, /* SIGINT, SIGILL, SIGABRT, SIGFPE, SIGSEGV and SIGTERM are ANSI-standard signals and are always available. */ { SIGINT, "SIGINT", "Interrupt (rubout)" }, { SIGILL, "SIGILL", "Illegal instruction" }, /* not reset when caught */ { SIGABRT, "SIGABRT", "used by abort()" }, /* replaces SIGIOT */ { SIGFPE, "SIGFPE", "Floating point exception" }, { SIGSEGV, "SIGSEGV", "Segmentation violation" }, { SIGTERM, "SIGTERM", "Software termination signal from kill" }, /* All other signals need preprocessor conditionals. */ #ifdef SIGHUP { SIGHUP, "SIGHUP", "Hangup" }, #endif #ifdef SIGQUIT { SIGQUIT, "SIGQUIT", "Quit (ASCII FS)" }, #endif #ifdef SIGTRAP { SIGTRAP, "SIGTRAP", "Trace trap" }, /* not reset when caught */ #endif #ifdef SIGIOT { SIGIOT, "SIGIOT", "IOT instruction" }, #endif #ifdef SIGEMT { SIGEMT, "SIGEMT", "EMT instruction" }, #endif #ifdef SIGKILL { SIGKILL, "SIGKILL", "Kill" }, /* Solaris: cannot be caught/ignored */ #endif #ifdef SIGBUS { SIGBUS, "SIGBUS", "Bus error" }, #endif #ifdef SIGSYS { SIGSYS, "SIGSYS", "Bad argument to system call" }, #endif #ifdef SIGPIPE { SIGPIPE, "SIGPIPE", "Write to pipe with no one to read it" }, #endif #ifdef SIGALRM { SIGALRM, "SIGALRM", "Alarm clock" }, #endif #ifdef SIGUSR1 { SIGUSR1, "SIGUSR1", "User defined signal 1" }, #endif #ifdef SIGUSR2 { SIGUSR2, "SIGUSR2", "User defined signal 2" }, #endif #ifdef SIGCHLD { SIGCHLD, "SIGCHLD", "Child status changed" }, /* Posix version */ #endif #ifdef SIGCLD { SIGCLD, "SIGCLD", "Child status changed" }, /* Solaris version */ #endif #ifdef SIGPWR { SIGPWR, "SIGPWR", "Power-fail restart" }, #endif #ifdef SIGWINCH { SIGWINCH, "SIGWINCH", "Window size change" }, #endif #ifdef SIGURG { SIGURG, "SIGURG", "Urgent socket condition" }, #endif #ifdef SIGPOLL { SIGPOLL, "SIGPOLL", "Pollable event" }, #endif #ifdef SIGIO { SIGIO, "SIGIO", "Socket I/O possible" }, /* alias for SIGPOLL */ #endif #ifdef SIGSTOP { SIGSTOP, "SIGSTOP", "Stop, not from tty" }, /* cannot be caught or ignored */ #endif #ifdef SIGTSTP { SIGTSTP, "SIGTSTP", "User stop from tty" }, #endif #ifdef SIGCONT { SIGCONT, "SIGCONT", "Stopped process has been continued" }, #endif #ifdef SIGTTIN { SIGTTIN, "SIGTTIN", "Background tty read attempted" }, #endif #ifdef SIGTTOU { SIGTTOU, "SIGTTOU", "Background tty write attempted" }, #endif #ifdef SIGVTALRM { SIGVTALRM, "SIGVTALRM", "Virtual timer expired" }, #endif #ifdef SIGPROF { SIGPROF, "SIGPROF", "Profiling timer expired" }, #endif #ifdef SIGXCPU { SIGXCPU, "SIGXCPU", "Exceeded CPU limit" }, #endif #ifdef SIGXFSZ { SIGXFSZ, "SIGXFSZ", "Exceeded file size limit" }, #endif #ifdef SIGWAITING { SIGWAITING, "SIGWAITING", "Process's LWPs are blocked" }, #endif #ifdef SIGLWP { SIGLWP, "SIGLWP", "Used by thread library" }, #endif #ifdef SIGFREEZE { SIGFREEZE, "SIGFREEZE", "Used by CPR" }, #endif #ifdef SIGTHAW { SIGTHAW, "SIGTHAW", "Used by CPR" }, #endif #ifdef SIGCANCEL { SIGCANCEL, "SIGCANCEL", "Used by libthread" }, #endif #ifdef SIGLOST { SIGLOST, "SIGLOST", "Resource lost" }, #endif #ifdef SIG32 { SIG32, "SIG32", "Reserved for kernel usage (Irix)" }, #endif #ifdef SIGPTINTR { SIGPTINTR, "SIGPTINTR", "Posix 1003.1b" }, #endif #ifdef SIGTRESCHED { SIGTRESCHED, "SIGTRESCHED", "Posix 1003.1b" }, #endif #ifdef SIGINFO { SIGINFO, "SIGINFO", "Information request" }, #endif #ifdef SIGRESV { SIGRESV, "SIGRESV", "Reserved by Digital for future use" }, #endif #ifdef SIGAIO { SIGAIO, "SIGAIO", "Asynchronous I/O signal" }, #endif #ifdef SIGLIBRT { SIGLIBRT, "SIGLIBRT", "Used by librt" }, #endif /* FIXME: add real-time signals. */ }; /* Prettyprint signal number SIGNO. */ void proc_prettyfprint_signal (FILE *file, int signo, int verbose) { int i; for (i = 0; i < sizeof (signal_table) / sizeof (signal_table[0]); i++) if (signo == signal_table[i].value) { fprintf (file, "%s", signal_table[i].name); if (verbose) fprintf (file, ": %s\n", signal_table[i].desc); else fprintf (file, " "); return; } fprintf (file, "Unknown signal %d%c", signo, verbose ? '\n' : ' '); } void proc_prettyprint_signal (int signo, int verbose) { proc_prettyfprint_signal (stdout, signo, verbose); } /* Prettyprint all signals in SIGSET. */ void proc_prettyfprint_signalset (FILE *file, sigset_t *sigset, int verbose) { int i; /* Loop over all signal numbers from 0 to NSIG, using them as the index to prismember. The signal table had better not contain aliases, for if it does they will both be printed. */ for (i = 0; i < NSIG; i++) if (prismember (sigset, i)) proc_prettyfprint_signal (file, i, verbose); if (!verbose) fprintf (file, "\n"); } void proc_prettyprint_signalset (sigset_t *sigset, int verbose) { proc_prettyfprint_signalset (stdout, sigset, verbose); } /* Prettyprint faults. */ /* Fault translation table. */ static struct trans fault_table[] = { #ifdef FLTILL { FLTILL, "FLTILL", "Illegal instruction" }, #endif #ifdef FLTPRIV { FLTPRIV, "FLTPRIV", "Privileged instruction" }, #endif #ifdef FLTBPT { FLTBPT, "FLTBPT", "Breakpoint trap" }, #endif #ifdef FLTTRACE { FLTTRACE, "FLTTRACE", "Trace trap" }, #endif #ifdef FLTACCESS { FLTACCESS, "FLTACCESS", "Memory access fault" }, #endif #ifdef FLTBOUNDS { FLTBOUNDS, "FLTBOUNDS", "Memory bounds violation" }, #endif #ifdef FLTIOVF { FLTIOVF, "FLTIOVF", "Integer overflow" }, #endif #ifdef FLTIZDIV { FLTIZDIV, "FLTIZDIV", "Integer zero divide" }, #endif #ifdef FLTFPE { FLTFPE, "FLTFPE", "Floating-point exception" }, #endif #ifdef FLTSTACK { FLTSTACK, "FLTSTACK", "Unrecoverable stack fault" }, #endif #ifdef FLTPAGE { FLTPAGE, "FLTPAGE", "Recoverable page fault" }, #endif #ifdef FLTPCINVAL { FLTPCINVAL, "FLTPCINVAL", "Invalid PC exception" }, #endif #ifdef FLTWATCH { FLTWATCH, "FLTWATCH", "User watchpoint" }, #endif #ifdef FLTKWATCH { FLTKWATCH, "FLTKWATCH", "Kernel watchpoint" }, #endif #ifdef FLTSCWATCH { FLTSCWATCH, "FLTSCWATCH", "Hit a store conditional on a watched page" }, #endif }; /* Work horse. Accepts an index into the fault table, prints it pretty. */ static void prettyfprint_faulttable_entry (FILE *file, int i, int verbose) { fprintf (file, "%s", fault_table[i].name); if (verbose) fprintf (file, ": %s\n", fault_table[i].desc); else fprintf (file, " "); } /* Prettyprint hardware fault number FAULTNO. */ void proc_prettyfprint_fault (FILE *file, int faultno, int verbose) { int i; for (i = 0; i < ARRAY_SIZE (fault_table); i++) if (faultno == fault_table[i].value) { prettyfprint_faulttable_entry (file, i, verbose); return; } fprintf (file, "Unknown hardware fault %d%c", faultno, verbose ? '\n' : ' '); } void proc_prettyprint_fault (int faultno, int verbose) { proc_prettyfprint_fault (stdout, faultno, verbose); } /* Prettyprint all faults in FLTSET. */ void proc_prettyfprint_faultset (FILE *file, fltset_t *fltset, int verbose) { int i; /* Loop through the fault table, using the value field as the index to prismember. The fault table had better not contain aliases, for if it does they will both be printed. */ for (i = 0; i < ARRAY_SIZE (fault_table); i++) if (prismember (fltset, fault_table[i].value)) prettyfprint_faulttable_entry (file, i, verbose); if (!verbose) fprintf (file, "\n"); } void proc_prettyprint_faultset (fltset_t *fltset, int verbose) { proc_prettyfprint_faultset (stdout, fltset, verbose); } /* TODO: actions, holds... */ void proc_prettyprint_actionset (struct sigaction *actions, int verbose) { } /* Provide a prototype to silence -Wmissing-prototypes. */ void _initialize_proc_events (void); void _initialize_proc_events (void) { init_syscall_table (); }
23.930596
76
0.749541
2359deb9adf4842e9d671491cdec3b1babd540c3
1,238
h
C
src/classlibnative/bcltype/number.h
lkts/coreclr
53e92937a5a8cc454921b55c7a296d3ab7bedf96
[ "MIT" ]
null
null
null
src/classlibnative/bcltype/number.h
lkts/coreclr
53e92937a5a8cc454921b55c7a296d3ab7bedf96
[ "MIT" ]
null
null
null
src/classlibnative/bcltype/number.h
lkts/coreclr
53e92937a5a8cc454921b55c7a296d3ab7bedf96
[ "MIT" ]
null
null
null
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // // File: Number.h // // #ifndef _NUMBER_H_ #define _NUMBER_H_ #include <pshpack1.h> #define NUMBER_MAXDIGITS 50 static const double LOG10V2 = 0.30102999566398119521373889472449; // DRIFT_FACTOR = 1 - LOG10V2 - epsilon (a small number account for drift of floating point multiplication) static const double DRIFT_FACTOR = 0.69; enum NUMBER_KIND : int { NUMBER_KIND_Unknown = 0, NUMBER_KIND_Integer = 1, NUMBER_KIND_Decimal = 2, NUMBER_KIND_Double = 3 }; struct NUMBER { int precision; // 0 int scale; // 4 int sign; // 8 NUMBER_KIND kind; // 12 wchar_t* allDigits; // 16 wchar_t digits[NUMBER_MAXDIGITS + 1]; // 20 or 24 NUMBER() : precision(0), scale(0), sign(0), kind(NUMBER_KIND_Unknown), allDigits(NULL) {} }; class COMNumber { public: static FCDECL1(double, NumberToDoubleFC, NUMBER* number); }; #include <poppack.h> #endif // _NUMBER_H_
25.791667
107
0.630856
235a1caa7d5dac4fe146eca2e43a5102e0889222
4,429
c
C
tools/bin2c/bin2c.c
rsn8887/mame2003-plus-libretro
2d0759df85a6e647a7301fed9eec37b4f4270812
[ "RSA-MD" ]
null
null
null
tools/bin2c/bin2c.c
rsn8887/mame2003-plus-libretro
2d0759df85a6e647a7301fed9eec37b4f4270812
[ "RSA-MD" ]
6
2020-07-08T18:51:05.000Z
2022-02-28T11:42:48.000Z
tools/bin2c/bin2c.c
rsn8887/mame2003-plus-libretro
2d0759df85a6e647a7301fed9eec37b4f4270812
[ "RSA-MD" ]
1
2020-08-04T04:19:50.000Z
2020-08-04T04:19:50.000Z
/* * Converts binary data into a C source file. The C source file * defines a string with the file name of the source of data, and an * unsigned character array containing the binary data. * * For example, if the source file is dl.lua, the generated file * contains: * * static const char dl_lua_source[] = "dl.lua"; * * static const unsigned char dl_lua_bytes[] = { * ... * }; * * A useful GNUMakefile rule follows. * * %.h: %.lua * luac -o $*.luo $*.lua * bin2c -o $@ -n $*.lua $*.luo * rm $*.luo * * John D. Ramsdell * Copyright (C) 2006 The MITRE Corporation * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ #include <stddef.h> #include <stdio.h> #include <unistd.h> #include <ctype.h> #define COLUMNS 18 #ifdef PACKAGE_NAME static const char package[] = PACKAGE_NAME; #else static const char *package = NULL; #endif #ifdef VERSION static const char version[] = VERSION; #else static const char version[] = "version unknown"; #endif static void print_version(const char *program) { if (package != NULL) program = package; fprintf(stderr, "%s %s\n", program, version); } static void usage(const char *prog) { fprintf(stderr, "Usage: %s [options] file\n" "Options:\n" " -n name -- generated C identifier source (default is file)\n" " -o file -- output to file (default is standard output)\n" " -v -- print version information\n" " -h -- print this message\n", prog); } static void emit_name(const char *name) { int ch = *name; if (!ch) { putchar('_'); return; } if (isalpha(ch)) /* Print underscore */ putchar(ch); /* when first char is */ else /* is not a letter. */ putchar('_'); for (;;) { ch = *++name; if (!ch) return; if (isalnum(ch)) /* Print underscore when */ putchar(ch); /* part of identifier is */ else /* not a letter or a digit. */ putchar('_'); } } static int emit(const char *name) { int file_length = 0; int col = COLUMNS; /*printf("const char "); emit_name(name); printf("_source[] = \"%s\";\n\n", name);*/ printf("const unsigned char "); emit_name(name); printf("_bytes[] = {"); for (;;) { int ch = getchar(); if (ch == EOF) { printf("\n};\n\n"); printf("const unsigned int "); emit_name(name); printf("_length = %i;", file_length); return 0; } if (col >= COLUMNS) { printf("\n "); col = 0; } printf("%3d,", ch); file_length++; col++; } } int main(int argc, char *argv[]) { extern char *optarg; extern int optind; char *input = NULL; char *output = NULL; char *name = NULL; for (;;) { int c = getopt(argc, argv, "n:o:vh"); if (c == -1) break; switch (c) { case 'n': name = optarg; break; case 'o': output = optarg; break; case 'v': print_version(argv[0]); return 0; case 'h': usage(argv[0]); return 0; default: usage(argv[0]); return 1; } } if (argc != optind + 1) { fprintf(stderr, "Bad arg count\n"); usage(argv[0]); return 1; } input = argv[optind]; if (!freopen(input, "rb", stdin)) { perror(input); return 1; } if (output && !freopen(output, "w", stdout)) { perror(output); return 1; } return emit(name ? name : input); }
23.188482
69
0.610296
235c7ce03fe2840865b5b87f921a75fd52e371ab
1,294
h
C
src/message.h
jkeenan/threads-lite
489157793233ceab841b84f2d7526acfb7eac020
[ "Artistic-1.0" ]
3
2015-05-04T20:19:33.000Z
2021-07-23T22:14:41.000Z
src/message.h
jkeenan/threads-lite
489157793233ceab841b84f2d7526acfb7eac020
[ "Artistic-1.0" ]
1
2017-12-30T22:39:24.000Z
2017-12-31T03:03:32.000Z
src/message.h
jkeenan/threads-lite
489157793233ceab841b84f2d7526acfb7eac020
[ "Artistic-1.0" ]
3
2016-06-08T18:00:50.000Z
2021-07-23T22:14:47.000Z
#ifdef PACKED #undef PACKED #endif enum message_type { EMPTY, STRING, PACKED, STORABLE }; typedef struct message { struct message* next; enum message_type type; STRLEN length; char value[0]; } message; void S_destroy_message(pTHX_ const message*); #define destroy_message(message) S_destroy_message(aTHX_ message) const message* S_message_clone(pTHX_ const message* origin); #define message_clone(origin) S_message_clone(aTHX_ origin) void S_message_to_stack(pTHX_ const message*, U32 context); #define message_to_stack(values, context) STMT_START { PUTBACK; S_message_to_stack(aTHX_ (values), context); SPAGAIN; } STMT_END AV* S_message_to_array(pTHX_ const message*); #define message_to_array(message) S_message_to_array(aTHX_ (message)) const message* S_message_from_stack(pTHX); #define message_from_stack_pushed(message) STMT_START { PUTBACK; message = S_message_from_stack(aTHX); SPAGAIN; } STMT_END #define message_from_stack(message, offset) STMT_START { PUSHMARK(offset); message_from_stack_pushed(message); } STMT_END const message* S_message_store_value(pTHX_ SV* value); #define message_store_value(value) S_message_store_value(aTHX_ value) SV* S_message_load_value(pTHX_ const message* message); #define message_load_value(message) S_message_load_value(aTHX_ message)
36.971429
128
0.81221
235e1e8d1b71f50b5bac1979f558fb82fdbc057d
1,684
c
C
srcs/show_alloc_mem_utils.c
rkirszba/malloc
cf039be6e70ac12ae81bab71e5eca7c230b2dd4d
[ "WTFPL" ]
null
null
null
srcs/show_alloc_mem_utils.c
rkirszba/malloc
cf039be6e70ac12ae81bab71e5eca7c230b2dd4d
[ "WTFPL" ]
null
null
null
srcs/show_alloc_mem_utils.c
rkirszba/malloc
cf039be6e70ac12ae81bab71e5eca7c230b2dd4d
[ "WTFPL" ]
null
null
null
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* show_alloc_mem_utils.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rkirszba <rkirszba@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/11/16 18:13:34 by rkirszba #+# #+# */ /* Updated: 2020/11/16 18:13:35 by rkirszba ### ########.fr */ /* */ /* ************************************************************************** */ #include "head.h" size_t first_biggest_than(t_zone *zone, size_t bound) { size_t smallest; smallest = -1; while (zone) { if ((size_t)zone > bound && (size_t)zone < smallest) smallest = (size_t)zone; zone = zone->header.next_zone; } return (smallest); } t_zone *next_smallest(size_t smallest) { size_t tiny; size_t small; size_t large; t_zone *winner; tiny = first_biggest_than(static_mem()->tiny.zone, smallest); small = first_biggest_than(static_mem()->small.zone, smallest); large = first_biggest_than(static_mem()->large, smallest); if (tiny < small) { if (tiny < large) winner = (t_zone*)tiny; else winner = (t_zone*)large; } else { if (small < large) winner = (t_zone*)small; else winner = (t_zone*)large; } return (winner); }
30.618182
80
0.379454
235f850bc505f887dbef91707d510dc671729b50
1,886
h
C
Classes/LRMocky/LRExpectations.h
lukeredpath/LRMocky
9f3873e6706ab12522fddf784db8a962a337e71e
[ "MIT" ]
4
2015-01-26T13:29:18.000Z
2016-02-16T02:04:41.000Z
Classes/LRMocky/LRExpectations.h
lukeredpath/LRMocky
9f3873e6706ab12522fddf784db8a962a337e71e
[ "MIT" ]
1
2015-08-18T21:33:06.000Z
2015-08-18T21:33:06.000Z
Classes/LRMocky/LRExpectations.h
lukeredpath/LRMocky
9f3873e6706ab12522fddf784db8a962a337e71e
[ "MIT" ]
null
null
null
// // LRExpectations.h // Mocky // // Created by Luke Redpath on 04/01/2013. // // #import "LRExpectationBuilder.h" #import "LRExpectationCapture.h" #import "LRExpectationActionSyntax.h" #import "LRExpectationActionCollector.h" #import "LRStatePredicate.h" @interface LRExpectations : NSObject <LRExpectationBuilder, LRExpectationActionCollector> @property (nonatomic, readonly) id<LRExpectationActionSyntax> actions; + (id)captureExpectationsWithBlock:(dispatch_block_t)block; #pragma mark - Mock object expectations - (id)expectThat:(id)mock; - (id)allowing:(id)mock; - (id)ignoring:(id)mock; - (void)captureExpectations:(dispatch_block_t)expectations whenStateIs:(id<LRStatePredicate>)state; #pragma mark - Expectation cardinality - (id)receives; - (id)receivesExactly:(NSUInteger)count; - (id)receivesAtLeast:(NSUInteger)min; - (id)receivesAtMost:(NSUInteger)max; - (id)receivesBetween:(NSUInteger)min and:(NSUInteger)max; #pragma mark - NSNotification expectations - (id)expectNotification:(NSString *)notificationName; - (id)fromSender:(id)sender; - (id)viaNotificationCenter:(NSNotificationCenter *)notificationCenter; @end @interface LRNotificationExpectationBuilder : NSObject <LRExpectationBuilder> @property (nonatomic, strong) NSNotificationCenter *notificationCenter; @property (nonatomic, copy) NSString *notificationName; @property (nonatomic, strong) id sender; @end #pragma mark - Global expectation builder proxy functions LRExpectations *expectThat(id object); LRExpectations *expectNotification(NSString *name); id allowing(id object); id ignoring(id object); id<LRExpectationActionSyntax> andThen(void); id<LRExpectationActionSyntax> thenState(id state); void whenState(id<LRStatePredicate> state, dispatch_block_t expectationsBlock); /* Makes the interface a little bit more readable */ #ifdef MOCKY_SHORTHAND #define then andThen() #endif
28.149254
99
0.791622
2360b4ceff6ea12ac15c00745399ee146616d46b
94
c
C
C/pg70~80-teste1.c
SigmaRS/Algoritmos
e9e88ca844a45c4f7a1197493ae7934e7ac78789
[ "Unlicense" ]
null
null
null
C/pg70~80-teste1.c
SigmaRS/Algoritmos
e9e88ca844a45c4f7a1197493ae7934e7ac78789
[ "Unlicense" ]
null
null
null
C/pg70~80-teste1.c
SigmaRS/Algoritmos
e9e88ca844a45c4f7a1197493ae7934e7ac78789
[ "Unlicense" ]
null
null
null
#include <stdio.h> int x; int main(){ for (x=1;x<=100;x++) printf("%d ", x); return(0); }
10.444444
39
0.521277
23624d1f44fdcde4122910c82c9579fc549fd89a
1,700
h
C
platforms/android/modules/connectivity/src/main/cpp/include/AACE/JNI/Connectivity/AlexaConnectivityBinder.h
krishnaprasad/alexa-auto-sdk
2fb8d28a9c4138111f9b19c2527478562acc4643
[ "Apache-2.0" ]
null
null
null
platforms/android/modules/connectivity/src/main/cpp/include/AACE/JNI/Connectivity/AlexaConnectivityBinder.h
krishnaprasad/alexa-auto-sdk
2fb8d28a9c4138111f9b19c2527478562acc4643
[ "Apache-2.0" ]
null
null
null
platforms/android/modules/connectivity/src/main/cpp/include/AACE/JNI/Connectivity/AlexaConnectivityBinder.h
krishnaprasad/alexa-auto-sdk
2fb8d28a9c4138111f9b19c2527478562acc4643
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ #ifndef AACE_JNI_CONNECTIVITY_CONNECTIVITY_BINDER_H #define AACE_JNI_CONNECTIVITY_CONNECTIVITY_BINDER_H #include <AACE/Connectivity/AlexaConnectivity.h> #include <AACE/JNI/Core/PlatformInterfaceBinder.h> namespace aace { namespace jni { namespace connectivity { class AlexaConnectivityHandler : public aace::connectivity::AlexaConnectivity { public: AlexaConnectivityHandler(jobject obj); // aace::connectivity::AlexaConnectivity interface std::string getConnectivityState() override; private: JObject m_obj; }; class AlexaConnectivityBinder : public aace::jni::core::PlatformInterfaceBinder { public: AlexaConnectivityBinder(jobject obj); std::shared_ptr<aace::core::PlatformInterface> getPlatformInterface() override { return m_alexaConnectivity; } std::shared_ptr<AlexaConnectivityHandler> getAlexaConnectivity() { return m_alexaConnectivity; } private: std::shared_ptr<AlexaConnectivityHandler> m_alexaConnectivity; }; } // namespace connectivity } // namespace jni } // namespace aace #endif // AACE_JNI_CONNECTIVITY_CONNECTIVITY_BINDER_H
29.310345
84
0.761765
2364fe4d749913e61603baa0b1882d739dad8132
2,245
c
C
grub-core/lib/i386/halt.c
dingjingmaster/graceful-grub
7e57edc3cbd61774bbb57119c1893c77cb547d6a
[ "MIT" ]
null
null
null
grub-core/lib/i386/halt.c
dingjingmaster/graceful-grub
7e57edc3cbd61774bbb57119c1893c77cb547d6a
[ "MIT" ]
null
null
null
grub-core/lib/i386/halt.c
dingjingmaster/graceful-grub
7e57edc3cbd61774bbb57119c1893c77cb547d6a
[ "MIT" ]
null
null
null
/* * GRUB -- GRand Unified Bootloader * Copyright (C) 2008 Free Software Foundation, Inc. * * GRUB 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, or * (at your option) any later version. * * GRUB 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. * * You should have received a copy of the GNU General Public License * along with GRUB. If not, see <http://www.gnu.org/licenses/>. */ #include <grub/cpu/io.h> #include <grub/misc.h> #include <grub/acpi.h> #include <grub/i18n.h> #include <grub/pci.h> #include <grub/mm.h> const char bochs_shutdown[] = "Shutdown"; /* * This call is special... it never returns... in fact it should simply * hang at this point! */ static inline void __attribute__ ((noreturn)) stop (void) { asm volatile ("cli"); while (1) { asm volatile ("hlt"); } } static int grub_shutdown_pci_iter (grub_pci_device_t dev, grub_pci_id_t pciid, void *data __attribute__ ((unused))) { /* QEMU. */ if (pciid == 0x71138086) { grub_pci_address_t addr; addr = grub_pci_make_address (dev, 0x40); grub_pci_write (addr, 0x7001); addr = grub_pci_make_address (dev, 0x80); grub_pci_write (addr, grub_pci_read (addr) | 1); grub_outw (0x2000, 0x7004); } return 0; } void grub_halt (void) { unsigned int i; #if defined (GRUB_MACHINE_COREBOOT) || defined (GRUB_MACHINE_MULTIBOOT) grub_acpi_halt (); #endif /* Disable interrupts. */ asm volatile ("cli"); /* Bochs, QEMU, etc. Removed in newer QEMU releases. */ for (i = 0; i < sizeof (bochs_shutdown) - 1; i++) grub_outb (bochs_shutdown[i], 0x8900); grub_pci_iterate (grub_shutdown_pci_iter, NULL); grub_puts_ (N_("GRUB doesn't know how to halt this machine yet!")); /* In order to return we'd have to check what the previous status of IF flag was. But user most likely doesn't want to return anyway ... */ stop (); }
27.048193
74
0.677951
236681cc4a2b6af41526188de338de4e154db3a3
865
h
C
character.h
Locky-Brand/Arduino-128x64-OLED-vector-graphics-library
43949d874f1ebf16435c56bb85037e892925a0b6
[ "MIT" ]
null
null
null
character.h
Locky-Brand/Arduino-128x64-OLED-vector-graphics-library
43949d874f1ebf16435c56bb85037e892925a0b6
[ "MIT" ]
null
null
null
character.h
Locky-Brand/Arduino-128x64-OLED-vector-graphics-library
43949d874f1ebf16435c56bb85037e892925a0b6
[ "MIT" ]
null
null
null
#ifndef CHAR_H #define CHAR_H #include <Arduino.h> #include "utilities.h" #include "mesh.h" #include "renderer.h" #include "collision.h" struct joyStick { int xPin = A1; int yPin = A0; vec2 getDirectionVector() const; void operator = (const joyStick& i_other); }; class character { public: ~character(); static character* getInstance(); void onUpdate(renderer* i_ren); void getInput(worldCollision& i_worldColliders); void setLocation(const vec2& i_location, collider* i_worldColliders); mesh* getMesh() const; void setMesh(mesh* i_mesh); collider* getCollider(); vec2 getForwardVec() const; vec2Ray getForwardLine() const; private: mesh* characterMesh; joyStick control; vec2 forwardVec; vec2 lastDirectionVec; vec2Ray lastDirectionLine; collider collide; character(); static character* characterInstance; }; #endif
21.097561
71
0.732948
2366918a630f42fbe4aaef3903b5ab2ddc5c9a7c
17,571
c
C
mame/src/mame/drivers/calorie.c
nitrologic/emu
be2c9b72d81c3aea85ad4fd18fa4f731b31f338a
[ "Unlicense" ]
null
null
null
mame/src/mame/drivers/calorie.c
nitrologic/emu
be2c9b72d81c3aea85ad4fd18fa4f731b31f338a
[ "Unlicense" ]
null
null
null
mame/src/mame/drivers/calorie.c
nitrologic/emu
be2c9b72d81c3aea85ad4fd18fa4f731b31f338a
[ "Unlicense" ]
null
null
null
/* Calorie-Kun Sega, 1986 PCB Layout ---------- Top PCB 837-6077 171-5381 |--------------------------------------------| | Z80 YM2149 | | | | 2016 YM2149 | | | |10079 10077 10075 YM2149 | | 10078 10076 | | -| | | | 2114 -| | 1| | 2114 8| | W| | 2114 A| | Y| | -| | | | DSW2(8)-| | 10082 10081 10080 | |2016 DSW1(8) | |--------------------------------------------| Notes: Z80 clock : 3.000MHz YM2149 clock: 1.500MHz VSync : 60Hz 2016 : 2K x8 SRAM 2114 : 1K x4 SRAM Bottom PCB 837-6076 171-5380 |--------------------------------------------| | 12MHz | | | | | | | | | | | | | | 10074 10071 | | NEC | | 10073 D317-0004 4MHz 10070 | | | | 10072 10069 | | | | 2016 2114 6148 | | | | 2016 2114 6148 | | | | 6148 | | 6148 | |--------------------------------------------| Notes: 317-0004 clock: 4.000MHz 2016 : 2K x8 SRAM 2114 : 1K x4 SRAM 6148 : 1K x4 SRAM driver by David Haywood and Pierpaolo Prazzoli */ #include "driver.h" #include "cpu/z80/z80.h" #include "machine/segacrpt.h" #include "sound/ay8910.h" static UINT8 *calorie_fg; static UINT8 calorie_bg; static UINT8 *calorie_sprites; static tilemap *bg_tilemap,*fg_tilemap; static TILE_GET_INFO( get_bg_tile_info ) { UINT8 *src = memory_region(machine, "user1"); int bg_base = (calorie_bg & 0x0f) * 0x200; int code = src[bg_base + tile_index] | (((src[bg_base + tile_index + 0x100]) & 0x10) << 4); int color = src[bg_base + tile_index + 0x100] & 0x0f; int flag = src[bg_base + tile_index + 0x100] & 0x40 ? TILE_FLIPX : 0; SET_TILE_INFO(1, code, color, flag); } static TILE_GET_INFO( get_fg_tile_info ) { int code = ((calorie_fg[tile_index + 0x400] & 0x30) << 4) | calorie_fg[tile_index]; int color = calorie_fg[tile_index + 0x400] & 0x0f; SET_TILE_INFO(0, code, color, TILE_FLIPYX((calorie_fg[tile_index + 0x400] & 0xc0) >> 6)); } static VIDEO_START( calorie ) { bg_tilemap = tilemap_create(machine, get_bg_tile_info,tilemap_scan_rows,16,16,16,16); fg_tilemap = tilemap_create(machine, get_fg_tile_info,tilemap_scan_rows,8, 8,32,32); tilemap_set_transparent_pen(fg_tilemap,0); } static VIDEO_UPDATE( calorie ) { int x; if (calorie_bg & 0x10) { tilemap_draw(bitmap,cliprect,bg_tilemap,0,0); tilemap_draw(bitmap,cliprect,fg_tilemap,0,0); } else { tilemap_draw(bitmap,cliprect,fg_tilemap,TILEMAP_DRAW_OPAQUE,0); } for (x = 0x400; x >= 0; x -= 4) { int xpos, ypos, tileno, color, flipx, flipy; tileno = calorie_sprites[x+0]; color = calorie_sprites[x+1] & 0x0f; flipx = calorie_sprites[x+1] & 0x40; flipy = 0; ypos = 0xff - calorie_sprites[x+2]; xpos = calorie_sprites[x+3]; if(flip_screen_get(screen->machine)) { if( calorie_sprites[x+1] & 0x10 ) ypos = 0xff - ypos + 32; else ypos = 0xff - ypos + 16; xpos = 0xff - xpos - 16; flipx = !flipx; flipy = !flipy; } if( calorie_sprites[x+1] & 0x10 ) { /* 32x32 sprites */ drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[3],tileno | 0x40,color,flipx,flipy,xpos,ypos - 31,0); } else { /* 16x16 sprites */ drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[2],tileno,color,flipx,flipy,xpos,ypos - 15,0); } } return 0; } static WRITE8_HANDLER( calorie_fg_w ) { calorie_fg[offset] = data; tilemap_mark_tile_dirty(fg_tilemap,offset & 0x3ff); } static WRITE8_HANDLER( calorie_bg_w ) { if((calorie_bg & ~0x10) != (data & ~0x10)) { tilemap_mark_all_tiles_dirty(bg_tilemap); } calorie_bg = data; } static WRITE8_HANDLER( calorie_flipscreen_w ) { flip_screen_set(space->machine, data & 1); } static READ8_HANDLER( calorie_soundlatch_r ) { UINT8 latch = soundlatch_r(space,0); soundlatch_clear_w(space,0,0); return latch; } static WRITE8_HANDLER( bogus_w ) { popmessage("written to 3rd sound chip: data = %02X port = %02X", data, offset); } static ADDRESS_MAP_START( calorie_map, ADDRESS_SPACE_PROGRAM, 8 ) AM_RANGE(0x0000, 0x7fff) AM_ROM AM_RANGE(0x8000, 0xbfff) AM_ROM AM_RANGE(0xc000, 0xcfff) AM_RAM AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(calorie_fg_w) AM_BASE(&calorie_fg) AM_RANGE(0xd800, 0xdbff) AM_RAM AM_BASE(&calorie_sprites) AM_RANGE(0xdc00, 0xdcff) AM_RAM_WRITE(paletteram_xxxxBBBBGGGGRRRR_le_w) AM_BASE(&paletteram) AM_RANGE(0xde00, 0xde00) AM_WRITE(calorie_bg_w) AM_RANGE(0xf000, 0xf000) AM_READ_PORT("P1") AM_RANGE(0xf001, 0xf001) AM_READ_PORT("P2") AM_RANGE(0xf002, 0xf002) AM_READ_PORT("SYSTEM") AM_RANGE(0xf004, 0xf004) AM_READ_PORT("DSW1") AM_WRITE(calorie_flipscreen_w) AM_RANGE(0xf005, 0xf005) AM_READ_PORT("DSW2") AM_RANGE(0xf800, 0xf800) AM_WRITE(soundlatch_w) ADDRESS_MAP_END static ADDRESS_MAP_START( calorie_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) AM_RANGE(0x0000, 0x3fff) AM_ROM AM_RANGE(0x8000, 0x87ff) AM_RAM AM_RANGE(0xc000, 0xc000) AM_READ(calorie_soundlatch_r) ADDRESS_MAP_END static ADDRESS_MAP_START( calorie_sound_io_map, ADDRESS_SPACE_IO, 8 ) ADDRESS_MAP_GLOBAL_MASK(0xff) AM_RANGE(0x00, 0x01) AM_DEVWRITE("ay1", ay8910_address_data_w) AM_RANGE(0x01, 0x01) AM_DEVREAD("ay1", ay8910_r) AM_RANGE(0x10, 0x11) AM_DEVWRITE("ay2", ay8910_address_data_w) AM_RANGE(0x11, 0x11) AM_DEVREAD("ay2", ay8910_r) // 3rd ? AM_RANGE(0x00, 0xff) AM_WRITE(bogus_w) ADDRESS_MAP_END static INPUT_PORTS_START( calorie ) PORT_START("P1") PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_4WAY PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_4WAY PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_4WAY PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_4WAY PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_START("P2") PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL PORT_4WAY PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL PORT_4WAY PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL PORT_4WAY PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL PORT_4WAY PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_START("SYSTEM") PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_START("DSW1") PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2") PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) PORT_DIPSETTING( 0x03, DEF_STR( 1C_6C ) ) PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:3,4") PORT_DIPSETTING( 0x0c, DEF_STR( 2C_1C ) ) PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) PORT_DIPNAME( 0x10, 0x10, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:5") PORT_DIPSETTING( 0x10, DEF_STR( Upright ) ) PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:6") PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) PORT_DIPSETTING( 0x20, DEF_STR( On ) ) PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:7,8") PORT_DIPSETTING( 0xc0, "2" ) PORT_DIPSETTING( 0x00, "3" ) PORT_DIPSETTING( 0x40, "4" ) PORT_DIPSETTING( 0x80, "5" ) PORT_START("DSW2") PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:1,2") PORT_DIPSETTING( 0x00, DEF_STR( None ) ) PORT_DIPSETTING( 0x01, "20,000 Only" ) PORT_DIPSETTING( 0x03, "20,000 and 60,000" ) /* No listed value for 0x02 (Off / On) */ PORT_DIPNAME( 0x04, 0x00, "Number of Bombs" ) PORT_DIPLOCATION("SW2:3") PORT_DIPSETTING( 0x00, "3" ) PORT_DIPSETTING( 0x04, "5" ) PORT_DIPNAME( 0x08, 0x00, "Difficulty - Mogura Nian" ) PORT_DIPLOCATION("SW2:4") PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) PORT_DIPNAME( 0x30, 0x00, "Difficulty - Select of Mogura" ) PORT_DIPLOCATION("SW2:5,6") PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) PORT_DIPSETTING( 0x30, DEF_STR( Hardest ) ) PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:7" ) PORT_DIPNAME( 0x80, 0x00, "Infinite Lives" ) PORT_DIPLOCATION("SW2:8") PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) PORT_DIPSETTING( 0x80, DEF_STR( On ) ) INPUT_PORTS_END static const gfx_layout tiles8x8_layout = { 8,8, RGN_FRAC(1,3), 3, { RGN_FRAC(0,3),RGN_FRAC(1,3),RGN_FRAC(2,3) }, { 0, 1,2, 3, 4, 5, 6, 7 }, { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, 8*8 }; static const gfx_layout tiles16x16_layout = { 16,16, RGN_FRAC(1,3), 3, { RGN_FRAC(0,3),RGN_FRAC(1,3),RGN_FRAC(2,3) }, { 0, 1,2, 3, 4, 5, 6, 7, 8*8+0,8*8+1,8*8+2,8*8+3,8*8+4,8*8+5,8*8+6,8*8+7 }, { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 }, 8*32 }; static const gfx_layout tiles32x32_layout = { 32,32, RGN_FRAC(1,3), 3, { RGN_FRAC(0,3),RGN_FRAC(1,3),RGN_FRAC(2,3) }, { 0, 1, 2, 3, 4, 5, 6, 7, 8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7, 32*8+0, 32*8+1, 32*8+2, 32*8+3, 32*8+4, 32*8+5, 32*8+6, 32*8+7, 40*8+0, 40*8+1, 40*8+2, 40*8+3, 40*8+4, 40*8+5, 40*8+6, 40*8+7 }, { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8, 64*8, 65*8, 66*8, 67*8, 68*8, 69*8, 70*8, 71*8, 80*8, 81*8, 82*8, 83*8, 84*8, 85*8, 86*8, 87*8 }, 128*8 }; static GFXDECODE_START( calorie ) GFXDECODE_ENTRY( "gfx2", 0, tiles8x8_layout, 0, 16 ) GFXDECODE_ENTRY( "gfx3", 0, tiles16x16_layout, 0, 16 ) GFXDECODE_ENTRY( "gfx1", 0, tiles16x16_layout, 0, 16 ) GFXDECODE_ENTRY( "gfx1", 0, tiles32x32_layout, 0, 16 ) GFXDECODE_END static MACHINE_DRIVER_START( calorie ) /* basic machine hardware */ MDRV_CPU_ADD("maincpu", Z80,4000000) /* 4 MHz */ MDRV_CPU_PROGRAM_MAP(calorie_map) MDRV_CPU_VBLANK_INT("screen", irq0_line_hold) MDRV_CPU_ADD("audiocpu", Z80,3000000) /* 3 MHz */ MDRV_CPU_PROGRAM_MAP(calorie_sound_map) MDRV_CPU_IO_MAP(calorie_sound_io_map) MDRV_CPU_PERIODIC_INT(irq0_line_hold, 64) /* video hardware */ MDRV_SCREEN_ADD("screen", RASTER) MDRV_SCREEN_REFRESH_RATE(60) MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) MDRV_SCREEN_SIZE(256, 256) MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) MDRV_GFXDECODE(calorie) MDRV_PALETTE_LENGTH(0x100) MDRV_VIDEO_START(calorie) MDRV_VIDEO_UPDATE(calorie) /* sound hardware */ MDRV_SPEAKER_STANDARD_MONO("mono") MDRV_SOUND_ADD("ay1", AY8910, 1500000) MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.8) /* YM2149 really */ MDRV_SOUND_ADD("ay2", AY8910, 1500000) MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.8) /* YM2149 really */ MDRV_SOUND_ADD("ay3", AY8910, 1500000) MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.8) /* YM2149 really */ MACHINE_DRIVER_END ROM_START( calorie ) ROM_REGION( 0x10000, "maincpu", 0 ) ROM_LOAD( "epr10072.1j", 0x00000, 0x4000, CRC(ade792c1) SHA1(6ea5afb00a87037d502c17adda7e4060d12680d7) ) ROM_LOAD( "epr10073.1k", 0x04000, 0x4000, CRC(b53e109f) SHA1(a41c5affe917232e7adf40d7c15cff778b197e90) ) ROM_LOAD( "epr10074.1m", 0x08000, 0x4000, CRC(a08da685) SHA1(69f9cfebc771312dbb1726350c2d9e9e8c46353f) ) ROM_REGION( 0x10000, "audiocpu", 0 ) ROM_LOAD( "epr10075.4d", 0x0000, 0x4000, CRC(ca547036) SHA1(584a65482f2b92a4c08c37560450d6db68a56c7b) ) ROM_REGION( 0x2000, "user1", 0 ) /* background tilemaps */ ROM_LOAD( "epr10079.8d", 0x0000, 0x2000, CRC(3c61a42c) SHA1(68ea6b5d2f3c6a9e5308c08dde20424f20021a73) ) ROM_REGION( 0xc000, "gfx1", 0 ) /* sprites */ ROM_LOAD( "epr10071.7m", 0x0000, 0x4000, CRC(5f55527a) SHA1(ec1ba8f95ac47a0c783e117ef4af6fe0ab5925b5) ) ROM_LOAD( "epr10070.7k", 0x4000, 0x4000, CRC(97f35a23) SHA1(869553a334e1b3ba900a8b9c9eaf25fbc6ab31dd) ) ROM_LOAD( "epr10069.7j", 0x8000, 0x4000, CRC(c0c3deaf) SHA1(8bf2e2146b794a330a079dd080f0586500964b1a) ) ROM_REGION( 0x6000, "gfx2", 0 ) /* tiles */ ROM_LOAD( "epr10082.5r", 0x0000, 0x2000, CRC(5984ea44) SHA1(010011b5b8dfa593c6fc7d2366f8cf82fcc8c978) ) ROM_LOAD( "epr10081.4r", 0x2000, 0x2000, CRC(e2d45dd8) SHA1(5e11089680b574ea4cbf64510e51b0a945f79174) ) ROM_LOAD( "epr10080.3r", 0x4000, 0x2000, CRC(42edfcfe) SHA1(feba7b1daffcad24d4c24f55ab5466f8cebf31ad) ) ROM_REGION( 0xc000, "gfx3", 0 ) /* tiles */ ROM_LOAD( "epr10078.7d", 0x0000, 0x4000, CRC(5b8eecce) SHA1(e7eee82081939b361edcbb9587b072b4b9a162f9) ) ROM_LOAD( "epr10077.6d", 0x4000, 0x4000, CRC(01bcb609) SHA1(5d01fa75f214d34483284aaaef985ab92a606505) ) ROM_LOAD( "epr10076.5d", 0x8000, 0x4000, CRC(b1529782) SHA1(8e0e92aae4c8dd8720414372aa767054cc316a0f) ) ROM_END ROM_START( calorieb ) ROM_REGION( 0x1c000, "maincpu", 0 ) ROM_LOAD( "12.bin", 0x10000, 0x4000, CRC(cf5fa69e) SHA1(520d5652e93a672a1fc147295fbd63b873967885) ) ROM_CONTINUE( 0x00000, 0x4000 ) ROM_LOAD( "13.bin", 0x14000, 0x4000, CRC(52e7263f) SHA1(4d684c9e3f08ddb18b0b3b982aba82d3c809a633) ) ROM_CONTINUE( 0x04000, 0x4000 ) ROM_LOAD( "epr10074.1m", 0x08000, 0x4000, CRC(a08da685) SHA1(69f9cfebc771312dbb1726350c2d9e9e8c46353f) ) ROM_REGION( 0x10000, "audiocpu", 0 ) ROM_LOAD( "epr10075.4d", 0x0000, 0x4000, CRC(ca547036) SHA1(584a65482f2b92a4c08c37560450d6db68a56c7b) ) ROM_REGION( 0x2000, "user1", 0 ) /* background tilemaps */ ROM_LOAD( "epr10079.8d", 0x0000, 0x2000, CRC(3c61a42c) SHA1(68ea6b5d2f3c6a9e5308c08dde20424f20021a73) ) ROM_REGION( 0xc000, "gfx1", 0 ) /* sprites */ ROM_LOAD( "epr10071.7m", 0x0000, 0x4000, CRC(5f55527a) SHA1(ec1ba8f95ac47a0c783e117ef4af6fe0ab5925b5) ) ROM_LOAD( "epr10070.7k", 0x4000, 0x4000, CRC(97f35a23) SHA1(869553a334e1b3ba900a8b9c9eaf25fbc6ab31dd) ) ROM_LOAD( "epr10069.7j", 0x8000, 0x4000, CRC(c0c3deaf) SHA1(8bf2e2146b794a330a079dd080f0586500964b1a) ) ROM_REGION( 0x6000, "gfx2", 0 ) /* tiles */ ROM_LOAD( "epr10082.5r", 0x0000, 0x2000, CRC(5984ea44) SHA1(010011b5b8dfa593c6fc7d2366f8cf82fcc8c978) ) ROM_LOAD( "epr10081.4r", 0x2000, 0x2000, CRC(e2d45dd8) SHA1(5e11089680b574ea4cbf64510e51b0a945f79174) ) ROM_LOAD( "epr10080.3r", 0x4000, 0x2000, CRC(42edfcfe) SHA1(feba7b1daffcad24d4c24f55ab5466f8cebf31ad) ) ROM_REGION( 0xc000, "gfx3", 0 ) /* tiles */ ROM_LOAD( "epr10078.7d", 0x0000, 0x4000, CRC(5b8eecce) SHA1(e7eee82081939b361edcbb9587b072b4b9a162f9) ) ROM_LOAD( "epr10077.6d", 0x4000, 0x4000, CRC(01bcb609) SHA1(5d01fa75f214d34483284aaaef985ab92a606505) ) ROM_LOAD( "epr10076.5d", 0x8000, 0x4000, CRC(b1529782) SHA1(8e0e92aae4c8dd8720414372aa767054cc316a0f) ) ROM_END static DRIVER_INIT( calorie ) { calorie_decode(machine, "maincpu"); } static DRIVER_INIT( calorieb ) { const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM); memory_set_decrypted_region(space, 0x0000, 0x7fff, memory_region(machine, "maincpu") + 0x10000); } /* Note: the bootleg is identical to the original once decrypted */ GAME( 1986, calorie, 0, calorie, calorie, calorie, ROT0, "Sega", "Calorie Kun vs Moguranian", 0 ) GAME( 1986, calorieb, calorie, calorie, calorie, calorieb, ROT0, "bootleg", "Calorie Kun vs Moguranian (bootleg)", 0 )
36.991579
119
0.632064
2366b9228d78831ccbda8a0b1acdcd208a620a04
3,437
c
C
src/bluetooth-pan.c
tizenorg/platform.core.api.bluetooth
f9da34d8d37d591db18bd6a19f0fe029cef35965
[ "Apache-2.0" ]
null
null
null
src/bluetooth-pan.c
tizenorg/platform.core.api.bluetooth
f9da34d8d37d591db18bd6a19f0fe029cef35965
[ "Apache-2.0" ]
null
null
null
src/bluetooth-pan.c
tizenorg/platform.core.api.bluetooth
f9da34d8d37d591db18bd6a19f0fe029cef35965
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved * * 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 agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <glib.h> #include <dlog.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <bluetooth-api.h> #include "bluetooth.h" #include "bluetooth_private.h" #ifdef LOG_TAG #undef LOG_TAG #endif #define LOG_TAG "TIZEN_N_BLUETOOTH" GList *sending_files; int bt_nap_activate(void) { int error = BT_ERROR_NONE; BT_CHECK_INIT_STATUS(); error = bluetooth_network_activate_server(); error = _bt_get_error_code(error); if (error != BT_ERROR_NONE) { LOGE("[%s] %s(0x%08x)", __FUNCTION__, _bt_convert_error_to_string(error), error); } return error; } int bt_nap_deactivate(void) { int error = BT_ERROR_NONE; BT_CHECK_INIT_STATUS(); error = bluetooth_network_deactivate_server(); error = _bt_get_error_code(error); if (error != BT_ERROR_NONE) { LOGE("[%s] %s(0x%08x)", __FUNCTION__, _bt_convert_error_to_string(error), error); } return error; } int bt_nap_set_connection_state_changed_cb( bt_nap_connection_state_changed_cb callback, void *user_data) { BT_CHECK_INIT_STATUS(); BT_CHECK_INPUT_PARAMETER(callback); _bt_set_cb(BT_EVENT_NAP_CONNECTION_STATE_CHANGED, callback, user_data); return BT_ERROR_NONE; } int bt_nap_unset_connection_state_changed_cb(void) { _bt_unset_cb(BT_EVENT_NAP_CONNECTION_STATE_CHANGED); return BT_ERROR_NONE; } int bt_panu_set_connection_state_changed_cb( bt_panu_connection_state_changed_cb callback, void *user_data) { BT_CHECK_INIT_STATUS(); BT_CHECK_INPUT_PARAMETER(callback); _bt_set_cb(BT_EVENT_PAN_CONNECTION_STATE_CHANGED, callback, user_data); return BT_ERROR_NONE; } int bt_panu_unset_connection_state_changed_cb(void) { _bt_unset_cb(BT_EVENT_PAN_CONNECTION_STATE_CHANGED); return BT_ERROR_NONE; } int bt_panu_connect(const char *remote_address, bt_panu_service_type_e type) { int error = BT_ERROR_INVALID_PARAMETER; bluetooth_device_address_t addr_hex = { {0,} }; BT_CHECK_INIT_STATUS(); BT_CHECK_INPUT_PARAMETER(remote_address); _bt_convert_address_to_hex(&addr_hex, remote_address); if (BT_PANU_SERVICE_TYPE_NAP == type) { error = bluetooth_network_connect(&addr_hex, BLUETOOTH_NETWORK_NAP_ROLE, NULL); error = _bt_get_error_code(error); if (error != BT_ERROR_NONE) { LOGE("[%s] %s(0x%08x)", __FUNCTION__, _bt_convert_error_to_string(error), error); } } return error; } int bt_panu_disconnect(const char *remote_address) { int error = BT_ERROR_INVALID_PARAMETER; bluetooth_device_address_t addr_hex = { {0,} }; BT_CHECK_INIT_STATUS(); BT_CHECK_INPUT_PARAMETER(remote_address); _bt_convert_address_to_hex(&addr_hex, remote_address); error = bluetooth_network_disconnect(&addr_hex); error = _bt_get_error_code(error); if (error != BT_ERROR_NONE) { LOGE("[%s] %s(0x%08x)", __FUNCTION__, _bt_convert_error_to_string(error), error); } return error; }
26.037879
76
0.771603
2366f4a9bd9bf9b916dc556cdb92bd63294143b9
943
h
C
vars.h
bmuessig/ClawVM
c365ca0f9ece5ff15af136bc0f97f66873a8e6e7
[ "BSD-3-Clause" ]
null
null
null
vars.h
bmuessig/ClawVM
c365ca0f9ece5ff15af136bc0f97f66873a8e6e7
[ "BSD-3-Clause" ]
null
null
null
vars.h
bmuessig/ClawVM
c365ca0f9ece5ff15af136bc0f97f66873a8e6e7
[ "BSD-3-Clause" ]
2
2016-05-08T11:49:08.000Z
2016-05-16T15:05:16.000Z
#ifndef VARS_H_ #define VARS_H_ #include <stdint.h> #include "types.h" extern uint8_t claw_pool[]; /* the data pool */ extern claw_size claw_pool_len; /* current length of the stack */ void claw_pool_clear (void); claw_error claw_pool_locate (claw_ptr index, claw_ptr* pptr, claw_size* size); claw_error claw_pool_locate_ab (claw_ptr index, claw_byte** ptr, claw_size* size); claw_error claw_pool_locate_an (claw_ptr index, claw_num** ptr, claw_size* size); claw_error claw_pool_locate_rb (claw_ptr offset, claw_byte** ptr, claw_size* size); claw_error claw_pool_locate_rn (claw_ptr offset, claw_num** ptr, claw_size* size); claw_size claw_pool_usage (void); claw_error claw_pool_alloc (claw_size blocks); claw_error claw_pool_alloc_b (claw_size size); claw_error claw_pool_alloc_n (claw_size size); uint8_t claw_pool_dealloc (void); #endif
42.863636
88
0.71368
236b83f77e3f7f7b25a098b89a1471d09d6e88d0
1,215
h
C
src/compiler/local_id.h
NickNaso/verona
9e85bd5dcbc08b592c38ef2b243dd37c858118a7
[ "MIT" ]
1
2020-01-17T18:48:17.000Z
2020-01-17T18:48:17.000Z
src/compiler/local_id.h
NickNaso/verona
9e85bd5dcbc08b592c38ef2b243dd37c858118a7
[ "MIT" ]
null
null
null
src/compiler/local_id.h
NickNaso/verona
9e85bd5dcbc08b592c38ef2b243dd37c858118a7
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "pegmatite.hh" namespace verona::compiler { struct LocalDef; /** * Opaque reference to a local variable definition. * * This is used throughout the compiler as a way to uniquely identify local * variables. */ struct LocalID { public: LocalID(std::nullptr_t null) : definition_(nullptr) {} LocalID(const LocalDef* definition) : definition_(definition) {} LocalID(const std::unique_ptr<LocalDef>& definition) : definition_(definition.get()) {} bool operator<(const LocalID& other) const { return definition_ < other.definition_; } bool operator==(const LocalID& other) const { return definition_ == other.definition_; } friend std::ostream& operator<<(std::ostream& s, const LocalID& self); friend std::hash<LocalID>; private: const LocalDef* definition_; }; } namespace std { template<> struct hash<verona::compiler::LocalID> { size_t operator()(const verona::compiler::LocalID& l) const { return std::hash<const verona::compiler::LocalDef*>()(l.definition_); } }; }
22.090909
77
0.66749
236c639bb0988b48c8cc1a10334d526d6364e2a4
511
c
C
src/exercises_2015/atoi/main.c
frnmst/algorithms-and-data-structures
b0a8d275670633a18e18cf3d5c6d8d20c08b0b94
[ "WTFPL" ]
2
2016-02-20T10:31:51.000Z
2022-01-24T10:27:54.000Z
src/exercises_2015/atoi/main.c
frnmst/algorithms-and-data-structures
b0a8d275670633a18e18cf3d5c6d8d20c08b0b94
[ "WTFPL" ]
null
null
null
src/exercises_2015/atoi/main.c
frnmst/algorithms-and-data-structures
b0a8d275670633a18e18cf3d5c6d8d20c08b0b94
[ "WTFPL" ]
null
null
null
/* Copyright © 2016 Franco Masotti <franco.masotti@student.unife.it> * Danny Lessio * This work is free. You can redistribute it and/or modify it under the * terms of the Do What The Fuck You Want To Public License, Version 2, * as published by Sam Hocevar. See the LICENSE file for more details. */ #ifndef MAIN_H #define MAIN_H #include "main.h" #endif int main( void ) { char *str = "1524"; int res; res = aToI( str ); printf( "res = %d\n", res ); return 0; }
20.44
72
0.637965
236cd61ea70139447401f6aa8e20459b2835d9aa
1,324
h
C
tc/size_bounded.h
badearobert/range
ddec92e44df8a8f9f021a03d3f92ec4b091f19de
[ "BSL-1.0" ]
null
null
null
tc/size_bounded.h
badearobert/range
ddec92e44df8a8f9f021a03d3f92ec4b091f19de
[ "BSL-1.0" ]
null
null
null
tc/size_bounded.h
badearobert/range
ddec92e44df8a8f9f021a03d3f92ec4b091f19de
[ "BSL-1.0" ]
null
null
null
// think-cell public library // // Copyright (C) 2016-2019 think-cell Software GmbH // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt #pragma once #include "range_defines.h" #include "container_traits.h" #include "size.h" #include "sub_range.h" namespace tc { template< typename Rng, typename T, std::enable_if_t<tc::has_size<Rng>::value>* = nullptr > auto size_bounded(Rng const& rng, T const) noexcept { return tc::size(rng); } template< typename Rng, typename T, std::enable_if_t<!tc::has_size<Rng>::value && tc::is_range_with_iterators<Rng>::value>* = nullptr > auto size_bounded(Rng const& rng, T const nBound) noexcept { return advance_forward_bounded( tc::begin(rng), nBound, tc::end(rng) ); } template< typename Rng, typename T, std::enable_if_t<!tc::has_size<Rng>::value && !tc::is_range_with_iterators<Rng>::value>* = nullptr > auto size_bounded(Rng const& rng, T const nBound) noexcept { T n = 0; if (0 < nBound) { auto Enumerate = [&](auto const&) noexcept { return tc::continue_if(nBound!=++n); }; STATICASSERTSAME(tc::break_or_continue, decltype(rng(Enumerate)), "size_bounded only works with interruptible generators"); tc::for_each(rng, Enumerate); } return n; } }
32.292683
137
0.712991
236cf4127fc789725ae0bcca801aa631a3cbbba7
44
h
C
kernel/platform/qemu-integrator-cp/timer.h
blm768/arm-os
0d020d6314a4797aed9e3b04d06132b48b8010b5
[ "MIT" ]
4
2015-01-28T03:35:10.000Z
2021-01-14T10:47:53.000Z
kernel/platform/qemu-integrator-cp/timer.h
blm768/arm-os
0d020d6314a4797aed9e3b04d06132b48b8010b5
[ "MIT" ]
null
null
null
kernel/platform/qemu-integrator-cp/timer.h
blm768/arm-os
0d020d6314a4797aed9e3b04d06132b48b8010b5
[ "MIT" ]
1
2019-10-02T12:27:53.000Z
2019-10-02T12:27:53.000Z
#ifndef _TIMER_H #define _TIMER_H #endif
6.285714
16
0.75
d6bdddcf433a0e60d0bd3d2b7d24c199fc75ec2d
5,234
c
C
C/StackADT.c
sprectza/DataStructures
6138c2c06252bf3673bfd6ff40ff9ef60a6414f2
[ "MIT" ]
1
2021-07-31T02:57:07.000Z
2021-07-31T02:57:07.000Z
C/StackADT.c
sprectza/DataStructures
6138c2c06252bf3673bfd6ff40ff9ef60a6414f2
[ "MIT" ]
null
null
null
C/StackADT.c
sprectza/DataStructures
6138c2c06252bf3673bfd6ff40ff9ef60a6414f2
[ "MIT" ]
null
null
null
/* Author: Swarit Pandey USN: 4VV19IS108 Date: 13/10/2020 Task: Implementation of Stack ADT IDE Used: OnlineGDB Written In: C11 Compiler: GNU GCC 10.x Dependencies: NONE */ #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #define allocate(t, n) (t*)malloc((n)*sizeof(t)) // Structure of Stack struct Stack { int size; int top; int *s; }; // This method will create stack dynamically CONSTRUCTOR void create(struct Stack *st) { printf(" >> Enter the required size of stack: \n >>> "); scanf("%d", &st -> size); st -> top = -1; st -> s = allocate(int, st -> size); printf("---------------------DONE----------------------\n"); } // Method to display stack void display(struct Stack st) { int i; printf(" >>> Elments present in stack are: \n"); if(st.top == -1){ printf("LOG_MESSAGE: The stack is empty!\n"); } for(i = st.top; i >= 0; i--) { printf("\n__\n|%d|", st.s[i]); } printf("\n"); } // Method to push an integer type element in the stack void push(struct Stack* st, int x) { if(st -> top == st -> size - 1) { printf("LOG_MESSAGE: Stack Overflow! \n"); return; } else { st -> top++; st -> s[st -> top] = x; printf("---------------------DONE----------------------\n"); } } // Method to pop an element from stack int pop(struct Stack* st) { int x = -1; if(st -> top == -1) { printf("LOG_MESSAGE: Stack Underflow! \n"); } else { x = st -> s[st -> top--]; } return x; } // Method to peek at a particalar element in the stack int peek(struct Stack st, int index) { int x = -1; if(st.top - index + 1 < 0) { printf("LOG_MESSAGE: Invalid Index!"); } x = st.s[st.top - index + 1]; return x; } // Method to check if the elements in the stack are palindrome bool palindrome(struct Stack st) { int arr[st.top]; for(int i = 0; i < st.top + 1; ++i) { arr[i] = peek(st, i + 1); } int n = sizeof(arr) / sizeof(arr[0]); int flag = 0; for(int i = 0, j = n; i < j; i++, j--) { if(arr[i] != arr[j]) { flag = 1; break; } } if(flag == 1) { return false; } else { return true; } } // DRIVER MEHTOD int main() { int choice; printf("Welcome to the Stack ADT based console application!\n"); printf("NOTE: In order to avoid segmentation fault please initialise stack before doing operations.\n"); while(1) { printf("----------------------------------------------------------------------------\n"); printf("1> To initiate a new stack please press '1'.\n"); printf("2> To push an element to the stack press '2'.\n"); printf("3> To pop an element from the stack press '3'.\n"); printf("4> To peek an element already present in the stack press '4'.\n"); printf("5> To check if the elements present in the stack form palindrome press '5'.\n"); printf("6> To check the current status of stack press '6'.\n"); printf("7> To exit from the application press '7'.\n"); printf("----------------------------------------------------------------------------\n >> "); scanf("%d", &choice); switch(choice) { case 1 : ; struct Stack st; create(&st); printf("LOG_MESSAGE: Stack has been initialised successfully!\n"); break; case 2 : ; int item; printf(" >>> Enter the element you want to push in the stack: \n >>>> "); scanf("%d", &item); push(&st, item); display(st); break; case 3 : ; int popped = pop(&st); printf("LOG_MESSAGE: Element %d has been successfully popped from stack.\n", popped); display(st); break; case 4 : ; int index; printf(" >>> Enter the index you want to peek at: \n >>>> "); scanf("%d", &index); int ret = peek(st, index); printf("LOG_MESSAGE: The element at index %d is %d. \n", index, ret); break; case 5 : ; bool check; check = palindrome(st); if(check == true) { printf("LOG_MESSAGE: The elements in the stack form a palindrome.\n"); } else { printf("LOG_MESSAGE: The elements in the stack do not form a palindrome. \n"); } break; case 6 : ; display(st); break; case 7 : ; printf("-------------------------------THANKS!----------------------------------\n"); printf("This application is written by Swarit in C11 standards, thanks for using!"); exit(0); break; default : printf("LOG_MESSAGE: Invalid Choice!\n"); } } printf("This application is written by Swarit in C11 standards, thanks for using!"); return 0; }
30.430233
108
0.474207
d6c16149541b238e330c27a4079e6c324aff9d9f
2,464
h
C
NGSpice/ngspice-30/src/spicelib/devices/cccs/cccsdefs.h
Surya-98/Snapcuit
9789a779485d8af2426a2d4e6403a06f44acadcb
[ "MIT" ]
null
null
null
NGSpice/ngspice-30/src/spicelib/devices/cccs/cccsdefs.h
Surya-98/Snapcuit
9789a779485d8af2426a2d4e6403a06f44acadcb
[ "MIT" ]
null
null
null
NGSpice/ngspice-30/src/spicelib/devices/cccs/cccsdefs.h
Surya-98/Snapcuit
9789a779485d8af2426a2d4e6403a06f44acadcb
[ "MIT" ]
null
null
null
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 Thomas L. Quarles **********/ #ifndef CCCS #define CCCS #include "ngspice/ifsim.h" #include "ngspice/gendefs.h" #include "ngspice/complex.h" #include "ngspice/cktdefs.h" /* structures used to describe Current Controlled Current Sources */ /* information needed for each instance */ typedef struct sCCCSinstance { struct GENinstance gen; #define CCCSmodPtr(inst) ((struct sCCCSmodel *)((inst)->gen.GENmodPtr)) #define CCCSnextInstance(inst) ((struct sCCCSinstance *)((inst)->gen.GENnextInstance)) #define CCCSname gen.GENname #define CCCSstate gen.GENstate const int CCCSposNode; /* number of positive node of source */ const int CCCSnegNode; /* number of negative node of source */ int CCCScontBranch; /* number of branch eq of controlling source */ char *CCCScontName; /* pointer to name of controlling instance */ double CCCScoeff; /* coefficient */ double CCCSmValue; /* Parallel multiplier */ double *CCCSposContBrPtr; /* pointer to sparse matrix element at *(positive node, control branch eq)*/ double *CCCSnegContBrPtr; /* pointer to sparse matrix element at *(negative node, control branch eq)*/ unsigned CCCScoeffGiven :1 ; /* flag to indicate coeff given */ unsigned CCCSmGiven :1 ; /* flag to indicate multiplier given */ int CCCSsenParmNo; /* parameter # for sensitivity use; set equal to 0 if not a design parameter*/ } CCCSinstance ; /* per model data */ typedef struct sCCCSmodel { /* model structure for a source */ struct GENmodel gen; #define CCCSmodType gen.GENmodType #define CCCSnextModel(inst) ((struct sCCCSmodel *)((inst)->gen.GENnextModel)) #define CCCSinstances(inst) ((CCCSinstance *)((inst)->gen.GENinstances)) #define CCCSmodName gen.GENmodName } CCCSmodel; /* device parameters */ enum { CCCS_GAIN = 1, CCCS_CONTROL, CCCS_POS_NODE, CCCS_NEG_NODE, CCCS_CONT_BR, CCCS_GAIN_SENS, CCCS_CURRENT, CCCS_POWER, CCCS_VOLTS, CCCS_M, }; /* model parameters */ /* device questions */ enum { CCCS_QUEST_SENS_REAL = 201, CCCS_QUEST_SENS_IMAG, CCCS_QUEST_SENS_MAG, CCCS_QUEST_SENS_PH, CCCS_QUEST_SENS_CPLX, CCCS_QUEST_SENS_DC, }; /* model questions */ #include "cccsext.h" #endif /*CCCS*/
26.494624
86
0.67776
d6c2114bd46c200963304959d81bee98f0815082
4,148
c
C
B2G/system/media/wilhelm/src/ut/OpenSLESUT.c
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/system/media/wilhelm/src/ut/OpenSLESUT.c
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/system/media/wilhelm/src/ut/OpenSLESUT.c
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
/* * Copyright (C) 2010 The Android Open Source Project * * 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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** \file OpenSLESUT.c OpenSL ES Utility Toolkit */ #include <SLES/OpenSLES.h> #ifdef ANDROID #include <SLES/OpenSLES_Android.h> #endif #include "OpenSLESUT.h" #include <stdio.h> #include <string.h> /** \brief Maps an interface ID to its display name */ typedef struct { const SLInterfaceID *iid; ///< The interface ID const char *name; ///< The display name } Pair; // ## is token concatenation e.g. a##b becomes ab // # is stringize operator to convert a symbol to a string constant e.g. #a becomes "a" #define _(x) { &SL_IID_##x, #x } /** \brief Array of mappings from interface IDs to display names */ static Pair pairs[] = { _(3DCOMMIT), _(3DDOPPLER), _(3DGROUPING), _(3DLOCATION), _(3DMACROSCOPIC), _(3DSOURCE), _(AUDIODECODERCAPABILITIES), _(AUDIOENCODER), _(AUDIOENCODERCAPABILITIES), _(AUDIOIODEVICECAPABILITIES), _(BASSBOOST), _(BUFFERQUEUE), _(DEVICEVOLUME), _(DYNAMICINTERFACEMANAGEMENT), _(DYNAMICSOURCE), _(EFFECTSEND), _(ENGINE), _(ENGINECAPABILITIES), _(ENVIRONMENTALREVERB), _(EQUALIZER), _(LED), _(METADATAEXTRACTION), _(METADATATRAVERSAL), _(MIDIMESSAGE), _(MIDIMUTESOLO), _(MIDITEMPO), _(MIDITIME), _(MUTESOLO), _(NULL), _(OBJECT), _(OUTPUTMIX), _(PITCH), _(PLAY), _(PLAYBACKRATE), _(PREFETCHSTATUS), _(PRESETREVERB), _(RATEPITCH), _(RECORD), _(SEEK), _(THREADSYNC), _(VIBRA), _(VIRTUALIZER), _(VISUALIZATION), _(VOLUME), #if 0 // ifdef USE_OUTPUTMIXEXT _(OUTPUTMIXEXT), #endif #ifdef ANDROID _(ANDROIDEFFECT), _(ANDROIDEFFECTCAPABILITIES), _(ANDROIDEFFECTSEND), _(ANDROIDCONFIGURATION), _(ANDROIDSIMPLEBUFFERQUEUE) #endif }; /** \brief Print an interface ID in human-readable format */ void slesutPrintIID(SLInterfaceID iid) { Pair *p; const Pair *end = &pairs[sizeof(pairs)/sizeof(pairs[0])]; for (p = pairs; p != end; ++p) { if (!memcmp(*p->iid, iid, sizeof(struct SLInterfaceID_))) { printf("SL_IID_%s = ", p->name); break; } } printf( "{ 0x%08X, 0x%04X, 0x%04X, 0x%04X, { 0x%02X, 0x%02X, 0x%02X, 0x%02X, 0x%02X, 0x%02X } }\n", (unsigned) iid->time_low, iid->time_mid, iid->time_hi_and_version, iid->clock_seq, iid->node[0], iid->node[1], iid->node[2], iid->node[3], iid->node[4], iid->node[5]); } /** \brief Print an array of interface IDs in human-readable format, * including whether they are required or optional */ void slesutPrintIIDs(SLInterfaceID *pInterfaceIds, SLboolean *pInterfaceRequired, unsigned numInterfaces) { unsigned i; for (i = 0; i < numInterfaces; ++i) { printf("interfaces[%u]=", i); slesutPrintIID(pInterfaceIds[i]); printf(" %s\n", (unsigned) pInterfaceRequired[i] ? "required" : "optional"); } } /** \brief Convert an object ID to a string or NULL. */ const char *slesutObjectIDToString(SLuint32 objectID) { static const char * const objectIDstrings[10] = { "SL_OBJECTID_ENGINE", "SL_OBJECTID_LEDDEVICE", "SL_OBJECTID_VIBRADEVICE", "SL_OBJECTID_AUDIOPLAYER", "SL_OBJECTID_AUDIORECORDER", "SL_OBJECTID_MIDIPLAYER", "SL_OBJECTID_LISTENER", "SL_OBJECTID_3DGROUP", "SL_OBJECTID_OUTPUTMIX", "SL_OBJECTID_METADATAEXTRACTOR" }; return (0x1001 <= objectID) && (objectID <= 0x100A) ? objectIDstrings[objectID - 0x1001] : NULL; }
26.935065
100
0.648505
d6c2dceae0d8241131adf65a33b145ed2424f339
5,181
c
C
engine/glfw/lib/stream.c
cmarincia/defold
2bf9ec3dfa2f59a9e1808f4768ff9a1fbaac61b4
[ "ECL-2.0", "Apache-2.0" ]
2,231
2020-05-19T08:25:22.000Z
2022-03-31T18:51:23.000Z
engine/glfw/lib/stream.c
cmarincia/defold
2bf9ec3dfa2f59a9e1808f4768ff9a1fbaac61b4
[ "ECL-2.0", "Apache-2.0" ]
1,485
2020-05-19T10:56:52.000Z
2022-03-31T16:12:42.000Z
engine/glfw/lib/stream.c
cmarincia/defold
2bf9ec3dfa2f59a9e1808f4768ff9a1fbaac61b4
[ "ECL-2.0", "Apache-2.0" ]
197
2020-05-19T10:20:47.000Z
2022-03-30T09:52:13.000Z
//======================================================================== // GLFW - An OpenGL framework // Platform: Any // API version: 2.7 // WWW: http://www.glfw.org/ //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard // Copyright (c) 2006-2010 Camilla Berglund <elmindreda@elmindreda.org> // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for any purpose, // including commercial applications, and to alter it and redistribute it // freely, subject to the following restrictions: // // 1. The origin of this software must not be misrepresented; you must not // claim that you wrote the original software. If you use this software // in a product, an acknowledgment in the product documentation would // be appreciated but is not required. // // 2. Altered source versions must be plainly marked as such, and must not // be misrepresented as being the original software. // // 3. This notice may not be removed or altered from any source // distribution. // //======================================================================== #ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #endif #include "internal.h" //======================================================================== // Opens a GLFW stream with a file //======================================================================== int _glfwOpenFileStream( _GLFWstream *stream, const char* name, const char* mode ) { memset( stream, 0, sizeof(_GLFWstream) ); stream->file = fopen( name, mode ); if( stream->file == NULL ) { return GL_FALSE; } return GL_TRUE; } //======================================================================== // Opens a GLFW stream with a memory block //======================================================================== int _glfwOpenBufferStream( _GLFWstream *stream, void *data, long size ) { memset( stream, 0, sizeof(_GLFWstream) ); stream->data = data; stream->size = size; return GL_TRUE; } //======================================================================== // Reads data from a GLFW stream //======================================================================== long _glfwReadStream( _GLFWstream *stream, void *data, long size ) { if( stream->file != NULL ) { return (long) fread( data, 1, size, stream->file ); } if( stream->data != NULL ) { // Check for EOF if( stream->position == stream->size ) { return 0; } // Clamp read size to available data if( stream->position + size > stream->size ) { size = stream->size - stream->position; } // Perform data read memcpy( data, (unsigned char*) stream->data + stream->position, size ); stream->position += size; return size; } return 0; } //======================================================================== // Returns the current position of a GLFW stream //======================================================================== long _glfwTellStream( _GLFWstream *stream ) { if( stream->file != NULL ) { return ftell( stream->file ); } if( stream->data != NULL ) { return stream->position; } return 0; } //======================================================================== // Sets the current position of a GLFW stream //======================================================================== int _glfwSeekStream( _GLFWstream *stream, long offset, int whence ) { long position; if( stream->file != NULL ) { if( fseek( stream->file, offset, whence ) != 0 ) { return GL_FALSE; } return GL_TRUE; } if( stream->data != NULL ) { position = offset; // Handle whence parameter if( whence == SEEK_CUR ) { position += stream->position; } else if( whence == SEEK_END ) { position += stream->size; } else if( whence != SEEK_SET ) { return GL_FALSE; } // Clamp offset to buffer bounds and apply it if( position > stream->size ) { stream->position = stream->size; } else if( position < 0 ) { stream->position = 0; } else { stream->position = position; } return GL_TRUE; } return GL_FALSE; } //======================================================================== // Closes a GLFW stream //======================================================================== void _glfwCloseStream( _GLFWstream *stream ) { if( stream->file != NULL ) { fclose( stream->file ); } // Nothing to be done about (user allocated) memory blocks memset( stream, 0, sizeof(_GLFWstream) ); }
26.166667
82
0.465161
d6c3092d47b508bc94d67d26c48945c3671451a5
4,713
h
C
src/tbox/object/dictionary.h
yangjz1125/tbox
ae81e7b27348fb23225151976a29dae145a11bbf
[ "Apache-2.0" ]
1
2019-12-03T09:13:51.000Z
2019-12-03T09:13:51.000Z
src/tbox/object/dictionary.h
apexliu/tbox
0621b7618339bfe124a17f35e1ebb967a2b09147
[ "Apache-2.0" ]
null
null
null
src/tbox/object/dictionary.h
apexliu/tbox
0621b7618339bfe124a17f35e1ebb967a2b09147
[ "Apache-2.0" ]
null
null
null
/*!The Treasure Box Library * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright (C) 2009 - 2018, TBOOX Open Source Group. * * @author ruki * @file dictionary.h * @ingroup object * */ #ifndef TB_OBJECT_DICTIONARY_H #define TB_OBJECT_DICTIONARY_H /* ////////////////////////////////////////////////////////////////////////////////////// * includes */ #include "prefix.h" /* ////////////////////////////////////////////////////////////////////////////////////// * extern */ __tb_extern_c_enter__ /* ////////////////////////////////////////////////////////////////////////////////////// * macros */ #define TB_OC_DICTIONARY_SIZE_MICRO (64) #define TB_OC_DICTIONARY_SIZE_SMALL (256) #define TB_OC_DICTIONARY_SIZE_LARGE (65536) /* ////////////////////////////////////////////////////////////////////////////////////// * types */ /// the dictionary item type typedef struct __tb_oc_dictionary_item_t { /// the key tb_char_t const* key; /// the value tb_object_ref_t val; }tb_oc_dictionary_item_t; /* ////////////////////////////////////////////////////////////////////////////////////// * interfaces */ /*! init dictionary * * @code // init dictionary // {"key1": "hello", "key2" :"world", "key3": 12345, "key4": true} tb_object_ref_t dict = tb_oc_dictionary_init(0, tb_false); if (dict) { // key1 => hello tb_oc_dictionary_insert(dict, "key1", tb_oc_string_init_from_cstr("hello")); // key2 => world tb_oc_dictionary_insert(dict, "key2", tb_oc_string_init_from_cstr("world")); // key3 => 12345 tb_oc_dictionary_insert(dict, "key3", tb_oc_number_init_from_sint32(12345)); // key4 => true tb_oc_dictionary_insert(dict, "key4", tb_oc_boolean_true()); // exit dictionary tb_object_exit(dict); } * @endcode * * @param size the dictionary size, using the default size if be zero * @param incr is increase refn? * * @return the dictionary object */ tb_object_ref_t tb_oc_dictionary_init(tb_size_t size, tb_bool_t incr); /*! the dictionary size * * @param dictionary the dictionary object * * @return the dictionary size */ tb_size_t tb_oc_dictionary_size(tb_object_ref_t dictionary); /*! set the dictionary incr * * @param dictionary the dictionary object * @param incr is increase refn? */ tb_void_t tb_oc_dictionary_incr(tb_object_ref_t dictionary, tb_bool_t incr); /*! the dictionary iterator * * @param dictionary the dictionary object * * @return the dictionary iterator * * @code tb_for_all (tb_oc_dictionary_item_t*, item, tb_oc_dictionary_itor(dictionary)) { if (item) { tb_char_t const* key = item->key; tb_object_ref_t val = item->val; // ... } } * @endcode */ tb_iterator_ref_t tb_oc_dictionary_itor(tb_object_ref_t dictionary); /*! get the dictionary value * * @param dictionary the dictionary object * @param key the key * * @return the dictionary value */ tb_object_ref_t tb_oc_dictionary_value(tb_object_ref_t dictionary, tb_char_t const* key); /*! insert dictionary item * * @param dictionary the dictionary object * @param key the key * @param val the value */ tb_void_t tb_oc_dictionary_insert(tb_object_ref_t dictionary, tb_char_t const* key, tb_object_ref_t val); /*! remove dictionary item * * @param dictionary the dictionary object * @param key the key */ tb_void_t tb_oc_dictionary_remove(tb_object_ref_t dictionary, tb_char_t const* key); /* ////////////////////////////////////////////////////////////////////////////////////// * extern */ __tb_extern_c_leave__ #endif
28.737805
119
0.582219
d6c33ed23930ca333e61621161d8ec432a6411c9
367
h
C
blocks/QuickTime/include/msw/CFNetwork.h
rsh/Cinder-Emscripten
4a08250c56656865c7c3a52fb9380980908b1439
[ "BSD-2-Clause" ]
24
2015-12-07T23:03:27.000Z
2021-04-03T14:55:54.000Z
blocks/QuickTime/include/msw/CFNetwork.h
rsh/Cinder-Emscripten
4a08250c56656865c7c3a52fb9380980908b1439
[ "BSD-2-Clause" ]
8
2020-01-05T23:38:51.000Z
2020-02-23T22:18:18.000Z
blocks/QuickTime/include/msw/CFNetwork.h
rsh/Cinder-Emscripten
4a08250c56656865c7c3a52fb9380980908b1439
[ "BSD-2-Clause" ]
6
2015-12-17T18:26:57.000Z
2018-11-22T00:11:55.000Z
/* File: CFNetwork.h Contains: CoreFoundation Network header Version: QuickTime 7.3 Copyright: (c) 2007 (c) 2001 by Apple Computer, Inc., all rights reserved Bugs?: For bug reports, consult the following page on the World Wide Web: http://developer.apple.com/bugreporter/ */
22.9375
79
0.572207
d6c6304488446f4ade149d1fd7fd6655e88058cf
1,507
h
C
h/ip_spec.h
wyan/ack
cf1b02d26cdfaff4417011c49d112b8dfc877df2
[ "BSD-3-Clause" ]
282
2015-07-01T10:17:17.000Z
2022-03-31T02:14:30.000Z
h/ip_spec.h
wyan/ack
cf1b02d26cdfaff4417011c49d112b8dfc877df2
[ "BSD-3-Clause" ]
176
2016-06-07T06:46:55.000Z
2022-03-19T21:40:17.000Z
h/ip_spec.h
wyan/ack
cf1b02d26cdfaff4417011c49d112b8dfc877df2
[ "BSD-3-Clause" ]
58
2015-12-02T16:29:18.000Z
2022-01-26T17:54:35.000Z
/* * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ /* Contents of flags used when describing interpreter opcodes */ #define RCS_IP "$Id$" #define OPTYPE 07 /* type field in flag */ #define OPMINI 0 /* m MINI */ #define OPSHORT 1 /* s SHORT */ #define OPNO 2 /* - No operand */ #define OP8 3 /* 1 1-byte signed operand */ #define OP16 4 /* 2 2-byte signed operand */ #define OP32 5 /* 4 4-byte signed operand */ #define OP64 6 /* 8 8-byte signed operand */ #define OP16U 7 /* u 2-byte unsigned operand */ #define OPESC 010 /* e escaped opcode */ #define OPWORD 020 /* w operand is word multiple */ #define OPNZ 040 /* o operand starts at 1 ( or wordsize if w-flag) */ #define OPRANGE 0300 /* Range of operands: Positive, negative, both */ #define OP_BOTH 0000 /* the default */ #define OP_POS 0100 /* p Positive (>=0) operands only */ #define OP_NEG 0200 /* n Negative (<0) operands only */ struct opform { char i_opcode ; /* the opcode number */ char i_flag ; /* the flag byte */ char i_low ; /* the interpreter first opcode */ char i_num ; /* the number of shorts/minis (optional) */ }; /* Escape indicators */ #define ESC 254 /* To escape group */ #define ESC_L 255 /* To 32 and 64 bit operands */
36.756098
79
0.595886
d6c7455a089abf3e0813e7c561876bbe112dc607
326
c
C
test/SwiftSyntax/AllTokenKindsInSyntaxGybSupport.c
mklemons/swift
8c5ff31b21e932174e1c4d04f2ef79d1d0400e8b
[ "Apache-2.0" ]
3
2018-07-27T01:54:17.000Z
2020-10-21T16:09:43.000Z
test/SwiftSyntax/AllTokenKindsInSyntaxGybSupport.c
mklemons/swift
8c5ff31b21e932174e1c4d04f2ef79d1d0400e8b
[ "Apache-2.0" ]
1
2019-02-12T19:01:42.000Z
2019-02-12T19:01:42.000Z
test/SwiftSyntax/AllTokenKindsInSyntaxGybSupport.c
mklemons/swift
8c5ff31b21e932174e1c4d04f2ef79d1d0400e8b
[ "Apache-2.0" ]
null
null
null
// RUN: %utils/gyb --line-directive '' %S/Inputs/TokenKindList.txt.gyb | sort > %T/python_kinds.txt // RUN: %swift-syntax-test --dump-all-syntax-tokens | sort > %T/def_kinds.txt // RUN: diff %T/def_kinds.txt %T/python_kinds.txt // Check that all token kinds listed in TokenKinds.def are also in // gyb_syntax_support/Token.py
54.333333
99
0.726994
d6c990cff1cec5ed8192295e5b26f510eb5b75e5
41,644
h
C
applications/plugins/DEPRECATED/frame/DualQuatBlending.h
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/DEPRECATED/frame/DualQuatBlending.h
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/DEPRECATED/frame/DualQuatBlending.h
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH * * * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU Lesser General Public License as published by * * the Free Software Foundation; either version 2.1 of the License, or (at * * your option) any later version. * * * * This program 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 Lesser General Public License * * for more details. * * * * You should have received a copy of the GNU Lesser General Public License * * along with this program. If not, see <http://www.gnu.org/licenses/>. * ******************************************************************************* * Authors: The SOFA Team and external contributors (see Authors.txt) * * * * Contact information: contact@sofa-framework.org * ******************************************************************************/ #ifndef FRAME_DualQuatBlending_H #define FRAME_DualQuatBlending_H //#include <sofa/defaulttype/Vec.h> //#include <sofa/defaulttype/Mat.h> //#include <sofa/helper/vector.h> //#include <sofa/helper/rmath.h> //#include <iostream> namespace sofa { namespace defaulttype { /** Template class used to implement the linear blending. The default class does nothing, all the implementation is in the specializations in file DualQuatBlending.inl */ template<class In, class Out, class Material, int nbRef, int type> class DualQuatBlending {}; //using std::endl; //using sofa::helper::vector; //template<int N, typename real> //class DualQuatCoord; //template<typename real> //class DualQuatCoord<3,real> //{ //public: // typedef real value_type; // typedef real Real; // typedef Vec<3,Real> Pos; // typedef Vec<3,Real> Vec3; // typedef Vec<4,Real> Quat; //protected: // Quat orientation; // Quat dual; //public: // DualQuatCoord (const Quat &Dual, const Quat &orient) // : dual(Dual), orientation(orient) {} // template<typename real2> // DualQuatCoord(const DualQuatCoord<3,real2>& c) // : dual(c.getDual()), orientation(c.getOrientation()) {} // template<typename real2> // DualQuatCoord(const RigidCoord<3,real2>& c) // { // for(unsigned int i=0;i<4;i++) orientation[i] = c.getOrientation()[i]; // setTranslation(c.getCenter()); // } // DualQuatCoord () { clear(); } // void clear() { dual[0]=dual[1]=dual[2]=dual[3]=orientation[0]=orientation[1]=orientation[2]=orientation[3]=(Real)0.; } // template<typename real2> // void operator =(const DualQuatCoord<3,real2>& c) // { // dual = c.getDual(); // orientation = c.getOrientation(); // } // template<typename real2> // void operator =(const RigidCoord<3,real2>& c) // { // for(unsigned int i=0;i<4;i++) orientation[i] = c.getOrientation()[i]; // setTranslation(c.getCenter()); // } // void operator =(const Vec3& p) // { // setTranslation(p); // } // void setTranslation(const Vec3& p) // { // dual[0] = (real)0.5* ( p[0]*orientation[3] + p[1]*orientation[2] - p[2]*orientation[1] ); // dual[1] = (real)0.5* (-p[0]*orientation[2] + p[1]*orientation[3] + p[2]*orientation[0] ); // dual[2] = (real)0.5* ( p[0]*orientation[1] - p[1]*orientation[0] + p[2]*orientation[3] ); // dual[3] = -(real)0.5* ( p[0]*orientation[0] + p[1]*orientation[1] + p[2]*orientation[2] ); // } // Vec3 getTranslation() // { // Vec3 t; // t[0] = (real)2. * ( -dual[3]*orientation[0] + dual[0]*orientation[3] - dual[1]*orientation[2] + dual[2]*orientation[1] ); // t[1] = (real)2. * ( -dual[3]*orientation[1] + dual[0]*orientation[2] + dual[1]*orientation[3] - dual[2]*orientation[0] ); // t[2] = (real)2. * ( -dual[3]*orientation[2] - dual[0]*orientation[1] + dual[1]*orientation[0] + dual[2]*orientation[3] ); // return t; // } // DualQuatCoord<3,real> operator + (const Vec<6,real>& a) const // { // DualQuatCoord r; // r.orientation[0] = orientation[0] + (real)0.5* (getVOrientation(a)[0] * orientation[3] + getVOrientation(a)[1] * orientation[2] - getVOrientation(a)[2] * orientation[1]); // r.orientation[1] = orientation[1] +(real)0.5* (getVOrientation(a)[1] * orientation[3] + getVOrientation(a)[2] * orientation[0] - getVOrientation(a)[0] * orientation[2]); // r.orientation[2] = orientation[2] +(real)0.5* (getVOrientation(a)[2] * orientation[3] + getVOrientation(a)[0] * orientation[1] - getVOrientation(a)[1] * orientation[0]); // r.orientation[3] = orientation[3] +(real)0.5* (-(getVOrientation(a)[0] * orientation[0] + getVOrientation(a)[1] * orientation[1] + getVOrientation(a)[2] * orientation[2])); // r.setTranslation(getTranslation()+getVCenter(a)); // r.orientation.normalize(); // return r; // } // // get velocity/quaternion change mapping : dq = J(q) v // void velocity_getJ( Mat<4,3,real>& J0, Mat<4,3,real>& JE) // { // // multiplication by orientation quaternion // J0[0][0] = orientation[3]; J0[0][1] = orientation[2]; J0[0][2] =-orientation[1]; // J0[1][0] =-orientation[2]; J0[1][1] = orientation[3]; J0[1][2] = orientation[0]; // J0[2][0] = orientation[1]; J0[2][1] =-orientation[0]; J0[2][2] = orientation[3]; // J0[3][0] =-orientation[0]; J0[3][1] =-orientation[1]; J0[3][2] =-orientation[2]; // J0*=(real)0.5; // Vec3 t=getTranslation(); // JE[0][0] = dual[3]+orientation[1]*t[1]+orientation[2]*t[2]; JE[0][1] = dual[2]-orientation[1]*t[0]-orientation[3]*t[2]; JE[0][2] =-dual[1]-orientation[2]*t[0]+orientation[3]*t[1]; // JE[1][0] =-dual[2]-orientation[0]*t[1]+orientation[3]*t[2]; JE[1][1] = dual[3]+orientation[0]*t[0]+orientation[2]*t[2]; JE[1][2] = dual[0]-orientation[3]*t[0]-orientation[2]*t[1]; // JE[2][0] = dual[1]-orientation[3]*t[1]-orientation[0]*t[2]; JE[2][1] =-dual[0]+orientation[3]*t[0]-orientation[1]*t[2]; JE[2][2] = dual[3]+orientation[0]*t[0]+orientation[1]*t[1]; // JE[3][0] =-dual[0]+orientation[2]*t[1]-orientation[1]*t[2]; JE[3][1] =-dual[1]-orientation[2]*t[0]+orientation[0]*t[2]; JE[3][2] =-dual[2]+orientation[1]*t[0]-orientation[0]*t[1]; // JE*=(real)0.5; // } // // get quaternion change: dqn = J(q) dq // DualQuatCoord<3,real> velocity_applyJ( const Vec<6,real>& a ) // { // DualQuatCoord r ; // r.orientation[0] = (real)0.5* (getVOrientation(a)[0] * orientation[3] + getVOrientation(a)[1] * orientation[2] - getVOrientation(a)[2] * orientation[1]); // r.orientation[1] = (real)0.5* (getVOrientation(a)[1] * orientation[3] + getVOrientation(a)[2] * orientation[0] - getVOrientation(a)[0] * orientation[2]); // r.orientation[2] = (real)0.5* (getVOrientation(a)[2] * orientation[3] + getVOrientation(a)[0] * orientation[1] - getVOrientation(a)[1] * orientation[0]); // r.orientation[3] = (real)0.5* (-(getVOrientation(a)[0] * orientation[0] + getVOrientation(a)[1] * orientation[1] + getVOrientation(a)[2] * orientation[2])); // r.setTranslation(getTranslation()+getVCenter(a)); // r.dual-=dual; // //Mat<4,3,real> J0,JE; // //velocity_getJ(J0,JE); // //r.orientation=J0*getVOrientation(v); // //r.dual=JE*getVOrientation(a)+J0*getVCenter(v); // return r; // } // // get velocity : dq = JT(q) dqn // Vec<6,real> velocity_applyJT( const DualQuatCoord<3,real>& dq ) // { // Mat<4,3,real> J0,JE; // velocity_getJ(J0,JE); // Vec<6,real> v; // getVOrientation(v)=J0.transposed()*dq.orientation+JE.transposed()*dq.dual; // getVCenter(v)=J0.transposed()*dq.dual; // return v; // } // void operator +=(const DualQuatCoord<3,real>& a) // { // dual += a.getDual(); // orientation += a.getOrientation(); // } // template<typename real2> // void operator*=(real2 a) // { // orientation *= a; // dual *= a; // } // template<typename real2> // void operator/=(real2 a) // { // orientation /= a; // dual /= a; // } // template<typename real2> // DualQuatCoord<3,real> operator*(real2 a) const // { // DualQuatCoord r = *this; // r*=a; // return r; // } // /// dot product, mostly used to compute residuals as sqrt(x*x) // Real operator*(const DualQuatCoord<3,real>& a) const // { // return dual[0]*a.dual[0]+dual[1]*a.dual[1]+dual[2]*a.dual[2]+dual[3]*a.dual[3] // +orientation[0]*a.orientation[0]+orientation[1]*a.orientation[1] // +orientation[2]*a.orientation[2]+orientation[3]*a.orientation[3]; // } // /// Squared norm // real norm2() const // { // real r = (real)0.; // for (int i=0;i<4;i++) r += orientation[i]*orientation[i] + dual[i]*dual[i]; // return r; // } // /// Euclidean norm // real norm() const // { // return helper::rsqrt(norm2()); // } // void normalize() // { // real Q0 = (real) sqrt ( orientation[0]*orientation[0] + orientation[1]*orientation[1] + orientation[2]*orientation[2] + orientation[3]*orientation[3] ); // if( Q0 == 0) return; // real Q0QE = (real) ( orientation[0]*dual[0] + orientation[1]*dual[1] + orientation[2]*dual[2] + orientation[3]*dual[3] ); // real Q0inv=(real)1./Q0; // orientation *= Q0inv; // dual -= orientation*Q0QE*Q0inv; // dual *= Q0inv; // } // // get jacobian of the normalization : dqn = J(q) dq // void normalize_getJ( Mat<4,4,real>& J0, Mat<4,4,real>& JE) // { // J0.fill(0); JE.fill(0); // unsigned int i,j; // real Q0 = (real) sqrt ( orientation[0]*orientation[0] + orientation[1]*orientation[1] + orientation[2]*orientation[2] + orientation[3]*orientation[3] ); // if(Q0==0) return; // real Q0QE = (real) ( orientation[0]*dual[0] + orientation[1]*dual[1] + orientation[2]*dual[2] + orientation[3]*dual[3] ); // real Q0inv=(real)1./Q0; // DualQuatCoord<3,real> qn; // qn.orientation = orientation*Q0inv; // qn.dual = dual-qn.orientation*Q0QE*Q0inv; // qn.dual *= Q0inv; // for(i=0;i<4;i++) J0[i][i]=(real)1.-qn.orientation[i]*qn.orientation[i]; // for(i=0;i<4;i++) for(j=0;j<i;j++) J0[i][j]=J0[j][i]=-qn.orientation[j]*qn.orientation[i]; // for(i=0;i<4;i++) for(j=0;j<=i;j++) JE[i][j]=JE[j][i]=-qn.dual[j]*qn.orientation[i]-qn.dual[i]*qn.orientation[j]; // J0 *= Q0inv; // JE -= J0*Q0QE*Q0inv; // JE *= Q0inv; // } // // get normalized quaternion change: dqn = J(q) dq // DualQuatCoord<3,real> normalize_applyJ( const DualQuatCoord<3,real>& dq ) // { // Mat<4,4,real> J0,JE; // normalize_getJ(J0,JE); // DualQuatCoord r; // r.orientation=J0*dq.orientation; // r.dual=JE*dq.orientation+J0*dq.dual; // return r; // } // // get unnormalized quaternion change: dq = JT(q) dqn // DualQuatCoord<3,real> normalize_applyJT( const DualQuatCoord<3,real>& dqn ) // { // Mat<4,4,real> J0,JE; // normalize_getJ(J0,JE); // DualQuatCoord r; // r.orientation=J0*dqn.orientation+JE*dqn.dual; // r.dual=J0*dqn.dual; // return r; // } // // get Jacobian change: dJ = H(p) dq // void normalize_getdJ( Mat<4,4,real>& dJ0, Mat<4,4,real>& dJE, const DualQuatCoord<3,real>& dq ) // { // dJ0.fill(0); dJE.fill(0); // unsigned int i,j; // real Q0 = (real) sqrt ( orientation[0]*orientation[0] + orientation[1]*orientation[1] + orientation[2]*orientation[2] + orientation[3]*orientation[3] ); // if(Q0==0) return; // real Q0QE = (real) ( orientation[0]*dual[0] + orientation[1]*dual[1] + orientation[2]*dual[2] + orientation[3]*dual[3] ); // real Q0inv=(real)1./Q0; // real Q0inv2=Q0inv*Q0inv; // real Q0QE2=Q0QE*Q0inv2; // DualQuatCoord<3,real> qn; // qn.orientation = orientation*Q0inv; // qn.dual = dual-qn.orientation*Q0QE*Q0inv; // qn.dual *= Q0inv; // real q0dqe = (real) ( qn.orientation[0]*dq.dual[0] + qn.orientation[1]*dq.dual[1] + qn.orientation[2]*dq.dual[2] + qn.orientation[3]*dq.dual[3]); // if(dq.orientation[0] || dq.orientation[1] || dq.orientation[2] || dq.orientation[3]) { // real q0dq0 = (real) ( qn.orientation[0]*dq.orientation[0] + qn.orientation[1]*dq.orientation[1] + qn.orientation[2]*dq.orientation[2] + qn.orientation[3]*dq.orientation[3]); // real qedq0 = (real) ( qn.dual[0]*dq.orientation[0] + qn.dual[1]*dq.orientation[1] + qn.dual[2]*dq.orientation[2] + qn.dual[3]*dq.orientation[3]); // for(i=0;i<4;i++) { // for(j=0;j<=i;j++) { // dJ0[i][j]=dJ0[j][i]=-qn.orientation[j]*dq.orientation[i]-qn.orientation[i]*dq.orientation[j]+(real)3.*q0dq0*qn.orientation[i]*qn.orientation[j]; // dJE[i][j]=dJE[j][i]=-qn.orientation[j]*dq.dual[i]-qn.orientation[i]*dq.dual[j]+(real)3.*q0dqe*qn.orientation[i]*qn.orientation[j] // -qn.dual[j]*dq.orientation[i]-qn.dual[i]*dq.orientation[j]+(real)3.*qedq0*qn.orientation[i]*qn.orientation[j] // +(real)3.*q0dq0*(qn.dual[j]*qn.orientation[i]+qn.dual[i]*qn.orientation[j]); // } // dJ0[i][i]-=q0dq0; // dJE[i][i]-=q0dqe+qedq0; // } // dJ0*=Q0inv2; dJE*=Q0inv2; // for(i=0;i<4;i++) for(j=0;j<4;j++) dJE[i][j]-=(real)2.*dJ0[i][j]*Q0QE2; // } // else { // for(i=0;i<4;i++) { // for(j=0;j<=i;j++) dJE[i][j]=dJE[j][i]=-qn.orientation[j]*dq.dual[i]-qn.orientation[i]*dq.dual[j]+(real)3.*q0dqe*qn.orientation[i]*qn.orientation[j]; // dJE[i][i]-=q0dqe; // } // dJE*=Q0inv2; // } // } // Quat& getDual () { return dual; } // Quat& getOrientation () { return orientation; } // const Quat& getDual () const { return dual; } // const Quat& getOrientation () const { return orientation; } // static DualQuatCoord<3,real> identity() { // DualQuatCoord c; // c.getOrientation[3]=(real)1.; // return c; // } // Vec3 rotate(const Vec3& v) const // { // return Vec3( // (Real)((1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[2] * orientation[2]))*v[0] + (2.0f * (orientation[0] * orientation[1] - orientation[2] * orientation[3])) * v[1] + (2.0f * (orientation[2] * orientation[0] + orientation[1] * orientation[3])) * v[2]), // (Real)((2.0f * (orientation[0] * orientation[1] + orientation[2] * orientation[3]))*v[0] + (1.0f - 2.0f * (orientation[2] * orientation[2] + orientation[0] * orientation[0]))*v[1] + (2.0f * (orientation[1] * orientation[2] - orientation[0] * orientation[3]))*v[2]), // (Real)((2.0f * (orientation[2] * orientation[0] - orientation[1] * orientation[3]))*v[0] + (2.0f * (orientation[1] * orientation[2] + orientation[0] * orientation[3]))*v[1] + (1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[0] * orientation[0]))*v[2]) // ); // } // Vec3 inverseRotate(const Vec3& v) const // { // return Vec3( // (Real)((1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[2] * orientation[2]))*v[0] + (2.0f * (orientation[0] * orientation[1] + orientation[2] * orientation[3])) * v[1] + (2.0f * (orientation[2] * orientation[0] - orientation[1] * orientation[3])) * v[2]), // (Real)((2.0f * (orientation[0] * orientation[1] - orientation[2] * orientation[3]))*v[0] + (1.0f - 2.0f * (orientation[2] * orientation[2] + orientation[0] * orientation[0]))*v[1] + (2.0f * (orientation[1] * orientation[2] + orientation[0] * orientation[3]))*v[2]), // (Real)((2.0f * (orientation[2] * orientation[0] + orientation[1] * orientation[3]))*v[0] + (2.0f * (orientation[1] * orientation[2] - orientation[0] * orientation[3]))*v[1] + (1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[0] * orientation[0]))*v[2]) // ); // } // void invert() // { // for ( unsigned int j = 0; j < 3; j++ ) // { // orientation[j]=-orientation[j]; // dual[j]=-dual[j]; // } // } // DualQuatCoord<3,real> inverse( ) // { // DualQuatCoord r; // for ( unsigned int j = 0; j < 3; j++ ) // { // r.orientation[j]=-orientation[j]; // r.dual[j]=-dual[j]; // } // r.orientation[3]=orientation[3]; // r.dual[3]=dual[3]; // return r; // } // /// compute the product with another frame on the right // DualQuatCoord<3,real> multRight( const DualQuatCoord<3,real>& c ) const // { // DualQuatCoord r; // //r.orientation = orientation * c.getOrientation(); // //r.dual = orientation * c.getDual() + dual * c.getOrientation(); // r.orientation[0] = orientation[3]*c.getOrientation()[0] - orientation[2]*c.getOrientation()[1] + orientation[1]*c.getOrientation()[2] + orientation[0]*c.getOrientation()[3]; // r.orientation[1] = orientation[2]*c.getOrientation()[0] + orientation[3]*c.getOrientation()[1] - orientation[0]*c.getOrientation()[2] + orientation[1]*c.getOrientation()[3]; // r.orientation[2] =-orientation[1]*c.getOrientation()[0] + orientation[0]*c.getOrientation()[1] + orientation[3]*c.getOrientation()[2] + orientation[2]*c.getOrientation()[3]; // r.orientation[3] =-orientation[0]*c.getOrientation()[0] - orientation[1]*c.getOrientation()[1] - orientation[2]*c.getOrientation()[2] + orientation[3]*c.getOrientation()[3]; // r.dual[0] = orientation[3]*c.getDual()[0] - orientation[2]*c.getDual()[1] + orientation[1]*c.getDual()[2] + orientation[0]*c.getDual()[3]; // r.dual[1] = orientation[2]*c.getDual()[0] + orientation[3]*c.getDual()[1] - orientation[0]*c.getDual()[2] + orientation[1]*c.getDual()[3]; // r.dual[2] =-orientation[1]*c.getDual()[0] + orientation[0]*c.getDual()[1] + orientation[3]*c.getDual()[2] + orientation[2]*c.getDual()[3]; // r.dual[3] =-orientation[0]*c.getDual()[0] - orientation[1]*c.getDual()[1] - orientation[2]*c.getDual()[2] + orientation[3]*c.getDual()[3]; // r.dual[0]+= dual[3]*c.getOrientation()[0] - dual[2]*c.getOrientation()[1] + dual[1]*c.getOrientation()[2] + dual[0]*c.getOrientation()[3]; // r.dual[1]+= dual[2]*c.getOrientation()[0] + dual[3]*c.getOrientation()[1] - dual[0]*c.getOrientation()[2] + dual[1]*c.getOrientation()[3]; // r.dual[2]+=-dual[1]*c.getOrientation()[0] + dual[0]*c.getOrientation()[1] + dual[3]*c.getOrientation()[2] + dual[2]*c.getOrientation()[3]; // r.dual[3]+=-dual[0]*c.getOrientation()[0] - dual[1]*c.getOrientation()[1] - dual[2]*c.getOrientation()[2] + dual[3]*c.getOrientation()[3]; // return r; // } // /// get jacobian of the product with another frame f on the right : d(q*f) = J(q) f // void multRight_getJ( Mat<4,4,real>& J0,Mat<4,4,real>& JE) // { // J0[0][0] = orientation[3]; J0[0][1] =-orientation[2]; J0[0][2] = orientation[1]; J0[0][3] = orientation[0]; // J0[1][0] = orientation[2]; J0[1][1] = orientation[3]; J0[1][2] =-orientation[0]; J0[1][3] = orientation[1]; // J0[2][0] =-orientation[1]; J0[2][1] = orientation[0]; J0[2][2] = orientation[3]; J0[2][3] = orientation[2]; // J0[3][0] =-orientation[0]; J0[3][1] =-orientation[1]; J0[3][2] =-orientation[2]; J0[3][3] = orientation[3]; // JE[0][0] = dual[3]; JE[0][1] =-dual[2]; JE[0][2] = dual[1]; JE[0][3] = dual[0]; // JE[1][0] = dual[2]; JE[1][1] = dual[3]; JE[1][2] =-dual[0]; JE[1][3] = dual[1]; // JE[2][0] =-dual[1]; JE[2][1] = dual[0]; JE[2][2] = dual[3]; JE[2][3] = dual[2]; // JE[3][0] =-dual[0]; JE[3][1] =-dual[1]; JE[3][2] =-dual[2]; JE[3][3] = dual[3]; // } // /// Apply a transformation with respect to itself // DualQuatCoord<3,real> multLeft( const DualQuatCoord<3,real>& c ) // { // DualQuatCoord r; // r.orientation[0] = orientation[3]*c.getOrientation()[0] + orientation[2]*c.getOrientation()[1] - orientation[1]*c.getOrientation()[2] + orientation[0]*c.getOrientation()[3]; // r.orientation[1] =-orientation[2]*c.getOrientation()[0] + orientation[3]*c.getOrientation()[1] + orientation[0]*c.getOrientation()[2] + orientation[1]*c.getOrientation()[3]; // r.orientation[2] = orientation[1]*c.getOrientation()[0] - orientation[0]*c.getOrientation()[1] + orientation[3]*c.getOrientation()[2] + orientation[2]*c.getOrientation()[3]; // r.orientation[3] =-orientation[0]*c.getOrientation()[0] - orientation[1]*c.getOrientation()[1] - orientation[2]*c.getOrientation()[2] + orientation[3]*c.getOrientation()[3]; // r.dual[0] = orientation[3]*c.getDual()[0] + orientation[2]*c.getDual()[1] - orientation[1]*c.getDual()[2] + orientation[0]*c.getDual()[3]; // r.dual[1] =-orientation[2]*c.getDual()[0] + orientation[3]*c.getDual()[1] + orientation[0]*c.getDual()[2] + orientation[1]*c.getDual()[3]; // r.dual[2] = orientation[1]*c.getDual()[0] - orientation[0]*c.getDual()[1] + orientation[3]*c.getDual()[2] + orientation[2]*c.getDual()[3]; // r.dual[3] =-orientation[0]*c.getDual()[0] - orientation[1]*c.getDual()[1] - orientation[2]*c.getDual()[2] + orientation[3]*c.getDual()[3]; // r.dual[0]+= dual[3]*c.getOrientation()[0] + dual[2]*c.getOrientation()[1] - dual[1]*c.getOrientation()[2] + dual[0]*c.getOrientation()[3]; // r.dual[1]+=-dual[2]*c.getOrientation()[0] + dual[3]*c.getOrientation()[1] + dual[0]*c.getOrientation()[2] + dual[1]*c.getOrientation()[3]; // r.dual[2]+= dual[1]*c.getOrientation()[0] - dual[0]*c.getOrientation()[1] + dual[3]*c.getOrientation()[2] + dual[2]*c.getOrientation()[3]; // r.dual[3]+=-dual[0]*c.getOrientation()[0] - dual[1]*c.getOrientation()[1] - dual[2]*c.getOrientation()[2] + dual[3]*c.getOrientation()[3]; // return r; // } // /// get jacobian of the product with another frame f on the left : d(f*q) = J(q) f // void multLeft_getJ( Mat<4,4,real>& J0,Mat<4,4,real>& JE) // { // J0[0][0] = orientation[3]; J0[0][1] = orientation[2]; J0[0][2] =-orientation[1]; J0[0][3] = orientation[0]; // J0[1][0] =-orientation[2]; J0[1][1] = orientation[3]; J0[1][2] = orientation[0]; J0[1][3] = orientation[1]; // J0[2][0] = orientation[1]; J0[2][1] =-orientation[0]; J0[2][2] = orientation[3]; J0[2][3] = orientation[2]; // J0[3][0] =-orientation[0]; J0[3][1] =-orientation[1]; J0[3][2] =-orientation[2]; J0[3][3] = orientation[3]; // JE[0][0] = dual[3]; JE[0][1] = dual[2]; JE[0][2] =-dual[1]; JE[0][3] = dual[0]; // JE[1][0] =-dual[2]; JE[1][1] = dual[3]; JE[1][2] = dual[0]; JE[1][3] = dual[1]; // JE[2][0] = dual[1]; JE[2][1] =-dual[0]; JE[2][2] = dual[3]; JE[2][3] = dual[2]; // JE[3][0] =-dual[0]; JE[3][1] =-dual[1]; JE[3][2] =-dual[2]; JE[3][3] = dual[3]; // } // /// Write to the given matrix // template<typename real2> // void toMatrix( Mat<3,4,real2>& m) const // { // m[0][0] = (real2) (1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[2] * orientation[2])); // m[0][1] = (real2) (2.0f * (orientation[0] * orientation[1] - orientation[2] * orientation[3])); // m[0][2] = (real2) (2.0f * (orientation[2] * orientation[0] + orientation[1] * orientation[3])); // m[1][0] = (real2) (2.0f * (orientation[0] * orientation[1] + orientation[2] * orientation[3])); // m[1][1] = (real2) (1.0f - 2.0f * (orientation[2] * orientation[2] + orientation[0] * orientation[0])); // m[1][2] = (real2) (2.0f * (orientation[1] * orientation[2] - orientation[0] * orientation[3])); // m[2][0] = (real2) (2.0f * (orientation[2] * orientation[0] - orientation[1] * orientation[3])); // m[2][1] = (real2) (2.0f * (orientation[1] * orientation[2] + orientation[0] * orientation[3])); // m[2][2] = (real2) (1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[0] * orientation[0])); // Vec3 p=getTranslation(); // m[0][3] = (real2) p[0]; // m[1][3] = (real2) p[1]; // m[2][3] = (real2) p[2]; // } // template<typename real2> // void toRotationMatrix( Mat<3,3,real2>& m) const // { // m[0][0] = (real2) (1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[2] * orientation[2])); // m[0][1] = (real2) (2.0f * (orientation[0] * orientation[1] - orientation[2] * orientation[3])); // m[0][2] = (real2) (2.0f * (orientation[2] * orientation[0] + orientation[1] * orientation[3])); // m[1][0] = (real2) (2.0f * (orientation[0] * orientation[1] + orientation[2] * orientation[3])); // m[1][1] = (real2) (1.0f - 2.0f * (orientation[2] * orientation[2] + orientation[0] * orientation[0])); // m[1][2] = (real2) (2.0f * (orientation[1] * orientation[2] - orientation[0] * orientation[3])); // m[2][0] = (real2) (2.0f * (orientation[2] * orientation[0] - orientation[1] * orientation[3])); // m[2][1] = (real2) (2.0f * (orientation[1] * orientation[2] + orientation[0] * orientation[3])); // m[2][2] = (real2) (1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[0] * orientation[0])); // } // /// Project a point from the child frame to the parent frame: P = R(q)p + t(q) // Vec3 pointToParent( const Vec3& p ) // { // Vec3 p2; // p2[0] = (real) ((1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[2] * orientation[2]))*p[0] + (2.0f * (orientation[0] * orientation[1] - orientation[2] * orientation[3])) * p[1] + (2.0f * (orientation[2] * orientation[0] + orientation[1] * orientation[3])) * p[2]); // p2[1] = (real) ((2.0f * (orientation[0] * orientation[1] + orientation[2] * orientation[3]))*p[0] + (1.0f - 2.0f * (orientation[2] * orientation[2] + orientation[0] * orientation[0]))*p[1] + (2.0f * (orientation[1] * orientation[2] - orientation[0] * orientation[3]))*p[2]); // p2[2] = (real) ((2.0f * (orientation[2] * orientation[0] - orientation[1] * orientation[3]))*p[0] + (2.0f * (orientation[1] * orientation[2] + orientation[0] * orientation[3]))*p[1] + (1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[0] * orientation[0]))*p[2]); // p2+=getTranslation(); // return p2; // } // // get jacobian of the transformation : dP = J(p,q) dq // void pointToParent_getJ( Mat<3,4,real>& J0,Mat<3,4,real>& JE,const Vec3& p) // { // J0.fill(0); JE.fill(0); // J0[0][0] = (real)2.*(- dual[3] + orientation[0]*p[0] + orientation[1]*p[1] + orientation[2]*p[2]); J0[0][1] = (real)2.*(dual[2] - orientation[1]*p[0] + orientation[0]*p[1] + orientation[3]*p[2]); J0[0][2] = (real)2.*(- dual[1] - orientation[2]*p[0] - orientation[3]*p[1] + orientation[0]*p[2]); J0[0][3] = (real)2.*( dual[0] + orientation[3]*p[0] - orientation[2]*p[1] + orientation[1]*p[2]); // J0[1][0] = -J0[0][1]; J0[1][1] = J0[0][0]; J0[1][2] = J0[0][3]; J0[1][3] = -J0[0][2]; // J0[2][0] = -J0[0][2]; J0[2][1] = -J0[0][3]; J0[2][2] = J0[0][0]; J0[2][3] = J0[0][1]; // JE[0][0] = (real)2.* orientation[3]; JE[0][1] = -(real)2.*orientation[2]; JE[0][2] = (real)2.*orientation[1]; JE[0][3] = -(real)2.*orientation[0]; // JE[1][0] = -JE[0][1]; JE[1][1] = JE[0][0]; JE[1][2] = JE[0][3]; JE[1][3] = -JE[0][2]; // JE[2][0] = -JE[0][2]; JE[2][1] = -JE[0][3]; JE[2][2] = JE[0][0]; JE[2][3] = JE[0][1]; // } // // get transformed position change: dP = J(p,q) dq // Vec3 pointToParent_applyJ( const DualQuatCoord<3,real>& dq ,const Vec3& p) // { // Mat<3,4,real> J0,JE; // pointToParent_getJ(J0,JE,p); // Vec3 r=J0*dq.orientation+JE*dq.dual; // return r; // } // // get quaternion change: dq = JT(p,q) dP // DualQuatCoord<3,real> pointToParent_applyJT( const Vec3& dP ,const Vec3& p) // { // Mat<3,4,real> J0,JE; // pointToParent_getJ(J0,JE,p); // DualQuatCoord r; // r.orientation=J0.transposed()*dP; // r.dual=JE.transposed()*dP; // return r; // } // // get rigid transformation change: d(R,t) = H(q) dq // Mat<3,4,real> rigid_applyH( const DualQuatCoord<3,real>& dq ) // { // Mat<3,4,real> dR; // dR[0][0]=(real)2.*(-2*orientation[1]*dq.orientation[1]-2*orientation[2]*dq.orientation[2]); // dR[0][1]=(real)2.*(orientation[1]*dq.orientation[0]+orientation[0]*dq.orientation[1]-orientation[3]*dq.orientation[2]-orientation[2]*dq.orientation[3]); // dR[0][2]=(real)2.*(orientation[2]*dq.orientation[0]+orientation[3]*dq.orientation[1]+orientation[0]*dq.orientation[2]+orientation[1]*dq.orientation[3]); // dR[0][3]=(real)2.*(-dual[3]*dq.orientation[0]+dual[2]*dq.orientation[1]-dual[1]*dq.orientation[2]+dual[0]*dq.orientation[3]+orientation[3]*dq.dual[0]-orientation[2]*dq.dual[1]+orientation[1]*dq.dual[2]-orientation[0]*dq.dual[3]); // dR[1][0]=(real)2.*(orientation[1]*dq.orientation[0]+orientation[0]*dq.orientation[1]+orientation[3]*dq.orientation[2]+orientation[2]*dq.orientation[3]); // dR[1][1]=(real)2.*(-2*orientation[0]*dq.orientation[0]-2*orientation[2]*dq.orientation[2]); // dR[1][2]=(real)2.*(-orientation[3]*dq.orientation[0]+orientation[2]*dq.orientation[1]+orientation[1]*dq.orientation[2]-orientation[0]*dq.orientation[3]); // dR[1][3]=(real)2.*(-dual[2]*dq.orientation[0]-dual[3]*dq.orientation[1]+dual[0]*dq.orientation[2]+dual[1]*dq.orientation[3]+orientation[2]*dq.dual[0]+orientation[3]*dq.dual[1]-orientation[0]*dq.dual[2]-orientation[1]*dq.dual[3]); // dR[2][0]=(real)2.*(orientation[2]*dq.orientation[0]-orientation[3]*dq.orientation[1]+orientation[0]*dq.orientation[2]-orientation[1]*dq.orientation[3]); // dR[2][1]=(real)2.*(orientation[3]*dq.orientation[0]+orientation[2]*dq.orientation[1]+orientation[1]*dq.orientation[2]+orientation[0]*dq.orientation[3]); // dR[2][2]=(real)2.*(-2*orientation[0]*dq.orientation[0]-2*orientation[1]*dq.orientation[1]); // dR[2][3]=(real)2.*(dual[1]*dq.orientation[0]-dual[0]*dq.orientation[1]-dual[3]*dq.orientation[2]+dual[2]*dq.orientation[3]-orientation[1]*dq.dual[0]+orientation[0]*dq.dual[1]+orientation[3]*dq.dual[2]-orientation[2]*dq.dual[3]); // return dR; // } // // get rotation change: dR = H(q) dq // Mat<3,3,real> rotation_applyH( const DualQuatCoord<3,real>& dq ) // { // Mat<3,3,real> dR; // dR[0][0]=(real)2.*(-2*orientation[1]*dq.orientation[1]-2*orientation[2]*dq.orientation[2]); // dR[0][1]=(real)2.*(orientation[1]*dq.orientation[0]+orientation[0]*dq.orientation[1]-orientation[3]*dq.orientation[2]-orientation[2]*dq.orientation[3]); // dR[0][2]=(real)2.*(orientation[2]*dq.orientation[0]+orientation[3]*dq.orientation[1]+orientation[0]*dq.orientation[2]+orientation[1]*dq.orientation[3]); // dR[1][0]=(real)2.*(orientation[1]*dq.orientation[0]+orientation[0]*dq.orientation[1]+orientation[3]*dq.orientation[2]+orientation[2]*dq.orientation[3]); // dR[1][1]=(real)2.*(-2*orientation[0]*dq.orientation[0]-2*orientation[2]*dq.orientation[2]); // dR[1][2]=(real)2.*(-orientation[3]*dq.orientation[0]+orientation[2]*dq.orientation[1]+orientation[1]*dq.orientation[2]-orientation[0]*dq.orientation[3]); // dR[2][0]=(real)2.*(orientation[2]*dq.orientation[0]-orientation[3]*dq.orientation[1]+orientation[0]*dq.orientation[2]-orientation[1]*dq.orientation[3]); // dR[2][1]=(real)2.*(orientation[3]*dq.orientation[0]+orientation[2]*dq.orientation[1]+orientation[1]*dq.orientation[2]+orientation[0]*dq.orientation[3]); // dR[2][2]=(real)2.*(-2*orientation[0]*dq.orientation[0]-2*orientation[1]*dq.orientation[1]); // return dR; // } // // get quaternion change: dq = H^T(q) d(R,t) // DualQuatCoord<3,real> rigid_applyHT( const Mat<3,4,real>& dR ) // { // DualQuatCoord r; // r.orientation[0]=(real)2.*(orientation[1]*dR[0][1]+orientation[2]*dR[0][2]-dual[3]*dR[0][3]+orientation[1]*dR[1][0]-2*orientation[0]*dR[1][1]-orientation[3]*dR[1][2]-dual[2]*dR[1][3]+orientation[2]*dR[2][0]+orientation[3]*dR[2][1]-2*orientation[0]*dR[2][2]+dual[1]*dR[2][3]); // r.orientation[1]=(real)2.*(-2*orientation[1]*dR[0][0]+orientation[0]*dR[0][1]+orientation[3]*dR[0][2]+dual[2]*dR[0][3]+orientation[0]*dR[1][0]+orientation[2]*dR[1][2]-dual[3]*dR[1][3]-orientation[3]*dR[2][0]+orientation[2]*dR[2][1]-2*orientation[1]*dR[2][2]-dual[0]*dR[2][3]); // r.orientation[2]=(real)2.*(-2*orientation[2]*dR[0][0]-orientation[3]*dR[0][1]+orientation[0]*dR[0][2]-dual[1]*dR[0][3]+orientation[3]*dR[1][0]-2*orientation[2]*dR[1][1]+orientation[1]*dR[1][2]+dual[0]*dR[1][3]+orientation[0]*dR[2][0]+orientation[1]*dR[2][1]-dual[3]*dR[2][3]); // r.orientation[3]=(real)2.*(-orientation[2]*dR[0][1]+orientation[1]*dR[0][2]+dual[0]*dR[0][3]+orientation[2]*dR[1][0]-orientation[0]*dR[1][2]+dual[1]*dR[1][3]-orientation[1]*dR[2][0]+orientation[0]*dR[2][1]+dual[2]*dR[2][3]); // r.dual[0]=(real)2.*(orientation[3]*dR[0][3]+orientation[2]*dR[1][3]-orientation[1]*dR[2][3]); // r.dual[1]=(real)2.*(-orientation[2]*dR[0][3]+orientation[3]*dR[1][3]+orientation[0]*dR[2][3]); // r.dual[2]=(real)2.*(orientation[1]*dR[0][3]-orientation[0]*dR[1][3]+orientation[3]*dR[2][3]); // r.dual[3]=(real)2.*(-orientation[0]*dR[0][3]-orientation[1]*dR[1][3]-orientation[2]*dR[2][3]); // return r; // } // // get quaternion change: dq = H^T(q) dR // DualQuatCoord<3,real> rotation_applyHT( const Mat<3,3,real>& dR ) // { // DualQuatCoord r; // r.orientation[0]=(real)2.*(orientation[1]*dR[0][1]+orientation[2]*dR[0][2]+orientation[1]*dR[1][0]-2*orientation[0]*dR[1][1]-orientation[3]*dR[1][2]+orientation[2]*dR[2][0]+orientation[3]*dR[2][1]-2*orientation[0]*dR[2][2]); // r.orientation[1]=(real)2.*(-2*orientation[1]*dR[0][0]+orientation[0]*dR[0][1]+orientation[3]*dR[0][2]+orientation[0]*dR[1][0]+orientation[2]*dR[1][2]-orientation[3]*dR[2][0]+orientation[2]*dR[2][1]-2*orientation[1]*dR[2][2]); // r.orientation[2]=(real)2.*(-2*orientation[2]*dR[0][0]-orientation[3]*dR[0][1]+orientation[0]*dR[0][2]+orientation[3]*dR[1][0]-2*orientation[2]*dR[1][1]+orientation[1]*dR[1][2]+orientation[0]*dR[2][0]+orientation[1]*dR[2][1]); // r.orientation[3]=(real)2.*(-orientation[2]*dR[0][1]+orientation[1]*dR[0][2]+orientation[2]*dR[1][0]-orientation[0]*dR[1][2]-orientation[1]*dR[2][0]+orientation[0]*dR[2][1]); // r.dual[0]=r.dual[1]=r.dual[2]=r.dual[3]=(real)0.; // return r; // } // // get Jacobian change: dJ = H(p) dq // Mat<3,8,real> pointToParent_applyH( const DualQuatCoord<3,real>& dq ,const Vec3& p) // { // Mat<3,8,real> dJ; // dJ.fill(0); // dJ[0][0] = (real)2.*(- dq.dual[3] + dq.orientation[0]*p[0] + dq.orientation[1]*p[1] + dq.orientation[2]*p[2]); dJ[0][1] = (real)2.*(dq.dual[2] - dq.orientation[1]*p[0] + dq.orientation[0]*p[1] + dq.orientation[3]*p[2]); dJ[0][2] = (real)2.*(- dq.dual[1] - dq.orientation[2]*p[0] - dq.orientation[3]*p[1] + dq.orientation[0]*p[2]); dJ[0][3] = (real)2.*( dq.dual[0] + dq.orientation[3]*p[0] - dq.orientation[2]*p[1] + dq.orientation[1]*p[2]); // dJ[1][0] = -dJ[0][1]; dJ[1][1] = dJ[0][0]; dJ[1][2] = dJ[0][3]; dJ[1][3] = -dJ[0][2]; // dJ[2][0] = -dJ[0][2]; dJ[2][1] = -dJ[0][3]; dJ[2][2] = dJ[0][0]; dJ[2][3] = dJ[0][1]; // dJ[0][4] = (real)2.*dq.orientation[3]; dJ[0][5] = -(real)2.*dq.orientation[2]; dJ[0][6] = (real)2.*dq.orientation[1]; dJ[0][7] = -(real)2.*dq.orientation[0]; // dJ[1][4] = -dJ[0][5]; dJ[1][5] = dJ[0][4]; dJ[1][6] = dJ[0][7]; dJ[1][7] = -dJ[0][6]; // dJ[2][4] = -dJ[0][6]; dJ[2][5] = -dJ[0][7]; dJ[2][6] = dJ[0][4]; dJ[2][7] = dJ[0][5]; // return dJ; // } // // get quaternion change: dq = H^T(p) dJ // DualQuatCoord<3,real> pointToParent_applyHT( const Mat<3,8,real>& dJ ,const Vec3& p) // { // DualQuatCoord r; // r.orientation[0]=(real)2.*(p[0]*dJ[0][0]+p[1]*dJ[0][1]+p[2]*dJ[0][2]-dJ[0][7]-p[1]*dJ[1][0]+p[0]*dJ[1][1]-p[2]*dJ[1][3]-dJ[1][6]-p[2]*dJ[2][0]+p[0]*dJ[2][2]+p[1]*dJ[2][3]+dJ[2][5]); // r.orientation[1]=(real)2.*(p[1]*dJ[0][0]-p[0]*dJ[0][1]+p[2]*dJ[0][3]+dJ[0][6]+p[0]*dJ[1][0]+p[1]*dJ[1][1]+p[2]*dJ[1][2]-dJ[1][7]-p[2]*dJ[2][1]+p[1]*dJ[2][2]-p[0]*dJ[2][3]-dJ[2][4]); // r.orientation[2]=(real)2.*(p[2]*dJ[0][0]-p[0]*dJ[0][2]-p[1]*dJ[0][3]-dJ[0][5]+p[2]*dJ[1][1]-p[1]*dJ[1][2]+p[0]*dJ[1][3]+dJ[1][4]+p[0]*dJ[2][0]+p[1]*dJ[2][1]+p[2]*dJ[2][2]-dJ[2][7]); // r.orientation[3]=(real)2.*(p[2]*dJ[0][1]-p[1]*dJ[0][2]+p[0]*dJ[0][3]+dJ[0][4]-p[2]*dJ[1][0]+p[0]*dJ[1][2]+p[1]*dJ[1][3]+dJ[1][5]+p[1]*dJ[2][0]-p[0]*dJ[2][1]+p[2]*dJ[2][3]+dJ[2][6]); // r.dual[0]=(real)2.*(dJ[0][3]+dJ[1][2]-dJ[2][1]); // r.dual[1]=(real)2.*(-dJ[0][2]+dJ[1][3]+dJ[2][0]); // r.dual[2]=(real)2.*(dJ[0][1]-dJ[1][0]+dJ[2][3]); // r.dual[3]=(real)2.*(-dJ[0][0]-dJ[1][1]-dJ[2][2]); // return r; // } // /// Project a point from the parent frame to the child frame // Vec3 pointToChild( const Vec3& v ) const // { // Vec3 p,v2=v-getTranslation(); // p[0]=(real)((1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[2] * orientation[2]))*v2[0] + (2.0f * (orientation[0] * orientation[1] + orientation[2] * orientation[3])) * v2[1] + (2.0f * (orientation[2] * orientation[0] - orientation[1] * orientation[3])) * v2[2]); // p[1]=(real)((2.0f * (orientation[0] * orientation[1] - orientation[2] * orientation[3]))*v2[0] + (1.0f - 2.0f * (orientation[2] * orientation[2] + orientation[0] * orientation[0]))*v2[1] + (2.0f * (orientation[1] * orientation[2] + orientation[0] * orientation[3]))*v2[2]); // p[2]=(real)((2.0f * (orientation[2] * orientation[0] + orientation[1] * orientation[3]))*v2[0] + (2.0f * (orientation[1] * orientation[2] - orientation[0] * orientation[3]))*v2[1] + (1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[0] * orientation[0]))*v2[2]); // return p; // } // /// compute the projection of a vector from the parent frame to the child // Vec3 vectorToChild( const Vec3& v ) const { // //return orientation.inverseRotate(v); // Vec3 p; // p[0]=(real)((1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[2] * orientation[2]))*v[0] + (2.0f * (orientation[0] * orientation[1] + orientation[2] * orientation[3])) * v[1] + (2.0f * (orientation[2] * orientation[0] - orientation[1] * orientation[3])) * v[2]); // p[1]=(real)((2.0f * (orientation[0] * orientation[1] - orientation[2] * orientation[3]))*v[0] + (1.0f - 2.0f * (orientation[2] * orientation[2] + orientation[0] * orientation[0]))*v[1] + (2.0f * (orientation[1] * orientation[2] + orientation[0] * orientation[3]))*v[2]); // p[2]=(real)((2.0f * (orientation[2] * orientation[0] + orientation[1] * orientation[3]))*v[0] + (2.0f * (orientation[1] * orientation[2] - orientation[0] * orientation[3]))*v[1] + (1.0f - 2.0f * (orientation[1] * orientation[1] + orientation[0] * orientation[0]))*v[2]); // return p; // } // /// write to an output stream // inline friend std::ostream& operator << ( std::ostream& out, const DualQuatCoord<3,real>& v ){ // out<<v.dual<<" "<<v.orientation; // return out; // } // /// read from an input stream // inline friend std::istream& operator >> ( std::istream& in, DualQuatCoord<3,real>& v ){ // in>>v.dual>>v.orientation; // return in; // } // static int max_size() // { // return 3; // } // /// Compile-time constant specifying the number of scalars within this vector (equivalent to the size() method) // enum { total_size = 8 }; // /// Compile-time constant specifying the number of dimensions of space (NOT equivalent to total_size for DualQuats) // enum { spatial_dimensions = 3 }; // real* ptr() { return dual.ptr(); } // const real* ptr() const { return dual.ptr(); } // static unsigned int size(){return 8;} // /// Access to i-th element. // real& operator[](int i) // { // if (i<4) // return this->dual(i); // else // return this->orientation[i-4]; // } // /// Const access to i-th element. // const real& operator[](int i) const // { // if (i<4) // return this->dual(i); // else // return this->orientation[i-4]; // } //}; } // namespace defaulttype } // namespace sofa #endif
59.576538
453
0.559408
d6cbd10f0821c6ee985caabb7869eea9fc8e9fed
469
c
C
6l/Plan9.c
aslettemark/kencc-cross
37dc0933c2adfa414d9b1612c43fd7f4791327d0
[ "MIT" ]
14
2015-12-22T03:17:48.000Z
2021-07-31T00:02:26.000Z
6l/Plan9.c
aslettemark/kencc-cross
37dc0933c2adfa414d9b1612c43fd7f4791327d0
[ "MIT" ]
3
2016-01-19T05:24:47.000Z
2018-01-21T19:41:53.000Z
6l/Plan9.c
aslettemark/kencc-cross
37dc0933c2adfa414d9b1612c43fd7f4791327d0
[ "MIT" ]
6
2016-01-19T05:07:17.000Z
2022-01-12T03:25:39.000Z
#include "l.h" /* * fake malloc */ void* malloc(ulong n) { void *p; while(n & 7) n++; while(nhunk < n) gethunk(); p = hunk; nhunk -= n; hunk += n; return p; } void free(void *p) { USED(p); } void* calloc(ulong m, ulong n) { void *p; n *= m; p = malloc(n); memset(p, 0, n); return p; } void* realloc(void *p, ulong n) { USED(p); USED(n); fprint(2, "realloc called\n"); abort(); return 0; } void* mysbrk(ulong size) { return sbrk(size); }
8.849057
31
0.550107
d6cbdce73d1da58cf834bce4d91ef02a1de5a673
5,864
h
C
dreal/smt2/command_cell.h
chris-lamb/dreal4
baa54b73d7ef5c224e6eba59f7bbff50c79b65e9
[ "Apache-2.0" ]
1
2019-01-09T17:21:14.000Z
2019-01-09T17:21:14.000Z
dreal/smt2/command_cell.h
chris-lamb/dreal4
baa54b73d7ef5c224e6eba59f7bbff50c79b65e9
[ "Apache-2.0" ]
null
null
null
dreal/smt2/command_cell.h
chris-lamb/dreal4
baa54b73d7ef5c224e6eba59f7bbff50c79b65e9
[ "Apache-2.0" ]
null
null
null
#pragma once #include <ostream> #include <string> #include <utility> #include "dreal/smt2/command.h" #include "dreal/symbolic/symbolic.h" namespace dreal { /// CommandCell class. It is the abstract base class of the classes /// representing smt2lib commands. class CommandCell { public: /// Default constructor. CommandCell() = default; /// Deleted copy-constructor. CommandCell(const CommandCell&) = delete; /// Deleted move-constructor. CommandCell(CommandCell&&) = default; /// Deleted copy-assignment operator. CommandCell& operator=(const CommandCell&) = delete; /// Deleted move-assignment operator. CommandCell& operator=(CommandCell&&) = delete; /// Default destructor. virtual ~CommandCell() = default; /// Output its string representation to @p os. virtual std::ostream& Display(std::ostream& os) const = 0; }; /// "assert" command. class AssertCommand : public CommandCell { public: explicit AssertCommand(Formula f) : f_{std::move(f)} {}; const Formula& get_assertion() const { return f_; } std::ostream& Display(std::ostream& os) const override; private: const Formula f_; }; /// "check-sat" command. class CheckSatCommand : public CommandCell { public: CheckSatCommand() = default; std::ostream& Display(std::ostream& os) const override; }; /// "echo" command. class EchoCommand : public CommandCell { public: explicit EchoCommand(std::string message) : message_{std::move(message)} {} const std::string get_message() const { return message_; } std::ostream& Display(std::ostream& os) const override; private: const std::string message_; }; /// "exit" command. class ExitCommand : public CommandCell { public: ExitCommand() = default; std::ostream& Display(std::ostream& os) const override; }; /// "get-assertions" command. class GetAssertionsCommand : public CommandCell { public: GetAssertionsCommand() = default; std::ostream& Display(std::ostream& os) const override; }; /// "get-assignments" command. class GetAssignmentCommand : public CommandCell { public: GetAssignmentCommand() = default; std::ostream& Display(std::ostream& os) const override; }; /// "get-info" command. class GetInfoCommand : public CommandCell { public: GetInfoCommand() = default; const std::string get_key() const { return key_; } std::ostream& Display(std::ostream& os) const override; private: const std::string key_; }; /// "get-model" command. class GetModelCommand : public CommandCell { public: GetModelCommand() = default; std::ostream& Display(std::ostream& os) const override; }; /// "get-option" command. class GetOptionCommand : public CommandCell { public: explicit GetOptionCommand(std::string key) : key_{std::move(key)} {} const std::string get_key() const { return key_; } std::ostream& Display(std::ostream& os) const override; private: const std::string key_; }; /// "get-proof" command. class GetProofCommand : public CommandCell { public: GetProofCommand() = default; std::ostream& Display(std::ostream& os) const override; }; /// "get-unsat-assumptions" command. class GetUnsatAssumptionsCommand : public CommandCell { public: GetUnsatAssumptionsCommand() = default; std::ostream& Display(std::ostream& os) const override; }; /// "get-unsat-core" command. class GetUnsatCoreCommand : public CommandCell { public: GetUnsatCoreCommand() = default; std::ostream& Display(std::ostream& os) const override; }; /// "pop" command. class PopCommand : public CommandCell { public: explicit PopCommand(int level) : level_(level) {} int get_level() const { return level_; } std::ostream& Display(std::ostream& os) const override; private: const int level_{}; }; /// "push" command. class PushCommand : public CommandCell { public: explicit PushCommand(int level) : level_(level) {} int get_level() const { return level_; } std::ostream& Display(std::ostream& os) const override; private: const int level_{}; }; /// "reset" command. class ResetCommand : public CommandCell { public: ResetCommand() = default; std::ostream& Display(std::ostream& os) const override; }; /// "reset-assertions" command. class ResetAssertionsCommand : public CommandCell { public: ResetAssertionsCommand() = default; std::ostream& Display(std::ostream& os) const override; }; /// "set-info" command. class SetInfoCommand : public CommandCell { public: SetInfoCommand(std::string key, std::string value) : key_{std::move(key)}, value_{std::move(value)} {} const std::string& get_key() const { return key_; } const std::string& get_value() const { return value_; } std::ostream& Display(std::ostream& os) const override; private: const std::string key_; const std::string value_; }; class SetLogicCommand : public CommandCell { public: explicit SetLogicCommand(const Logic logic) : logic_{logic} {} Logic get_logic() const { return logic_; } std::ostream& Display(std::ostream& os) const override; private: const Logic logic_; }; class SetOptionCommand : public CommandCell { public: SetOptionCommand(std::string key, std::string value) : key_{std::move(key)}, value_{std::move(value)} {} std::ostream& Display(std::ostream& os) const override; private: const std::string key_; const std::string value_; }; // TODO(soonho): Add support the following cases: // class CheckSatAssumingCommand : public CommandCell {}; // class DeclareConstCommand : public CommandCell {}; // class DeclareFunCommand : public CommandCell {}; // class DeclareSortCommand : public CommandCell {}; // class DefineFunCommand : public CommandCell {}; // class DefineFunRecCommand : public CommandCell {}; // class DefineFunsRecCommand : public CommandCell {}; // class DefineSortCommand : public CommandCell {}; // class GetValueCommand : public CommandCell { }; } // namespace dreal
26.654545
77
0.71163
d6cc7ef52cc5d5be62b53ad06d8af0c59d8e61e0
2,166
h
C
sdk/maxsdk/include/ParticleFlow/CreatedChannelLinker.h
WhyWolfie/source2007
324257e9c69bbaec872ebb7ae4f96ab2ce98f520
[ "FSFAP" ]
null
null
null
sdk/maxsdk/include/ParticleFlow/CreatedChannelLinker.h
WhyWolfie/source2007
324257e9c69bbaec872ebb7ae4f96ab2ce98f520
[ "FSFAP" ]
null
null
null
sdk/maxsdk/include/ParticleFlow/CreatedChannelLinker.h
WhyWolfie/source2007
324257e9c69bbaec872ebb7ae4f96ab2ce98f520
[ "FSFAP" ]
null
null
null
/********************************************************************** *< FILE: CreatedChannelLinker.h DESCRIPTION: Class definitions for CreatedChannelLinker CreatedChannelLinker keeps track of all channels created for a specific particle container. If an action creates a channel only under certain condition (for example, if the channel doesn't exists) then it's the action responsibility to initialized channel value for all new particles. Therefore the action should keep track of all channels created by the action. The class makes this task easier. CREATED BY: Oleg Bayborodin HISTORY: created 03-11-2002 *> Copyright (c) 2001, All Rights Reserved. **********************************************************************/ #ifndef _CREATEDCHANNELLINKER_H #define _CREATEDCHANNELLINKER_H #include "max.h" #include "PFExport.h" namespace PF { class CreatedChannelLinker { public: PFExport CreatedChannelLinker(); PFExport ~CreatedChannelLinker(); // to indicated that the channel was created in this container PFExport bool RegisterCreatedChannel(IObject* pCont, Interface_ID channelID); // to unregister all created channels in the container PFExport void Release(IObject* pCont); // verify if the channel was created for the container PFExport bool IsCreatedChannel(IObject* pCont, Interface_ID channelID) const; private: // const access to class members const Tab<IObject*>& particleContainers() const { return m_particleContainers; } IObject* particleContainer(int index) const { return m_particleContainers[index]; } const Tab<Interface_ID>& IDs() const { return m_IDs; } Interface_ID ID(int index) const { return m_IDs[index]; } // access to class members Tab<IObject*>& _particleContainers() { return m_particleContainers; } IObject*& _particleContainer(int index) { return m_particleContainers[index]; } Tab<Interface_ID>& _IDs() { return m_IDs; } Interface_ID& _ID(int index) { return m_IDs[index]; } protected: Tab<IObject*> m_particleContainers; Tab<Interface_ID> m_IDs; }; } // end of namespace PF #endif // _CREATEDCHANNELLINKER_H_
32.328358
88
0.701754
d6ccd933a9301825155bd6c33e478f7a563c6cc7
30,975
c
C
KERN/usrsctp/usrsctplib/netinet/sctp_ss_functions.c
shkir/sctp-refimpl
76d37a9a01919b1ba43eaa8b18229ff49c70a8f7
[ "BSD-2-Clause" ]
8
2018-12-27T14:57:13.000Z
2021-04-07T07:03:15.000Z
KERN/usrsctp/usrsctplib/netinet/sctp_ss_functions.c
shkir/sctp-refimpl
76d37a9a01919b1ba43eaa8b18229ff49c70a8f7
[ "BSD-2-Clause" ]
2
2015-07-19T13:27:57.000Z
2015-07-22T10:46:12.000Z
KERN/usrsctp/usrsctplib/netinet/sctp_ss_functions.c
shkir/sctp-refimpl
76d37a9a01919b1ba43eaa8b18229ff49c70a8f7
[ "BSD-2-Clause" ]
17
2015-08-23T09:44:20.000Z
2019-01-15T13:03:15.000Z
/*- * Copyright (c) 2010-2012, by Michael Tuexen. All rights reserved. * Copyright (c) 2010-2012, by Randall Stewart. All rights reserved. * Copyright (c) 2010-2012, by Robin Seggelmann. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * a) Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * b) Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ #ifdef __FreeBSD__ #include <sys/cdefs.h> __FBSDID("$FreeBSD: head/sys/netinet/sctp_ss_functions.c 235828 2012-05-23 11:26:28Z tuexen $"); #endif #include <netinet/sctp_pcb.h> #if defined(__Userspace__) #include <netinet/sctp_os_userspace.h> #endif /* * Default simple round-robin algorithm. * Just interates the streams in the order they appear. */ static void sctp_ss_default_add(struct sctp_tcb *, struct sctp_association *, struct sctp_stream_out *, struct sctp_stream_queue_pending *, int); static void sctp_ss_default_remove(struct sctp_tcb *, struct sctp_association *, struct sctp_stream_out *, struct sctp_stream_queue_pending *, int); static void sctp_ss_default_init(struct sctp_tcb *stcb, struct sctp_association *asoc, int holds_lock) { uint16_t i; TAILQ_INIT(&asoc->ss_data.out_wheel); /* * If there is data in the stream queues already, * the scheduler of an existing association has * been changed. We need to add all stream queues * to the wheel. */ for (i = 0; i < stcb->asoc.streamoutcnt; i++) { stcb->asoc.ss_functions.sctp_ss_add_to_stream(stcb, &stcb->asoc, &stcb->asoc.strmout[i], NULL, holds_lock); } return; } static void sctp_ss_default_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, int clear_values SCTP_UNUSED, int holds_lock) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } while (!TAILQ_EMPTY(&asoc->ss_data.out_wheel)) { struct sctp_stream_out *strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); TAILQ_REMOVE(&asoc->ss_data.out_wheel, TAILQ_FIRST(&asoc->ss_data.out_wheel), ss_params.rr.next_spoke); strq->ss_params.rr.next_spoke.tqe_next = NULL; strq->ss_params.rr.next_spoke.tqe_prev = NULL; } asoc->last_out_stream = NULL; if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static void sctp_ss_default_init_stream(struct sctp_stream_out *strq, struct sctp_stream_out *with_strq SCTP_UNUSED) { strq->ss_params.rr.next_spoke.tqe_next = NULL; strq->ss_params.rr.next_spoke.tqe_prev = NULL; return; } static void sctp_ss_default_add(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } /* Add to wheel if not already on it and stream queue not empty */ if (!TAILQ_EMPTY(&strq->outqueue) && (strq->ss_params.rr.next_spoke.tqe_next == NULL) && (strq->ss_params.rr.next_spoke.tqe_prev == NULL)) { TAILQ_INSERT_TAIL(&asoc->ss_data.out_wheel, strq, ss_params.rr.next_spoke); } if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static int sctp_ss_default_is_empty(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_association *asoc) { if (TAILQ_EMPTY(&asoc->ss_data.out_wheel)) { return (1); } else { return (0); } } static void sctp_ss_default_remove(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } /* Remove from wheel if stream queue is empty and actually is on the wheel */ if (TAILQ_EMPTY(&strq->outqueue) && (strq->ss_params.rr.next_spoke.tqe_next != NULL || strq->ss_params.rr.next_spoke.tqe_prev != NULL)) { if (asoc->last_out_stream == strq) { asoc->last_out_stream = TAILQ_PREV(asoc->last_out_stream, sctpwheel_listhead, ss_params.rr.next_spoke); if (asoc->last_out_stream == NULL) { asoc->last_out_stream = TAILQ_LAST(&asoc->ss_data.out_wheel, sctpwheel_listhead); } if (asoc->last_out_stream == strq) { asoc->last_out_stream = NULL; } } TAILQ_REMOVE(&asoc->ss_data.out_wheel, strq, ss_params.rr.next_spoke); strq->ss_params.rr.next_spoke.tqe_next = NULL; strq->ss_params.rr.next_spoke.tqe_prev = NULL; } if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static struct sctp_stream_out * sctp_ss_default_select(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_nets *net, struct sctp_association *asoc) { struct sctp_stream_out *strq, *strqt; strqt = asoc->last_out_stream; default_again: /* Find the next stream to use */ if (strqt == NULL) { strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); } else { strq = TAILQ_NEXT(strqt, ss_params.rr.next_spoke); if (strq == NULL) { strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); } } /* If CMT is off, we must validate that * the stream in question has the first * item pointed towards are network destination * requested by the caller. Note that if we * turn out to be locked to a stream (assigning * TSN's then we must stop, since we cannot * look for another stream with data to send * to that destination). In CMT's case, by * skipping this check, we will send one * data packet towards the requested net. */ if (net != NULL && strq != NULL && SCTP_BASE_SYSCTL(sctp_cmt_on_off) == 0) { if (TAILQ_FIRST(&strq->outqueue) && TAILQ_FIRST(&strq->outqueue)->net != NULL && TAILQ_FIRST(&strq->outqueue)->net != net) { if (strq == asoc->last_out_stream) { return (NULL); } else { strqt = strq; goto default_again; } } } return (strq); } static void sctp_ss_default_scheduled(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_nets *net SCTP_UNUSED, struct sctp_association *asoc SCTP_UNUSED, struct sctp_stream_out *strq, int moved_how_much SCTP_UNUSED) { asoc->last_out_stream = strq; return; } static void sctp_ss_default_packet_done(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_nets *net SCTP_UNUSED, struct sctp_association *asoc SCTP_UNUSED) { /* Nothing to be done here */ return; } static int sctp_ss_default_get_value(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_association *asoc SCTP_UNUSED, struct sctp_stream_out *strq SCTP_UNUSED, uint16_t *value SCTP_UNUSED) { /* Nothing to be done here */ return (-1); } static int sctp_ss_default_set_value(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_association *asoc SCTP_UNUSED, struct sctp_stream_out *strq SCTP_UNUSED, uint16_t value SCTP_UNUSED) { /* Nothing to be done here */ return (-1); } /* * Real round-robin algorithm. * Always interates the streams in ascending order. */ static void sctp_ss_rr_add(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) { struct sctp_stream_out *strqt; if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } if (!TAILQ_EMPTY(&strq->outqueue) && (strq->ss_params.rr.next_spoke.tqe_next == NULL) && (strq->ss_params.rr.next_spoke.tqe_prev == NULL)) { if (TAILQ_EMPTY(&asoc->ss_data.out_wheel)) { TAILQ_INSERT_HEAD(&asoc->ss_data.out_wheel, strq, ss_params.rr.next_spoke); } else { strqt = TAILQ_FIRST(&asoc->ss_data.out_wheel); while (strqt != NULL && (strqt->stream_no < strq->stream_no)) { strqt = TAILQ_NEXT(strqt, ss_params.rr.next_spoke); } if (strqt != NULL) { TAILQ_INSERT_BEFORE(strqt, strq, ss_params.rr.next_spoke); } else { TAILQ_INSERT_TAIL(&asoc->ss_data.out_wheel, strq, ss_params.rr.next_spoke); } } } if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } /* * Real round-robin per packet algorithm. * Always interates the streams in ascending order and * only fills messages of the same stream in a packet. */ static struct sctp_stream_out * sctp_ss_rrp_select(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_nets *net SCTP_UNUSED, struct sctp_association *asoc) { return (asoc->last_out_stream); } static void sctp_ss_rrp_packet_done(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_nets *net, struct sctp_association *asoc) { struct sctp_stream_out *strq, *strqt; strqt = asoc->last_out_stream; rrp_again: /* Find the next stream to use */ if (strqt == NULL) { strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); } else { strq = TAILQ_NEXT(strqt, ss_params.rr.next_spoke); if (strq == NULL) { strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); } } /* If CMT is off, we must validate that * the stream in question has the first * item pointed towards are network destination * requested by the caller. Note that if we * turn out to be locked to a stream (assigning * TSN's then we must stop, since we cannot * look for another stream with data to send * to that destination). In CMT's case, by * skipping this check, we will send one * data packet towards the requested net. */ if (net != NULL && strq != NULL && SCTP_BASE_SYSCTL(sctp_cmt_on_off) == 0) { if (TAILQ_FIRST(&strq->outqueue) && TAILQ_FIRST(&strq->outqueue)->net != NULL && TAILQ_FIRST(&strq->outqueue)->net != net) { if (strq == asoc->last_out_stream) { strq = NULL; } else { strqt = strq; goto rrp_again; } } } asoc->last_out_stream = strq; return; } /* * Priority algorithm. * Always prefers streams based on their priority id. */ static void sctp_ss_prio_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, int clear_values, int holds_lock) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } while (!TAILQ_EMPTY(&asoc->ss_data.out_wheel)) { struct sctp_stream_out *strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); if (clear_values) { strq->ss_params.prio.priority = 0; } TAILQ_REMOVE(&asoc->ss_data.out_wheel, TAILQ_FIRST(&asoc->ss_data.out_wheel), ss_params.prio.next_spoke); strq->ss_params.prio.next_spoke.tqe_next = NULL; strq->ss_params.prio.next_spoke.tqe_prev = NULL; } asoc->last_out_stream = NULL; if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static void sctp_ss_prio_init_stream(struct sctp_stream_out *strq, struct sctp_stream_out *with_strq) { strq->ss_params.prio.next_spoke.tqe_next = NULL; strq->ss_params.prio.next_spoke.tqe_prev = NULL; if (with_strq != NULL) { strq->ss_params.prio.priority = with_strq->ss_params.prio.priority; } else { strq->ss_params.prio.priority = 0; } return; } static void sctp_ss_prio_add(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) { struct sctp_stream_out *strqt; if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } /* Add to wheel if not already on it and stream queue not empty */ if (!TAILQ_EMPTY(&strq->outqueue) && (strq->ss_params.prio.next_spoke.tqe_next == NULL) && (strq->ss_params.prio.next_spoke.tqe_prev == NULL)) { if (TAILQ_EMPTY(&asoc->ss_data.out_wheel)) { TAILQ_INSERT_HEAD(&asoc->ss_data.out_wheel, strq, ss_params.prio.next_spoke); } else { strqt = TAILQ_FIRST(&asoc->ss_data.out_wheel); while (strqt != NULL && strqt->ss_params.prio.priority < strq->ss_params.prio.priority) { strqt = TAILQ_NEXT(strqt, ss_params.prio.next_spoke); } if (strqt != NULL) { TAILQ_INSERT_BEFORE(strqt, strq, ss_params.prio.next_spoke); } else { TAILQ_INSERT_TAIL(&asoc->ss_data.out_wheel, strq, ss_params.prio.next_spoke); } } } if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static void sctp_ss_prio_remove(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } /* Remove from wheel if stream queue is empty and actually is on the wheel */ if (TAILQ_EMPTY(&strq->outqueue) && (strq->ss_params.prio.next_spoke.tqe_next != NULL || strq->ss_params.prio.next_spoke.tqe_prev != NULL)) { if (asoc->last_out_stream == strq) { asoc->last_out_stream = TAILQ_PREV(asoc->last_out_stream, sctpwheel_listhead, ss_params.prio.next_spoke); if (asoc->last_out_stream == NULL) { asoc->last_out_stream = TAILQ_LAST(&asoc->ss_data.out_wheel, sctpwheel_listhead); } if (asoc->last_out_stream == strq) { asoc->last_out_stream = NULL; } } TAILQ_REMOVE(&asoc->ss_data.out_wheel, strq, ss_params.prio.next_spoke); strq->ss_params.prio.next_spoke.tqe_next = NULL; strq->ss_params.prio.next_spoke.tqe_prev = NULL; } if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static struct sctp_stream_out* sctp_ss_prio_select(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_nets *net, struct sctp_association *asoc) { struct sctp_stream_out *strq, *strqt, *strqn; strqt = asoc->last_out_stream; prio_again: /* Find the next stream to use */ if (strqt == NULL) { strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); } else { strqn = TAILQ_NEXT(strqt, ss_params.prio.next_spoke); if (strqn != NULL && strqn->ss_params.prio.priority == strqt->ss_params.prio.priority) { strq = strqn; } else { strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); } } /* If CMT is off, we must validate that * the stream in question has the first * item pointed towards are network destination * requested by the caller. Note that if we * turn out to be locked to a stream (assigning * TSN's then we must stop, since we cannot * look for another stream with data to send * to that destination). In CMT's case, by * skipping this check, we will send one * data packet towards the requested net. */ if (net != NULL && strq != NULL && SCTP_BASE_SYSCTL(sctp_cmt_on_off) == 0) { if (TAILQ_FIRST(&strq->outqueue) && TAILQ_FIRST(&strq->outqueue)->net != NULL && TAILQ_FIRST(&strq->outqueue)->net != net) { if (strq == asoc->last_out_stream) { return (NULL); } else { strqt = strq; goto prio_again; } } } return (strq); } static int sctp_ss_prio_get_value(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_association *asoc SCTP_UNUSED, struct sctp_stream_out *strq, uint16_t *value) { if (strq == NULL) { return (-1); } *value = strq->ss_params.prio.priority; return (1); } static int sctp_ss_prio_set_value(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, uint16_t value) { if (strq == NULL) { return (-1); } strq->ss_params.prio.priority = value; sctp_ss_prio_remove(stcb, asoc, strq, NULL, 1); sctp_ss_prio_add(stcb, asoc, strq, NULL, 1); return (1); } /* * Fair bandwidth algorithm. * Maintains an equal troughput per stream. */ static void sctp_ss_fb_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, int clear_values, int holds_lock) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } while (!TAILQ_EMPTY(&asoc->ss_data.out_wheel)) { struct sctp_stream_out *strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); if (clear_values) { strq->ss_params.fb.rounds = -1; } TAILQ_REMOVE(&asoc->ss_data.out_wheel, TAILQ_FIRST(&asoc->ss_data.out_wheel), ss_params.fb.next_spoke); strq->ss_params.fb.next_spoke.tqe_next = NULL; strq->ss_params.fb.next_spoke.tqe_prev = NULL; } asoc->last_out_stream = NULL; if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static void sctp_ss_fb_init_stream(struct sctp_stream_out *strq, struct sctp_stream_out *with_strq) { strq->ss_params.fb.next_spoke.tqe_next = NULL; strq->ss_params.fb.next_spoke.tqe_prev = NULL; if (with_strq != NULL) { strq->ss_params.fb.rounds = with_strq->ss_params.fb.rounds; } else { strq->ss_params.fb.rounds = -1; } return; } static void sctp_ss_fb_add(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } if (!TAILQ_EMPTY(&strq->outqueue) && (strq->ss_params.fb.next_spoke.tqe_next == NULL) && (strq->ss_params.fb.next_spoke.tqe_prev == NULL)) { if (strq->ss_params.fb.rounds < 0) strq->ss_params.fb.rounds = TAILQ_FIRST(&strq->outqueue)->length; TAILQ_INSERT_TAIL(&asoc->ss_data.out_wheel, strq, ss_params.fb.next_spoke); } if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static void sctp_ss_fb_remove(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } /* Remove from wheel if stream queue is empty and actually is on the wheel */ if (TAILQ_EMPTY(&strq->outqueue) && (strq->ss_params.fb.next_spoke.tqe_next != NULL || strq->ss_params.fb.next_spoke.tqe_prev != NULL)) { if (asoc->last_out_stream == strq) { asoc->last_out_stream = TAILQ_PREV(asoc->last_out_stream, sctpwheel_listhead, ss_params.fb.next_spoke); if (asoc->last_out_stream == NULL) { asoc->last_out_stream = TAILQ_LAST(&asoc->ss_data.out_wheel, sctpwheel_listhead); } if (asoc->last_out_stream == strq) { asoc->last_out_stream = NULL; } } TAILQ_REMOVE(&asoc->ss_data.out_wheel, strq, ss_params.fb.next_spoke); strq->ss_params.fb.next_spoke.tqe_next = NULL; strq->ss_params.fb.next_spoke.tqe_prev = NULL; } if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static struct sctp_stream_out* sctp_ss_fb_select(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_nets *net, struct sctp_association *asoc) { struct sctp_stream_out *strq = NULL, *strqt; if (asoc->last_out_stream == NULL || TAILQ_FIRST(&asoc->ss_data.out_wheel) == TAILQ_LAST(&asoc->ss_data.out_wheel, sctpwheel_listhead)) { strqt = TAILQ_FIRST(&asoc->ss_data.out_wheel); } else { strqt = TAILQ_NEXT(asoc->last_out_stream, ss_params.fb.next_spoke); } do { if ((strqt != NULL) && ((SCTP_BASE_SYSCTL(sctp_cmt_on_off) > 0) || (SCTP_BASE_SYSCTL(sctp_cmt_on_off) == 0 && (net == NULL || (TAILQ_FIRST(&strqt->outqueue) && TAILQ_FIRST(&strqt->outqueue)->net == NULL) || (net != NULL && TAILQ_FIRST(&strqt->outqueue) && TAILQ_FIRST(&strqt->outqueue)->net != NULL && TAILQ_FIRST(&strqt->outqueue)->net == net))))) { if ((strqt->ss_params.fb.rounds >= 0) && (strq == NULL || strqt->ss_params.fb.rounds < strq->ss_params.fb.rounds)) { strq = strqt; } } if (strqt != NULL) { strqt = TAILQ_NEXT(strqt, ss_params.fb.next_spoke); } else { strqt = TAILQ_FIRST(&asoc->ss_data.out_wheel); } } while (strqt != strq); return (strq); } static void sctp_ss_fb_scheduled(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_nets *net SCTP_UNUSED, struct sctp_association *asoc, struct sctp_stream_out *strq, int moved_how_much SCTP_UNUSED) { struct sctp_stream_out *strqt; int subtract; subtract = strq->ss_params.fb.rounds; TAILQ_FOREACH(strqt, &asoc->ss_data.out_wheel, ss_params.fb.next_spoke) { strqt->ss_params.fb.rounds -= subtract; if (strqt->ss_params.fb.rounds < 0) strqt->ss_params.fb.rounds = 0; } if (TAILQ_FIRST(&strq->outqueue)) { strq->ss_params.fb.rounds = TAILQ_FIRST(&strq->outqueue)->length; } else { strq->ss_params.fb.rounds = -1; } asoc->last_out_stream = strq; return; } /* * First-come, first-serve algorithm. * Maintains the order provided by the application. */ static void sctp_ss_fcfs_add(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp, int holds_lock); static void sctp_ss_fcfs_init(struct sctp_tcb *stcb, struct sctp_association *asoc, int holds_lock) { uint32_t x, n = 0, add_more = 1; struct sctp_stream_queue_pending *sp; uint16_t i; TAILQ_INIT(&asoc->ss_data.out_list); /* * If there is data in the stream queues already, * the scheduler of an existing association has * been changed. We can only cycle through the * stream queues and add everything to the FCFS * queue. */ while (add_more) { add_more = 0; for (i = 0; i < stcb->asoc.streamoutcnt; i++) { sp = TAILQ_FIRST(&stcb->asoc.strmout[i].outqueue); x = 0; /* Find n. message in current stream queue */ while (sp != NULL && x < n) { sp = TAILQ_NEXT(sp, next); x++; } if (sp != NULL) { sctp_ss_fcfs_add(stcb, &stcb->asoc, &stcb->asoc.strmout[i], sp, holds_lock); add_more = 1; } } n++; } return; } static void sctp_ss_fcfs_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, int clear_values, int holds_lock) { if (clear_values) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } while (!TAILQ_EMPTY(&asoc->ss_data.out_list)) { TAILQ_REMOVE(&asoc->ss_data.out_list, TAILQ_FIRST(&asoc->ss_data.out_list), ss_next); } if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } } return; } static void sctp_ss_fcfs_init_stream(struct sctp_stream_out *strq SCTP_UNUSED, struct sctp_stream_out *with_strq SCTP_UNUSED) { /* Nothing to be done here */ return; } static void sctp_ss_fcfs_add(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq SCTP_UNUSED, struct sctp_stream_queue_pending *sp, int holds_lock) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } if (sp && (sp->ss_next.tqe_next == NULL) && (sp->ss_next.tqe_prev == NULL)) { TAILQ_INSERT_TAIL(&asoc->ss_data.out_list, sp, ss_next); } if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static int sctp_ss_fcfs_is_empty(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_association *asoc) { if (TAILQ_EMPTY(&asoc->ss_data.out_list)) { return (1); } else { return (0); } } static void sctp_ss_fcfs_remove(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq SCTP_UNUSED, struct sctp_stream_queue_pending *sp, int holds_lock) { if (holds_lock == 0) { SCTP_TCB_SEND_LOCK(stcb); } if (sp && ((sp->ss_next.tqe_next != NULL) || (sp->ss_next.tqe_prev != NULL))) { TAILQ_REMOVE(&asoc->ss_data.out_list, sp, ss_next); } if (holds_lock == 0) { SCTP_TCB_SEND_UNLOCK(stcb); } return; } static struct sctp_stream_out * sctp_ss_fcfs_select(struct sctp_tcb *stcb SCTP_UNUSED, struct sctp_nets *net, struct sctp_association *asoc) { struct sctp_stream_out *strq; struct sctp_stream_queue_pending *sp; sp = TAILQ_FIRST(&asoc->ss_data.out_list); default_again: if (sp != NULL) { strq = &asoc->strmout[sp->stream]; } else { strq = NULL; } /* * If CMT is off, we must validate that * the stream in question has the first * item pointed towards are network destination * requested by the caller. Note that if we * turn out to be locked to a stream (assigning * TSN's then we must stop, since we cannot * look for another stream with data to send * to that destination). In CMT's case, by * skipping this check, we will send one * data packet towards the requested net. */ if (net != NULL && strq != NULL && SCTP_BASE_SYSCTL(sctp_cmt_on_off) == 0) { if (TAILQ_FIRST(&strq->outqueue) && TAILQ_FIRST(&strq->outqueue)->net != NULL && TAILQ_FIRST(&strq->outqueue)->net != net) { sp = TAILQ_NEXT(sp, ss_next); goto default_again; } } return (strq); } struct sctp_ss_functions sctp_ss_functions[] = { /* SCTP_SS_DEFAULT */ { #if defined(__Windows__) || defined(__Userspace_os_Windows) sctp_ss_default_init, sctp_ss_default_clear, sctp_ss_default_init_stream, sctp_ss_default_add, sctp_ss_default_is_empty, sctp_ss_default_remove, sctp_ss_default_select, sctp_ss_default_scheduled, sctp_ss_default_packet_done, sctp_ss_default_get_value, sctp_ss_default_set_value #else .sctp_ss_init = sctp_ss_default_init, .sctp_ss_clear = sctp_ss_default_clear, .sctp_ss_init_stream = sctp_ss_default_init_stream, .sctp_ss_add_to_stream = sctp_ss_default_add, .sctp_ss_is_empty = sctp_ss_default_is_empty, .sctp_ss_remove_from_stream = sctp_ss_default_remove, .sctp_ss_select_stream = sctp_ss_default_select, .sctp_ss_scheduled = sctp_ss_default_scheduled, .sctp_ss_packet_done = sctp_ss_default_packet_done, .sctp_ss_get_value = sctp_ss_default_get_value, .sctp_ss_set_value = sctp_ss_default_set_value #endif }, /* SCTP_SS_ROUND_ROBIN */ { #if defined(__Windows__) || defined(__Userspace_os_Windows) sctp_ss_default_init, sctp_ss_default_clear, sctp_ss_default_init_stream, sctp_ss_rr_add, sctp_ss_default_is_empty, sctp_ss_default_remove, sctp_ss_default_select, sctp_ss_default_scheduled, sctp_ss_default_packet_done, sctp_ss_default_get_value, sctp_ss_default_set_value #else .sctp_ss_init = sctp_ss_default_init, .sctp_ss_clear = sctp_ss_default_clear, .sctp_ss_init_stream = sctp_ss_default_init_stream, .sctp_ss_add_to_stream = sctp_ss_rr_add, .sctp_ss_is_empty = sctp_ss_default_is_empty, .sctp_ss_remove_from_stream = sctp_ss_default_remove, .sctp_ss_select_stream = sctp_ss_default_select, .sctp_ss_scheduled = sctp_ss_default_scheduled, .sctp_ss_packet_done = sctp_ss_default_packet_done, .sctp_ss_get_value = sctp_ss_default_get_value, .sctp_ss_set_value = sctp_ss_default_set_value #endif }, /* SCTP_SS_ROUND_ROBIN_PACKET */ { #if defined(__Windows__) || defined(__Userspace_os_Windows) sctp_ss_default_init, sctp_ss_default_clear, sctp_ss_default_init_stream, sctp_ss_rr_add, sctp_ss_default_is_empty, sctp_ss_default_remove, sctp_ss_rrp_select, sctp_ss_default_scheduled, sctp_ss_rrp_packet_done, sctp_ss_default_get_value, sctp_ss_default_set_value #else .sctp_ss_init = sctp_ss_default_init, .sctp_ss_clear = sctp_ss_default_clear, .sctp_ss_init_stream = sctp_ss_default_init_stream, .sctp_ss_add_to_stream = sctp_ss_rr_add, .sctp_ss_is_empty = sctp_ss_default_is_empty, .sctp_ss_remove_from_stream = sctp_ss_default_remove, .sctp_ss_select_stream = sctp_ss_rrp_select, .sctp_ss_scheduled = sctp_ss_default_scheduled, .sctp_ss_packet_done = sctp_ss_rrp_packet_done, .sctp_ss_get_value = sctp_ss_default_get_value, .sctp_ss_set_value = sctp_ss_default_set_value #endif }, /* SCTP_SS_PRIORITY */ { #if defined(__Windows__) || defined(__Userspace_os_Windows) sctp_ss_default_init, sctp_ss_prio_clear, sctp_ss_prio_init_stream, sctp_ss_prio_add, sctp_ss_default_is_empty, sctp_ss_prio_remove, sctp_ss_prio_select, sctp_ss_default_scheduled, sctp_ss_default_packet_done, sctp_ss_prio_get_value, sctp_ss_prio_set_value #else .sctp_ss_init = sctp_ss_default_init, .sctp_ss_clear = sctp_ss_prio_clear, .sctp_ss_init_stream = sctp_ss_prio_init_stream, .sctp_ss_add_to_stream = sctp_ss_prio_add, .sctp_ss_is_empty = sctp_ss_default_is_empty, .sctp_ss_remove_from_stream = sctp_ss_prio_remove, .sctp_ss_select_stream = sctp_ss_prio_select, .sctp_ss_scheduled = sctp_ss_default_scheduled, .sctp_ss_packet_done = sctp_ss_default_packet_done, .sctp_ss_get_value = sctp_ss_prio_get_value, .sctp_ss_set_value = sctp_ss_prio_set_value #endif }, /* SCTP_SS_FAIR_BANDWITH */ { #if defined(__Windows__) || defined(__Userspace_os_Windows) sctp_ss_default_init, sctp_ss_fb_clear, sctp_ss_fb_init_stream, sctp_ss_fb_add, sctp_ss_default_is_empty, sctp_ss_fb_remove, sctp_ss_fb_select, sctp_ss_fb_scheduled, sctp_ss_default_packet_done, sctp_ss_default_get_value, sctp_ss_default_set_value #else .sctp_ss_init = sctp_ss_default_init, .sctp_ss_clear = sctp_ss_fb_clear, .sctp_ss_init_stream = sctp_ss_fb_init_stream, .sctp_ss_add_to_stream = sctp_ss_fb_add, .sctp_ss_is_empty = sctp_ss_default_is_empty, .sctp_ss_remove_from_stream = sctp_ss_fb_remove, .sctp_ss_select_stream = sctp_ss_fb_select, .sctp_ss_scheduled = sctp_ss_fb_scheduled, .sctp_ss_packet_done = sctp_ss_default_packet_done, .sctp_ss_get_value = sctp_ss_default_get_value, .sctp_ss_set_value = sctp_ss_default_set_value #endif }, /* SCTP_SS_FIRST_COME */ { #if defined(__Windows__) || defined(__Userspace_os_Windows) sctp_ss_fcfs_init, sctp_ss_fcfs_clear, sctp_ss_fcfs_init_stream, sctp_ss_fcfs_add, sctp_ss_fcfs_is_empty, sctp_ss_fcfs_remove, sctp_ss_fcfs_select, sctp_ss_default_scheduled, sctp_ss_default_packet_done, sctp_ss_default_get_value, sctp_ss_default_set_value #else .sctp_ss_init = sctp_ss_fcfs_init, .sctp_ss_clear = sctp_ss_fcfs_clear, .sctp_ss_init_stream = sctp_ss_fcfs_init_stream, .sctp_ss_add_to_stream = sctp_ss_fcfs_add, .sctp_ss_is_empty = sctp_ss_fcfs_is_empty, .sctp_ss_remove_from_stream = sctp_ss_fcfs_remove, .sctp_ss_select_stream = sctp_ss_fcfs_select, .sctp_ss_scheduled = sctp_ss_default_scheduled, .sctp_ss_packet_done = sctp_ss_default_packet_done, .sctp_ss_get_value = sctp_ss_default_get_value, .sctp_ss_set_value = sctp_ss_default_set_value #endif } };
30.975
113
0.70912
d6cef593c40e381a1969f6885b1fb8fc75f1d87d
2,178
h
C
ast/statement_list.h
Houzz/tap
48e505ad76a9400fda48dcf22ba3cf1ce8c036d5
[ "Apache-2.0" ]
4
2017-08-10T22:49:08.000Z
2017-09-20T08:11:49.000Z
ast/statement_list.h
Houzz/tap
48e505ad76a9400fda48dcf22ba3cf1ce8c036d5
[ "Apache-2.0" ]
null
null
null
ast/statement_list.h
Houzz/tap
48e505ad76a9400fda48dcf22ba3cf1ce8c036d5
[ "Apache-2.0" ]
2
2017-08-14T18:44:17.000Z
2018-04-14T13:58:35.000Z
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ */ /* +------------------------------------------+ | Type Analyzer for PHP | | Modified work Copyright 2017 Houzz, Inc | +------------------------------------------+ */ #pragma once #include <vector> #include <cassert> #include <glog/logging.h> #include "statement.h" #include "visitor/ast_visitor.h" namespace HPHP { class StatementList : public Statement { public: StatementList(const Location::Range& r) : Statement(r) {} void addElement(StatementPtr stmt) override { m_stmts.push_back(stmt); } void insertElement(StatementPtr stmt, int index = 0) override { CHECK(index >= 0 && index <= (int)m_stmts.size()) << "out of range"; m_stmts.insert(m_stmts.begin() + index, stmt); } int size() {return m_stmts.size();} StatementPtr get(int idx) {return m_stmts[idx];} void accept(Tap::AstVisitor& v) override { for (auto stmt : m_stmts) { if (!stmt) { LOG(FATAL) << "Null statement inside statement list"; } stmt->accept(v); } v.visit(this); } SIMPLE_VISIT_METHOD private: std::vector<StatementPtr> m_stmts; }; }
34.03125
75
0.475666