Skip to content

Commit cda0c52

Browse files
committed
fix: first corrections for the pull request
1 parent 145d515 commit cda0c52

File tree

7 files changed

+9
-30
lines changed

7 files changed

+9
-30
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/out/bin)
3232
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/out/lib)
3333

3434
# Build related options
35-
option(SWIFT_BUILD_SAMPLES "Build samples" OFF)
36-
option(SWIFT_BUILD_UNIT_TESTS "Build unit tests" OFF)
35+
option(SWIFT_BUILD_SAMPLES "Build samples" ON)
36+
option(SWIFT_BUILD_UNIT_TESTS "Build unit tests" ON)
3737
option(SWIFT_BUILD_DOCUMENTATION "Build documentation" ON)
3838

3939
cmake_dependent_option(SWIFT_BUILD_FS9_PLUGIN "Build FS9 plugin" ON SWIFT_WIN32 OFF)

cmake/tools.cmake

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ macro(load_vatsim_key)
2929
set(SWIFT_VATSIM_ID "0")
3030
set(SWIFT_VATSIM_KEY "00000000000000000000000000000000")
3131

32-
# if(VATSIM_KEY_JSON)
33-
# file(READ ${PROJECT_SOURCE_DIR}/${VATSIM_KEY_JSON} KEY_FILE)
34-
# string(JSON SWIFT_VATSIM_ID GET ${KEY_FILE} vatsim id)
35-
# string(JSON SWIFT_VATSIM_KEY GET ${KEY_FILE} vatsim key)
36-
# endif()
32+
if(VATSIM_KEY_JSON)
33+
file(READ ${PROJECT_SOURCE_DIR}/${VATSIM_KEY_JSON} KEY_FILE)
34+
string(JSON SWIFT_VATSIM_ID GET ${KEY_FILE} vatsim id)
35+
string(JSON SWIFT_VATSIM_KEY GET ${KEY_FILE} vatsim key)
36+
endif()
3737
endmacro()
3838

3939
function(configure_target_platform)

src/gui/components/dbownmodelscomponent.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ namespace swift::gui::components
404404
ownModelsComp->setSimulator(CSimulatorInfo::msfs2024(), true);
405405
});
406406
}
407-
menuActions.addAction(m_loadActions[5], CMenuAction::pathSimulator());
407+
menuActions.addAction(m_loadActions[6], CMenuAction::pathSimulator());
408408
}
409409

410410
// with models loaded I allow a refresh reload

src/misc/simulation/fscommon/fsdirectories.cpp

-19
Original file line numberDiff line numberDiff line change
@@ -339,25 +339,6 @@ namespace swift::misc::simulation::fscommon
339339
const QStringList &CFsDirectories::msfs2024SimObjectsExcludeDirectoryPatterns()
340340
{
341341
static const QStringList exclude {
342-
/*
343-
"OneStore/asobo-discovery",
344-
"OneStore/asobo-flight",
345-
"OneStore/asobo-landingchallenge",
346-
"OneStore/asobo-mission",
347-
"OneStore/asobo-tutorials",
348-
"OneStore/asobo-vcockpits",
349-
"OneStore/asobo-simobjects",
350-
"OneStore/asobo-services",
351-
"OneStore/asobo-vcockpits",
352-
"OneStore/asobo-l",
353-
"OneStore/asobo-m",
354-
"OneStore/asobo-vfx",
355-
"OneStore/fs",
356-
"OneStore/esd",
357-
"OneStore/microsoft-airport",
358-
"OneStore/microsoft-bushtrip",
359-
"OneStore/microsoft-discovery",
360-
*/
361342
"landingchallenge",
362343
"tutorials",
363344

src/plugins/simulator/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ endif()
4646
if(SWIFT_BUILD_FSX_PLUGIN)
4747
add_subdirectory(fsx)
4848
add_subdirectory(fsxconfig)
49-
endif()
49+
endif()

src/plugins/simulator/fscommon/fsuipcimpl.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ namespace swift::simplugin::fscommon
296296
pitchRaw = qRound(std::floor(pitchRaw * angleCorrectionFactor));
297297
bankRaw = qRound(std::floor(bankRaw * angleCorrectionFactor));
298298

299-
// TODO TZ: should MSFS2024 use FSUIPC?
300299
// MSFS has inverted pitch and bank angles
301300
pitchRaw = ~pitchRaw;
302301
bankRaw = ~bankRaw;

src/plugins/simulator/fsxcommon/simconnectdatadefinition.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ namespace swift::simplugin::fsxcommon
425425
return hr;
426426
}
427427

428-
// TODO TZ: are there any changes in MSFS2024 ?
429428
HRESULT CSimConnectDefinitions::initMSFS2024Transponder(const HANDLE hSimConnect)
430429
{
431430
HRESULT hr = s_ok();

0 commit comments

Comments
 (0)