Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Makefile*
.qmake.stash
/.project
*_autogen/
*.app
/bin/templates/Player.exe
/bin/*.app
/bin/*.dll
Expand All @@ -27,6 +28,7 @@ Makefile*
/bin/*.res
/bin/platforms
*.cbp
Testing

# flatpak
/.flatpak-builder
Expand Down
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Step-by-step instructions:
[source,shell]
---------------------------------------
cmake . # generate Makefile
cmake --build # compile the executable
cmake --build . # compile the executable
---------------------------------------


Expand Down
2 changes: 1 addition & 1 deletion src/common/dbstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ inline QString ToQString(const std::string& s) {
return QString::fromStdString(s);
}

inline QString ToQString(lcf::StringView s) {
inline QString ToQString(std::string_view s) {
return QString::fromUtf8(s.data(), s.size());
}

Expand Down
1 change: 1 addition & 0 deletions src/model/event_command_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* along with EasyRPG Editor. If not, see <http://www.gnu.org/licenses/>.
*/

#include <cassert>
#include "event_command_list.h"

EventCommandList::EventCommandList(std::vector<lcf::rpg::EventCommand>& commands, int current_index) :
Expand Down
8 changes: 5 additions & 3 deletions src/model/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ std::shared_ptr<Project> Project::load(const QDir& dir) {
cfg = FileFinder::Find(dir, RM_INI);
}

std::string title;
std::string enc;
if (!cfg.isNull()) {
lcf::INIReader ini(cfg.toStdString());
std::string title = ini.GetString("RPG_RT", GAMETITLE, tr("Untitled").toStdString());
const lcf::INIReader ini(cfg.toStdString());
title = ini.GetString("RPG_RT", GAMETITLE, tr("Untitled").toStdString());

if (project_type == FileFinder::ProjectType::Legacy) {
// Check for game encoding
std::string enc = ini.GetString("EasyRPG", "Encoding", "");
enc = ini.GetString("EasyRPG", "Encoding", "");
if (enc.empty()) {
// Only use the title for encoding detection
// This is called for all games in the "Open Project" list
Expand Down
Binary file added translations/editor_de.qm
Binary file not shown.
Loading