mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Throw fp exceptions in Windows 32 bit build.
This commit is contained in:
parent
c7e60ef723
commit
2d6155fc85
5 changed files with 8 additions and 8 deletions
|
@ -270,12 +270,12 @@ std::unique_ptr<Launcher> Launcher::Create(int argc, char *argv[]) {
|
||||||
return std::make_unique<Platform::Launcher>(argc, argv);
|
return std::make_unique<Platform::Launcher>(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
Launcher::Launcher(
|
Launcher::Launcher(int argc, char *argv[])
|
||||||
int argc,
|
|
||||||
char *argv[])
|
|
||||||
: _argc(argc)
|
: _argc(argc)
|
||||||
, _argv(argv)
|
, _argv(argv)
|
||||||
, _baseIntegration(_argc, _argv) {
|
, _baseIntegration(_argc, _argv) {
|
||||||
|
crl::toggle_fp_exceptions(true);
|
||||||
|
|
||||||
base::Integration::Set(&_baseIntegration);
|
base::Integration::Set(&_baseIntegration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,7 @@ namespace Core {
|
||||||
|
|
||||||
class Launcher {
|
class Launcher {
|
||||||
public:
|
public:
|
||||||
Launcher(
|
Launcher(int argc, char *argv[]);
|
||||||
int argc,
|
|
||||||
char *argv[]);
|
|
||||||
|
|
||||||
static std::unique_ptr<Launcher> Create(int argc, char *argv[]);
|
static std::unique_ptr<Launcher> Create(int argc, char *argv[]);
|
||||||
|
|
||||||
|
|
|
@ -412,7 +412,9 @@ void File::start(not_null<FileDelegate*> delegate, crl::time position) {
|
||||||
|
|
||||||
_reader->startStreaming();
|
_reader->startStreaming();
|
||||||
_context.emplace(delegate, _reader.get());
|
_context.emplace(delegate, _reader.get());
|
||||||
|
|
||||||
_thread = std::thread([=, context = &*_context] {
|
_thread = std::thread([=, context = &*_context] {
|
||||||
|
crl::toggle_fp_exceptions(true);
|
||||||
context->start(position);
|
context->start(position);
|
||||||
while (!context->finished()) {
|
while (!context->finished()) {
|
||||||
context->readNextPacket();
|
context->readNextPacket();
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3ccf2ed5095442e5874bba8852cb7dc4efeae29f
|
Subproject commit 9d2242617c4ebe2664a83521036536b4629be484
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
||||||
Subproject commit 7260711ec54e8c4ef7813f49b93cfa11dfdb9b39
|
Subproject commit 76ece84e77c11c2fc4ef36363d94c331d01d4444
|
Loading…
Add table
Reference in a new issue