mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
feat(exe): remove pointless last file
This commit is contained in:
parent
938fe930b0
commit
f5b55c7f83
1 changed files with 0 additions and 19 deletions
19
src/main.cpp
19
src/main.cpp
|
|
@ -3,10 +3,7 @@
|
||||||
#include "utils/benchmark.hpp"
|
#include "utils/benchmark.hpp"
|
||||||
#include "utils/utils.hpp"
|
#include "utils/utils.hpp"
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <fstream>
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
@ -57,22 +54,6 @@ namespace {
|
||||||
// remove mesa var in favor of config
|
// remove mesa var in favor of config
|
||||||
unsetenv("MESA_VK_WSI_PRESENT_MODE"); // NOLINT
|
unsetenv("MESA_VK_WSI_PRESENT_MODE"); // NOLINT
|
||||||
|
|
||||||
// write latest file
|
|
||||||
try {
|
|
||||||
std::ofstream latest("/tmp/lsfg-vk_last", std::ios::trunc);
|
|
||||||
if (!latest.is_open())
|
|
||||||
throw std::runtime_error("Failed to open /tmp/lsfg-vk_last for writing");
|
|
||||||
latest << "exe: " << name.first << '\n';
|
|
||||||
latest << "comm: " << name.second << '\n';
|
|
||||||
latest << "pid: " << getpid() << '\n';
|
|
||||||
if (!latest.good())
|
|
||||||
throw std::runtime_error("Failed to write to /tmp/lsfg-vk_last");
|
|
||||||
} catch (const std::exception& e) {
|
|
||||||
std::cerr << "lsfg-vk: An error occurred while trying to write the latest file, exiting:\n";
|
|
||||||
std::cerr << "- " << e.what() << '\n';
|
|
||||||
exit(EXIT_FAILURE);
|
|
||||||
}
|
|
||||||
|
|
||||||
// load shaders
|
// load shaders
|
||||||
try {
|
try {
|
||||||
Extract::extractShaders();
|
Extract::extractShaders();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue