id
int64
0
755k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
65
repo_stars
int64
100
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
9 values
repo_extraction_date
stringclasses
92 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
34,812
loadingr.cpp
OpenMW_openmw/components/esm4/loadingr.cpp
/* Copyright (C) 2016, 2018, 2021 cc9cii 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 commercia...
4,675
C++
.cpp
121
27.330579
114
0.553426
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,813
loaddial.cpp
OpenMW_openmw/components/esm4/loaddial.cpp
/* Copyright (C) 2020-2021 cc9cii 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 appli...
3,589
C++
.cpp
89
30.247191
114
0.589552
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,814
loadanio.cpp
OpenMW_openmw/components/esm4/loadanio.cpp
/* Copyright (C) 2016, 2018 cc9cii 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 appl...
2,563
C++
.cpp
65
31.661538
114
0.646822
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,815
loadlgtm.cpp
OpenMW_openmw/components/esm4/loadlgtm.cpp
/* Copyright (C) 2020-2021 cc9cii 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 appli...
2,665
C++
.cpp
65
33
114
0.646308
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,816
loadarmo.cpp
OpenMW_openmw/components/esm4/loadarmo.cpp
/* Copyright (C) 2016, 2018-2021 cc9cii 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...
9,197
C++
.cpp
239
24.225941
114
0.479991
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,817
loadltex.cpp
OpenMW_openmw/components/esm4/loadltex.cpp
/* Copyright (C) 2015-2016, 2018 cc9cii 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...
3,182
C++
.cpp
82
28.341463
114
0.588083
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,818
loadappa.cpp
OpenMW_openmw/components/esm4/loadappa.cpp
/* Copyright (C) 2016, 2018-2021 cc9cii 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...
3,237
C++
.cpp
84
28.488095
114
0.59376
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,819
loadacti.cpp
OpenMW_openmw/components/esm4/loadacti.cpp
/* Copyright (C) 2016, 2018, 2020-2021 cc9cii 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 comm...
4,338
C++
.cpp
109
29.550459
114
0.57529
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,820
loadbptd.cpp
OpenMW_openmw/components/esm4/loadbptd.cpp
/* Copyright (C) 2019-2021 cc9cii 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 appli...
4,421
C++
.cpp
111
30.441441
114
0.60326
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,821
loadterm.cpp
OpenMW_openmw/components/esm4/loadterm.cpp
/* Copyright (C) 2019-2021 cc9cii 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 appli...
4,535
C++
.cpp
113
29.716814
114
0.565079
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,822
loadmisc.cpp
OpenMW_openmw/components/esm4/loadmisc.cpp
/* Copyright (C) 2016, 2018, 2020-2021 cc9cii 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 comm...
3,858
C++
.cpp
98
29.428571
114
0.584045
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,823
loadnavi.cpp
OpenMW_openmw/components/esm4/loadnavi.cpp
/* Copyright (C) 2015-2016, 2018, 2020-2021 cc9cii 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...
14,444
C++
.cpp
342
33.403509
123
0.497512
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,824
loadnavm.cpp
OpenMW_openmw/components/esm4/loadnavm.cpp
/* Copyright (C) 2015-2016, 2018, 2020-2021 cc9cii 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...
8,589
C++
.cpp
225
30.755556
123
0.569698
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,825
loadmset.cpp
OpenMW_openmw/components/esm4/loadmset.cpp
/* Copyright (C) 2020 cc9cii 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 applicatio...
4,753
C++
.cpp
131
24.473282
114
0.540998
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,826
loadtxst.cpp
OpenMW_openmw/components/esm4/loadtxst.cpp
/* Copyright (C) 2019, 2020 cc9cii 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 appl...
3,865
C++
.cpp
98
28.928571
114
0.584554
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,827
loaddobj.cpp
OpenMW_openmw/components/esm4/loaddobj.cpp
/* Copyright (C) 2020-2021 cc9cii 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 appli...
4,302
C++
.cpp
92
35.771739
114
0.643317
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,828
loadclfm.cpp
OpenMW_openmw/components/esm4/loadclfm.cpp
/* Copyright (C) 2020-2021 cc9cii 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 appli...
2,427
C++
.cpp
62
31.564516
114
0.654484
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,829
loadlvlc.cpp
OpenMW_openmw/components/esm4/loadlvlc.cpp
/* Copyright (C) 2016, 2018, 2020 cc9cii 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 commercia...
4,195
C++
.cpp
109
28.458716
116
0.583047
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,830
loadrefr.cpp
OpenMW_openmw/components/esm4/loadrefr.cpp
/* Copyright (C) 2015-2016, 2018, 2020-2021 cc9cii 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...
14,803
C++
.cpp
359
26.498607
118
0.467522
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,831
loadrace.cpp
OpenMW_openmw/components/esm4/loadrace.cpp
/* Copyright (C) 2016, 2018-2021 cc9cii 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...
30,634
C++
.cpp
731
26.101231
116
0.453772
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,832
loadflst.cpp
OpenMW_openmw/components/esm4/loadflst.cpp
/* Copyright (C) 2020 cc9cii 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 applicatio...
2,118
C++
.cpp
53
33.830189
114
0.689235
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,833
loadsbsp.cpp
OpenMW_openmw/components/esm4/loadsbsp.cpp
/* Copyright (C) 2016, 2018, 2020 cc9cii 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 commercia...
2,104
C++
.cpp
54
32.703704
114
0.68106
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,834
loadligh.cpp
OpenMW_openmw/components/esm4/loadligh.cpp
/* Copyright (C) 2016, 2018, 2020-2021 cc9cii 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 comm...
4,912
C++
.cpp
125
27.36
114
0.543132
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,835
loadclas.cpp
OpenMW_openmw/components/esm4/loadclas.cpp
/* Copyright (C) 2016, 2018, 2021 cc9cii 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 commercia...
2,390
C++
.cpp
61
31.885246
114
0.658179
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,836
loadglob.cpp
OpenMW_openmw/components/esm4/loadglob.cpp
/* Copyright (C) 2020 cc9cii 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 applicatio...
2,312
C++
.cpp
59
32.084746
114
0.662651
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,837
loadarma.cpp
OpenMW_openmw/components/esm4/loadarma.cpp
/* Copyright (C) 2019, 2020 cc9cii 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 appl...
6,738
C++
.cpp
147
33.659864
114
0.56615
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,838
loadaspc.cpp
OpenMW_openmw/components/esm4/loadaspc.cpp
/* Copyright (C) 2020 cc9cii 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 applicatio...
2,973
C++
.cpp
75
30.746667
114
0.62578
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,839
loadnpc.cpp
OpenMW_openmw/components/esm4/loadnpc.cpp
/* Copyright (C) 2016-2021 cc9cii 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 appli...
12,723
C++
.cpp
325
25.566154
114
0.486628
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,840
loadweap.cpp
OpenMW_openmw/components/esm4/loadweap.cpp
/* Copyright (C) 2016, 2018-2021 cc9cii 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...
8,473
C++
.cpp
204
29.034314
114
0.515078
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,841
debugdraw.cpp
OpenMW_openmw/components/debug/debugdraw.cpp
#include "debugdraw.hpp" #include <components/sceneutil/nodecallback.hpp> #include <components/shader/shadermanager.hpp> #include <osg/Array> #include <osg/Drawable> #include <osg/GLExtensions> #include <osg/Geometry> #include <osg/Program> #include <osg/Uniform> #include <osg/Vec3> static osg::Vec3 sphereCoordToCart...
14,072
C++
.cpp
349
33.295129
119
0.626856
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,842
gldebug.cpp
OpenMW_openmw/components/debug/gldebug.cpp
// This file is based heavily on code from // https://github.com/ThermalPixel/osgdemos/blob/master/osgdebug/EnableGLDebugOperation.cpp The original licence is // included below: /* Copyright (c) 2014, Andreas Klein All rights reserved. Redistribution and use in source and binary forms, with or without modification, ar...
10,305
C++
.cpp
243
33.300412
117
0.647534
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,843
debuglog.cpp
OpenMW_openmw/components/debug/debuglog.cpp
#include "debuglog.hpp" #include <mutex> #include <components/files/conversion.hpp> #include <components/misc/strings/conversion.hpp> static std::mutex sLock; Debug::Level Log::sMinDebugLevel = Debug::All; bool Log::sWriteLevel = false; Log::Log(Debug::Level level) : mShouldLog(level <= sMinDebugLevel) { /...
1,301
C++
.cpp
50
22.1
66
0.671533
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,844
debugging.cpp
OpenMW_openmw/components/debug/debugging.cpp
#include "debugging.hpp" #include <chrono> #include <deque> #include <fstream> #include <iostream> #include <memory> #ifdef _MSC_VER // TODO: why is this necessary? this has /external:I #pragma warning(push) #pragma warning(disable : 4702) #endif #include <boost/iostreams/stream.hpp> #ifdef _MSC_VER #pragma warning(p...
14,755
C++
.cpp
412
25.533981
118
0.556334
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,845
esmterrain.cpp
OpenMW_openmw/components/esm/esmterrain.cpp
#include "esmterrain.hpp" #include <components/esm3/loadland.hpp> #include <components/esm4/loadland.hpp> #include <components/misc/constants.hpp> namespace { constexpr std::uint16_t textures[ESM::LandRecordData::sLandNumTextures]{ 0 }; std::unique_ptr<const ESM::LandRecordData> loadData(const ESM::Land& lan...
2,413
C++
.cpp
67
30.686567
100
0.676798
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,846
formid.cpp
OpenMW_openmw/components/esm/formid.cpp
#include "formid.hpp" #include <charconv> #include <cstring> std::string ESM::FormId::toString(std::string_view prefix) const { std::string res; res.resize(prefix.length() + 20); std::memcpy(res.data(), prefix.data(), prefix.size()); char* buf = res.data() + prefix.size(); uint64_t value; if (...
1,360
C++
.cpp
37
31.675676
105
0.611364
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,847
esmbridge.cpp
OpenMW_openmw/components/esm/esmbridge.cpp
#include <components/esm/esmbridge.hpp> #include <components/esm3/loadcell.hpp> #include <components/esm4/loadcell.hpp> namespace ESM { const ESM4::Cell& CellVariant::getEsm4() const { auto cell4 = std::get<const ESM4::Cell*>(mVariant); return *cell4; } const ESM::Cell& CellVariant::ge...
428
C++
.cpp
16
22.125
59
0.658537
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,848
util.cpp
OpenMW_openmw/components/esm/util.cpp
#include "util.hpp" #include <components/esm3/loadland.hpp> #include <components/esm4/loadland.hpp> osg::Vec2f ESM::indexToPosition(const ESM::ExteriorCellLocation& cellIndex, bool centre) { const int cellSize = ESM::getCellSize(cellIndex.mWorldspace); float x = static_cast<float>(cellSize * cellIndex.mX); ...
631
C++
.cpp
19
29.368421
88
0.70132
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,849
common.cpp
OpenMW_openmw/components/esm/common.cpp
#include <cstdint> #include <string> namespace ESM { std::string printName(const std::uint32_t typeId) { unsigned char typeName[4]; typeName[0] = typeId & 0xff; typeName[1] = (typeId >> 8) & 0xff; typeName[2] = (typeId >> 16) & 0xff; typeName[3] = (typeId >> 24) & 0xff; ...
377
C++
.cpp
14
21.5
53
0.576177
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,850
format.cpp
OpenMW_openmw/components/esm/format.cpp
#include "format.hpp" #include <cstring> #include <istream> #include <stdexcept> #include <string> namespace ESM { namespace { bool isValidFormat(std::uint32_t value) { return value == static_cast<std::uint32_t>(Format::Tes3) || value == static_cast<std::uint32_t>(F...
1,234
C++
.cpp
38
25.026316
85
0.593619
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,851
generatedrefid.cpp
OpenMW_openmw/components/esm/generatedrefid.cpp
#include "generatedrefid.hpp" #include "serializerefid.hpp" #include <ostream> namespace ESM { std::string GeneratedRefId::toString() const { std::string result; result.resize(getHexIntegralSizeWith0x(mValue), '\0'); serializeHexIntegral(mValue, 0, result); return result; ...
643
C++
.cpp
23
22.391304
72
0.674797
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,852
esm3exteriorcellrefid.cpp
OpenMW_openmw/components/esm/esm3exteriorcellrefid.cpp
#include "esm3exteriorcellrefid.hpp" #include "serializerefid.hpp" #include <limits> #include <ostream> #include <sstream> namespace ESM { std::string ESM3ExteriorCellRefId::toString() const { constexpr std::size_t separator = 1; std::string result; result.resize(separator + getDecInte...
1,367
C++
.cpp
36
31.527778
118
0.671439
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,853
stringrefid.cpp
OpenMW_openmw/components/esm/stringrefid.cpp
#include "stringrefid.hpp" #include "serializerefid.hpp" #include <charconv> #include <iomanip> #include <mutex> #include <ostream> #include <sstream> #include <system_error> #include <unordered_set> #include "components/misc/guarded.hpp" #include "components/misc/strings/algorithm.hpp" #include "components/misc/utf8...
4,443
C++
.cpp
129
25.697674
118
0.572061
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,854
attr.cpp
OpenMW_openmw/components/esm/attr.cpp
#include "attr.hpp" #include <components/esm3/esmreader.hpp> #include <components/esm3/esmwriter.hpp> #include <stdexcept> namespace ESM { const Attribute::AttributeID Attribute::Strength("Strength"); const Attribute::AttributeID Attribute::Intelligence("Intelligence"); const Attribute::AttributeID Attri...
1,631
C++
.cpp
48
27.479167
74
0.664127
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,855
refid.cpp
OpenMW_openmw/components/esm/refid.cpp
#include "refid.hpp" #include "serializerefid.hpp" #include "components/misc/strings/lower.hpp" #include <charconv> #include <ostream> #include <sstream> #include <stdexcept> #include <system_error> #include <variant> namespace ESM { namespace { const std::string emptyString; struct GetRefS...
7,370
C++
.cpp
202
26.475248
117
0.566854
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,856
luascripts.cpp
OpenMW_openmw/components/esm/luascripts.cpp
#include "luascripts.hpp" #include "components/esm3/esmreader.hpp" #include "components/esm3/esmwriter.hpp" #include <components/lua/serialization.hpp> // List of all records, that are related to Lua. // // Records: // LUAL - LuaScriptsCfg - list of all scripts (in content files) // LUAM - MWLua::LuaManager (in save...
6,567
C++
.cpp
181
28.801105
103
0.630711
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,857
indexrefid.cpp
OpenMW_openmw/components/esm/indexrefid.cpp
#include "indexrefid.hpp" #include "serializerefid.hpp" #include <ostream> namespace ESM { std::string IndexRefId::toString() const { std::string result; constexpr std::size_t separator = 1; result.resize(sizeof(mRecordType) + separator + getHexIntegralSizeWith0x(mValue), '\0'); ...
1,236
C++
.cpp
31
33.290323
106
0.674167
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,858
myguidatamanager.cpp
OpenMW_openmw/components/myguiplatform/myguidatamanager.cpp
#include "myguidatamanager.hpp" #include <stdexcept> #include <string> #include <MyGUI_DataFileStream.h> #include <components/files/conversion.hpp> #include <components/vfs/manager.hpp> namespace { class DataStream final : public MyGUI::DataStream { public: explicit DataStream(std::unique_ptr<st...
1,780
C++
.cpp
58
24.586207
99
0.665299
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,859
myguitexture.cpp
OpenMW_openmw/components/myguiplatform/myguitexture.cpp
#include "myguitexture.hpp" #include <stdexcept> #include <osg/StateSet> #include <osg/Texture2D> #include <components/debug/debuglog.hpp> #include <components/resource/imagemanager.hpp> namespace osgMyGUI { OSGTexture::OSGTexture(const std::string& name, Resource::ImageManager* imageManager) : mName(n...
5,752
C++
.cpp
140
32.342857
110
0.627865
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,860
additivelayer.cpp
OpenMW_openmw/components/myguiplatform/additivelayer.cpp
#include "additivelayer.hpp" #include <osg/BlendFunc> #include <osg/StateSet> #include "myguirendermanager.hpp" namespace osgMyGUI { AdditiveLayer::AdditiveLayer() { mStateSet = new osg::StateSet; mStateSet->setAttributeAndModes(new osg::BlendFunc(osg::BlendFunc::SRC_ALPHA, osg::BlendFunc::O...
828
C++
.cpp
23
30.565217
108
0.715723
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,861
scalinglayer.cpp
OpenMW_openmw/components/myguiplatform/scalinglayer.cpp
#include "scalinglayer.hpp" #include <MyGUI_RenderManager.h> #include <algorithm> namespace osgMyGUI { /// @brief the ProxyRenderTarget allows to adjust the pixel scale and offset for a "source" render target. class ProxyRenderTarget : public MyGUI::IRenderTarget { public: /// @param target T...
4,687
C++
.cpp
110
33.690909
119
0.628132
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,862
myguiplatform.cpp
OpenMW_openmw/components/myguiplatform/myguiplatform.cpp
#include "myguiplatform.hpp" #include "myguidatamanager.hpp" #include "myguiloglistener.hpp" #include "myguirendermanager.hpp" #include "components/files/conversion.hpp" namespace osgMyGUI { Platform::Platform(osgViewer::Viewer* viewer, osg::Group* guiRoot, Resource::ImageManager* imageManager, const VF...
1,285
C++
.cpp
33
33.030303
108
0.704509
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,863
myguirendermanager.cpp
OpenMW_openmw/components/myguiplatform/myguirendermanager.cpp
#include "myguirendermanager.hpp" #include <MyGUI_Timer.h> #include <osg/Drawable> #include <osg/TexMat> #include <osg/Texture2D> #include <osgViewer/Viewer> #include <osgGA/GUIEventHandler> #include <components/resource/imagemanager.hpp> #include <components/sceneutil/nodecallback.hpp> #include <components/shader...
19,999
C++
.cpp
450
34.597778
120
0.563783
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,864
myguiloglistener.cpp
OpenMW_openmw/components/myguiplatform/myguiloglistener.cpp
#include "myguiloglistener.hpp" #include <iomanip> #include <components/debug/debuglog.hpp> namespace osgMyGUI { void CustomLogListener::open() { mStream.open(mFileName, std::ios_base::out); if (!mStream.is_open()) Log(Debug::Error) << "Unable to create MyGUI log with path " << mF...
1,599
C++
.cpp
46
25.956522
118
0.541397
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,865
bulletnifloader.cpp
OpenMW_openmw/components/nifbullet/bulletnifloader.cpp
#include "bulletnifloader.hpp" #include <cassert> #include <sstream> #include <tuple> #include <variant> #include <vector> #include <components/debug/debuglog.hpp> #include <components/files/conversion.hpp> #include <components/misc/convert.hpp> #include <components/misc/strings/algorithm.hpp> #include <components/ni...
12,129
C++
.cpp
279
31.089606
119
0.563183
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,866
node.cpp
OpenMW_openmw/components/nif/node.cpp
#include "node.hpp" #include <cstdint> #include <BulletCollision/CollisionShapes/btTriangleMesh.h> #include <components/misc/convert.hpp> #include <components/misc/strings/algorithm.hpp> #include <components/resource/bulletshape.hpp> #include "data.hpp" #include "exception.hpp" #include "physics.hpp" #include "prop...
23,965
C++
.cpp
665
26.178947
116
0.573228
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,867
property.cpp
OpenMW_openmw/components/nif/property.cpp
#include "property.hpp" #include "data.hpp" #include "texture.hpp" namespace Nif { void NiTextureTransform::read(NIFStream* nif) { nif->read(mOffset); nif->read(mScale); nif->read(mRotation); mTransformMethod = static_cast<Method>(nif->get<uint32_t>()); nif->read(mOrig...
18,336
C++
.cpp
502
25.788845
117
0.553726
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,868
data.cpp
OpenMW_openmw/components/nif/data.cpp
#include "data.hpp" #include <components/debug/debuglog.hpp> #include "exception.hpp" #include "nifkey.hpp" #include "node.hpp" namespace Nif { void NiGeometryData::read(NIFStream* nif) { if (nif->getVersion() >= NIFStream::generateVersion(10, 1, 0, 114)) nif->read(mGroupId); nif...
19,383
C++
.cpp
562
24.802491
116
0.555633
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,869
physics.cpp
OpenMW_openmw/components/nif/physics.cpp
#include "physics.hpp" #include "data.hpp" #include "node.hpp" #include <array> namespace Nif { /// Non-record data types void bhkWorldObjCInfoProperty::read(NIFStream* nif) { nif->read(mData); nif->read(mSize); nif->read(mCapacityAndFlags); } void bhkWorldObjectCInfo::...
28,292
C++
.cpp
901
22.442841
111
0.573981
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,870
base.cpp
OpenMW_openmw/components/nif/base.cpp
#include "base.hpp" namespace Nif { void Extra::read(NIFStream* nif) { if (nif->getVersion() >= NIFStream::generateVersion(10, 0, 1, 0)) nif->read(mName); else if (nif->getVersion() <= NIFStream::generateVersion(4, 2, 2, 0)) { mNext.read(nif); nif->re...
1,013
C++
.cpp
36
20.583333
77
0.571429
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,871
controller.cpp
OpenMW_openmw/components/nif/controller.cpp
#include "controller.hpp" #include "data.hpp" #include "exception.hpp" #include "node.hpp" #include "particle.hpp" #include "texture.hpp" namespace Nif { void NiTimeController::read(NIFStream* nif) { mNext.read(nif); nif->read(mFlags); nif->read(mFrequency); nif->read(mPhase);...
24,720
C++
.cpp
734
24.885559
116
0.593899
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,872
extra.cpp
OpenMW_openmw/components/nif/extra.cpp
#include "extra.hpp" namespace Nif { void NiExtraData::read(NIFStream* nif) { Extra::read(nif); nif->readVector(mData, mRecordSize); } void NiStringsExtraData::read(NIFStream* nif) { Extra::read(nif); nif->getSizedStrings(mData, nif->get<uint32_t>()); } ...
5,364
C++
.cpp
178
22.292135
87
0.59188
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,873
particle.cpp
OpenMW_openmw/components/nif/particle.cpp
#include "particle.hpp" #include "data.hpp" namespace Nif { void NiParticleModifier::read(NIFStream* nif) { mNext.read(nif); if (nif->getVersion() >= NIFStream::generateVersion(3, 3, 0, 13)) mController.read(nif); } void NiParticleModifier::post(Reader& nif) { ...
18,864
C++
.cpp
584
23.731164
104
0.598003
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,874
nifstream.cpp
OpenMW_openmw/components/nif/nifstream.cpp
#include "nifstream.hpp" #include <span> #include "niffile.hpp" #include "../to_utf8/to_utf8.hpp" namespace { // Read a range of elements into a dynamic buffer per-element // This one should be used if the type cannot be read contiguously // (e.g. quaternions) template <class T> void readRange(...
6,906
C++
.cpp
220
24.190909
108
0.585564
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,875
effect.cpp
OpenMW_openmw/components/nif/effect.cpp
#include "effect.hpp" #include "node.hpp" #include "texture.hpp" namespace Nif { void NiDynamicEffect::read(NIFStream* nif) { NiAVObject::read(nif); if (nif->getVersion() > NIFFile::VER_MW && nif->getVersion() < nif->generateVersion(10, 1, 0, 0)) return; if (nif->getBeth...
2,266
C++
.cpp
65
27.015385
105
0.601648
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,876
niffile.cpp
OpenMW_openmw/components/nif/niffile.cpp
#include "niffile.hpp" #include <components/debug/debuglog.hpp> #include <components/files/hash.hpp> #include <algorithm> #include <array> #include <limits> #include <map> #include <sstream> #include <stdexcept> #include "controller.hpp" #include "data.hpp" #include "effect.hpp" #include "exception.hpp" #include "ex...
42,845
C++
.cpp
649
53.801233
120
0.663142
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,877
texture.cpp
OpenMW_openmw/components/nif/texture.cpp
#include "texture.hpp" #include "data.hpp" namespace Nif { void NiSourceTexture::read(NIFStream* nif) { NiTexture::read(nif); nif->read(mExternal); bool hasData = nif->getVersion() >= NIFStream::generateVersion(10, 0, 1, 4); if (!hasData && !mExternal) hasData = n...
1,289
C++
.cpp
36
27.833333
86
0.591787
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,878
installopcodes.cpp
OpenMW_openmw/components/interpreter/installopcodes.cpp
#include "installopcodes.hpp" #include <functional> #include "controlopcodes.hpp" #include "genericopcodes.hpp" #include "interpreter.hpp" #include "localopcodes.hpp" #include "mathopcodes.hpp" #include "miscopcodes.hpp" namespace Interpreter { void installOpcodes(Interpreter& interpreter) { // gener...
4,493
C++
.cpp
79
49.037975
99
0.740808
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,879
runtime.cpp
OpenMW_openmw/components/interpreter/runtime.cpp
#include "runtime.hpp" #include "program.hpp" #include <cassert> #include <cstring> #include <stdexcept> namespace Interpreter { int Runtime::getIntegerLiteral(int index) const { if (index < 0 || mProgram->mIntegers.size() <= static_cast<std::size_t>(index)) throw std::out_of_range("Invali...
2,115
C++
.cpp
72
22.569444
87
0.595556
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,880
interpreter.cpp
OpenMW_openmw/components/interpreter/interpreter.cpp
#include "interpreter.hpp" #include <cassert> #include <stdexcept> #include <string> #include "opcodes.hpp" #include "program.hpp" namespace Interpreter { [[noreturn]] static void abortUnknownCode(int segment, int opcode) { const std::string error = "unknown opcode " + std::to_string(opcode) + " in s...
3,167
C++
.cpp
109
19.33945
120
0.518445
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,881
defines.cpp
OpenMW_openmw/components/interpreter/defines.cpp
#include "defines.hpp" #include <algorithm> #include <sstream> #include <string> #include <string_view> #include <tuple> #include <vector> #include <components/debug/debuglog.hpp> #include <components/misc/strings/algorithm.hpp> namespace { bool check(std::string_view str, std::string_view escword, size_t& i, s...
7,127
C++
.cpp
172
27.866279
119
0.490849
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,882
translation.cpp
OpenMW_openmw/components/translation/translation.cpp
#include "translation.hpp" #include <fstream> namespace Translation { Storage::Storage() : mEncoder(nullptr) { } void Storage::loadTranslationData(const Files::Collections& dataFileCollections, std::string_view esmFileName) { std::string esmNameNoExtension(Misc::StringUtils::lower...
3,491
C++
.cpp
86
31.186047
114
0.616795
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,883
technique.cpp
OpenMW_openmw/components/fx/technique.cpp
#include "technique.hpp" #include <array> #include <string> #include <utility> #include <osg/Texture1D> #include <osg/Texture2D> #include <osg/Texture3D> #include <SDL_opengl_glext.h> #include <components/debug/debuglog.hpp> #include <components/files/conversion.hpp> #include <components/misc/strings/algorithm.hpp>...
36,579
C++
.cpp
924
28.090909
119
0.539186
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,884
stateupdater.cpp
OpenMW_openmw/components/fx/stateupdater.cpp
#include "stateupdater.hpp" #include <osg/BufferIndexBinding> #include <osg/BufferObject> #include <components/resource/scenemanager.hpp> namespace fx { std::string StateUpdater::sDefinition = UniformData::getDefinition("_omw_data"); StateUpdater::StateUpdater(bool useUBO) : mUseUBO(useUBO) { ...
2,609
C++
.cpp
59
33.898305
117
0.591088
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,885
widgets.cpp
OpenMW_openmw/components/fx/widgets.cpp
#include "widgets.hpp" #include <components/widgets/box.hpp> namespace { template <class T, class WidgetT> void createVectorWidget( const std::shared_ptr<fx::Types::UniformBase>& uniform, MyGUI::Widget* client, fx::Widgets::UniformBase* base) { int height = client->getHeight(); bas...
8,278
C++
.cpp
199
25.859296
118
0.481979
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,886
lexer.cpp
OpenMW_openmw/components/fx/lexer.cpp
#include "lexer.hpp" #include <cctype> #include <cstdlib> #include <optional> #include <string> #include <string_view> #include <components/fx/lexer_types.hpp> #include <components/misc/strings/format.hpp> namespace fx { namespace Lexer { Lexer::Lexer(std::string_view buffer) : mHead(buff...
8,510
C++
.cpp
271
16.745387
117
0.373444
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,887
pass.cpp
OpenMW_openmw/components/fx/pass.cpp
#include "pass.hpp" #include <sstream> #include <string> #include <unordered_set> #include <osg/BindImageTexture> #include <osg/FrameBufferObject> #include <osg/Program> #include <osg/Shader> #include <osg/State> #include <osg/StateSet> #include <components/resource/scenemanager.hpp> #include <components/sceneutil/l...
10,721
C++
.cpp
310
28.474194
119
0.63675
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,888
textedit.cpp
OpenMW_openmw/components/lua_ui/textedit.cpp
#include "textedit.hpp" #include "alignment.hpp" namespace LuaUi { void LuaTextEdit::initialize() { mEditBox = createWidget<MyGUI::EditBox>("LuaTextEdit", MyGUI::IntCoord(0, 0, 0, 0), MyGUI::Align::Default); mEditBox->eventEditTextChange += MyGUI::newDelegate(this, &LuaTextEdit::textChange); ...
2,606
C++
.cpp
63
33.920635
115
0.671016
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,889
widget.cpp
OpenMW_openmw/components/lua_ui/widget.cpp
#include "widget.hpp" #include <SDL_events.h> #include <components/sdlutil/sdlmappings.hpp> namespace LuaUi { WidgetExtension::WidgetExtension() : mForcePosition(false) , mForceSize(false) , mPropagateEvents(true) , mVisible(true) , mLua(nullptr) , mWidget(nullptr) ...
13,926
C++
.cpp
376
29.050532
113
0.631123
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,890
content.cpp
OpenMW_openmw/components/lua_ui/content.cpp
#include "content.hpp" #include "element.hpp" namespace LuaUi { sol::protected_function loadContentConstructor(LuaUtil::LuaState* state) { sol::protected_function loader = state->loadInternalLib("content"); sol::set_environment(state->newInternalLibEnvironment(), loader); sol::table met...
923
C++
.cpp
23
33.304348
104
0.646993
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,891
util.cpp
OpenMW_openmw/components/lua_ui/util.cpp
#include "util.hpp" #include <MyGUI_FactoryManager.h> #include "adapter.hpp" #include "container.hpp" #include "flex.hpp" #include "image.hpp" #include "text.hpp" #include "textedit.hpp" #include "widget.hpp" #include "window.hpp" #include "element.hpp" #include "registerscriptsettings.hpp" namespace LuaUi { v...
1,903
C++
.cpp
50
31.54
87
0.656369
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,892
adapter.cpp
OpenMW_openmw/components/lua_ui/adapter.cpp
#include "adapter.hpp" #include <MyGUI_Gui.h> #include "container.hpp" #include "element.hpp" namespace LuaUi { namespace { sol::state luaState; } LuaAdapter::LuaAdapter() : mElement(nullptr) , mContainer(nullptr) { mContainer = MyGUI::Gui::getInstancePtr()->creat...
1,779
C++
.cpp
58
23.637931
111
0.616598
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,893
resources.cpp
OpenMW_openmw/components/lua_ui/resources.cpp
#include "resources.hpp" #include <components/vfs/pathutil.hpp> namespace LuaUi { std::shared_ptr<TextureResource> ResourceManager::registerTexture(TextureData data) { VFS::Path::normalizeFilenameInPlace(data.mPath); TextureResources& list = mTextures[data.mPath]; list.push_back(std::...
467
C++
.cpp
16
23.9375
87
0.693512
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,894
element.cpp
OpenMW_openmw/components/lua_ui/element.cpp
#include "element.hpp" #include <MyGUI_Gui.h> #include "content.hpp" #include "util.hpp" #include "widget.hpp" namespace LuaUi { namespace { namespace LayoutKeys { constexpr std::string_view type = "type"; constexpr std::string_view name = "name"; constexpr...
12,886
C++
.cpp
302
29.612583
115
0.537953
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,895
image.cpp
OpenMW_openmw/components/lua_ui/image.cpp
#include "image.hpp" #include <MyGUI_RenderManager.h> #include "resources.hpp" namespace LuaUi { void LuaTileRect::_setAlign(const MyGUI::IntSize& _oldsize) { mCoord.set(0, 0, mCroppedParent->getWidth(), mCroppedParent->getHeight()); mTileSize = mSetTileSize; // zero tilesize stands ...
2,364
C++
.cpp
57
32.719298
115
0.62887
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,896
scriptsettings.cpp
OpenMW_openmw/components/lua_ui/scriptsettings.cpp
#include "scriptsettings.hpp" #include <map> #include <sol/sol.hpp> #include "adapter.hpp" #include "element.hpp" #include "registerscriptsettings.hpp" namespace LuaUi { namespace { std::vector<sol::table> allPages; ScriptSettingsPage parse(const sol::table& options) { aut...
1,704
C++
.cpp
54
24.240741
95
0.605119
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,897
text.cpp
OpenMW_openmw/components/lua_ui/text.cpp
#include "text.hpp" #include "alignment.hpp" namespace LuaUi { LuaText::LuaText() : mAutoSized(true) { } void LuaText::initialize() { changeWidgetSkin("LuaText"); setEditStatic(true); setVisibleHScroll(false); setVisibleVScroll(false); WidgetExtens...
1,529
C++
.cpp
45
26.688889
89
0.654447
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,898
window.cpp
OpenMW_openmw/components/lua_ui/window.cpp
#include "window.hpp" #include <MyGUI_Delegate.h> #include <MyGUI_MouseButton.h> #include <MyGUI_Types.h> namespace LuaUi { LuaWindow::LuaWindow() : mCaption(nullptr) { } void LuaWindow::updateTemplate() { for (auto& [w, _] : mActionWidgets) { w->eventMouseButt...
2,609
C++
.cpp
69
29.666667
115
0.624257
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,899
alignment.cpp
OpenMW_openmw/components/lua_ui/alignment.cpp
#include "alignment.hpp" namespace LuaUi { MyGUI::Align alignmentToMyGui(Alignment horizontal, Alignment vertical) { MyGUI::Align align(MyGUI::Align::Center); if (horizontal == Alignment::Start) align |= MyGUI::Align::Left; if (horizontal == Alignment::End) align...
540
C++
.cpp
17
24.352941
75
0.595785
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,900
container.cpp
OpenMW_openmw/components/lua_ui/container.cpp
#include "container.hpp" #include <algorithm> namespace LuaUi { void LuaContainer::updateChildren() { WidgetExtension::updateChildren(); updateSizeToFit(); } MyGUI::IntSize LuaContainer::childScalingSize() const { return MyGUI::IntSize(); } MyGUI::IntSize LuaConta...
1,402
C++
.cpp
46
23.23913
84
0.622683
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,901
layers.cpp
OpenMW_openmw/components/lua_ui/layers.cpp
#include "layers.hpp" #include <components/debug/debuglog.hpp> namespace LuaUi { size_t Layer::indexOf(std::string_view name) { for (size_t i = 0; i < count(); i++) if (at(i)->getName() == name) return i; return count(); } void Layer::insert(size_t index, s...
868
C++
.cpp
25
26.88
119
0.579762
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,902
flex.cpp
OpenMW_openmw/components/lua_ui/flex.cpp
#include "flex.hpp" namespace LuaUi { void LuaFlex::updateProperties() { mHorizontal = propertyValue("horizontal", false); mAutoSized = propertyValue("autoSize", true); mAlign = propertyValue("align", Alignment::Start); mArrange = propertyValue("arrange", Alignment::Start); ...
3,484
C++
.cpp
98
24.94898
105
0.559964
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,903
windows_crashcatcher.cpp
OpenMW_openmw/components/crashcatcher/windows_crashcatcher.cpp
#include "windows_crashcatcher.hpp" #include <cassert> #include <cwchar> #include <sstream> #include <thread> #include "windows_crashmonitor.hpp" #include "windows_crashshm.hpp" #include "windowscrashdumppathhelpers.hpp" #include <SDL_messagebox.h> #include <components/misc/strings/conversion.hpp> namespace Crash {...
7,904
C++
.cpp
195
31.825641
116
0.643771
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,904
windowscrashdumppathhelpers.cpp
OpenMW_openmw/components/crashcatcher/windowscrashdumppathhelpers.cpp
#include "windowscrashdumppathhelpers.hpp" #include <components/misc/strings/conversion.hpp> namespace Crash { std::filesystem::path getCrashDumpPath(const CrashSHM& crashShm) { return (std::filesystem::path(Misc::StringUtils::stringToU8String(crashShm.mStartup.mDumpDirectoryPath)) / Misc:...
746
C++
.cpp
17
37.529412
112
0.735537
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,905
crashcatcher.cpp
OpenMW_openmw/components/crashcatcher/crashcatcher.cpp
#include <algorithm> #include <cstring> #include <filesystem> #include <fstream> #include <optional> #include <span> #include <errno.h> #include <limits.h> #include <pthread.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/param.h> #include <sys/ptrace.h> #include <sys/s...
17,310
C++
.cpp
509
27.314342
198
0.596925
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,906
windows_crashmonitor.cpp
OpenMW_openmw/components/crashcatcher/windows_crashmonitor.cpp
#include "windows_crashmonitor.hpp" #include <Psapi.h> #include <components/misc/windows.hpp> #include <DbgHelp.h> #include <memory> #include <thread> #include <SDL_messagebox.h> #include "windows_crashcatcher.hpp" #include "windows_crashshm.hpp" #include "windowscrashdumppathhelpers.hpp" #include <components/debu...
11,652
C++
.cpp
275
29.272727
118
0.565954
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,907
editor.cpp
OpenMW_openmw/apps/opencs/editor.cpp
#include "editor.hpp" #include <QApplication> #include <QFileInfo> #include <QLocalServer> #include <QLocalSocket> #include <QMessageBox> #include <QRegularExpression> #include <boost/program_options.hpp> #include <exception> #include <apps/opencs/model/doc/document.hpp> #include <apps/opencs/model/doc/documentmana...
14,133
C++
.cpp
375
30.96
120
0.667984
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,908
main.cpp
OpenMW_openmw/apps/opencs/main.cpp
#include "editor.hpp" #include <exception> #include <string> #include <QIcon> #include <QSurfaceFormat> #include <osg/DisplaySettings> #include <components/debug/debugging.hpp> #include <components/platform/application.hpp> #include <components/platform/platform.hpp> #include "model/doc/messages.hpp" #include "mod...
1,985
C++
.cpp
63
28.142857
76
0.746449
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,909
refidcollection.cpp
OpenMW_openmw/apps/opencs/model/world/refidcollection.cpp
#include "refidcollection.hpp" #include <algorithm> #include <memory> #include <stdexcept> #include <string_view> #include <type_traits> #include <apps/opencs/model/world/columnbase.hpp> #include <apps/opencs/model/world/record.hpp> #include <apps/opencs/model/world/refiddata.hpp> #include <components/esm3/loadacti....
44,511
C++
.cpp
723
56.320885
120
0.756652
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,910
commandmacro.cpp
OpenMW_openmw/apps/opencs/model/world/commandmacro.cpp
#include "commandmacro.hpp" #include <QUndoCommand> #include <QUndoStack> CSMWorld::CommandMacro::CommandMacro(QUndoStack& undoStack, const QString& description) : mUndoStack(undoStack) , mDescription(description) , mStarted(false) { } CSMWorld::CommandMacro::~CommandMacro() { if (mStarted) ...
582
C++
.cpp
23
21.608696
87
0.721519
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
34,911
actoradapter.cpp
OpenMW_openmw/apps/opencs/model/world/actoradapter.cpp
#include "actoradapter.hpp" #include <QModelIndex> #include <algorithm> #include <string> #include <string_view> #include <vector> #include <apps/opencs/model/prefs/state.hpp> #include <apps/opencs/model/world/columns.hpp> #include <apps/opencs/model/world/idcollection.hpp> #include <apps/opencs/model/world/record.h...
22,364
C++
.cpp
604
27.221854
120
0.590775
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false